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.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.EnumSet;
26 import java.util.Collections;
27 import java.util.BitSet;
28 import org.slf4j.Logger;
29 import org.slf4j.LoggerFactory;
31 public class BgpConfigurator {
33 public interface Iface {
35 int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime,
36 boolean announceFbit) throws org.apache.thrift.TException;
38 int stopBgp(int asNumber) throws org.apache.thrift.TException;
40 int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException;
42 int deletePeer(String ipAddress) throws org.apache.thrift.TException;
44 int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
46 int delVrf(String rd) throws org.apache.thrift.TException;
48 int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException;
50 int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException;
52 int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
54 int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
56 int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
58 int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
60 int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
62 int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
64 int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
66 int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
68 int disableGracefulRestart() throws org.apache.thrift.TException;
70 Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException;
74 public interface AsyncIface {
76 void startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime,
77 boolean announceFbit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
79 void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
81 void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
83 void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
85 void addVrf(String rd, List<String> irts, List<String> erts,
86 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
88 void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
90 void pushRoute(String prefix, String nexthop, String rd, int label,
91 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
93 void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
95 void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
97 void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
99 void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
101 void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
103 void enableAddressFamily(String peerIp, af_afi afi, af_safi safi,
104 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
106 void disableAddressFamily(String peerIp, af_afi afi, af_safi safi,
107 org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
109 void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
111 void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
113 void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
115 void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
119 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
120 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
122 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
123 return new Client(prot);
125 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
126 return new Client(iprot, oprot);
130 public Client(org.apache.thrift.protocol.TProtocol prot)
135 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
139 public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
141 send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit);
142 return recv_startBgp();
145 public void send_startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
147 startBgp_args args = new startBgp_args();
148 args.setAsNumber(asNumber);
149 args.setRouterId(routerId);
151 args.setHoldTime(holdTime);
152 args.setKeepAliveTime(keepAliveTime);
153 args.setStalepathTime(stalepathTime);
154 args.setAnnounceFbit(announceFbit);
155 sendBase("startBgp", args);
158 public int recv_startBgp() throws org.apache.thrift.TException
160 startBgp_result result = new startBgp_result();
161 receiveBase(result, "startBgp");
162 if (result.isSetSuccess()) {
163 return result.success;
165 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
168 public int stopBgp(int asNumber) throws org.apache.thrift.TException
170 send_stopBgp(asNumber);
171 return recv_stopBgp();
174 public void send_stopBgp(int asNumber) throws org.apache.thrift.TException
176 stopBgp_args args = new stopBgp_args();
177 args.setAsNumber(asNumber);
178 sendBase("stopBgp", args);
181 public int recv_stopBgp() throws org.apache.thrift.TException
183 stopBgp_result result = new stopBgp_result();
184 receiveBase(result, "stopBgp");
185 if (result.isSetSuccess()) {
186 return result.success;
188 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
191 public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
193 send_createPeer(ipAddress, asNumber);
194 return recv_createPeer();
197 public void send_createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
199 createPeer_args args = new createPeer_args();
200 args.setIpAddress(ipAddress);
201 args.setAsNumber(asNumber);
202 sendBase("createPeer", args);
205 public int recv_createPeer() throws org.apache.thrift.TException
207 createPeer_result result = new createPeer_result();
208 receiveBase(result, "createPeer");
209 if (result.isSetSuccess()) {
210 return result.success;
212 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
215 public int deletePeer(String ipAddress) throws org.apache.thrift.TException
217 send_deletePeer(ipAddress);
218 return recv_deletePeer();
221 public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
223 deletePeer_args args = new deletePeer_args();
224 args.setIpAddress(ipAddress);
225 sendBase("deletePeer", args);
228 public int recv_deletePeer() throws org.apache.thrift.TException
230 deletePeer_result result = new deletePeer_result();
231 receiveBase(result, "deletePeer");
232 if (result.isSetSuccess()) {
233 return result.success;
235 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
238 public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
240 send_addVrf(rd, irts, erts);
241 return recv_addVrf();
244 public void send_addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
246 addVrf_args args = new addVrf_args();
250 sendBase("addVrf", args);
253 public int recv_addVrf() throws org.apache.thrift.TException
255 addVrf_result result = new addVrf_result();
256 receiveBase(result, "addVrf");
257 if (result.isSetSuccess()) {
258 return result.success;
260 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
263 public int delVrf(String rd) throws org.apache.thrift.TException
266 return recv_delVrf();
269 public void send_delVrf(String rd) throws org.apache.thrift.TException
271 delVrf_args args = new delVrf_args();
273 sendBase("delVrf", args);
276 public int recv_delVrf() throws org.apache.thrift.TException
278 delVrf_result result = new delVrf_result();
279 receiveBase(result, "delVrf");
280 if (result.isSetSuccess()) {
281 return result.success;
283 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
286 public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
288 send_pushRoute(prefix, nexthop, rd, label);
289 return recv_pushRoute();
292 public void send_pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
294 pushRoute_args args = new pushRoute_args();
295 args.setPrefix(prefix);
296 args.setNexthop(nexthop);
298 args.setLabel(label);
299 sendBase("pushRoute", args);
302 public int recv_pushRoute() throws org.apache.thrift.TException
304 pushRoute_result result = new pushRoute_result();
305 receiveBase(result, "pushRoute");
306 if (result.isSetSuccess()) {
307 return result.success;
309 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
312 public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
314 send_withdrawRoute(prefix, rd);
315 return recv_withdrawRoute();
318 public void send_withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
320 withdrawRoute_args args = new withdrawRoute_args();
321 args.setPrefix(prefix);
323 sendBase("withdrawRoute", args);
326 public int recv_withdrawRoute() throws org.apache.thrift.TException
328 withdrawRoute_result result = new withdrawRoute_result();
329 receiveBase(result, "withdrawRoute");
330 if (result.isSetSuccess()) {
331 return result.success;
333 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
336 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
338 send_setEbgpMultihop(peerIp, nHops);
339 return recv_setEbgpMultihop();
342 public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
344 setEbgpMultihop_args args = new setEbgpMultihop_args();
345 args.setPeerIp(peerIp);
346 args.setNHops(nHops);
347 sendBase("setEbgpMultihop", args);
350 public int recv_setEbgpMultihop() throws org.apache.thrift.TException
352 setEbgpMultihop_result result = new setEbgpMultihop_result();
353 receiveBase(result, "setEbgpMultihop");
354 if (result.isSetSuccess()) {
355 return result.success;
357 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
360 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
362 send_unsetEbgpMultihop(peerIp);
363 return recv_unsetEbgpMultihop();
366 public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
368 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
369 args.setPeerIp(peerIp);
370 sendBase("unsetEbgpMultihop", args);
373 public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
375 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
376 receiveBase(result, "unsetEbgpMultihop");
377 if (result.isSetSuccess()) {
378 return result.success;
380 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
383 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
385 send_setUpdateSource(peerIp, srcIp);
386 return recv_setUpdateSource();
389 public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
391 setUpdateSource_args args = new setUpdateSource_args();
392 args.setPeerIp(peerIp);
393 args.setSrcIp(srcIp);
394 sendBase("setUpdateSource", args);
397 public int recv_setUpdateSource() throws org.apache.thrift.TException
399 setUpdateSource_result result = new setUpdateSource_result();
400 receiveBase(result, "setUpdateSource");
401 if (result.isSetSuccess()) {
402 return result.success;
404 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
407 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
409 send_unsetUpdateSource(peerIp);
410 return recv_unsetUpdateSource();
413 public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
415 unsetUpdateSource_args args = new unsetUpdateSource_args();
416 args.setPeerIp(peerIp);
417 sendBase("unsetUpdateSource", args);
420 public int recv_unsetUpdateSource() throws org.apache.thrift.TException
422 unsetUpdateSource_result result = new unsetUpdateSource_result();
423 receiveBase(result, "unsetUpdateSource");
424 if (result.isSetSuccess()) {
425 return result.success;
427 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
430 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
432 send_enableAddressFamily(peerIp, afi, safi);
433 return recv_enableAddressFamily();
436 public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
438 enableAddressFamily_args args = new enableAddressFamily_args();
439 args.setPeerIp(peerIp);
442 sendBase("enableAddressFamily", args);
445 public int recv_enableAddressFamily() throws org.apache.thrift.TException
447 enableAddressFamily_result result = new enableAddressFamily_result();
448 receiveBase(result, "enableAddressFamily");
449 if (result.isSetSuccess()) {
450 return result.success;
452 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
455 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
457 send_disableAddressFamily(peerIp, afi, safi);
458 return recv_disableAddressFamily();
461 public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
463 disableAddressFamily_args args = new disableAddressFamily_args();
464 args.setPeerIp(peerIp);
467 sendBase("disableAddressFamily", args);
470 public int recv_disableAddressFamily() throws org.apache.thrift.TException
472 disableAddressFamily_result result = new disableAddressFamily_result();
473 receiveBase(result, "disableAddressFamily");
474 if (result.isSetSuccess()) {
475 return result.success;
477 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
480 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
482 send_setLogConfig(logFileName, logLevel);
483 return recv_setLogConfig();
486 public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
488 setLogConfig_args args = new setLogConfig_args();
489 args.setLogFileName(logFileName);
490 args.setLogLevel(logLevel);
491 sendBase("setLogConfig", args);
494 public int recv_setLogConfig() throws org.apache.thrift.TException
496 setLogConfig_result result = new setLogConfig_result();
497 receiveBase(result, "setLogConfig");
498 if (result.isSetSuccess()) {
499 return result.success;
501 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
504 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
506 send_enableGracefulRestart(stalepathTime);
507 return recv_enableGracefulRestart();
510 public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
512 enableGracefulRestart_args args = new enableGracefulRestart_args();
513 args.setStalepathTime(stalepathTime);
514 sendBase("enableGracefulRestart", args);
517 public int recv_enableGracefulRestart() throws org.apache.thrift.TException
519 enableGracefulRestart_result result = new enableGracefulRestart_result();
520 receiveBase(result, "enableGracefulRestart");
521 if (result.isSetSuccess()) {
522 return result.success;
524 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
527 public int disableGracefulRestart() throws org.apache.thrift.TException
529 send_disableGracefulRestart();
530 return recv_disableGracefulRestart();
533 public void send_disableGracefulRestart() throws org.apache.thrift.TException
535 disableGracefulRestart_args args = new disableGracefulRestart_args();
536 sendBase("disableGracefulRestart", args);
539 public int recv_disableGracefulRestart() throws org.apache.thrift.TException
541 disableGracefulRestart_result result = new disableGracefulRestart_result();
542 receiveBase(result, "disableGracefulRestart");
543 if (result.isSetSuccess()) {
544 return result.success;
546 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
549 public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException
551 send_getRoutes(optype, winSize);
552 return recv_getRoutes();
555 public void send_getRoutes(int optype, int winSize) throws org.apache.thrift.TException
557 getRoutes_args args = new getRoutes_args();
558 args.setOptype(optype);
559 args.setWinSize(winSize);
560 sendBase("getRoutes", args);
563 public Routes recv_getRoutes() throws org.apache.thrift.TException
565 getRoutes_result result = new getRoutes_result();
566 receiveBase(result, "getRoutes");
567 if (result.isSetSuccess()) {
568 return result.success;
570 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
574 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
575 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
576 private org.apache.thrift.async.TAsyncClientManager clientManager;
577 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
578 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
579 this.clientManager = clientManager;
580 this.protocolFactory = protocolFactory;
582 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
583 return new AsyncClient(protocolFactory, clientManager, transport);
587 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
588 super(protocolFactory, clientManager, transport);
591 public void startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
593 startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit, resultHandler, this, ___protocolFactory, ___transport);
594 this.___currentMethod = method_call;
595 ___manager.call(method_call);
598 public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
599 private int asNumber;
600 private String routerId;
602 private int holdTime;
603 private int keepAliveTime;
604 private int stalepathTime;
605 private boolean announceFbit;
606 public startBgp_call(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit, 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 {
607 super(client, protocolFactory, transport, resultHandler, false);
608 this.asNumber = asNumber;
609 this.routerId = routerId;
611 this.holdTime = holdTime;
612 this.keepAliveTime = keepAliveTime;
613 this.stalepathTime = stalepathTime;
614 this.announceFbit = announceFbit;
617 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
618 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
619 startBgp_args args = new startBgp_args();
620 args.setAsNumber(asNumber);
621 args.setRouterId(routerId);
623 args.setHoldTime(holdTime);
624 args.setKeepAliveTime(keepAliveTime);
625 args.setStalepathTime(stalepathTime);
626 args.setAnnounceFbit(announceFbit);
628 prot.writeMessageEnd();
631 public int getResult() throws org.apache.thrift.TException {
632 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
633 throw new IllegalStateException("Method call not finished!");
635 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
636 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
637 return (new Client(prot)).recv_startBgp();
641 public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
643 stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
644 this.___currentMethod = method_call;
645 ___manager.call(method_call);
648 public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
649 private int asNumber;
650 public stopBgp_call(int asNumber, 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 {
651 super(client, protocolFactory, transport, resultHandler, false);
652 this.asNumber = asNumber;
655 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
656 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
657 stopBgp_args args = new stopBgp_args();
658 args.setAsNumber(asNumber);
660 prot.writeMessageEnd();
663 public int getResult() throws org.apache.thrift.TException {
664 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
665 throw new IllegalStateException("Method call not finished!");
667 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
668 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
669 return (new Client(prot)).recv_stopBgp();
673 public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
675 createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
676 this.___currentMethod = method_call;
677 ___manager.call(method_call);
680 public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
681 private String ipAddress;
682 private int asNumber;
683 public createPeer_call(String ipAddress, int asNumber, 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 {
684 super(client, protocolFactory, transport, resultHandler, false);
685 this.ipAddress = ipAddress;
686 this.asNumber = asNumber;
689 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
690 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
691 createPeer_args args = new createPeer_args();
692 args.setIpAddress(ipAddress);
693 args.setAsNumber(asNumber);
695 prot.writeMessageEnd();
698 public int getResult() throws org.apache.thrift.TException {
699 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
700 throw new IllegalStateException("Method call not finished!");
702 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
703 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
704 return (new Client(prot)).recv_createPeer();
708 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
710 deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
711 this.___currentMethod = method_call;
712 ___manager.call(method_call);
715 public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
716 private String ipAddress;
717 public deletePeer_call(String ipAddress, 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 {
718 super(client, protocolFactory, transport, resultHandler, false);
719 this.ipAddress = ipAddress;
722 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
723 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
724 deletePeer_args args = new deletePeer_args();
725 args.setIpAddress(ipAddress);
727 prot.writeMessageEnd();
730 public int getResult() throws org.apache.thrift.TException {
731 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
732 throw new IllegalStateException("Method call not finished!");
734 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
735 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
736 return (new Client(prot)).recv_deletePeer();
740 public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
742 addVrf_call method_call = new addVrf_call(rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
743 this.___currentMethod = method_call;
744 ___manager.call(method_call);
747 public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
749 private List<String> irts;
750 private List<String> erts;
751 public addVrf_call(String rd, List<String> irts, List<String> erts, 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 {
752 super(client, protocolFactory, transport, resultHandler, false);
758 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
759 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
760 addVrf_args args = new addVrf_args();
765 prot.writeMessageEnd();
768 public int getResult() throws org.apache.thrift.TException {
769 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
770 throw new IllegalStateException("Method call not finished!");
772 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
773 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
774 return (new Client(prot)).recv_addVrf();
778 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
780 delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
781 this.___currentMethod = method_call;
782 ___manager.call(method_call);
785 public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
787 public delVrf_call(String rd, 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 {
788 super(client, protocolFactory, transport, resultHandler, false);
792 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
793 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
794 delVrf_args args = new delVrf_args();
797 prot.writeMessageEnd();
800 public int getResult() throws org.apache.thrift.TException {
801 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
802 throw new IllegalStateException("Method call not finished!");
804 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
805 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
806 return (new Client(prot)).recv_delVrf();
810 public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
812 pushRoute_call method_call = new pushRoute_call(prefix, nexthop, rd, label, resultHandler, this, ___protocolFactory, ___transport);
813 this.___currentMethod = method_call;
814 ___manager.call(method_call);
817 public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
818 private String prefix;
819 private String nexthop;
822 public pushRoute_call(String prefix, String nexthop, String rd, 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 {
823 super(client, protocolFactory, transport, resultHandler, false);
824 this.prefix = prefix;
825 this.nexthop = nexthop;
830 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
831 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
832 pushRoute_args args = new pushRoute_args();
833 args.setPrefix(prefix);
834 args.setNexthop(nexthop);
836 args.setLabel(label);
838 prot.writeMessageEnd();
841 public int getResult() throws org.apache.thrift.TException {
842 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
843 throw new IllegalStateException("Method call not finished!");
845 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
846 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
847 return (new Client(prot)).recv_pushRoute();
851 public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
853 withdrawRoute_call method_call = new withdrawRoute_call(prefix, rd, resultHandler, this, ___protocolFactory, ___transport);
854 this.___currentMethod = method_call;
855 ___manager.call(method_call);
858 public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
859 private String prefix;
861 public withdrawRoute_call(String prefix, String rd, 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 {
862 super(client, protocolFactory, transport, resultHandler, false);
863 this.prefix = prefix;
867 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
868 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
869 withdrawRoute_args args = new withdrawRoute_args();
870 args.setPrefix(prefix);
873 prot.writeMessageEnd();
876 public int getResult() throws org.apache.thrift.TException {
877 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
878 throw new IllegalStateException("Method call not finished!");
880 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
881 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
882 return (new Client(prot)).recv_withdrawRoute();
886 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
888 setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
889 this.___currentMethod = method_call;
890 ___manager.call(method_call);
893 public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
894 private String peerIp;
896 public setEbgpMultihop_call(String peerIp, int nHops, 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 {
897 super(client, protocolFactory, transport, resultHandler, false);
898 this.peerIp = peerIp;
902 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
903 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
904 setEbgpMultihop_args args = new setEbgpMultihop_args();
905 args.setPeerIp(peerIp);
906 args.setNHops(nHops);
908 prot.writeMessageEnd();
911 public int getResult() throws org.apache.thrift.TException {
912 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
913 throw new IllegalStateException("Method call not finished!");
915 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
916 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
917 return (new Client(prot)).recv_setEbgpMultihop();
921 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
923 unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
924 this.___currentMethod = method_call;
925 ___manager.call(method_call);
928 public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
929 private String peerIp;
930 public unsetEbgpMultihop_call(String peerIp, 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 {
931 super(client, protocolFactory, transport, resultHandler, false);
932 this.peerIp = peerIp;
935 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
936 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
937 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
938 args.setPeerIp(peerIp);
940 prot.writeMessageEnd();
943 public int getResult() throws org.apache.thrift.TException {
944 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
945 throw new IllegalStateException("Method call not finished!");
947 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
948 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
949 return (new Client(prot)).recv_unsetEbgpMultihop();
953 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
955 setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
956 this.___currentMethod = method_call;
957 ___manager.call(method_call);
960 public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
961 private String peerIp;
962 private String srcIp;
963 public setUpdateSource_call(String peerIp, String srcIp, 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 {
964 super(client, protocolFactory, transport, resultHandler, false);
965 this.peerIp = peerIp;
969 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
970 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
971 setUpdateSource_args args = new setUpdateSource_args();
972 args.setPeerIp(peerIp);
973 args.setSrcIp(srcIp);
975 prot.writeMessageEnd();
978 public int getResult() throws org.apache.thrift.TException {
979 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
980 throw new IllegalStateException("Method call not finished!");
982 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
983 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
984 return (new Client(prot)).recv_setUpdateSource();
988 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
990 unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
991 this.___currentMethod = method_call;
992 ___manager.call(method_call);
995 public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
996 private String peerIp;
997 public unsetUpdateSource_call(String peerIp, 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 {
998 super(client, protocolFactory, transport, resultHandler, false);
999 this.peerIp = peerIp;
1002 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1003 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1004 unsetUpdateSource_args args = new unsetUpdateSource_args();
1005 args.setPeerIp(peerIp);
1007 prot.writeMessageEnd();
1010 public int getResult() throws org.apache.thrift.TException {
1011 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1012 throw new IllegalStateException("Method call not finished!");
1014 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1015 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1016 return (new Client(prot)).recv_unsetUpdateSource();
1020 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1022 enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1023 this.___currentMethod = method_call;
1024 ___manager.call(method_call);
1027 public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1028 private String peerIp;
1030 private af_safi safi;
1031 public enableAddressFamily_call(String peerIp, af_afi afi, af_safi safi, 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 {
1032 super(client, protocolFactory, transport, resultHandler, false);
1033 this.peerIp = peerIp;
1038 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1039 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1040 enableAddressFamily_args args = new enableAddressFamily_args();
1041 args.setPeerIp(peerIp);
1045 prot.writeMessageEnd();
1048 public int getResult() throws org.apache.thrift.TException {
1049 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1050 throw new IllegalStateException("Method call not finished!");
1052 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1053 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1054 return (new Client(prot)).recv_enableAddressFamily();
1058 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1060 disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1061 this.___currentMethod = method_call;
1062 ___manager.call(method_call);
1065 public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1066 private String peerIp;
1068 private af_safi safi;
1069 public disableAddressFamily_call(String peerIp, af_afi afi, af_safi safi, 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 {
1070 super(client, protocolFactory, transport, resultHandler, false);
1071 this.peerIp = peerIp;
1076 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1077 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1078 disableAddressFamily_args args = new disableAddressFamily_args();
1079 args.setPeerIp(peerIp);
1083 prot.writeMessageEnd();
1086 public int getResult() throws org.apache.thrift.TException {
1087 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1088 throw new IllegalStateException("Method call not finished!");
1090 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1091 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1092 return (new Client(prot)).recv_disableAddressFamily();
1096 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1098 setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1099 this.___currentMethod = method_call;
1100 ___manager.call(method_call);
1103 public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1104 private String logFileName;
1105 private String logLevel;
1106 public setLogConfig_call(String logFileName, String logLevel, 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 {
1107 super(client, protocolFactory, transport, resultHandler, false);
1108 this.logFileName = logFileName;
1109 this.logLevel = logLevel;
1112 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1113 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1114 setLogConfig_args args = new setLogConfig_args();
1115 args.setLogFileName(logFileName);
1116 args.setLogLevel(logLevel);
1118 prot.writeMessageEnd();
1121 public int getResult() throws org.apache.thrift.TException {
1122 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1123 throw new IllegalStateException("Method call not finished!");
1125 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1126 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1127 return (new Client(prot)).recv_setLogConfig();
1131 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1133 enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1134 this.___currentMethod = method_call;
1135 ___manager.call(method_call);
1138 public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1139 private int stalepathTime;
1140 public enableGracefulRestart_call(int stalepathTime, 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 {
1141 super(client, protocolFactory, transport, resultHandler, false);
1142 this.stalepathTime = stalepathTime;
1145 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1146 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1147 enableGracefulRestart_args args = new enableGracefulRestart_args();
1148 args.setStalepathTime(stalepathTime);
1150 prot.writeMessageEnd();
1153 public int getResult() throws org.apache.thrift.TException {
1154 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1155 throw new IllegalStateException("Method call not finished!");
1157 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1158 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1159 return (new Client(prot)).recv_enableGracefulRestart();
1163 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1165 disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1166 this.___currentMethod = method_call;
1167 ___manager.call(method_call);
1170 public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1171 public disableGracefulRestart_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 {
1172 super(client, protocolFactory, transport, resultHandler, false);
1175 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1176 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1177 disableGracefulRestart_args args = new disableGracefulRestart_args();
1179 prot.writeMessageEnd();
1182 public int getResult() throws org.apache.thrift.TException {
1183 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1184 throw new IllegalStateException("Method call not finished!");
1186 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1187 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1188 return (new Client(prot)).recv_disableGracefulRestart();
1192 public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1194 getRoutes_call method_call = new getRoutes_call(optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1195 this.___currentMethod = method_call;
1196 ___manager.call(method_call);
1199 public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1201 private int winSize;
1202 public getRoutes_call(int optype, int winSize, 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 {
1203 super(client, protocolFactory, transport, resultHandler, false);
1204 this.optype = optype;
1205 this.winSize = winSize;
1208 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1209 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1210 getRoutes_args args = new getRoutes_args();
1211 args.setOptype(optype);
1212 args.setWinSize(winSize);
1214 prot.writeMessageEnd();
1217 public Routes getResult() throws org.apache.thrift.TException {
1218 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1219 throw new IllegalStateException("Method call not finished!");
1221 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1222 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1223 return (new Client(prot)).recv_getRoutes();
1229 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1230 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1231 public Processor(I iface) {
1232 super(iface, getProcessMap(new HashMap<>()));
1235 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1236 super(iface, getProcessMap(processMap));
1239 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) {
1240 processMap.put("startBgp", new startBgp());
1241 processMap.put("stopBgp", new stopBgp());
1242 processMap.put("createPeer", new createPeer());
1243 processMap.put("deletePeer", new deletePeer());
1244 processMap.put("addVrf", new addVrf());
1245 processMap.put("delVrf", new delVrf());
1246 processMap.put("pushRoute", new pushRoute());
1247 processMap.put("withdrawRoute", new withdrawRoute());
1248 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1249 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1250 processMap.put("setUpdateSource", new setUpdateSource());
1251 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1252 processMap.put("enableAddressFamily", new enableAddressFamily());
1253 processMap.put("disableAddressFamily", new disableAddressFamily());
1254 processMap.put("setLogConfig", new setLogConfig());
1255 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1256 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1257 processMap.put("getRoutes", new getRoutes());
1261 public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1266 public startBgp_args getEmptyArgsInstance() {
1267 return new startBgp_args();
1270 protected boolean isOneway() {
1274 public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1275 startBgp_result result = new startBgp_result();
1276 result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit);
1277 result.setSuccessIsSet(true);
1282 public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1287 public stopBgp_args getEmptyArgsInstance() {
1288 return new stopBgp_args();
1291 protected boolean isOneway() {
1295 public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1296 stopBgp_result result = new stopBgp_result();
1297 result.success = iface.stopBgp(args.asNumber);
1298 result.setSuccessIsSet(true);
1303 public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1304 public createPeer() {
1305 super("createPeer");
1308 public createPeer_args getEmptyArgsInstance() {
1309 return new createPeer_args();
1312 protected boolean isOneway() {
1316 public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1317 createPeer_result result = new createPeer_result();
1318 result.success = iface.createPeer(args.ipAddress, args.asNumber);
1319 result.setSuccessIsSet(true);
1324 public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1325 public deletePeer() {
1326 super("deletePeer");
1329 public deletePeer_args getEmptyArgsInstance() {
1330 return new deletePeer_args();
1333 protected boolean isOneway() {
1337 public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1338 deletePeer_result result = new deletePeer_result();
1339 result.success = iface.deletePeer(args.ipAddress);
1340 result.setSuccessIsSet(true);
1345 public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1350 public addVrf_args getEmptyArgsInstance() {
1351 return new addVrf_args();
1354 protected boolean isOneway() {
1358 public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1359 addVrf_result result = new addVrf_result();
1360 result.success = iface.addVrf(args.rd, args.irts, args.erts);
1361 result.setSuccessIsSet(true);
1366 public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1371 public delVrf_args getEmptyArgsInstance() {
1372 return new delVrf_args();
1375 protected boolean isOneway() {
1379 public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1380 delVrf_result result = new delVrf_result();
1381 result.success = iface.delVrf(args.rd);
1382 result.setSuccessIsSet(true);
1387 public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1388 public pushRoute() {
1392 public pushRoute_args getEmptyArgsInstance() {
1393 return new pushRoute_args();
1396 protected boolean isOneway() {
1400 public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1401 pushRoute_result result = new pushRoute_result();
1402 result.success = iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label);
1403 result.setSuccessIsSet(true);
1408 public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1409 public withdrawRoute() {
1410 super("withdrawRoute");
1413 public withdrawRoute_args getEmptyArgsInstance() {
1414 return new withdrawRoute_args();
1417 protected boolean isOneway() {
1421 public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1422 withdrawRoute_result result = new withdrawRoute_result();
1423 result.success = iface.withdrawRoute(args.prefix, args.rd);
1424 result.setSuccessIsSet(true);
1429 public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1430 public setEbgpMultihop() {
1431 super("setEbgpMultihop");
1434 public setEbgpMultihop_args getEmptyArgsInstance() {
1435 return new setEbgpMultihop_args();
1438 protected boolean isOneway() {
1442 public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1443 setEbgpMultihop_result result = new setEbgpMultihop_result();
1444 result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1445 result.setSuccessIsSet(true);
1450 public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1451 public unsetEbgpMultihop() {
1452 super("unsetEbgpMultihop");
1455 public unsetEbgpMultihop_args getEmptyArgsInstance() {
1456 return new unsetEbgpMultihop_args();
1459 protected boolean isOneway() {
1463 public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1464 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1465 result.success = iface.unsetEbgpMultihop(args.peerIp);
1466 result.setSuccessIsSet(true);
1471 public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1472 public setUpdateSource() {
1473 super("setUpdateSource");
1476 public setUpdateSource_args getEmptyArgsInstance() {
1477 return new setUpdateSource_args();
1480 protected boolean isOneway() {
1484 public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1485 setUpdateSource_result result = new setUpdateSource_result();
1486 result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1487 result.setSuccessIsSet(true);
1492 public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1493 public unsetUpdateSource() {
1494 super("unsetUpdateSource");
1497 public unsetUpdateSource_args getEmptyArgsInstance() {
1498 return new unsetUpdateSource_args();
1501 protected boolean isOneway() {
1505 public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1506 unsetUpdateSource_result result = new unsetUpdateSource_result();
1507 result.success = iface.unsetUpdateSource(args.peerIp);
1508 result.setSuccessIsSet(true);
1513 public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1514 public enableAddressFamily() {
1515 super("enableAddressFamily");
1518 public enableAddressFamily_args getEmptyArgsInstance() {
1519 return new enableAddressFamily_args();
1522 protected boolean isOneway() {
1526 public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1527 enableAddressFamily_result result = new enableAddressFamily_result();
1528 result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1529 result.setSuccessIsSet(true);
1534 public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1535 public disableAddressFamily() {
1536 super("disableAddressFamily");
1539 public disableAddressFamily_args getEmptyArgsInstance() {
1540 return new disableAddressFamily_args();
1543 protected boolean isOneway() {
1547 public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1548 disableAddressFamily_result result = new disableAddressFamily_result();
1549 result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1550 result.setSuccessIsSet(true);
1555 public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1556 public setLogConfig() {
1557 super("setLogConfig");
1560 public setLogConfig_args getEmptyArgsInstance() {
1561 return new setLogConfig_args();
1564 protected boolean isOneway() {
1568 public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1569 setLogConfig_result result = new setLogConfig_result();
1570 result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1571 result.setSuccessIsSet(true);
1576 public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1577 public enableGracefulRestart() {
1578 super("enableGracefulRestart");
1581 public enableGracefulRestart_args getEmptyArgsInstance() {
1582 return new enableGracefulRestart_args();
1585 protected boolean isOneway() {
1589 public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1590 enableGracefulRestart_result result = new enableGracefulRestart_result();
1591 result.success = iface.enableGracefulRestart(args.stalepathTime);
1592 result.setSuccessIsSet(true);
1597 public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1598 public disableGracefulRestart() {
1599 super("disableGracefulRestart");
1602 public disableGracefulRestart_args getEmptyArgsInstance() {
1603 return new disableGracefulRestart_args();
1606 protected boolean isOneway() {
1610 public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1611 disableGracefulRestart_result result = new disableGracefulRestart_result();
1612 result.success = iface.disableGracefulRestart();
1613 result.setSuccessIsSet(true);
1618 public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1619 public getRoutes() {
1623 public getRoutes_args getEmptyArgsInstance() {
1624 return new getRoutes_args();
1627 protected boolean isOneway() {
1631 public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1632 getRoutes_result result = new getRoutes_result();
1633 result.success = iface.getRoutes(args.optype, args.winSize);
1640 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1641 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1642 public AsyncProcessor(I iface) {
1643 super(iface, getProcessMap(new HashMap<>()));
1646 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1647 super(iface, getProcessMap(processMap));
1650 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) {
1651 processMap.put("startBgp", new startBgp());
1652 processMap.put("stopBgp", new stopBgp());
1653 processMap.put("createPeer", new createPeer());
1654 processMap.put("deletePeer", new deletePeer());
1655 processMap.put("addVrf", new addVrf());
1656 processMap.put("delVrf", new delVrf());
1657 processMap.put("pushRoute", new pushRoute());
1658 processMap.put("withdrawRoute", new withdrawRoute());
1659 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1660 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1661 processMap.put("setUpdateSource", new setUpdateSource());
1662 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1663 processMap.put("enableAddressFamily", new enableAddressFamily());
1664 processMap.put("disableAddressFamily", new disableAddressFamily());
1665 processMap.put("setLogConfig", new setLogConfig());
1666 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1667 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1668 processMap.put("getRoutes", new getRoutes());
1672 public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
1677 public startBgp_args getEmptyArgsInstance() {
1678 return new startBgp_args();
1681 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1682 final org.apache.thrift.AsyncProcessFunction fcall = this;
1683 return new AsyncMethodCallback<Integer>() {
1684 public void onComplete(Integer o) {
1685 startBgp_result result = new startBgp_result();
1687 result.setSuccessIsSet(true);
1689 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1691 } catch (Exception e) {
1692 LOGGER.error("Exception writing to internal frame buffer", e);
1696 public void onError(Exception e) {
1697 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1698 org.apache.thrift.TBase msg;
1699 startBgp_result result = new startBgp_result();
1701 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1702 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1705 fcall.sendResponse(fb,msg,msgType,seqid);
1707 } catch (Exception ex) {
1708 LOGGER.error("Exception writing to internal frame buffer", ex);
1715 protected boolean isOneway() {
1719 public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1720 iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit,resultHandler);
1724 public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
1729 public stopBgp_args getEmptyArgsInstance() {
1730 return new stopBgp_args();
1733 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1734 final org.apache.thrift.AsyncProcessFunction fcall = this;
1735 return new AsyncMethodCallback<Integer>() {
1736 public void onComplete(Integer o) {
1737 stopBgp_result result = new stopBgp_result();
1739 result.setSuccessIsSet(true);
1741 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1743 } catch (Exception e) {
1744 LOGGER.error("Exception writing to internal frame buffer", e);
1748 public void onError(Exception e) {
1749 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1750 org.apache.thrift.TBase msg;
1751 stopBgp_result result = new stopBgp_result();
1753 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1754 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1757 fcall.sendResponse(fb,msg,msgType,seqid);
1759 } catch (Exception ex) {
1760 LOGGER.error("Exception writing to internal frame buffer", ex);
1767 protected boolean isOneway() {
1771 public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1772 iface.stopBgp(args.asNumber,resultHandler);
1776 public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
1777 public createPeer() {
1778 super("createPeer");
1781 public createPeer_args getEmptyArgsInstance() {
1782 return new createPeer_args();
1785 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1786 final org.apache.thrift.AsyncProcessFunction fcall = this;
1787 return new AsyncMethodCallback<Integer>() {
1788 public void onComplete(Integer o) {
1789 createPeer_result result = new createPeer_result();
1791 result.setSuccessIsSet(true);
1793 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1795 } catch (Exception e) {
1796 LOGGER.error("Exception writing to internal frame buffer", e);
1800 public void onError(Exception e) {
1801 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1802 org.apache.thrift.TBase msg;
1803 createPeer_result result = new createPeer_result();
1805 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1806 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1809 fcall.sendResponse(fb,msg,msgType,seqid);
1811 } catch (Exception ex) {
1812 LOGGER.error("Exception writing to internal frame buffer", ex);
1819 protected boolean isOneway() {
1823 public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1824 iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
1828 public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
1829 public deletePeer() {
1830 super("deletePeer");
1833 public deletePeer_args getEmptyArgsInstance() {
1834 return new deletePeer_args();
1837 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1838 final org.apache.thrift.AsyncProcessFunction fcall = this;
1839 return new AsyncMethodCallback<Integer>() {
1840 public void onComplete(Integer o) {
1841 deletePeer_result result = new deletePeer_result();
1843 result.setSuccessIsSet(true);
1845 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1847 } catch (Exception e) {
1848 LOGGER.error("Exception writing to internal frame buffer", e);
1852 public void onError(Exception e) {
1853 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1854 org.apache.thrift.TBase msg;
1855 deletePeer_result result = new deletePeer_result();
1857 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1858 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1861 fcall.sendResponse(fb,msg,msgType,seqid);
1863 } catch (Exception ex) {
1864 LOGGER.error("Exception writing to internal frame buffer", ex);
1871 protected boolean isOneway() {
1875 public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1876 iface.deletePeer(args.ipAddress,resultHandler);
1880 public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
1885 public addVrf_args getEmptyArgsInstance() {
1886 return new addVrf_args();
1889 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1890 final org.apache.thrift.AsyncProcessFunction fcall = this;
1891 return new AsyncMethodCallback<Integer>() {
1892 public void onComplete(Integer o) {
1893 addVrf_result result = new addVrf_result();
1895 result.setSuccessIsSet(true);
1897 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1899 } catch (Exception e) {
1900 LOGGER.error("Exception writing to internal frame buffer", e);
1904 public void onError(Exception e) {
1905 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1906 org.apache.thrift.TBase msg;
1907 addVrf_result result = new addVrf_result();
1909 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1910 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1913 fcall.sendResponse(fb,msg,msgType,seqid);
1915 } catch (Exception ex) {
1916 LOGGER.error("Exception writing to internal frame buffer", ex);
1923 protected boolean isOneway() {
1927 public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1928 iface.addVrf(args.rd, args.irts, args.erts,resultHandler);
1932 public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
1937 public delVrf_args getEmptyArgsInstance() {
1938 return new delVrf_args();
1941 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1942 final org.apache.thrift.AsyncProcessFunction fcall = this;
1943 return new AsyncMethodCallback<Integer>() {
1944 public void onComplete(Integer o) {
1945 delVrf_result result = new delVrf_result();
1947 result.setSuccessIsSet(true);
1949 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1951 } catch (Exception e) {
1952 LOGGER.error("Exception writing to internal frame buffer", e);
1956 public void onError(Exception e) {
1957 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1958 org.apache.thrift.TBase msg;
1959 delVrf_result result = new delVrf_result();
1961 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1962 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1965 fcall.sendResponse(fb,msg,msgType,seqid);
1967 } catch (Exception ex) {
1968 LOGGER.error("Exception writing to internal frame buffer", ex);
1975 protected boolean isOneway() {
1979 public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1980 iface.delVrf(args.rd,resultHandler);
1984 public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
1985 public pushRoute() {
1989 public pushRoute_args getEmptyArgsInstance() {
1990 return new pushRoute_args();
1993 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1994 final org.apache.thrift.AsyncProcessFunction fcall = this;
1995 return new AsyncMethodCallback<Integer>() {
1996 public void onComplete(Integer o) {
1997 pushRoute_result result = new pushRoute_result();
1999 result.setSuccessIsSet(true);
2001 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2003 } catch (Exception e) {
2004 LOGGER.error("Exception writing to internal frame buffer", e);
2008 public void onError(Exception e) {
2009 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2010 org.apache.thrift.TBase msg;
2011 pushRoute_result result = new pushRoute_result();
2013 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2014 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2017 fcall.sendResponse(fb,msg,msgType,seqid);
2019 } catch (Exception ex) {
2020 LOGGER.error("Exception writing to internal frame buffer", ex);
2027 protected boolean isOneway() {
2031 public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2032 iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label,resultHandler);
2036 public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2037 public withdrawRoute() {
2038 super("withdrawRoute");
2041 public withdrawRoute_args getEmptyArgsInstance() {
2042 return new withdrawRoute_args();
2045 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2046 final org.apache.thrift.AsyncProcessFunction fcall = this;
2047 return new AsyncMethodCallback<Integer>() {
2048 public void onComplete(Integer o) {
2049 withdrawRoute_result result = new withdrawRoute_result();
2051 result.setSuccessIsSet(true);
2053 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2055 } catch (Exception e) {
2056 LOGGER.error("Exception writing to internal frame buffer", e);
2060 public void onError(Exception e) {
2061 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2062 org.apache.thrift.TBase msg;
2063 withdrawRoute_result result = new withdrawRoute_result();
2065 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2066 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2069 fcall.sendResponse(fb,msg,msgType,seqid);
2071 } catch (Exception ex) {
2072 LOGGER.error("Exception writing to internal frame buffer", ex);
2079 protected boolean isOneway() {
2083 public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2084 iface.withdrawRoute(args.prefix, args.rd,resultHandler);
2088 public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2089 public setEbgpMultihop() {
2090 super("setEbgpMultihop");
2093 public setEbgpMultihop_args getEmptyArgsInstance() {
2094 return new setEbgpMultihop_args();
2097 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2098 final org.apache.thrift.AsyncProcessFunction fcall = this;
2099 return new AsyncMethodCallback<Integer>() {
2100 public void onComplete(Integer o) {
2101 setEbgpMultihop_result result = new setEbgpMultihop_result();
2103 result.setSuccessIsSet(true);
2105 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2107 } catch (Exception e) {
2108 LOGGER.error("Exception writing to internal frame buffer", e);
2112 public void onError(Exception e) {
2113 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2114 org.apache.thrift.TBase msg;
2115 setEbgpMultihop_result result = new setEbgpMultihop_result();
2117 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2118 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2121 fcall.sendResponse(fb,msg,msgType,seqid);
2123 } catch (Exception ex) {
2124 LOGGER.error("Exception writing to internal frame buffer", ex);
2131 protected boolean isOneway() {
2135 public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2136 iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2140 public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2141 public unsetEbgpMultihop() {
2142 super("unsetEbgpMultihop");
2145 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2146 return new unsetEbgpMultihop_args();
2149 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2150 final org.apache.thrift.AsyncProcessFunction fcall = this;
2151 return new AsyncMethodCallback<Integer>() {
2152 public void onComplete(Integer o) {
2153 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2155 result.setSuccessIsSet(true);
2157 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2159 } catch (Exception e) {
2160 LOGGER.error("Exception writing to internal frame buffer", e);
2164 public void onError(Exception e) {
2165 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2166 org.apache.thrift.TBase msg;
2167 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2169 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2170 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2173 fcall.sendResponse(fb,msg,msgType,seqid);
2175 } catch (Exception ex) {
2176 LOGGER.error("Exception writing to internal frame buffer", ex);
2183 protected boolean isOneway() {
2187 public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2188 iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2192 public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2193 public setUpdateSource() {
2194 super("setUpdateSource");
2197 public setUpdateSource_args getEmptyArgsInstance() {
2198 return new setUpdateSource_args();
2201 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2202 final org.apache.thrift.AsyncProcessFunction fcall = this;
2203 return new AsyncMethodCallback<Integer>() {
2204 public void onComplete(Integer o) {
2205 setUpdateSource_result result = new setUpdateSource_result();
2207 result.setSuccessIsSet(true);
2209 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2211 } catch (Exception e) {
2212 LOGGER.error("Exception writing to internal frame buffer", e);
2216 public void onError(Exception e) {
2217 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2218 org.apache.thrift.TBase msg;
2219 setUpdateSource_result result = new setUpdateSource_result();
2221 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2222 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2225 fcall.sendResponse(fb,msg,msgType,seqid);
2227 } catch (Exception ex) {
2228 LOGGER.error("Exception writing to internal frame buffer", ex);
2235 protected boolean isOneway() {
2239 public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2240 iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2244 public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2245 public unsetUpdateSource() {
2246 super("unsetUpdateSource");
2249 public unsetUpdateSource_args getEmptyArgsInstance() {
2250 return new unsetUpdateSource_args();
2253 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2254 final org.apache.thrift.AsyncProcessFunction fcall = this;
2255 return new AsyncMethodCallback<Integer>() {
2256 public void onComplete(Integer o) {
2257 unsetUpdateSource_result result = new unsetUpdateSource_result();
2259 result.setSuccessIsSet(true);
2261 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2263 } catch (Exception e) {
2264 LOGGER.error("Exception writing to internal frame buffer", e);
2268 public void onError(Exception e) {
2269 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2270 org.apache.thrift.TBase msg;
2271 unsetUpdateSource_result result = new unsetUpdateSource_result();
2273 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2274 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2277 fcall.sendResponse(fb,msg,msgType,seqid);
2279 } catch (Exception ex) {
2280 LOGGER.error("Exception writing to internal frame buffer", ex);
2287 protected boolean isOneway() {
2291 public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2292 iface.unsetUpdateSource(args.peerIp,resultHandler);
2296 public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2297 public enableAddressFamily() {
2298 super("enableAddressFamily");
2301 public enableAddressFamily_args getEmptyArgsInstance() {
2302 return new enableAddressFamily_args();
2305 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2306 final org.apache.thrift.AsyncProcessFunction fcall = this;
2307 return new AsyncMethodCallback<Integer>() {
2308 public void onComplete(Integer o) {
2309 enableAddressFamily_result result = new enableAddressFamily_result();
2311 result.setSuccessIsSet(true);
2313 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2315 } catch (Exception e) {
2316 LOGGER.error("Exception writing to internal frame buffer", e);
2320 public void onError(Exception e) {
2321 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2322 org.apache.thrift.TBase msg;
2323 enableAddressFamily_result result = new enableAddressFamily_result();
2325 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2326 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2329 fcall.sendResponse(fb,msg,msgType,seqid);
2331 } catch (Exception ex) {
2332 LOGGER.error("Exception writing to internal frame buffer", ex);
2339 protected boolean isOneway() {
2343 public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2344 iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2348 public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2349 public disableAddressFamily() {
2350 super("disableAddressFamily");
2353 public disableAddressFamily_args getEmptyArgsInstance() {
2354 return new disableAddressFamily_args();
2357 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2358 final org.apache.thrift.AsyncProcessFunction fcall = this;
2359 return new AsyncMethodCallback<Integer>() {
2360 public void onComplete(Integer o) {
2361 disableAddressFamily_result result = new disableAddressFamily_result();
2363 result.setSuccessIsSet(true);
2365 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2367 } catch (Exception e) {
2368 LOGGER.error("Exception writing to internal frame buffer", e);
2372 public void onError(Exception e) {
2373 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2374 org.apache.thrift.TBase msg;
2375 disableAddressFamily_result result = new disableAddressFamily_result();
2377 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2378 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2381 fcall.sendResponse(fb,msg,msgType,seqid);
2383 } catch (Exception ex) {
2384 LOGGER.error("Exception writing to internal frame buffer", ex);
2391 protected boolean isOneway() {
2395 public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2396 iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2400 public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2401 public setLogConfig() {
2402 super("setLogConfig");
2405 public setLogConfig_args getEmptyArgsInstance() {
2406 return new setLogConfig_args();
2409 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2410 final org.apache.thrift.AsyncProcessFunction fcall = this;
2411 return new AsyncMethodCallback<Integer>() {
2412 public void onComplete(Integer o) {
2413 setLogConfig_result result = new setLogConfig_result();
2415 result.setSuccessIsSet(true);
2417 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2419 } catch (Exception e) {
2420 LOGGER.error("Exception writing to internal frame buffer", e);
2424 public void onError(Exception e) {
2425 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2426 org.apache.thrift.TBase msg;
2427 setLogConfig_result result = new setLogConfig_result();
2429 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2430 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2433 fcall.sendResponse(fb,msg,msgType,seqid);
2435 } catch (Exception ex) {
2436 LOGGER.error("Exception writing to internal frame buffer", ex);
2443 protected boolean isOneway() {
2447 public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2448 iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2452 public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2453 public enableGracefulRestart() {
2454 super("enableGracefulRestart");
2457 public enableGracefulRestart_args getEmptyArgsInstance() {
2458 return new enableGracefulRestart_args();
2461 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2462 final org.apache.thrift.AsyncProcessFunction fcall = this;
2463 return new AsyncMethodCallback<Integer>() {
2464 public void onComplete(Integer o) {
2465 enableGracefulRestart_result result = new enableGracefulRestart_result();
2467 result.setSuccessIsSet(true);
2469 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2471 } catch (Exception e) {
2472 LOGGER.error("Exception writing to internal frame buffer", e);
2476 public void onError(Exception e) {
2477 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2478 org.apache.thrift.TBase msg;
2479 enableGracefulRestart_result result = new enableGracefulRestart_result();
2481 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2482 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2485 fcall.sendResponse(fb,msg,msgType,seqid);
2487 } catch (Exception ex) {
2488 LOGGER.error("Exception writing to internal frame buffer", ex);
2495 protected boolean isOneway() {
2499 public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2500 iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2504 public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2505 public disableGracefulRestart() {
2506 super("disableGracefulRestart");
2509 public disableGracefulRestart_args getEmptyArgsInstance() {
2510 return new disableGracefulRestart_args();
2513 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2514 final org.apache.thrift.AsyncProcessFunction fcall = this;
2515 return new AsyncMethodCallback<Integer>() {
2516 public void onComplete(Integer o) {
2517 disableGracefulRestart_result result = new disableGracefulRestart_result();
2519 result.setSuccessIsSet(true);
2521 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2523 } catch (Exception e) {
2524 LOGGER.error("Exception writing to internal frame buffer", e);
2528 public void onError(Exception e) {
2529 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2530 org.apache.thrift.TBase msg;
2531 disableGracefulRestart_result result = new disableGracefulRestart_result();
2533 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2534 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2537 fcall.sendResponse(fb,msg,msgType,seqid);
2539 } catch (Exception ex) {
2540 LOGGER.error("Exception writing to internal frame buffer", ex);
2547 protected boolean isOneway() {
2551 public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2552 iface.disableGracefulRestart(resultHandler);
2556 public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
2557 public getRoutes() {
2561 public getRoutes_args getEmptyArgsInstance() {
2562 return new getRoutes_args();
2565 public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2566 final org.apache.thrift.AsyncProcessFunction fcall = this;
2567 return new AsyncMethodCallback<Routes>() {
2568 public void onComplete(Routes o) {
2569 getRoutes_result result = new getRoutes_result();
2572 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2574 } catch (Exception e) {
2575 LOGGER.error("Exception writing to internal frame buffer", e);
2579 public void onError(Exception e) {
2580 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2581 org.apache.thrift.TBase msg;
2582 getRoutes_result result = new getRoutes_result();
2584 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2585 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2588 fcall.sendResponse(fb,msg,msgType,seqid);
2590 } catch (Exception ex) {
2591 LOGGER.error("Exception writing to internal frame buffer", ex);
2598 protected boolean isOneway() {
2602 public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
2603 iface.getRoutes(args.optype, args.winSize,resultHandler);
2609 public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args> {
2610 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
2612 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)1);
2613 private static final org.apache.thrift.protocol.TField ROUTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("routerId", org.apache.thrift.protocol.TType.STRING, (short)2);
2614 private static final org.apache.thrift.protocol.TField PORT_FIELD_DESC = new org.apache.thrift.protocol.TField("port", org.apache.thrift.protocol.TType.I32, (short)3);
2615 private static final org.apache.thrift.protocol.TField HOLD_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("holdTime", org.apache.thrift.protocol.TType.I32, (short)4);
2616 private static final org.apache.thrift.protocol.TField KEEP_ALIVE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("keepAliveTime", org.apache.thrift.protocol.TType.I32, (short)5);
2617 private static final org.apache.thrift.protocol.TField STALEPATH_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("stalepathTime", org.apache.thrift.protocol.TType.I32, (short)6);
2618 private static final org.apache.thrift.protocol.TField ANNOUNCE_FBIT_FIELD_DESC = new org.apache.thrift.protocol.TField("announceFbit", org.apache.thrift.protocol.TType.BOOL, (short)7);
2620 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
2622 schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
2623 schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
2626 public int asNumber; // required
2627 public String routerId; // required
2628 public int port; // required
2629 public int holdTime; // required
2630 public int keepAliveTime; // required
2631 public int stalepathTime; // required
2632 public boolean announceFbit; // required
2634 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2635 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2636 AS_NUMBER((short)1, "asNumber"),
2637 ROUTER_ID((short)2, "routerId"),
2638 PORT((short)3, "port"),
2639 HOLD_TIME((short)4, "holdTime"),
2640 KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
2641 STALEPATH_TIME((short)6, "stalepathTime"),
2642 ANNOUNCE_FBIT((short)7, "announceFbit");
2644 private static final Map<String, _Fields> byName = new HashMap<>();
2647 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2648 byName.put(field.getFieldName(), field);
2653 * Find the _Fields constant that matches fieldId, or null if its not found.
2655 public static _Fields findByThriftId(int fieldId) {
2657 case 1: // AS_NUMBER
2659 case 2: // ROUTER_ID
2663 case 4: // HOLD_TIME
2665 case 5: // KEEP_ALIVE_TIME
2666 return KEEP_ALIVE_TIME;
2667 case 6: // STALEPATH_TIME
2668 return STALEPATH_TIME;
2669 case 7: // ANNOUNCE_FBIT
2670 return ANNOUNCE_FBIT;
2677 * Find the _Fields constant that matches fieldId, throwing an exception
2678 * if it is not found.
2680 public static _Fields findByThriftIdOrThrow(int fieldId) {
2681 _Fields fields = findByThriftId(fieldId);
2682 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2687 * Find the _Fields constant that matches name, or null if its not found.
2689 public static _Fields findByName(String name) {
2690 return byName.get(name);
2693 private final short _thriftId;
2694 private final String _fieldName;
2696 _Fields(short thriftId, String fieldName) {
2697 _thriftId = thriftId;
2698 _fieldName = fieldName;
2701 public short getThriftFieldId() {
2705 public String getFieldName() {
2710 // isset id assignments
2711 private static final int __ASNUMBER_ISSET_ID = 0;
2712 private static final int __PORT_ISSET_ID = 1;
2713 private static final int __HOLDTIME_ISSET_ID = 2;
2714 private static final int __KEEPALIVETIME_ISSET_ID = 3;
2715 private static final int __STALEPATHTIME_ISSET_ID = 4;
2716 private static final int __ANNOUNCEFBIT_ISSET_ID = 5;
2717 private byte __isset_bitfield = 0;
2718 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2720 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
2721 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
2722 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2723 tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
2724 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2725 tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
2726 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2727 tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2728 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2729 tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2730 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2731 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2732 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2733 tmpMap.put(_Fields.ANNOUNCE_FBIT, new org.apache.thrift.meta_data.FieldMetaData("announceFbit", org.apache.thrift.TFieldRequirementType.DEFAULT,
2734 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
2735 metaDataMap = Collections.unmodifiableMap(tmpMap);
2736 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
2739 public startBgp_args() {
2742 public startBgp_args(
2749 boolean announceFbit)
2752 this.asNumber = asNumber;
2753 setAsNumberIsSet(true);
2754 this.routerId = routerId;
2757 this.holdTime = holdTime;
2758 setHoldTimeIsSet(true);
2759 this.keepAliveTime = keepAliveTime;
2760 setKeepAliveTimeIsSet(true);
2761 this.stalepathTime = stalepathTime;
2762 setStalepathTimeIsSet(true);
2763 this.announceFbit = announceFbit;
2764 setAnnounceFbitIsSet(true);
2768 * Performs a deep copy on <i>other</i>.
2770 public startBgp_args(startBgp_args other) {
2771 __isset_bitfield = other.__isset_bitfield;
2772 this.asNumber = other.asNumber;
2773 if (other.isSetRouterId()) {
2774 this.routerId = other.routerId;
2776 this.port = other.port;
2777 this.holdTime = other.holdTime;
2778 this.keepAliveTime = other.keepAliveTime;
2779 this.stalepathTime = other.stalepathTime;
2780 this.announceFbit = other.announceFbit;
2783 public startBgp_args deepCopy() {
2784 return new startBgp_args(this);
2788 public void clear() {
2789 setAsNumberIsSet(false);
2791 this.routerId = null;
2792 setPortIsSet(false);
2794 setHoldTimeIsSet(false);
2796 setKeepAliveTimeIsSet(false);
2797 this.keepAliveTime = 0;
2798 setStalepathTimeIsSet(false);
2799 this.stalepathTime = 0;
2800 setAnnounceFbitIsSet(false);
2801 this.announceFbit = false;
2804 public int getAsNumber() {
2805 return this.asNumber;
2808 public startBgp_args setAsNumber(int asNumber) {
2809 this.asNumber = asNumber;
2810 setAsNumberIsSet(true);
2814 public void unsetAsNumber() {
2815 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2818 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
2819 public boolean isSetAsNumber() {
2820 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2823 public void setAsNumberIsSet(boolean value) {
2824 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
2827 public String getRouterId() {
2828 return this.routerId;
2831 public startBgp_args setRouterId(String routerId) {
2832 this.routerId = routerId;
2836 public void unsetRouterId() {
2837 this.routerId = null;
2840 /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
2841 public boolean isSetRouterId() {
2842 return this.routerId != null;
2845 public void setRouterIdIsSet(boolean value) {
2847 this.routerId = null;
2851 public int getPort() {
2855 public startBgp_args setPort(int port) {
2861 public void unsetPort() {
2862 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
2865 /** Returns true if field port is set (has been assigned a value) and false otherwise */
2866 public boolean isSetPort() {
2867 return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
2870 public void setPortIsSet(boolean value) {
2871 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
2874 public int getHoldTime() {
2875 return this.holdTime;
2878 public startBgp_args setHoldTime(int holdTime) {
2879 this.holdTime = holdTime;
2880 setHoldTimeIsSet(true);
2884 public void unsetHoldTime() {
2885 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2888 /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
2889 public boolean isSetHoldTime() {
2890 return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2893 public void setHoldTimeIsSet(boolean value) {
2894 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
2897 public int getKeepAliveTime() {
2898 return this.keepAliveTime;
2901 public startBgp_args setKeepAliveTime(int keepAliveTime) {
2902 this.keepAliveTime = keepAliveTime;
2903 setKeepAliveTimeIsSet(true);
2907 public void unsetKeepAliveTime() {
2908 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2911 /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
2912 public boolean isSetKeepAliveTime() {
2913 return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2916 public void setKeepAliveTimeIsSet(boolean value) {
2917 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
2920 public int getStalepathTime() {
2921 return this.stalepathTime;
2924 public startBgp_args setStalepathTime(int stalepathTime) {
2925 this.stalepathTime = stalepathTime;
2926 setStalepathTimeIsSet(true);
2930 public void unsetStalepathTime() {
2931 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2934 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
2935 public boolean isSetStalepathTime() {
2936 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2939 public void setStalepathTimeIsSet(boolean value) {
2940 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
2943 public boolean isAnnounceFbit() {
2944 return this.announceFbit;
2947 public startBgp_args setAnnounceFbit(boolean announceFbit) {
2948 this.announceFbit = announceFbit;
2949 setAnnounceFbitIsSet(true);
2953 public void unsetAnnounceFbit() {
2954 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2957 /** Returns true if field announceFbit is set (has been assigned a value) and false otherwise */
2958 public boolean isSetAnnounceFbit() {
2959 return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2962 public void setAnnounceFbitIsSet(boolean value) {
2963 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID, value);
2966 public void setFieldValue(_Fields field, Object value) {
2969 if (value == null) {
2972 setAsNumber((Integer)value);
2977 if (value == null) {
2980 setRouterId((String)value);
2985 if (value == null) {
2988 setPort((Integer)value);
2993 if (value == null) {
2996 setHoldTime((Integer)value);
3000 case KEEP_ALIVE_TIME:
3001 if (value == null) {
3002 unsetKeepAliveTime();
3004 setKeepAliveTime((Integer)value);
3008 case STALEPATH_TIME:
3009 if (value == null) {
3010 unsetStalepathTime();
3012 setStalepathTime((Integer)value);
3017 if (value == null) {
3018 unsetAnnounceFbit();
3020 setAnnounceFbit((Boolean)value);
3027 public Object getFieldValue(_Fields field) {
3030 return Integer.valueOf(getAsNumber());
3033 return getRouterId();
3036 return Integer.valueOf(getPort());
3039 return Integer.valueOf(getHoldTime());
3041 case KEEP_ALIVE_TIME:
3042 return Integer.valueOf(getKeepAliveTime());
3044 case STALEPATH_TIME:
3045 return Integer.valueOf(getStalepathTime());
3048 return Boolean.valueOf(isAnnounceFbit());
3051 throw new IllegalStateException();
3054 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3055 public boolean isSet(_Fields field) {
3056 if (field == null) {
3057 throw new IllegalArgumentException();
3062 return isSetAsNumber();
3064 return isSetRouterId();
3068 return isSetHoldTime();
3069 case KEEP_ALIVE_TIME:
3070 return isSetKeepAliveTime();
3071 case STALEPATH_TIME:
3072 return isSetStalepathTime();
3074 return isSetAnnounceFbit();
3076 throw new IllegalStateException();
3080 public boolean equals(Object that) {
3083 if (that instanceof startBgp_args)
3084 return this.equals((startBgp_args)that);
3088 public boolean equals(startBgp_args that) {
3092 boolean this_present_asNumber = true;
3093 boolean that_present_asNumber = true;
3094 if (this_present_asNumber || that_present_asNumber) {
3095 if (!(this_present_asNumber && that_present_asNumber))
3097 if (this.asNumber != that.asNumber)
3101 boolean this_present_routerId = this.isSetRouterId();
3102 boolean that_present_routerId = that.isSetRouterId();
3103 if (this_present_routerId || that_present_routerId) {
3104 if (!(this_present_routerId && that_present_routerId))
3106 if (!this.routerId.equals(that.routerId))
3110 boolean this_present_port = true;
3111 boolean that_present_port = true;
3112 if (this_present_port || that_present_port) {
3113 if (!(this_present_port && that_present_port))
3115 if (this.port != that.port)
3119 boolean this_present_holdTime = true;
3120 boolean that_present_holdTime = true;
3121 if (this_present_holdTime || that_present_holdTime) {
3122 if (!(this_present_holdTime && that_present_holdTime))
3124 if (this.holdTime != that.holdTime)
3128 boolean this_present_keepAliveTime = true;
3129 boolean that_present_keepAliveTime = true;
3130 if (this_present_keepAliveTime || that_present_keepAliveTime) {
3131 if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3133 if (this.keepAliveTime != that.keepAliveTime)
3137 boolean this_present_stalepathTime = true;
3138 boolean that_present_stalepathTime = true;
3139 if (this_present_stalepathTime || that_present_stalepathTime) {
3140 if (!(this_present_stalepathTime && that_present_stalepathTime))
3142 if (this.stalepathTime != that.stalepathTime)
3146 boolean this_present_announceFbit = true;
3147 boolean that_present_announceFbit = true;
3148 if (this_present_announceFbit || that_present_announceFbit) {
3149 if (!(this_present_announceFbit && that_present_announceFbit))
3151 if (this.announceFbit != that.announceFbit)
3159 public int hashCode() {
3164 public int compareTo(startBgp_args other) {
3165 if (!getClass().equals(other.getClass())) {
3166 return getClass().getName().compareTo(other.getClass().getName());
3169 int lastComparison = 0;
3171 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3172 if (lastComparison != 0) {
3173 return lastComparison;
3175 if (isSetAsNumber()) {
3176 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3177 if (lastComparison != 0) {
3178 return lastComparison;
3181 lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3182 if (lastComparison != 0) {
3183 return lastComparison;
3185 if (isSetRouterId()) {
3186 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3187 if (lastComparison != 0) {
3188 return lastComparison;
3191 lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3192 if (lastComparison != 0) {
3193 return lastComparison;
3196 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3197 if (lastComparison != 0) {
3198 return lastComparison;
3201 lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3202 if (lastComparison != 0) {
3203 return lastComparison;
3205 if (isSetHoldTime()) {
3206 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3207 if (lastComparison != 0) {
3208 return lastComparison;
3211 lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3212 if (lastComparison != 0) {
3213 return lastComparison;
3215 if (isSetKeepAliveTime()) {
3216 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3217 if (lastComparison != 0) {
3218 return lastComparison;
3221 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3222 if (lastComparison != 0) {
3223 return lastComparison;
3225 if (isSetStalepathTime()) {
3226 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3227 if (lastComparison != 0) {
3228 return lastComparison;
3231 lastComparison = Boolean.valueOf(isSetAnnounceFbit()).compareTo(other.isSetAnnounceFbit());
3232 if (lastComparison != 0) {
3233 return lastComparison;
3235 if (isSetAnnounceFbit()) {
3236 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFbit, other.announceFbit);
3237 if (lastComparison != 0) {
3238 return lastComparison;
3244 public _Fields fieldForId(int fieldId) {
3245 return _Fields.findByThriftId(fieldId);
3248 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3249 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3252 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3253 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3257 public String toString() {
3258 StringBuilder sb = new StringBuilder("startBgp_args(");
3259 boolean first = true;
3261 sb.append("asNumber:");
3262 sb.append(this.asNumber);
3264 if (!first) sb.append(", ");
3265 sb.append("routerId:");
3266 if (this.routerId == null) {
3269 sb.append(this.routerId);
3272 if (!first) sb.append(", ");
3274 sb.append(this.port);
3276 if (!first) sb.append(", ");
3277 sb.append("holdTime:");
3278 sb.append(this.holdTime);
3280 if (!first) sb.append(", ");
3281 sb.append("keepAliveTime:");
3282 sb.append(this.keepAliveTime);
3284 if (!first) sb.append(", ");
3285 sb.append("stalepathTime:");
3286 sb.append(this.stalepathTime);
3288 if (!first) sb.append(", ");
3289 sb.append("announceFbit:");
3290 sb.append(this.announceFbit);
3293 return sb.toString();
3296 public void validate() throws org.apache.thrift.TException {
3297 // check for required fields
3298 // check for sub-struct validity
3301 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3303 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3304 } catch (org.apache.thrift.TException te) {
3305 throw new java.io.IOException(te);
3309 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3311 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3312 __isset_bitfield = 0;
3313 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3314 } catch (org.apache.thrift.TException te) {
3315 throw new java.io.IOException(te);
3319 private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3320 public startBgp_argsStandardScheme getScheme() {
3321 return new startBgp_argsStandardScheme();
3325 private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3327 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3328 org.apache.thrift.protocol.TField schemeField;
3329 iprot.readStructBegin();
3332 schemeField = iprot.readFieldBegin();
3333 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3336 switch (schemeField.id) {
3337 case 1: // AS_NUMBER
3338 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3339 struct.asNumber = iprot.readI32();
3340 struct.setAsNumberIsSet(true);
3342 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3345 case 2: // ROUTER_ID
3346 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3347 struct.routerId = iprot.readString();
3348 struct.setRouterIdIsSet(true);
3350 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3354 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3355 struct.port = iprot.readI32();
3356 struct.setPortIsSet(true);
3358 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3361 case 4: // HOLD_TIME
3362 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3363 struct.holdTime = iprot.readI32();
3364 struct.setHoldTimeIsSet(true);
3366 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3369 case 5: // KEEP_ALIVE_TIME
3370 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3371 struct.keepAliveTime = iprot.readI32();
3372 struct.setKeepAliveTimeIsSet(true);
3374 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3377 case 6: // STALEPATH_TIME
3378 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3379 struct.stalepathTime = iprot.readI32();
3380 struct.setStalepathTimeIsSet(true);
3382 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3385 case 7: // ANNOUNCE_FBIT
3386 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3387 struct.announceFbit = iprot.readBool();
3388 struct.setAnnounceFbitIsSet(true);
3390 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3394 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3396 iprot.readFieldEnd();
3398 iprot.readStructEnd();
3400 // check for required fields of primitive type, which can't be checked in the validate method
3404 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
3407 oprot.writeStructBegin(STRUCT_DESC);
3408 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
3409 oprot.writeI32(struct.asNumber);
3410 oprot.writeFieldEnd();
3411 if (struct.routerId != null) {
3412 oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
3413 oprot.writeString(struct.routerId);
3414 oprot.writeFieldEnd();
3416 oprot.writeFieldBegin(PORT_FIELD_DESC);
3417 oprot.writeI32(struct.port);
3418 oprot.writeFieldEnd();
3419 oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
3420 oprot.writeI32(struct.holdTime);
3421 oprot.writeFieldEnd();
3422 oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
3423 oprot.writeI32(struct.keepAliveTime);
3424 oprot.writeFieldEnd();
3425 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
3426 oprot.writeI32(struct.stalepathTime);
3427 oprot.writeFieldEnd();
3428 oprot.writeFieldBegin(ANNOUNCE_FBIT_FIELD_DESC);
3429 oprot.writeBool(struct.announceFbit);
3430 oprot.writeFieldEnd();
3431 oprot.writeFieldStop();
3432 oprot.writeStructEnd();
3437 private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
3438 public startBgp_argsTupleScheme getScheme() {
3439 return new startBgp_argsTupleScheme();
3443 private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
3446 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3447 TTupleProtocol oprot = (TTupleProtocol) prot;
3448 BitSet optionals = new BitSet();
3449 if (struct.isSetAsNumber()) {
3452 if (struct.isSetRouterId()) {
3455 if (struct.isSetPort()) {
3458 if (struct.isSetHoldTime()) {
3461 if (struct.isSetKeepAliveTime()) {
3464 if (struct.isSetStalepathTime()) {
3467 if (struct.isSetAnnounceFbit()) {
3470 oprot.writeBitSet(optionals, 7);
3471 if (struct.isSetAsNumber()) {
3472 oprot.writeI32(struct.asNumber);
3474 if (struct.isSetRouterId()) {
3475 oprot.writeString(struct.routerId);
3477 if (struct.isSetPort()) {
3478 oprot.writeI32(struct.port);
3480 if (struct.isSetHoldTime()) {
3481 oprot.writeI32(struct.holdTime);
3483 if (struct.isSetKeepAliveTime()) {
3484 oprot.writeI32(struct.keepAliveTime);
3486 if (struct.isSetStalepathTime()) {
3487 oprot.writeI32(struct.stalepathTime);
3489 if (struct.isSetAnnounceFbit()) {
3490 oprot.writeBool(struct.announceFbit);
3495 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3496 TTupleProtocol iprot = (TTupleProtocol) prot;
3497 BitSet incoming = iprot.readBitSet(7);
3498 if (incoming.get(0)) {
3499 struct.asNumber = iprot.readI32();
3500 struct.setAsNumberIsSet(true);
3502 if (incoming.get(1)) {
3503 struct.routerId = iprot.readString();
3504 struct.setRouterIdIsSet(true);
3506 if (incoming.get(2)) {
3507 struct.port = iprot.readI32();
3508 struct.setPortIsSet(true);
3510 if (incoming.get(3)) {
3511 struct.holdTime = iprot.readI32();
3512 struct.setHoldTimeIsSet(true);
3514 if (incoming.get(4)) {
3515 struct.keepAliveTime = iprot.readI32();
3516 struct.setKeepAliveTimeIsSet(true);
3518 if (incoming.get(5)) {
3519 struct.stalepathTime = iprot.readI32();
3520 struct.setStalepathTimeIsSet(true);
3522 if (incoming.get(6)) {
3523 struct.announceFbit = iprot.readBool();
3524 struct.setAnnounceFbitIsSet(true);
3531 public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result> {
3532 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
3534 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
3536 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
3538 schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
3539 schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
3542 public int success; // required
3544 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3545 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3546 SUCCESS((short)0, "success");
3548 private static final Map<String, _Fields> byName = new HashMap<>();
3551 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3552 byName.put(field.getFieldName(), field);
3557 * Find the _Fields constant that matches fieldId, or null if its not found.
3559 public static _Fields findByThriftId(int fieldId) {
3569 * Find the _Fields constant that matches fieldId, throwing an exception
3570 * if it is not found.
3572 public static _Fields findByThriftIdOrThrow(int fieldId) {
3573 _Fields fields = findByThriftId(fieldId);
3574 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3579 * Find the _Fields constant that matches name, or null if its not found.
3581 public static _Fields findByName(String name) {
3582 return byName.get(name);
3585 private final short _thriftId;
3586 private final String _fieldName;
3588 _Fields(short thriftId, String fieldName) {
3589 _thriftId = thriftId;
3590 _fieldName = fieldName;
3593 public short getThriftFieldId() {
3597 public String getFieldName() {
3602 // isset id assignments
3603 private static final int __SUCCESS_ISSET_ID = 0;
3604 private byte __isset_bitfield = 0;
3605 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3607 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
3608 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
3609 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3610 metaDataMap = Collections.unmodifiableMap(tmpMap);
3611 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
3614 public startBgp_result() {
3617 public startBgp_result(
3621 this.success = success;
3622 setSuccessIsSet(true);
3626 * Performs a deep copy on <i>other</i>.
3628 public startBgp_result(startBgp_result other) {
3629 __isset_bitfield = other.__isset_bitfield;
3630 this.success = other.success;
3633 public startBgp_result deepCopy() {
3634 return new startBgp_result(this);
3638 public void clear() {
3639 setSuccessIsSet(false);
3643 public int getSuccess() {
3644 return this.success;
3647 public startBgp_result setSuccess(int success) {
3648 this.success = success;
3649 setSuccessIsSet(true);
3653 public void unsetSuccess() {
3654 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3657 /** Returns true if field success is set (has been assigned a value) and false otherwise */
3658 public boolean isSetSuccess() {
3659 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3662 public void setSuccessIsSet(boolean value) {
3663 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
3666 public void setFieldValue(_Fields field, Object value) {
3669 if (value == null) {
3672 setSuccess((Integer)value);
3679 public Object getFieldValue(_Fields field) {
3682 return Integer.valueOf(getSuccess());
3685 throw new IllegalStateException();
3688 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3689 public boolean isSet(_Fields field) {
3690 if (field == null) {
3691 throw new IllegalArgumentException();
3696 return isSetSuccess();
3698 throw new IllegalStateException();
3702 public boolean equals(Object that) {
3705 if (that instanceof startBgp_result)
3706 return this.equals((startBgp_result)that);
3710 public boolean equals(startBgp_result that) {
3714 boolean this_present_success = true;
3715 boolean that_present_success = true;
3716 if (this_present_success || that_present_success) {
3717 if (!(this_present_success && that_present_success))
3719 if (this.success != that.success)
3727 public int hashCode() {
3732 public int compareTo(startBgp_result other) {
3733 if (!getClass().equals(other.getClass())) {
3734 return getClass().getName().compareTo(other.getClass().getName());
3737 int lastComparison = 0;
3739 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
3740 if (lastComparison != 0) {
3741 return lastComparison;
3743 if (isSetSuccess()) {
3744 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
3745 if (lastComparison != 0) {
3746 return lastComparison;
3752 public _Fields fieldForId(int fieldId) {
3753 return _Fields.findByThriftId(fieldId);
3756 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3757 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3760 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3761 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3765 public String toString() {
3766 StringBuilder sb = new StringBuilder("startBgp_result(");
3767 boolean first = true;
3769 sb.append("success:");
3770 sb.append(this.success);
3773 return sb.toString();
3776 public void validate() throws org.apache.thrift.TException {
3777 // check for required fields
3778 // check for sub-struct validity
3781 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3783 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3784 } catch (org.apache.thrift.TException te) {
3785 throw new java.io.IOException(te);
3789 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3791 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3792 __isset_bitfield = 0;
3793 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3794 } catch (org.apache.thrift.TException te) {
3795 throw new java.io.IOException(te);
3799 private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
3800 public startBgp_resultStandardScheme getScheme() {
3801 return new startBgp_resultStandardScheme();
3805 private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
3807 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
3808 org.apache.thrift.protocol.TField schemeField;
3809 iprot.readStructBegin();
3812 schemeField = iprot.readFieldBegin();
3813 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3816 switch (schemeField.id) {
3818 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3819 struct.success = iprot.readI32();
3820 struct.setSuccessIsSet(true);
3822 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3826 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3828 iprot.readFieldEnd();
3830 iprot.readStructEnd();
3832 // check for required fields of primitive type, which can't be checked in the validate method
3836 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
3839 oprot.writeStructBegin(STRUCT_DESC);
3840 if (struct.isSetSuccess()) {
3841 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3842 oprot.writeI32(struct.success);
3843 oprot.writeFieldEnd();
3845 oprot.writeFieldStop();
3846 oprot.writeStructEnd();
3851 private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
3852 public startBgp_resultTupleScheme getScheme() {
3853 return new startBgp_resultTupleScheme();
3857 private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
3860 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3861 TTupleProtocol oprot = (TTupleProtocol) prot;
3862 BitSet optionals = new BitSet();
3863 if (struct.isSetSuccess()) {
3866 oprot.writeBitSet(optionals, 1);
3867 if (struct.isSetSuccess()) {
3868 oprot.writeI32(struct.success);
3873 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3874 TTupleProtocol iprot = (TTupleProtocol) prot;
3875 BitSet incoming = iprot.readBitSet(1);
3876 if (incoming.get(0)) {
3877 struct.success = iprot.readI32();
3878 struct.setSuccessIsSet(true);
3885 public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args> {
3886 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
3888 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)1);
3890 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
3892 schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
3893 schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
3896 public int asNumber; // required
3898 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3899 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3900 AS_NUMBER((short)1, "asNumber");
3902 private static final Map<String, _Fields> byName = new HashMap<>();
3905 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3906 byName.put(field.getFieldName(), field);
3911 * Find the _Fields constant that matches fieldId, or null if its not found.
3913 public static _Fields findByThriftId(int fieldId) {
3915 case 1: // AS_NUMBER
3923 * Find the _Fields constant that matches fieldId, throwing an exception
3924 * if it is not found.
3926 public static _Fields findByThriftIdOrThrow(int fieldId) {
3927 _Fields fields = findByThriftId(fieldId);
3928 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3933 * Find the _Fields constant that matches name, or null if its not found.
3935 public static _Fields findByName(String name) {
3936 return byName.get(name);
3939 private final short _thriftId;
3940 private final String _fieldName;
3942 _Fields(short thriftId, String fieldName) {
3943 _thriftId = thriftId;
3944 _fieldName = fieldName;
3947 public short getThriftFieldId() {
3951 public String getFieldName() {
3956 // isset id assignments
3957 private static final int __ASNUMBER_ISSET_ID = 0;
3958 private byte __isset_bitfield = 0;
3959 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3961 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
3962 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3963 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3964 metaDataMap = Collections.unmodifiableMap(tmpMap);
3965 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
3968 public stopBgp_args() {
3971 public stopBgp_args(
3975 this.asNumber = asNumber;
3976 setAsNumberIsSet(true);
3980 * Performs a deep copy on <i>other</i>.
3982 public stopBgp_args(stopBgp_args other) {
3983 __isset_bitfield = other.__isset_bitfield;
3984 this.asNumber = other.asNumber;
3987 public stopBgp_args deepCopy() {
3988 return new stopBgp_args(this);
3992 public void clear() {
3993 setAsNumberIsSet(false);
3997 public int getAsNumber() {
3998 return this.asNumber;
4001 public stopBgp_args setAsNumber(int asNumber) {
4002 this.asNumber = asNumber;
4003 setAsNumberIsSet(true);
4007 public void unsetAsNumber() {
4008 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4011 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4012 public boolean isSetAsNumber() {
4013 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4016 public void setAsNumberIsSet(boolean value) {
4017 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4020 public void setFieldValue(_Fields field, Object value) {
4023 if (value == null) {
4026 setAsNumber((Integer)value);
4033 public Object getFieldValue(_Fields field) {
4036 return Integer.valueOf(getAsNumber());
4039 throw new IllegalStateException();
4042 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4043 public boolean isSet(_Fields field) {
4044 if (field == null) {
4045 throw new IllegalArgumentException();
4050 return isSetAsNumber();
4052 throw new IllegalStateException();
4056 public boolean equals(Object that) {
4059 if (that instanceof stopBgp_args)
4060 return this.equals((stopBgp_args)that);
4064 public boolean equals(stopBgp_args that) {
4068 boolean this_present_asNumber = true;
4069 boolean that_present_asNumber = true;
4070 if (this_present_asNumber || that_present_asNumber) {
4071 if (!(this_present_asNumber && that_present_asNumber))
4073 if (this.asNumber != that.asNumber)
4081 public int hashCode() {
4086 public int compareTo(stopBgp_args other) {
4087 if (!getClass().equals(other.getClass())) {
4088 return getClass().getName().compareTo(other.getClass().getName());
4091 int lastComparison = 0;
4093 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4094 if (lastComparison != 0) {
4095 return lastComparison;
4097 if (isSetAsNumber()) {
4098 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4099 if (lastComparison != 0) {
4100 return lastComparison;
4106 public _Fields fieldForId(int fieldId) {
4107 return _Fields.findByThriftId(fieldId);
4110 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4111 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4114 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4115 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4119 public String toString() {
4120 StringBuilder sb = new StringBuilder("stopBgp_args(");
4121 boolean first = true;
4123 sb.append("asNumber:");
4124 sb.append(this.asNumber);
4127 return sb.toString();
4130 public void validate() throws org.apache.thrift.TException {
4131 // check for required fields
4132 // check for sub-struct validity
4135 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4137 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4138 } catch (org.apache.thrift.TException te) {
4139 throw new java.io.IOException(te);
4143 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4145 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4146 __isset_bitfield = 0;
4147 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4148 } catch (org.apache.thrift.TException te) {
4149 throw new java.io.IOException(te);
4153 private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4154 public stopBgp_argsStandardScheme getScheme() {
4155 return new stopBgp_argsStandardScheme();
4159 private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4161 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4162 org.apache.thrift.protocol.TField schemeField;
4163 iprot.readStructBegin();
4166 schemeField = iprot.readFieldBegin();
4167 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4170 switch (schemeField.id) {
4171 case 1: // AS_NUMBER
4172 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4173 struct.asNumber = iprot.readI32();
4174 struct.setAsNumberIsSet(true);
4176 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4180 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4182 iprot.readFieldEnd();
4184 iprot.readStructEnd();
4186 // check for required fields of primitive type, which can't be checked in the validate method
4190 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4193 oprot.writeStructBegin(STRUCT_DESC);
4194 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4195 oprot.writeI32(struct.asNumber);
4196 oprot.writeFieldEnd();
4197 oprot.writeFieldStop();
4198 oprot.writeStructEnd();
4203 private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4204 public stopBgp_argsTupleScheme getScheme() {
4205 return new stopBgp_argsTupleScheme();
4209 private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4212 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4213 TTupleProtocol oprot = (TTupleProtocol) prot;
4214 BitSet optionals = new BitSet();
4215 if (struct.isSetAsNumber()) {
4218 oprot.writeBitSet(optionals, 1);
4219 if (struct.isSetAsNumber()) {
4220 oprot.writeI32(struct.asNumber);
4225 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4226 TTupleProtocol iprot = (TTupleProtocol) prot;
4227 BitSet incoming = iprot.readBitSet(1);
4228 if (incoming.get(0)) {
4229 struct.asNumber = iprot.readI32();
4230 struct.setAsNumberIsSet(true);
4237 public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result> {
4238 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4240 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
4242 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
4244 schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4245 schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4248 public int success; // required
4250 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4251 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4252 SUCCESS((short)0, "success");
4254 private static final Map<String, _Fields> byName = new HashMap<>();
4257 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4258 byName.put(field.getFieldName(), field);
4263 * Find the _Fields constant that matches fieldId, or null if its not found.
4265 public static _Fields findByThriftId(int fieldId) {
4275 * Find the _Fields constant that matches fieldId, throwing an exception
4276 * if it is not found.
4278 public static _Fields findByThriftIdOrThrow(int fieldId) {
4279 _Fields fields = findByThriftId(fieldId);
4280 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4285 * Find the _Fields constant that matches name, or null if its not found.
4287 public static _Fields findByName(String name) {
4288 return byName.get(name);
4291 private final short _thriftId;
4292 private final String _fieldName;
4294 _Fields(short thriftId, String fieldName) {
4295 _thriftId = thriftId;
4296 _fieldName = fieldName;
4299 public short getThriftFieldId() {
4303 public String getFieldName() {
4308 // isset id assignments
4309 private static final int __SUCCESS_ISSET_ID = 0;
4310 private byte __isset_bitfield = 0;
4311 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4313 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
4314 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4315 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4316 metaDataMap = Collections.unmodifiableMap(tmpMap);
4317 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4320 public stopBgp_result() {
4323 public stopBgp_result(
4327 this.success = success;
4328 setSuccessIsSet(true);
4332 * Performs a deep copy on <i>other</i>.
4334 public stopBgp_result(stopBgp_result other) {
4335 __isset_bitfield = other.__isset_bitfield;
4336 this.success = other.success;
4339 public stopBgp_result deepCopy() {
4340 return new stopBgp_result(this);
4344 public void clear() {
4345 setSuccessIsSet(false);
4349 public int getSuccess() {
4350 return this.success;
4353 public stopBgp_result setSuccess(int success) {
4354 this.success = success;
4355 setSuccessIsSet(true);
4359 public void unsetSuccess() {
4360 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4363 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4364 public boolean isSetSuccess() {
4365 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4368 public void setSuccessIsSet(boolean value) {
4369 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4372 public void setFieldValue(_Fields field, Object value) {
4375 if (value == null) {
4378 setSuccess((Integer)value);
4385 public Object getFieldValue(_Fields field) {
4388 return Integer.valueOf(getSuccess());
4391 throw new IllegalStateException();
4394 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4395 public boolean isSet(_Fields field) {
4396 if (field == null) {
4397 throw new IllegalArgumentException();
4402 return isSetSuccess();
4404 throw new IllegalStateException();
4408 public boolean equals(Object that) {
4411 if (that instanceof stopBgp_result)
4412 return this.equals((stopBgp_result)that);
4416 public boolean equals(stopBgp_result that) {
4420 boolean this_present_success = true;
4421 boolean that_present_success = true;
4422 if (this_present_success || that_present_success) {
4423 if (!(this_present_success && that_present_success))
4425 if (this.success != that.success)
4433 public int hashCode() {
4438 public int compareTo(stopBgp_result other) {
4439 if (!getClass().equals(other.getClass())) {
4440 return getClass().getName().compareTo(other.getClass().getName());
4443 int lastComparison = 0;
4445 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4446 if (lastComparison != 0) {
4447 return lastComparison;
4449 if (isSetSuccess()) {
4450 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4451 if (lastComparison != 0) {
4452 return lastComparison;
4458 public _Fields fieldForId(int fieldId) {
4459 return _Fields.findByThriftId(fieldId);
4462 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4463 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4466 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4467 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4471 public String toString() {
4472 StringBuilder sb = new StringBuilder("stopBgp_result(");
4473 boolean first = true;
4475 sb.append("success:");
4476 sb.append(this.success);
4479 return sb.toString();
4482 public void validate() throws org.apache.thrift.TException {
4483 // check for required fields
4484 // check for sub-struct validity
4487 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4489 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4490 } catch (org.apache.thrift.TException te) {
4491 throw new java.io.IOException(te);
4495 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4497 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4498 __isset_bitfield = 0;
4499 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4500 } catch (org.apache.thrift.TException te) {
4501 throw new java.io.IOException(te);
4505 private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
4506 public stopBgp_resultStandardScheme getScheme() {
4507 return new stopBgp_resultStandardScheme();
4511 private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
4513 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
4514 org.apache.thrift.protocol.TField schemeField;
4515 iprot.readStructBegin();
4518 schemeField = iprot.readFieldBegin();
4519 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4522 switch (schemeField.id) {
4524 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4525 struct.success = iprot.readI32();
4526 struct.setSuccessIsSet(true);
4528 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4532 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4534 iprot.readFieldEnd();
4536 iprot.readStructEnd();
4538 // check for required fields of primitive type, which can't be checked in the validate method
4542 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
4545 oprot.writeStructBegin(STRUCT_DESC);
4546 if (struct.isSetSuccess()) {
4547 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4548 oprot.writeI32(struct.success);
4549 oprot.writeFieldEnd();
4551 oprot.writeFieldStop();
4552 oprot.writeStructEnd();
4557 private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
4558 public stopBgp_resultTupleScheme getScheme() {
4559 return new stopBgp_resultTupleScheme();
4563 private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
4566 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4567 TTupleProtocol oprot = (TTupleProtocol) prot;
4568 BitSet optionals = new BitSet();
4569 if (struct.isSetSuccess()) {
4572 oprot.writeBitSet(optionals, 1);
4573 if (struct.isSetSuccess()) {
4574 oprot.writeI32(struct.success);
4579 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4580 TTupleProtocol iprot = (TTupleProtocol) prot;
4581 BitSet incoming = iprot.readBitSet(1);
4582 if (incoming.get(0)) {
4583 struct.success = iprot.readI32();
4584 struct.setSuccessIsSet(true);
4591 public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args> {
4592 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
4594 private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)1);
4595 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I32, (short)2);
4597 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
4599 schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
4600 schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
4603 public String ipAddress; // required
4604 public int asNumber; // required
4606 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4607 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4608 IP_ADDRESS((short)1, "ipAddress"),
4609 AS_NUMBER((short)2, "asNumber");
4611 private static final Map<String, _Fields> byName = new HashMap<>();
4614 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4615 byName.put(field.getFieldName(), field);
4620 * Find the _Fields constant that matches fieldId, or null if its not found.
4622 public static _Fields findByThriftId(int fieldId) {
4624 case 1: // IP_ADDRESS
4626 case 2: // AS_NUMBER
4634 * Find the _Fields constant that matches fieldId, throwing an exception
4635 * if it is not found.
4637 public static _Fields findByThriftIdOrThrow(int fieldId) {
4638 _Fields fields = findByThriftId(fieldId);
4639 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4644 * Find the _Fields constant that matches name, or null if its not found.
4646 public static _Fields findByName(String name) {
4647 return byName.get(name);
4650 private final short _thriftId;
4651 private final String _fieldName;
4653 _Fields(short thriftId, String fieldName) {
4654 _thriftId = thriftId;
4655 _fieldName = fieldName;
4658 public short getThriftFieldId() {
4662 public String getFieldName() {
4667 // isset id assignments
4668 private static final int __ASNUMBER_ISSET_ID = 0;
4669 private byte __isset_bitfield = 0;
4670 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4672 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
4673 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
4674 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4675 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
4676 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4677 metaDataMap = Collections.unmodifiableMap(tmpMap);
4678 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
4681 public createPeer_args() {
4684 public createPeer_args(
4689 this.ipAddress = ipAddress;
4690 this.asNumber = asNumber;
4691 setAsNumberIsSet(true);
4695 * Performs a deep copy on <i>other</i>.
4697 public createPeer_args(createPeer_args other) {
4698 __isset_bitfield = other.__isset_bitfield;
4699 if (other.isSetIpAddress()) {
4700 this.ipAddress = other.ipAddress;
4702 this.asNumber = other.asNumber;
4705 public createPeer_args deepCopy() {
4706 return new createPeer_args(this);
4710 public void clear() {
4711 this.ipAddress = null;
4712 setAsNumberIsSet(false);
4716 public String getIpAddress() {
4717 return this.ipAddress;
4720 public createPeer_args setIpAddress(String ipAddress) {
4721 this.ipAddress = ipAddress;
4725 public void unsetIpAddress() {
4726 this.ipAddress = null;
4729 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
4730 public boolean isSetIpAddress() {
4731 return this.ipAddress != null;
4734 public void setIpAddressIsSet(boolean value) {
4736 this.ipAddress = null;
4740 public int getAsNumber() {
4741 return this.asNumber;
4744 public createPeer_args setAsNumber(int asNumber) {
4745 this.asNumber = asNumber;
4746 setAsNumberIsSet(true);
4750 public void unsetAsNumber() {
4751 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4754 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4755 public boolean isSetAsNumber() {
4756 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4759 public void setAsNumberIsSet(boolean value) {
4760 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4763 public void setFieldValue(_Fields field, Object value) {
4766 if (value == null) {
4769 setIpAddress((String)value);
4774 if (value == null) {
4777 setAsNumber((Integer)value);
4784 public Object getFieldValue(_Fields field) {
4787 return getIpAddress();
4790 return Integer.valueOf(getAsNumber());
4793 throw new IllegalStateException();
4796 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4797 public boolean isSet(_Fields field) {
4798 if (field == null) {
4799 throw new IllegalArgumentException();
4804 return isSetIpAddress();
4806 return isSetAsNumber();
4808 throw new IllegalStateException();
4812 public boolean equals(Object that) {
4815 if (that instanceof createPeer_args)
4816 return this.equals((createPeer_args)that);
4820 public boolean equals(createPeer_args that) {
4824 boolean this_present_ipAddress = this.isSetIpAddress();
4825 boolean that_present_ipAddress = that.isSetIpAddress();
4826 if (this_present_ipAddress || that_present_ipAddress) {
4827 if (!(this_present_ipAddress && that_present_ipAddress))
4829 if (!this.ipAddress.equals(that.ipAddress))
4833 boolean this_present_asNumber = true;
4834 boolean that_present_asNumber = true;
4835 if (this_present_asNumber || that_present_asNumber) {
4836 if (!(this_present_asNumber && that_present_asNumber))
4838 if (this.asNumber != that.asNumber)
4846 public int hashCode() {
4851 public int compareTo(createPeer_args other) {
4852 if (!getClass().equals(other.getClass())) {
4853 return getClass().getName().compareTo(other.getClass().getName());
4856 int lastComparison = 0;
4858 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
4859 if (lastComparison != 0) {
4860 return lastComparison;
4862 if (isSetIpAddress()) {
4863 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
4864 if (lastComparison != 0) {
4865 return lastComparison;
4868 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4869 if (lastComparison != 0) {
4870 return lastComparison;
4872 if (isSetAsNumber()) {
4873 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4874 if (lastComparison != 0) {
4875 return lastComparison;
4881 public _Fields fieldForId(int fieldId) {
4882 return _Fields.findByThriftId(fieldId);
4885 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4886 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4889 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4890 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4894 public String toString() {
4895 StringBuilder sb = new StringBuilder("createPeer_args(");
4896 boolean first = true;
4898 sb.append("ipAddress:");
4899 if (this.ipAddress == null) {
4902 sb.append(this.ipAddress);
4905 if (!first) sb.append(", ");
4906 sb.append("asNumber:");
4907 sb.append(this.asNumber);
4910 return sb.toString();
4913 public void validate() throws org.apache.thrift.TException {
4914 // check for required fields
4915 // check for sub-struct validity
4918 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4920 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4921 } catch (org.apache.thrift.TException te) {
4922 throw new java.io.IOException(te);
4926 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4928 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4929 __isset_bitfield = 0;
4930 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4931 } catch (org.apache.thrift.TException te) {
4932 throw new java.io.IOException(te);
4936 private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
4937 public createPeer_argsStandardScheme getScheme() {
4938 return new createPeer_argsStandardScheme();
4942 private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
4944 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
4945 org.apache.thrift.protocol.TField schemeField;
4946 iprot.readStructBegin();
4949 schemeField = iprot.readFieldBegin();
4950 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4953 switch (schemeField.id) {
4954 case 1: // IP_ADDRESS
4955 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4956 struct.ipAddress = iprot.readString();
4957 struct.setIpAddressIsSet(true);
4959 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4962 case 2: // AS_NUMBER
4963 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4964 struct.asNumber = iprot.readI32();
4965 struct.setAsNumberIsSet(true);
4967 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4971 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4973 iprot.readFieldEnd();
4975 iprot.readStructEnd();
4977 // check for required fields of primitive type, which can't be checked in the validate method
4981 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
4984 oprot.writeStructBegin(STRUCT_DESC);
4985 if (struct.ipAddress != null) {
4986 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
4987 oprot.writeString(struct.ipAddress);
4988 oprot.writeFieldEnd();
4990 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4991 oprot.writeI32(struct.asNumber);
4992 oprot.writeFieldEnd();
4993 oprot.writeFieldStop();
4994 oprot.writeStructEnd();
4999 private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
5000 public createPeer_argsTupleScheme getScheme() {
5001 return new createPeer_argsTupleScheme();
5005 private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5008 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5009 TTupleProtocol oprot = (TTupleProtocol) prot;
5010 BitSet optionals = new BitSet();
5011 if (struct.isSetIpAddress()) {
5014 if (struct.isSetAsNumber()) {
5017 oprot.writeBitSet(optionals, 2);
5018 if (struct.isSetIpAddress()) {
5019 oprot.writeString(struct.ipAddress);
5021 if (struct.isSetAsNumber()) {
5022 oprot.writeI32(struct.asNumber);
5027 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5028 TTupleProtocol iprot = (TTupleProtocol) prot;
5029 BitSet incoming = iprot.readBitSet(2);
5030 if (incoming.get(0)) {
5031 struct.ipAddress = iprot.readString();
5032 struct.setIpAddressIsSet(true);
5034 if (incoming.get(1)) {
5035 struct.asNumber = iprot.readI32();
5036 struct.setAsNumberIsSet(true);
5043 public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result> {
5044 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5046 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
5048 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
5050 schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5051 schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5054 public int success; // required
5056 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5057 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5058 SUCCESS((short)0, "success");
5060 private static final Map<String, _Fields> byName = new HashMap<>();
5063 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5064 byName.put(field.getFieldName(), field);
5069 * Find the _Fields constant that matches fieldId, or null if its not found.
5071 public static _Fields findByThriftId(int fieldId) {
5081 * Find the _Fields constant that matches fieldId, throwing an exception
5082 * if it is not found.
5084 public static _Fields findByThriftIdOrThrow(int fieldId) {
5085 _Fields fields = findByThriftId(fieldId);
5086 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5091 * Find the _Fields constant that matches name, or null if its not found.
5093 public static _Fields findByName(String name) {
5094 return byName.get(name);
5097 private final short _thriftId;
5098 private final String _fieldName;
5100 _Fields(short thriftId, String fieldName) {
5101 _thriftId = thriftId;
5102 _fieldName = fieldName;
5105 public short getThriftFieldId() {
5109 public String getFieldName() {
5114 // isset id assignments
5115 private static final int __SUCCESS_ISSET_ID = 0;
5116 private byte __isset_bitfield = 0;
5117 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5119 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
5120 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5121 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5122 metaDataMap = Collections.unmodifiableMap(tmpMap);
5123 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5126 public createPeer_result() {
5129 public createPeer_result(
5133 this.success = success;
5134 setSuccessIsSet(true);
5138 * Performs a deep copy on <i>other</i>.
5140 public createPeer_result(createPeer_result other) {
5141 __isset_bitfield = other.__isset_bitfield;
5142 this.success = other.success;
5145 public createPeer_result deepCopy() {
5146 return new createPeer_result(this);
5150 public void clear() {
5151 setSuccessIsSet(false);
5155 public int getSuccess() {
5156 return this.success;
5159 public createPeer_result setSuccess(int success) {
5160 this.success = success;
5161 setSuccessIsSet(true);
5165 public void unsetSuccess() {
5166 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5169 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5170 public boolean isSetSuccess() {
5171 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5174 public void setSuccessIsSet(boolean value) {
5175 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5178 public void setFieldValue(_Fields field, Object value) {
5181 if (value == null) {
5184 setSuccess((Integer)value);
5191 public Object getFieldValue(_Fields field) {
5194 return Integer.valueOf(getSuccess());
5197 throw new IllegalStateException();
5200 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5201 public boolean isSet(_Fields field) {
5202 if (field == null) {
5203 throw new IllegalArgumentException();
5208 return isSetSuccess();
5210 throw new IllegalStateException();
5214 public boolean equals(Object that) {
5217 if (that instanceof createPeer_result)
5218 return this.equals((createPeer_result)that);
5222 public boolean equals(createPeer_result that) {
5226 boolean this_present_success = true;
5227 boolean that_present_success = true;
5228 if (this_present_success || that_present_success) {
5229 if (!(this_present_success && that_present_success))
5231 if (this.success != that.success)
5239 public int hashCode() {
5244 public int compareTo(createPeer_result other) {
5245 if (!getClass().equals(other.getClass())) {
5246 return getClass().getName().compareTo(other.getClass().getName());
5249 int lastComparison = 0;
5251 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5252 if (lastComparison != 0) {
5253 return lastComparison;
5255 if (isSetSuccess()) {
5256 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5257 if (lastComparison != 0) {
5258 return lastComparison;
5264 public _Fields fieldForId(int fieldId) {
5265 return _Fields.findByThriftId(fieldId);
5268 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5269 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5272 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5273 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5277 public String toString() {
5278 StringBuilder sb = new StringBuilder("createPeer_result(");
5279 boolean first = true;
5281 sb.append("success:");
5282 sb.append(this.success);
5285 return sb.toString();
5288 public void validate() throws org.apache.thrift.TException {
5289 // check for required fields
5290 // check for sub-struct validity
5293 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5295 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5296 } catch (org.apache.thrift.TException te) {
5297 throw new java.io.IOException(te);
5301 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5303 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5304 __isset_bitfield = 0;
5305 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5306 } catch (org.apache.thrift.TException te) {
5307 throw new java.io.IOException(te);
5311 private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5312 public createPeer_resultStandardScheme getScheme() {
5313 return new createPeer_resultStandardScheme();
5317 private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5319 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5320 org.apache.thrift.protocol.TField schemeField;
5321 iprot.readStructBegin();
5324 schemeField = iprot.readFieldBegin();
5325 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5328 switch (schemeField.id) {
5330 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5331 struct.success = iprot.readI32();
5332 struct.setSuccessIsSet(true);
5334 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5338 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5340 iprot.readFieldEnd();
5342 iprot.readStructEnd();
5344 // check for required fields of primitive type, which can't be checked in the validate method
5348 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5351 oprot.writeStructBegin(STRUCT_DESC);
5352 if (struct.isSetSuccess()) {
5353 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5354 oprot.writeI32(struct.success);
5355 oprot.writeFieldEnd();
5357 oprot.writeFieldStop();
5358 oprot.writeStructEnd();
5363 private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5364 public createPeer_resultTupleScheme getScheme() {
5365 return new createPeer_resultTupleScheme();
5369 private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5372 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5373 TTupleProtocol oprot = (TTupleProtocol) prot;
5374 BitSet optionals = new BitSet();
5375 if (struct.isSetSuccess()) {
5378 oprot.writeBitSet(optionals, 1);
5379 if (struct.isSetSuccess()) {
5380 oprot.writeI32(struct.success);
5385 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5386 TTupleProtocol iprot = (TTupleProtocol) prot;
5387 BitSet incoming = iprot.readBitSet(1);
5388 if (incoming.get(0)) {
5389 struct.success = iprot.readI32();
5390 struct.setSuccessIsSet(true);
5397 public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args> {
5398 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
5400 private static final org.apache.thrift.protocol.TField IP_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("ipAddress", org.apache.thrift.protocol.TType.STRING, (short)1);
5402 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
5404 schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
5405 schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
5408 public String ipAddress; // required
5410 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5411 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5412 IP_ADDRESS((short)1, "ipAddress");
5414 private static final Map<String, _Fields> byName = new HashMap<>();
5417 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5418 byName.put(field.getFieldName(), field);
5423 * Find the _Fields constant that matches fieldId, or null if its not found.
5425 public static _Fields findByThriftId(int fieldId) {
5427 case 1: // IP_ADDRESS
5435 * Find the _Fields constant that matches fieldId, throwing an exception
5436 * if it is not found.
5438 public static _Fields findByThriftIdOrThrow(int fieldId) {
5439 _Fields fields = findByThriftId(fieldId);
5440 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5445 * Find the _Fields constant that matches name, or null if its not found.
5447 public static _Fields findByName(String name) {
5448 return byName.get(name);
5451 private final short _thriftId;
5452 private final String _fieldName;
5454 _Fields(short thriftId, String fieldName) {
5455 _thriftId = thriftId;
5456 _fieldName = fieldName;
5459 public short getThriftFieldId() {
5463 public String getFieldName() {
5468 // isset id assignments
5469 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5471 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
5472 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5473 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5474 metaDataMap = Collections.unmodifiableMap(tmpMap);
5475 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
5478 public deletePeer_args() {
5481 public deletePeer_args(
5485 this.ipAddress = ipAddress;
5489 * Performs a deep copy on <i>other</i>.
5491 public deletePeer_args(deletePeer_args other) {
5492 if (other.isSetIpAddress()) {
5493 this.ipAddress = other.ipAddress;
5497 public deletePeer_args deepCopy() {
5498 return new deletePeer_args(this);
5502 public void clear() {
5503 this.ipAddress = null;
5506 public String getIpAddress() {
5507 return this.ipAddress;
5510 public deletePeer_args setIpAddress(String ipAddress) {
5511 this.ipAddress = ipAddress;
5515 public void unsetIpAddress() {
5516 this.ipAddress = null;
5519 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5520 public boolean isSetIpAddress() {
5521 return this.ipAddress != null;
5524 public void setIpAddressIsSet(boolean value) {
5526 this.ipAddress = null;
5530 public void setFieldValue(_Fields field, Object value) {
5533 if (value == null) {
5536 setIpAddress((String)value);
5543 public Object getFieldValue(_Fields field) {
5546 return getIpAddress();
5549 throw new IllegalStateException();
5552 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5553 public boolean isSet(_Fields field) {
5554 if (field == null) {
5555 throw new IllegalArgumentException();
5560 return isSetIpAddress();
5562 throw new IllegalStateException();
5566 public boolean equals(Object that) {
5569 if (that instanceof deletePeer_args)
5570 return this.equals((deletePeer_args)that);
5574 public boolean equals(deletePeer_args that) {
5578 boolean this_present_ipAddress = this.isSetIpAddress();
5579 boolean that_present_ipAddress = that.isSetIpAddress();
5580 if (this_present_ipAddress || that_present_ipAddress) {
5581 if (!(this_present_ipAddress && that_present_ipAddress))
5583 if (!this.ipAddress.equals(that.ipAddress))
5591 public int hashCode() {
5596 public int compareTo(deletePeer_args other) {
5597 if (!getClass().equals(other.getClass())) {
5598 return getClass().getName().compareTo(other.getClass().getName());
5601 int lastComparison = 0;
5603 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5604 if (lastComparison != 0) {
5605 return lastComparison;
5607 if (isSetIpAddress()) {
5608 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5609 if (lastComparison != 0) {
5610 return lastComparison;
5616 public _Fields fieldForId(int fieldId) {
5617 return _Fields.findByThriftId(fieldId);
5620 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5621 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5624 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5625 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5629 public String toString() {
5630 StringBuilder sb = new StringBuilder("deletePeer_args(");
5631 boolean first = true;
5633 sb.append("ipAddress:");
5634 if (this.ipAddress == null) {
5637 sb.append(this.ipAddress);
5641 return sb.toString();
5644 public void validate() throws org.apache.thrift.TException {
5645 // check for required fields
5646 // check for sub-struct validity
5649 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5651 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5652 } catch (org.apache.thrift.TException te) {
5653 throw new java.io.IOException(te);
5657 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5659 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5660 } catch (org.apache.thrift.TException te) {
5661 throw new java.io.IOException(te);
5665 private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
5666 public deletePeer_argsStandardScheme getScheme() {
5667 return new deletePeer_argsStandardScheme();
5671 private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
5673 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
5674 org.apache.thrift.protocol.TField schemeField;
5675 iprot.readStructBegin();
5678 schemeField = iprot.readFieldBegin();
5679 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5682 switch (schemeField.id) {
5683 case 1: // IP_ADDRESS
5684 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5685 struct.ipAddress = iprot.readString();
5686 struct.setIpAddressIsSet(true);
5688 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5692 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5694 iprot.readFieldEnd();
5696 iprot.readStructEnd();
5698 // check for required fields of primitive type, which can't be checked in the validate method
5702 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
5705 oprot.writeStructBegin(STRUCT_DESC);
5706 if (struct.ipAddress != null) {
5707 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5708 oprot.writeString(struct.ipAddress);
5709 oprot.writeFieldEnd();
5711 oprot.writeFieldStop();
5712 oprot.writeStructEnd();
5717 private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
5718 public deletePeer_argsTupleScheme getScheme() {
5719 return new deletePeer_argsTupleScheme();
5723 private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
5726 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5727 TTupleProtocol oprot = (TTupleProtocol) prot;
5728 BitSet optionals = new BitSet();
5729 if (struct.isSetIpAddress()) {
5732 oprot.writeBitSet(optionals, 1);
5733 if (struct.isSetIpAddress()) {
5734 oprot.writeString(struct.ipAddress);
5739 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5740 TTupleProtocol iprot = (TTupleProtocol) prot;
5741 BitSet incoming = iprot.readBitSet(1);
5742 if (incoming.get(0)) {
5743 struct.ipAddress = iprot.readString();
5744 struct.setIpAddressIsSet(true);
5751 public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result> {
5752 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
5754 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
5756 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
5758 schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
5759 schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
5762 public int success; // required
5764 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5765 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5766 SUCCESS((short)0, "success");
5768 private static final Map<String, _Fields> byName = new HashMap<>();
5771 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5772 byName.put(field.getFieldName(), field);
5777 * Find the _Fields constant that matches fieldId, or null if its not found.
5779 public static _Fields findByThriftId(int fieldId) {
5789 * Find the _Fields constant that matches fieldId, throwing an exception
5790 * if it is not found.
5792 public static _Fields findByThriftIdOrThrow(int fieldId) {
5793 _Fields fields = findByThriftId(fieldId);
5794 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5799 * Find the _Fields constant that matches name, or null if its not found.
5801 public static _Fields findByName(String name) {
5802 return byName.get(name);
5805 private final short _thriftId;
5806 private final String _fieldName;
5808 _Fields(short thriftId, String fieldName) {
5809 _thriftId = thriftId;
5810 _fieldName = fieldName;
5813 public short getThriftFieldId() {
5817 public String getFieldName() {
5822 // isset id assignments
5823 private static final int __SUCCESS_ISSET_ID = 0;
5824 private byte __isset_bitfield = 0;
5825 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5827 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
5828 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5829 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5830 metaDataMap = Collections.unmodifiableMap(tmpMap);
5831 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
5834 public deletePeer_result() {
5837 public deletePeer_result(
5841 this.success = success;
5842 setSuccessIsSet(true);
5846 * Performs a deep copy on <i>other</i>.
5848 public deletePeer_result(deletePeer_result other) {
5849 __isset_bitfield = other.__isset_bitfield;
5850 this.success = other.success;
5853 public deletePeer_result deepCopy() {
5854 return new deletePeer_result(this);
5858 public void clear() {
5859 setSuccessIsSet(false);
5863 public int getSuccess() {
5864 return this.success;
5867 public deletePeer_result setSuccess(int success) {
5868 this.success = success;
5869 setSuccessIsSet(true);
5873 public void unsetSuccess() {
5874 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5877 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5878 public boolean isSetSuccess() {
5879 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5882 public void setSuccessIsSet(boolean value) {
5883 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5886 public void setFieldValue(_Fields field, Object value) {
5889 if (value == null) {
5892 setSuccess((Integer)value);
5899 public Object getFieldValue(_Fields field) {
5902 return Integer.valueOf(getSuccess());
5905 throw new IllegalStateException();
5908 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5909 public boolean isSet(_Fields field) {
5910 if (field == null) {
5911 throw new IllegalArgumentException();
5916 return isSetSuccess();
5918 throw new IllegalStateException();
5922 public boolean equals(Object that) {
5925 if (that instanceof deletePeer_result)
5926 return this.equals((deletePeer_result)that);
5930 public boolean equals(deletePeer_result that) {
5934 boolean this_present_success = true;
5935 boolean that_present_success = true;
5936 if (this_present_success || that_present_success) {
5937 if (!(this_present_success && that_present_success))
5939 if (this.success != that.success)
5947 public int hashCode() {
5952 public int compareTo(deletePeer_result other) {
5953 if (!getClass().equals(other.getClass())) {
5954 return getClass().getName().compareTo(other.getClass().getName());
5957 int lastComparison = 0;
5959 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5960 if (lastComparison != 0) {
5961 return lastComparison;
5963 if (isSetSuccess()) {
5964 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5965 if (lastComparison != 0) {
5966 return lastComparison;
5972 public _Fields fieldForId(int fieldId) {
5973 return _Fields.findByThriftId(fieldId);
5976 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5977 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5980 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5981 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5985 public String toString() {
5986 StringBuilder sb = new StringBuilder("deletePeer_result(");
5987 boolean first = true;
5989 sb.append("success:");
5990 sb.append(this.success);
5993 return sb.toString();
5996 public void validate() throws org.apache.thrift.TException {
5997 // check for required fields
5998 // check for sub-struct validity
6001 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6003 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6004 } catch (org.apache.thrift.TException te) {
6005 throw new java.io.IOException(te);
6009 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6011 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6012 __isset_bitfield = 0;
6013 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6014 } catch (org.apache.thrift.TException te) {
6015 throw new java.io.IOException(te);
6019 private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
6020 public deletePeer_resultStandardScheme getScheme() {
6021 return new deletePeer_resultStandardScheme();
6025 private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
6027 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
6028 org.apache.thrift.protocol.TField schemeField;
6029 iprot.readStructBegin();
6032 schemeField = iprot.readFieldBegin();
6033 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6036 switch (schemeField.id) {
6038 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6039 struct.success = iprot.readI32();
6040 struct.setSuccessIsSet(true);
6042 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6046 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6048 iprot.readFieldEnd();
6050 iprot.readStructEnd();
6052 // check for required fields of primitive type, which can't be checked in the validate method
6056 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
6059 oprot.writeStructBegin(STRUCT_DESC);
6060 if (struct.isSetSuccess()) {
6061 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6062 oprot.writeI32(struct.success);
6063 oprot.writeFieldEnd();
6065 oprot.writeFieldStop();
6066 oprot.writeStructEnd();
6071 private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
6072 public deletePeer_resultTupleScheme getScheme() {
6073 return new deletePeer_resultTupleScheme();
6077 private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
6080 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6081 TTupleProtocol oprot = (TTupleProtocol) prot;
6082 BitSet optionals = new BitSet();
6083 if (struct.isSetSuccess()) {
6086 oprot.writeBitSet(optionals, 1);
6087 if (struct.isSetSuccess()) {
6088 oprot.writeI32(struct.success);
6093 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6094 TTupleProtocol iprot = (TTupleProtocol) prot;
6095 BitSet incoming = iprot.readBitSet(1);
6096 if (incoming.get(0)) {
6097 struct.success = iprot.readI32();
6098 struct.setSuccessIsSet(true);
6105 public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args> {
6106 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
6108 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);
6109 private static final org.apache.thrift.protocol.TField IRTS_FIELD_DESC = new org.apache.thrift.protocol.TField("irts", org.apache.thrift.protocol.TType.LIST, (short)2);
6110 private static final org.apache.thrift.protocol.TField ERTS_FIELD_DESC = new org.apache.thrift.protocol.TField("erts", org.apache.thrift.protocol.TType.LIST, (short)3);
6112 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
6114 schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
6115 schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
6118 public String rd; // required
6119 public List<String> irts; // required
6120 public List<String> erts; // required
6122 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6123 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6125 IRTS((short)2, "irts"),
6126 ERTS((short)3, "erts");
6128 private static final Map<String, _Fields> byName = new HashMap<>();
6131 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6132 byName.put(field.getFieldName(), field);
6137 * Find the _Fields constant that matches fieldId, or null if its not found.
6139 public static _Fields findByThriftId(int fieldId) {
6153 * Find the _Fields constant that matches fieldId, throwing an exception
6154 * if it is not found.
6156 public static _Fields findByThriftIdOrThrow(int fieldId) {
6157 _Fields fields = findByThriftId(fieldId);
6158 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6163 * Find the _Fields constant that matches name, or null if its not found.
6165 public static _Fields findByName(String name) {
6166 return byName.get(name);
6169 private final short _thriftId;
6170 private final String _fieldName;
6172 _Fields(short thriftId, String fieldName) {
6173 _thriftId = thriftId;
6174 _fieldName = fieldName;
6177 public short getThriftFieldId() {
6181 public String getFieldName() {
6186 // isset id assignments
6187 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6189 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
6190 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
6191 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6192 tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
6193 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
6194 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6195 tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
6196 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
6197 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6198 metaDataMap = Collections.unmodifiableMap(tmpMap);
6199 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
6202 public addVrf_args() {
6217 * Performs a deep copy on <i>other</i>.
6219 public addVrf_args(addVrf_args other) {
6220 if (other.isSetRd()) {
6223 if (other.isSetIrts()) {
6224 List<String> __this__irts = new ArrayList<>(other.irts);
6225 this.irts = __this__irts;
6227 if (other.isSetErts()) {
6228 List<String> __this__erts = new ArrayList<>(other.erts);
6229 this.erts = __this__erts;
6233 public addVrf_args deepCopy() {
6234 return new addVrf_args(this);
6238 public void clear() {
6244 public String getRd() {
6248 public addVrf_args setRd(String rd) {
6253 public void unsetRd() {
6257 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
6258 public boolean isSetRd() {
6259 return this.rd != null;
6262 public void setRdIsSet(boolean value) {
6268 public int getIrtsSize() {
6269 return (this.irts == null) ? 0 : this.irts.size();
6272 public java.util.Iterator<String> getIrtsIterator() {
6273 return (this.irts == null) ? null : this.irts.iterator();
6276 public void addToIrts(String elem) {
6277 if (this.irts == null) {
6278 this.irts = new ArrayList<>();
6280 this.irts.add(elem);
6283 public List<String> getIrts() {
6287 public addVrf_args setIrts(List<String> irts) {
6292 public void unsetIrts() {
6296 /** Returns true if field irts is set (has been assigned a value) and false otherwise */
6297 public boolean isSetIrts() {
6298 return this.irts != null;
6301 public void setIrtsIsSet(boolean value) {
6307 public int getErtsSize() {
6308 return (this.erts == null) ? 0 : this.erts.size();
6311 public java.util.Iterator<String> getErtsIterator() {
6312 return (this.erts == null) ? null : this.erts.iterator();
6315 public void addToErts(String elem) {
6316 if (this.erts == null) {
6317 this.erts = new ArrayList<>();
6319 this.erts.add(elem);
6322 public List<String> getErts() {
6326 public addVrf_args setErts(List<String> erts) {
6331 public void unsetErts() {
6335 /** Returns true if field erts is set (has been assigned a value) and false otherwise */
6336 public boolean isSetErts() {
6337 return this.erts != null;
6340 public void setErtsIsSet(boolean value) {
6346 public void setFieldValue(_Fields field, Object value) {
6349 if (value == null) {
6352 setRd((String)value);
6357 if (value == null) {
6360 setIrts((List<String>)value);
6365 if (value == null) {
6368 setErts((List<String>)value);
6375 public Object getFieldValue(_Fields field) {
6387 throw new IllegalStateException();
6390 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6391 public boolean isSet(_Fields field) {
6392 if (field == null) {
6393 throw new IllegalArgumentException();
6404 throw new IllegalStateException();
6408 public boolean equals(Object that) {
6411 if (that instanceof addVrf_args)
6412 return this.equals((addVrf_args)that);
6416 public boolean equals(addVrf_args that) {
6420 boolean this_present_rd = this.isSetRd();
6421 boolean that_present_rd = that.isSetRd();
6422 if (this_present_rd || that_present_rd) {
6423 if (!(this_present_rd && that_present_rd))
6425 if (!this.rd.equals(that.rd))
6429 boolean this_present_irts = this.isSetIrts();
6430 boolean that_present_irts = that.isSetIrts();
6431 if (this_present_irts || that_present_irts) {
6432 if (!(this_present_irts && that_present_irts))
6434 if (!this.irts.equals(that.irts))
6438 boolean this_present_erts = this.isSetErts();
6439 boolean that_present_erts = that.isSetErts();
6440 if (this_present_erts || that_present_erts) {
6441 if (!(this_present_erts && that_present_erts))
6443 if (!this.erts.equals(that.erts))
6451 public int hashCode() {
6456 public int compareTo(addVrf_args other) {
6457 if (!getClass().equals(other.getClass())) {
6458 return getClass().getName().compareTo(other.getClass().getName());
6461 int lastComparison = 0;
6463 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
6464 if (lastComparison != 0) {
6465 return lastComparison;
6468 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
6469 if (lastComparison != 0) {
6470 return lastComparison;
6473 lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
6474 if (lastComparison != 0) {
6475 return lastComparison;
6478 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
6479 if (lastComparison != 0) {
6480 return lastComparison;
6483 lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
6484 if (lastComparison != 0) {
6485 return lastComparison;
6488 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
6489 if (lastComparison != 0) {
6490 return lastComparison;
6496 public _Fields fieldForId(int fieldId) {
6497 return _Fields.findByThriftId(fieldId);
6500 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6501 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6504 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6505 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6509 public String toString() {
6510 StringBuilder sb = new StringBuilder("addVrf_args(");
6511 boolean first = true;
6514 if (this.rd == null) {
6520 if (!first) sb.append(", ");
6522 if (this.irts == null) {
6525 sb.append(this.irts);
6528 if (!first) sb.append(", ");
6530 if (this.erts == null) {
6533 sb.append(this.erts);
6537 return sb.toString();
6540 public void validate() throws org.apache.thrift.TException {
6541 // check for required fields
6542 // check for sub-struct validity
6545 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6547 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6548 } catch (org.apache.thrift.TException te) {
6549 throw new java.io.IOException(te);
6553 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6555 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6556 } catch (org.apache.thrift.TException te) {
6557 throw new java.io.IOException(te);
6561 private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
6562 public addVrf_argsStandardScheme getScheme() {
6563 return new addVrf_argsStandardScheme();
6567 private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
6569 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
6570 org.apache.thrift.protocol.TField schemeField;
6571 iprot.readStructBegin();
6574 schemeField = iprot.readFieldBegin();
6575 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6578 switch (schemeField.id) {
6580 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6581 struct.rd = iprot.readString();
6582 struct.setRdIsSet(true);
6584 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6588 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6590 org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
6591 struct.irts = new ArrayList<>(_list8.size);
6592 for (int _i9 = 0; _i9 < _list8.size; ++_i9)
6595 _elem10 = iprot.readString();
6596 struct.irts.add(_elem10);
6598 iprot.readListEnd();
6600 struct.setIrtsIsSet(true);
6602 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6606 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6608 org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
6609 struct.erts = new ArrayList<>(_list11.size);
6610 for (int _i12 = 0; _i12 < _list11.size; ++_i12)
6613 _elem13 = iprot.readString();
6614 struct.erts.add(_elem13);
6616 iprot.readListEnd();
6618 struct.setErtsIsSet(true);
6620 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6626 iprot.readFieldEnd();
6628 iprot.readStructEnd();
6630 // check for required fields of primitive type, which can't be checked in the validate method
6634 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
6637 oprot.writeStructBegin(STRUCT_DESC);
6638 if (struct.rd != null) {
6639 oprot.writeFieldBegin(RD_FIELD_DESC);
6640 oprot.writeString(struct.rd);
6641 oprot.writeFieldEnd();
6643 if (struct.irts != null) {
6644 oprot.writeFieldBegin(IRTS_FIELD_DESC);
6646 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
6647 for (String _iter14 : struct.irts)
6649 oprot.writeString(_iter14);
6651 oprot.writeListEnd();
6653 oprot.writeFieldEnd();
6655 if (struct.erts != null) {
6656 oprot.writeFieldBegin(ERTS_FIELD_DESC);
6658 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
6659 for (String _iter15 : struct.erts)
6661 oprot.writeString(_iter15);
6663 oprot.writeListEnd();
6665 oprot.writeFieldEnd();
6667 oprot.writeFieldStop();
6668 oprot.writeStructEnd();
6673 private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
6674 public addVrf_argsTupleScheme getScheme() {
6675 return new addVrf_argsTupleScheme();
6679 private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
6682 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6683 TTupleProtocol oprot = (TTupleProtocol) prot;
6684 BitSet optionals = new BitSet();
6685 if (struct.isSetRd()) {
6688 if (struct.isSetIrts()) {
6691 if (struct.isSetErts()) {
6694 oprot.writeBitSet(optionals, 3);
6695 if (struct.isSetRd()) {
6696 oprot.writeString(struct.rd);
6698 if (struct.isSetIrts()) {
6700 oprot.writeI32(struct.irts.size());
6701 for (String _iter16 : struct.irts)
6703 oprot.writeString(_iter16);
6707 if (struct.isSetErts()) {
6709 oprot.writeI32(struct.erts.size());
6710 for (String _iter17 : struct.erts)
6712 oprot.writeString(_iter17);
6719 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6720 TTupleProtocol iprot = (TTupleProtocol) prot;
6721 BitSet incoming = iprot.readBitSet(3);
6722 if (incoming.get(0)) {
6723 struct.rd = iprot.readString();
6724 struct.setRdIsSet(true);
6726 if (incoming.get(1)) {
6728 org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6729 struct.irts = new ArrayList<>(_list18.size);
6730 for (int _i19 = 0; _i19 < _list18.size; ++_i19)
6733 _elem20 = iprot.readString();
6734 struct.irts.add(_elem20);
6737 struct.setIrtsIsSet(true);
6739 if (incoming.get(2)) {
6741 org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6742 struct.erts = new ArrayList<>(_list21.size);
6743 for (int _i22 = 0; _i22 < _list21.size; ++_i22)
6746 _elem23 = iprot.readString();
6747 struct.erts.add(_elem23);
6750 struct.setErtsIsSet(true);
6757 public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result> {
6758 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
6760 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
6762 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
6764 schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
6765 schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
6768 public int success; // required
6770 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6771 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6772 SUCCESS((short)0, "success");
6774 private static final Map<String, _Fields> byName = new HashMap<>();
6777 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6778 byName.put(field.getFieldName(), field);
6783 * Find the _Fields constant that matches fieldId, or null if its not found.
6785 public static _Fields findByThriftId(int fieldId) {
6795 * Find the _Fields constant that matches fieldId, throwing an exception
6796 * if it is not found.
6798 public static _Fields findByThriftIdOrThrow(int fieldId) {
6799 _Fields fields = findByThriftId(fieldId);
6800 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6805 * Find the _Fields constant that matches name, or null if its not found.
6807 public static _Fields findByName(String name) {
6808 return byName.get(name);
6811 private final short _thriftId;
6812 private final String _fieldName;
6814 _Fields(short thriftId, String fieldName) {
6815 _thriftId = thriftId;
6816 _fieldName = fieldName;
6819 public short getThriftFieldId() {
6823 public String getFieldName() {
6828 // isset id assignments
6829 private static final int __SUCCESS_ISSET_ID = 0;
6830 private byte __isset_bitfield = 0;
6831 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6833 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
6834 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6835 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6836 metaDataMap = Collections.unmodifiableMap(tmpMap);
6837 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
6840 public addVrf_result() {
6843 public addVrf_result(
6847 this.success = success;
6848 setSuccessIsSet(true);
6852 * Performs a deep copy on <i>other</i>.
6854 public addVrf_result(addVrf_result other) {
6855 __isset_bitfield = other.__isset_bitfield;
6856 this.success = other.success;
6859 public addVrf_result deepCopy() {
6860 return new addVrf_result(this);
6864 public void clear() {
6865 setSuccessIsSet(false);
6869 public int getSuccess() {
6870 return this.success;
6873 public addVrf_result setSuccess(int success) {
6874 this.success = success;
6875 setSuccessIsSet(true);
6879 public void unsetSuccess() {
6880 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6883 /** Returns true if field success is set (has been assigned a value) and false otherwise */
6884 public boolean isSetSuccess() {
6885 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6888 public void setSuccessIsSet(boolean value) {
6889 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6892 public void setFieldValue(_Fields field, Object value) {
6895 if (value == null) {
6898 setSuccess((Integer)value);
6905 public Object getFieldValue(_Fields field) {
6908 return Integer.valueOf(getSuccess());
6911 throw new IllegalStateException();
6914 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6915 public boolean isSet(_Fields field) {
6916 if (field == null) {
6917 throw new IllegalArgumentException();
6922 return isSetSuccess();
6924 throw new IllegalStateException();
6928 public boolean equals(Object that) {
6931 if (that instanceof addVrf_result)
6932 return this.equals((addVrf_result)that);
6936 public boolean equals(addVrf_result that) {
6940 boolean this_present_success = true;
6941 boolean that_present_success = true;
6942 if (this_present_success || that_present_success) {
6943 if (!(this_present_success && that_present_success))
6945 if (this.success != that.success)
6953 public int hashCode() {
6958 public int compareTo(addVrf_result other) {
6959 if (!getClass().equals(other.getClass())) {
6960 return getClass().getName().compareTo(other.getClass().getName());
6963 int lastComparison = 0;
6965 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6966 if (lastComparison != 0) {
6967 return lastComparison;
6969 if (isSetSuccess()) {
6970 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6971 if (lastComparison != 0) {
6972 return lastComparison;
6978 public _Fields fieldForId(int fieldId) {
6979 return _Fields.findByThriftId(fieldId);
6982 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6983 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6986 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6987 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6991 public String toString() {
6992 StringBuilder sb = new StringBuilder("addVrf_result(");
6993 boolean first = true;
6995 sb.append("success:");
6996 sb.append(this.success);
6999 return sb.toString();
7002 public void validate() throws org.apache.thrift.TException {
7003 // check for required fields
7004 // check for sub-struct validity
7007 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7009 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7010 } catch (org.apache.thrift.TException te) {
7011 throw new java.io.IOException(te);
7015 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7017 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7018 __isset_bitfield = 0;
7019 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7020 } catch (org.apache.thrift.TException te) {
7021 throw new java.io.IOException(te);
7025 private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
7026 public addVrf_resultStandardScheme getScheme() {
7027 return new addVrf_resultStandardScheme();
7031 private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
7033 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
7034 org.apache.thrift.protocol.TField schemeField;
7035 iprot.readStructBegin();
7038 schemeField = iprot.readFieldBegin();
7039 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7042 switch (schemeField.id) {
7044 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7045 struct.success = iprot.readI32();
7046 struct.setSuccessIsSet(true);
7048 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7052 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7054 iprot.readFieldEnd();
7056 iprot.readStructEnd();
7058 // check for required fields of primitive type, which can't be checked in the validate method
7062 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
7065 oprot.writeStructBegin(STRUCT_DESC);
7066 if (struct.isSetSuccess()) {
7067 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7068 oprot.writeI32(struct.success);
7069 oprot.writeFieldEnd();
7071 oprot.writeFieldStop();
7072 oprot.writeStructEnd();
7077 private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
7078 public addVrf_resultTupleScheme getScheme() {
7079 return new addVrf_resultTupleScheme();
7083 private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
7086 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7087 TTupleProtocol oprot = (TTupleProtocol) prot;
7088 BitSet optionals = new BitSet();
7089 if (struct.isSetSuccess()) {
7092 oprot.writeBitSet(optionals, 1);
7093 if (struct.isSetSuccess()) {
7094 oprot.writeI32(struct.success);
7099 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7100 TTupleProtocol iprot = (TTupleProtocol) prot;
7101 BitSet incoming = iprot.readBitSet(1);
7102 if (incoming.get(0)) {
7103 struct.success = iprot.readI32();
7104 struct.setSuccessIsSet(true);
7111 public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args> {
7112 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
7114 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);
7116 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
7118 schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
7119 schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
7122 public String rd; // required
7124 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7125 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7128 private static final Map<String, _Fields> byName = new HashMap<>();
7131 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7132 byName.put(field.getFieldName(), field);
7137 * Find the _Fields constant that matches fieldId, or null if its not found.
7139 public static _Fields findByThriftId(int fieldId) {
7149 * Find the _Fields constant that matches fieldId, throwing an exception
7150 * if it is not found.
7152 public static _Fields findByThriftIdOrThrow(int fieldId) {
7153 _Fields fields = findByThriftId(fieldId);
7154 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7159 * Find the _Fields constant that matches name, or null if its not found.
7161 public static _Fields findByName(String name) {
7162 return byName.get(name);
7165 private final short _thriftId;
7166 private final String _fieldName;
7168 _Fields(short thriftId, String fieldName) {
7169 _thriftId = thriftId;
7170 _fieldName = fieldName;
7173 public short getThriftFieldId() {
7177 public String getFieldName() {
7182 // isset id assignments
7183 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7185 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
7186 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
7187 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7188 metaDataMap = Collections.unmodifiableMap(tmpMap);
7189 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
7192 public delVrf_args() {
7203 * Performs a deep copy on <i>other</i>.
7205 public delVrf_args(delVrf_args other) {
7206 if (other.isSetRd()) {
7211 public delVrf_args deepCopy() {
7212 return new delVrf_args(this);
7216 public void clear() {
7220 public String getRd() {
7224 public delVrf_args setRd(String rd) {
7229 public void unsetRd() {
7233 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7234 public boolean isSetRd() {
7235 return this.rd != null;
7238 public void setRdIsSet(boolean value) {
7244 public void setFieldValue(_Fields field, Object value) {
7247 if (value == null) {
7250 setRd((String)value);
7257 public Object getFieldValue(_Fields field) {
7263 throw new IllegalStateException();
7266 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7267 public boolean isSet(_Fields field) {
7268 if (field == null) {
7269 throw new IllegalArgumentException();
7276 throw new IllegalStateException();
7280 public boolean equals(Object that) {
7283 if (that instanceof delVrf_args)
7284 return this.equals((delVrf_args)that);
7288 public boolean equals(delVrf_args that) {
7292 boolean this_present_rd = this.isSetRd();
7293 boolean that_present_rd = that.isSetRd();
7294 if (this_present_rd || that_present_rd) {
7295 if (!(this_present_rd && that_present_rd))
7297 if (!this.rd.equals(that.rd))
7305 public int hashCode() {
7310 public int compareTo(delVrf_args other) {
7311 if (!getClass().equals(other.getClass())) {
7312 return getClass().getName().compareTo(other.getClass().getName());
7315 int lastComparison = 0;
7317 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7318 if (lastComparison != 0) {
7319 return lastComparison;
7322 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7323 if (lastComparison != 0) {
7324 return lastComparison;
7330 public _Fields fieldForId(int fieldId) {
7331 return _Fields.findByThriftId(fieldId);
7334 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7335 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7338 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7339 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7343 public String toString() {
7344 StringBuilder sb = new StringBuilder("delVrf_args(");
7345 boolean first = true;
7348 if (this.rd == null) {
7355 return sb.toString();
7358 public void validate() throws org.apache.thrift.TException {
7359 // check for required fields
7360 // check for sub-struct validity
7363 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7365 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7366 } catch (org.apache.thrift.TException te) {
7367 throw new java.io.IOException(te);
7371 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7373 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7374 } catch (org.apache.thrift.TException te) {
7375 throw new java.io.IOException(te);
7379 private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
7380 public delVrf_argsStandardScheme getScheme() {
7381 return new delVrf_argsStandardScheme();
7385 private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
7387 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
7388 org.apache.thrift.protocol.TField schemeField;
7389 iprot.readStructBegin();
7392 schemeField = iprot.readFieldBegin();
7393 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7396 switch (schemeField.id) {
7398 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7399 struct.rd = iprot.readString();
7400 struct.setRdIsSet(true);
7402 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7406 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7408 iprot.readFieldEnd();
7410 iprot.readStructEnd();
7412 // check for required fields of primitive type, which can't be checked in the validate method
7416 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
7419 oprot.writeStructBegin(STRUCT_DESC);
7420 if (struct.rd != null) {
7421 oprot.writeFieldBegin(RD_FIELD_DESC);
7422 oprot.writeString(struct.rd);
7423 oprot.writeFieldEnd();
7425 oprot.writeFieldStop();
7426 oprot.writeStructEnd();
7431 private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
7432 public delVrf_argsTupleScheme getScheme() {
7433 return new delVrf_argsTupleScheme();
7437 private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
7440 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7441 TTupleProtocol oprot = (TTupleProtocol) prot;
7442 BitSet optionals = new BitSet();
7443 if (struct.isSetRd()) {
7446 oprot.writeBitSet(optionals, 1);
7447 if (struct.isSetRd()) {
7448 oprot.writeString(struct.rd);
7453 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7454 TTupleProtocol iprot = (TTupleProtocol) prot;
7455 BitSet incoming = iprot.readBitSet(1);
7456 if (incoming.get(0)) {
7457 struct.rd = iprot.readString();
7458 struct.setRdIsSet(true);
7465 public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result> {
7466 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
7468 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
7470 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
7472 schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
7473 schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
7476 public int success; // required
7478 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7479 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7480 SUCCESS((short)0, "success");
7482 private static final Map<String, _Fields> byName = new HashMap<>();
7485 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7486 byName.put(field.getFieldName(), field);
7491 * Find the _Fields constant that matches fieldId, or null if its not found.
7493 public static _Fields findByThriftId(int fieldId) {
7503 * Find the _Fields constant that matches fieldId, throwing an exception
7504 * if it is not found.
7506 public static _Fields findByThriftIdOrThrow(int fieldId) {
7507 _Fields fields = findByThriftId(fieldId);
7508 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7513 * Find the _Fields constant that matches name, or null if its not found.
7515 public static _Fields findByName(String name) {
7516 return byName.get(name);
7519 private final short _thriftId;
7520 private final String _fieldName;
7522 _Fields(short thriftId, String fieldName) {
7523 _thriftId = thriftId;
7524 _fieldName = fieldName;
7527 public short getThriftFieldId() {
7531 public String getFieldName() {
7536 // isset id assignments
7537 private static final int __SUCCESS_ISSET_ID = 0;
7538 private byte __isset_bitfield = 0;
7539 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7541 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
7542 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7543 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7544 metaDataMap = Collections.unmodifiableMap(tmpMap);
7545 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
7548 public delVrf_result() {
7551 public delVrf_result(
7555 this.success = success;
7556 setSuccessIsSet(true);
7560 * Performs a deep copy on <i>other</i>.
7562 public delVrf_result(delVrf_result other) {
7563 __isset_bitfield = other.__isset_bitfield;
7564 this.success = other.success;
7567 public delVrf_result deepCopy() {
7568 return new delVrf_result(this);
7572 public void clear() {
7573 setSuccessIsSet(false);
7577 public int getSuccess() {
7578 return this.success;
7581 public delVrf_result setSuccess(int success) {
7582 this.success = success;
7583 setSuccessIsSet(true);
7587 public void unsetSuccess() {
7588 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7591 /** Returns true if field success is set (has been assigned a value) and false otherwise */
7592 public boolean isSetSuccess() {
7593 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7596 public void setSuccessIsSet(boolean value) {
7597 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7600 public void setFieldValue(_Fields field, Object value) {
7603 if (value == null) {
7606 setSuccess((Integer)value);
7613 public Object getFieldValue(_Fields field) {
7616 return Integer.valueOf(getSuccess());
7619 throw new IllegalStateException();
7622 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7623 public boolean isSet(_Fields field) {
7624 if (field == null) {
7625 throw new IllegalArgumentException();
7630 return isSetSuccess();
7632 throw new IllegalStateException();
7636 public boolean equals(Object that) {
7639 if (that instanceof delVrf_result)
7640 return this.equals((delVrf_result)that);
7644 public boolean equals(delVrf_result that) {
7648 boolean this_present_success = true;
7649 boolean that_present_success = true;
7650 if (this_present_success || that_present_success) {
7651 if (!(this_present_success && that_present_success))
7653 if (this.success != that.success)
7661 public int hashCode() {
7666 public int compareTo(delVrf_result other) {
7667 if (!getClass().equals(other.getClass())) {
7668 return getClass().getName().compareTo(other.getClass().getName());
7671 int lastComparison = 0;
7673 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7674 if (lastComparison != 0) {
7675 return lastComparison;
7677 if (isSetSuccess()) {
7678 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7679 if (lastComparison != 0) {
7680 return lastComparison;
7686 public _Fields fieldForId(int fieldId) {
7687 return _Fields.findByThriftId(fieldId);
7690 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7691 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7694 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7695 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7699 public String toString() {
7700 StringBuilder sb = new StringBuilder("delVrf_result(");
7701 boolean first = true;
7703 sb.append("success:");
7704 sb.append(this.success);
7707 return sb.toString();
7710 public void validate() throws org.apache.thrift.TException {
7711 // check for required fields
7712 // check for sub-struct validity
7715 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7717 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7718 } catch (org.apache.thrift.TException te) {
7719 throw new java.io.IOException(te);
7723 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7725 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7726 __isset_bitfield = 0;
7727 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7728 } catch (org.apache.thrift.TException te) {
7729 throw new java.io.IOException(te);
7733 private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
7734 public delVrf_resultStandardScheme getScheme() {
7735 return new delVrf_resultStandardScheme();
7739 private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
7741 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
7742 org.apache.thrift.protocol.TField schemeField;
7743 iprot.readStructBegin();
7746 schemeField = iprot.readFieldBegin();
7747 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7750 switch (schemeField.id) {
7752 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7753 struct.success = iprot.readI32();
7754 struct.setSuccessIsSet(true);
7756 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7760 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7762 iprot.readFieldEnd();
7764 iprot.readStructEnd();
7766 // check for required fields of primitive type, which can't be checked in the validate method
7770 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
7773 oprot.writeStructBegin(STRUCT_DESC);
7774 if (struct.isSetSuccess()) {
7775 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7776 oprot.writeI32(struct.success);
7777 oprot.writeFieldEnd();
7779 oprot.writeFieldStop();
7780 oprot.writeStructEnd();
7785 private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
7786 public delVrf_resultTupleScheme getScheme() {
7787 return new delVrf_resultTupleScheme();
7791 private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
7794 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7795 TTupleProtocol oprot = (TTupleProtocol) prot;
7796 BitSet optionals = new BitSet();
7797 if (struct.isSetSuccess()) {
7800 oprot.writeBitSet(optionals, 1);
7801 if (struct.isSetSuccess()) {
7802 oprot.writeI32(struct.success);
7807 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7808 TTupleProtocol iprot = (TTupleProtocol) prot;
7809 BitSet incoming = iprot.readBitSet(1);
7810 if (incoming.get(0)) {
7811 struct.success = iprot.readI32();
7812 struct.setSuccessIsSet(true);
7819 public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args> {
7820 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
7822 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);
7823 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)2);
7824 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)3);
7825 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)4);
7827 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
7829 schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
7830 schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
7833 public String prefix; // required
7834 public String nexthop; // required
7835 public String rd; // required
7836 public int label; // required
7838 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7839 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7840 PREFIX((short)1, "prefix"),
7841 NEXTHOP((short)2, "nexthop"),
7843 LABEL((short)4, "label");
7845 private static final Map<String, _Fields> byName = new HashMap<>();
7848 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7849 byName.put(field.getFieldName(), field);
7854 * Find the _Fields constant that matches fieldId, or null if its not found.
7856 public static _Fields findByThriftId(int fieldId) {
7872 * Find the _Fields constant that matches fieldId, throwing an exception
7873 * if it is not found.
7875 public static _Fields findByThriftIdOrThrow(int fieldId) {
7876 _Fields fields = findByThriftId(fieldId);
7877 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7882 * Find the _Fields constant that matches name, or null if its not found.
7884 public static _Fields findByName(String name) {
7885 return byName.get(name);
7888 private final short _thriftId;
7889 private final String _fieldName;
7891 _Fields(short thriftId, String fieldName) {
7892 _thriftId = thriftId;
7893 _fieldName = fieldName;
7896 public short getThriftFieldId() {
7900 public String getFieldName() {
7905 // isset id assignments
7906 private static final int __LABEL_ISSET_ID = 0;
7907 private byte __isset_bitfield = 0;
7908 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7910 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
7911 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
7912 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7913 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
7914 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7915 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
7916 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7917 tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
7918 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7919 metaDataMap = Collections.unmodifiableMap(tmpMap);
7920 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
7923 public pushRoute_args() {
7926 public pushRoute_args(
7933 this.prefix = prefix;
7934 this.nexthop = nexthop;
7937 setLabelIsSet(true);
7941 * Performs a deep copy on <i>other</i>.
7943 public pushRoute_args(pushRoute_args other) {
7944 __isset_bitfield = other.__isset_bitfield;
7945 if (other.isSetPrefix()) {
7946 this.prefix = other.prefix;
7948 if (other.isSetNexthop()) {
7949 this.nexthop = other.nexthop;
7951 if (other.isSetRd()) {
7954 this.label = other.label;
7957 public pushRoute_args deepCopy() {
7958 return new pushRoute_args(this);
7962 public void clear() {
7964 this.nexthop = null;
7966 setLabelIsSet(false);
7970 public String getPrefix() {
7974 public pushRoute_args setPrefix(String prefix) {
7975 this.prefix = prefix;
7979 public void unsetPrefix() {
7983 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
7984 public boolean isSetPrefix() {
7985 return this.prefix != null;
7988 public void setPrefixIsSet(boolean value) {
7994 public String getNexthop() {
7995 return this.nexthop;
7998 public pushRoute_args setNexthop(String nexthop) {
7999 this.nexthop = nexthop;
8003 public void unsetNexthop() {
8004 this.nexthop = null;
8007 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
8008 public boolean isSetNexthop() {
8009 return this.nexthop != null;
8012 public void setNexthopIsSet(boolean value) {
8014 this.nexthop = null;
8018 public String getRd() {
8022 public pushRoute_args setRd(String rd) {
8027 public void unsetRd() {
8031 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8032 public boolean isSetRd() {
8033 return this.rd != null;
8036 public void setRdIsSet(boolean value) {
8042 public int getLabel() {
8046 public pushRoute_args setLabel(int label) {
8048 setLabelIsSet(true);
8052 public void unsetLabel() {
8053 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
8056 /** Returns true if field label is set (has been assigned a value) and false otherwise */
8057 public boolean isSetLabel() {
8058 return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
8061 public void setLabelIsSet(boolean value) {
8062 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
8065 public void setFieldValue(_Fields field, Object value) {
8068 if (value == null) {
8071 setPrefix((String)value);
8076 if (value == null) {
8079 setNexthop((String)value);
8084 if (value == null) {
8087 setRd((String)value);
8092 if (value == null) {
8095 setLabel((Integer)value);
8102 public Object getFieldValue(_Fields field) {
8108 return getNexthop();
8114 return Integer.valueOf(getLabel());
8117 throw new IllegalStateException();
8120 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8121 public boolean isSet(_Fields field) {
8122 if (field == null) {
8123 throw new IllegalArgumentException();
8128 return isSetPrefix();
8130 return isSetNexthop();
8134 return isSetLabel();
8136 throw new IllegalStateException();
8140 public boolean equals(Object that) {
8143 if (that instanceof pushRoute_args)
8144 return this.equals((pushRoute_args)that);
8148 public boolean equals(pushRoute_args that) {
8152 boolean this_present_prefix = this.isSetPrefix();
8153 boolean that_present_prefix = that.isSetPrefix();
8154 if (this_present_prefix || that_present_prefix) {
8155 if (!(this_present_prefix && that_present_prefix))
8157 if (!this.prefix.equals(that.prefix))
8161 boolean this_present_nexthop = this.isSetNexthop();
8162 boolean that_present_nexthop = that.isSetNexthop();
8163 if (this_present_nexthop || that_present_nexthop) {
8164 if (!(this_present_nexthop && that_present_nexthop))
8166 if (!this.nexthop.equals(that.nexthop))
8170 boolean this_present_rd = this.isSetRd();
8171 boolean that_present_rd = that.isSetRd();
8172 if (this_present_rd || that_present_rd) {
8173 if (!(this_present_rd && that_present_rd))
8175 if (!this.rd.equals(that.rd))
8179 boolean this_present_label = true;
8180 boolean that_present_label = true;
8181 if (this_present_label || that_present_label) {
8182 if (!(this_present_label && that_present_label))
8184 if (this.label != that.label)
8192 public int hashCode() {
8197 public int compareTo(pushRoute_args other) {
8198 if (!getClass().equals(other.getClass())) {
8199 return getClass().getName().compareTo(other.getClass().getName());
8202 int lastComparison = 0;
8204 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
8205 if (lastComparison != 0) {
8206 return lastComparison;
8208 if (isSetPrefix()) {
8209 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
8210 if (lastComparison != 0) {
8211 return lastComparison;
8214 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
8215 if (lastComparison != 0) {
8216 return lastComparison;
8218 if (isSetNexthop()) {
8219 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
8220 if (lastComparison != 0) {
8221 return lastComparison;
8224 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8225 if (lastComparison != 0) {
8226 return lastComparison;
8229 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8230 if (lastComparison != 0) {
8231 return lastComparison;
8234 lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
8235 if (lastComparison != 0) {
8236 return lastComparison;
8239 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
8240 if (lastComparison != 0) {
8241 return lastComparison;
8247 public _Fields fieldForId(int fieldId) {
8248 return _Fields.findByThriftId(fieldId);
8251 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8252 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8255 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8256 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8260 public String toString() {
8261 StringBuilder sb = new StringBuilder("pushRoute_args(");
8262 boolean first = true;
8264 sb.append("prefix:");
8265 if (this.prefix == null) {
8268 sb.append(this.prefix);
8271 if (!first) sb.append(", ");
8272 sb.append("nexthop:");
8273 if (this.nexthop == null) {
8276 sb.append(this.nexthop);
8279 if (!first) sb.append(", ");
8281 if (this.rd == null) {
8287 if (!first) sb.append(", ");
8288 sb.append("label:");
8289 sb.append(this.label);
8292 return sb.toString();
8295 public void validate() throws org.apache.thrift.TException {
8296 // check for required fields
8297 // check for sub-struct validity
8300 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8302 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8303 } catch (org.apache.thrift.TException te) {
8304 throw new java.io.IOException(te);
8308 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8310 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8311 __isset_bitfield = 0;
8312 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8313 } catch (org.apache.thrift.TException te) {
8314 throw new java.io.IOException(te);
8318 private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
8319 public pushRoute_argsStandardScheme getScheme() {
8320 return new pushRoute_argsStandardScheme();
8324 private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
8326 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
8327 org.apache.thrift.protocol.TField schemeField;
8328 iprot.readStructBegin();
8331 schemeField = iprot.readFieldBegin();
8332 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8335 switch (schemeField.id) {
8337 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8338 struct.prefix = iprot.readString();
8339 struct.setPrefixIsSet(true);
8341 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8345 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8346 struct.nexthop = iprot.readString();
8347 struct.setNexthopIsSet(true);
8349 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8353 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8354 struct.rd = iprot.readString();
8355 struct.setRdIsSet(true);
8357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8361 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8362 struct.label = iprot.readI32();
8363 struct.setLabelIsSet(true);
8365 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8369 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8371 iprot.readFieldEnd();
8373 iprot.readStructEnd();
8375 // check for required fields of primitive type, which can't be checked in the validate method
8379 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
8382 oprot.writeStructBegin(STRUCT_DESC);
8383 if (struct.prefix != null) {
8384 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
8385 oprot.writeString(struct.prefix);
8386 oprot.writeFieldEnd();
8388 if (struct.nexthop != null) {
8389 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
8390 oprot.writeString(struct.nexthop);
8391 oprot.writeFieldEnd();
8393 if (struct.rd != null) {
8394 oprot.writeFieldBegin(RD_FIELD_DESC);
8395 oprot.writeString(struct.rd);
8396 oprot.writeFieldEnd();
8398 oprot.writeFieldBegin(LABEL_FIELD_DESC);
8399 oprot.writeI32(struct.label);
8400 oprot.writeFieldEnd();
8401 oprot.writeFieldStop();
8402 oprot.writeStructEnd();
8407 private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
8408 public pushRoute_argsTupleScheme getScheme() {
8409 return new pushRoute_argsTupleScheme();
8413 private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
8416 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8417 TTupleProtocol oprot = (TTupleProtocol) prot;
8418 BitSet optionals = new BitSet();
8419 if (struct.isSetPrefix()) {
8422 if (struct.isSetNexthop()) {
8425 if (struct.isSetRd()) {
8428 if (struct.isSetLabel()) {
8431 oprot.writeBitSet(optionals, 4);
8432 if (struct.isSetPrefix()) {
8433 oprot.writeString(struct.prefix);
8435 if (struct.isSetNexthop()) {
8436 oprot.writeString(struct.nexthop);
8438 if (struct.isSetRd()) {
8439 oprot.writeString(struct.rd);
8441 if (struct.isSetLabel()) {
8442 oprot.writeI32(struct.label);
8447 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8448 TTupleProtocol iprot = (TTupleProtocol) prot;
8449 BitSet incoming = iprot.readBitSet(4);
8450 if (incoming.get(0)) {
8451 struct.prefix = iprot.readString();
8452 struct.setPrefixIsSet(true);
8454 if (incoming.get(1)) {
8455 struct.nexthop = iprot.readString();
8456 struct.setNexthopIsSet(true);
8458 if (incoming.get(2)) {
8459 struct.rd = iprot.readString();
8460 struct.setRdIsSet(true);
8462 if (incoming.get(3)) {
8463 struct.label = iprot.readI32();
8464 struct.setLabelIsSet(true);
8471 public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result> {
8472 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
8474 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
8476 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
8478 schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
8479 schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
8482 public int success; // required
8484 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8485 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8486 SUCCESS((short)0, "success");
8488 private static final Map<String, _Fields> byName = new HashMap<>();
8491 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8492 byName.put(field.getFieldName(), field);
8497 * Find the _Fields constant that matches fieldId, or null if its not found.
8499 public static _Fields findByThriftId(int fieldId) {
8509 * Find the _Fields constant that matches fieldId, throwing an exception
8510 * if it is not found.
8512 public static _Fields findByThriftIdOrThrow(int fieldId) {
8513 _Fields fields = findByThriftId(fieldId);
8514 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8519 * Find the _Fields constant that matches name, or null if its not found.
8521 public static _Fields findByName(String name) {
8522 return byName.get(name);
8525 private final short _thriftId;
8526 private final String _fieldName;
8528 _Fields(short thriftId, String fieldName) {
8529 _thriftId = thriftId;
8530 _fieldName = fieldName;
8533 public short getThriftFieldId() {
8537 public String getFieldName() {
8542 // isset id assignments
8543 private static final int __SUCCESS_ISSET_ID = 0;
8544 private byte __isset_bitfield = 0;
8545 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8547 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
8548 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8549 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8550 metaDataMap = Collections.unmodifiableMap(tmpMap);
8551 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
8554 public pushRoute_result() {
8557 public pushRoute_result(
8561 this.success = success;
8562 setSuccessIsSet(true);
8566 * Performs a deep copy on <i>other</i>.
8568 public pushRoute_result(pushRoute_result other) {
8569 __isset_bitfield = other.__isset_bitfield;
8570 this.success = other.success;
8573 public pushRoute_result deepCopy() {
8574 return new pushRoute_result(this);
8578 public void clear() {
8579 setSuccessIsSet(false);
8583 public int getSuccess() {
8584 return this.success;
8587 public pushRoute_result setSuccess(int success) {
8588 this.success = success;
8589 setSuccessIsSet(true);
8593 public void unsetSuccess() {
8594 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8597 /** Returns true if field success is set (has been assigned a value) and false otherwise */
8598 public boolean isSetSuccess() {
8599 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8602 public void setSuccessIsSet(boolean value) {
8603 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8606 public void setFieldValue(_Fields field, Object value) {
8609 if (value == null) {
8612 setSuccess((Integer)value);
8619 public Object getFieldValue(_Fields field) {
8622 return Integer.valueOf(getSuccess());
8625 throw new IllegalStateException();
8628 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8629 public boolean isSet(_Fields field) {
8630 if (field == null) {
8631 throw new IllegalArgumentException();
8636 return isSetSuccess();
8638 throw new IllegalStateException();
8642 public boolean equals(Object that) {
8645 if (that instanceof pushRoute_result)
8646 return this.equals((pushRoute_result)that);
8650 public boolean equals(pushRoute_result that) {
8654 boolean this_present_success = true;
8655 boolean that_present_success = true;
8656 if (this_present_success || that_present_success) {
8657 if (!(this_present_success && that_present_success))
8659 if (this.success != that.success)
8667 public int hashCode() {
8672 public int compareTo(pushRoute_result other) {
8673 if (!getClass().equals(other.getClass())) {
8674 return getClass().getName().compareTo(other.getClass().getName());
8677 int lastComparison = 0;
8679 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8680 if (lastComparison != 0) {
8681 return lastComparison;
8683 if (isSetSuccess()) {
8684 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8685 if (lastComparison != 0) {
8686 return lastComparison;
8692 public _Fields fieldForId(int fieldId) {
8693 return _Fields.findByThriftId(fieldId);
8696 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8697 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8700 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8701 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8705 public String toString() {
8706 StringBuilder sb = new StringBuilder("pushRoute_result(");
8707 boolean first = true;
8709 sb.append("success:");
8710 sb.append(this.success);
8713 return sb.toString();
8716 public void validate() throws org.apache.thrift.TException {
8717 // check for required fields
8718 // check for sub-struct validity
8721 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8723 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8724 } catch (org.apache.thrift.TException te) {
8725 throw new java.io.IOException(te);
8729 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8731 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8732 __isset_bitfield = 0;
8733 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8734 } catch (org.apache.thrift.TException te) {
8735 throw new java.io.IOException(te);
8739 private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
8740 public pushRoute_resultStandardScheme getScheme() {
8741 return new pushRoute_resultStandardScheme();
8745 private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
8747 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
8748 org.apache.thrift.protocol.TField schemeField;
8749 iprot.readStructBegin();
8752 schemeField = iprot.readFieldBegin();
8753 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8756 switch (schemeField.id) {
8758 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8759 struct.success = iprot.readI32();
8760 struct.setSuccessIsSet(true);
8762 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8766 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8768 iprot.readFieldEnd();
8770 iprot.readStructEnd();
8772 // check for required fields of primitive type, which can't be checked in the validate method
8776 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
8779 oprot.writeStructBegin(STRUCT_DESC);
8780 if (struct.isSetSuccess()) {
8781 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8782 oprot.writeI32(struct.success);
8783 oprot.writeFieldEnd();
8785 oprot.writeFieldStop();
8786 oprot.writeStructEnd();
8791 private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
8792 public pushRoute_resultTupleScheme getScheme() {
8793 return new pushRoute_resultTupleScheme();
8797 private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
8800 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8801 TTupleProtocol oprot = (TTupleProtocol) prot;
8802 BitSet optionals = new BitSet();
8803 if (struct.isSetSuccess()) {
8806 oprot.writeBitSet(optionals, 1);
8807 if (struct.isSetSuccess()) {
8808 oprot.writeI32(struct.success);
8813 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8814 TTupleProtocol iprot = (TTupleProtocol) prot;
8815 BitSet incoming = iprot.readBitSet(1);
8816 if (incoming.get(0)) {
8817 struct.success = iprot.readI32();
8818 struct.setSuccessIsSet(true);
8825 public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args> {
8826 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
8828 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);
8829 private static final org.apache.thrift.protocol.TField RD_FIELD_DESC = new org.apache.thrift.protocol.TField("rd", org.apache.thrift.protocol.TType.STRING, (short)2);
8831 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
8833 schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
8834 schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
8837 public String prefix; // required
8838 public String rd; // required
8840 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8841 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8842 PREFIX((short)1, "prefix"),
8845 private static final Map<String, _Fields> byName = new HashMap<>();
8848 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8849 byName.put(field.getFieldName(), field);
8854 * Find the _Fields constant that matches fieldId, or null if its not found.
8856 public static _Fields findByThriftId(int fieldId) {
8868 * Find the _Fields constant that matches fieldId, throwing an exception
8869 * if it is not found.
8871 public static _Fields findByThriftIdOrThrow(int fieldId) {
8872 _Fields fields = findByThriftId(fieldId);
8873 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8878 * Find the _Fields constant that matches name, or null if its not found.
8880 public static _Fields findByName(String name) {
8881 return byName.get(name);
8884 private final short _thriftId;
8885 private final String _fieldName;
8887 _Fields(short thriftId, String fieldName) {
8888 _thriftId = thriftId;
8889 _fieldName = fieldName;
8892 public short getThriftFieldId() {
8896 public String getFieldName() {
8901 // isset id assignments
8902 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8904 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
8905 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
8906 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8907 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8908 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8909 metaDataMap = Collections.unmodifiableMap(tmpMap);
8910 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
8913 public withdrawRoute_args() {
8916 public withdrawRoute_args(
8921 this.prefix = prefix;
8926 * Performs a deep copy on <i>other</i>.
8928 public withdrawRoute_args(withdrawRoute_args other) {
8929 if (other.isSetPrefix()) {
8930 this.prefix = other.prefix;
8932 if (other.isSetRd()) {
8937 public withdrawRoute_args deepCopy() {
8938 return new withdrawRoute_args(this);
8942 public void clear() {
8947 public String getPrefix() {
8951 public withdrawRoute_args setPrefix(String prefix) {
8952 this.prefix = prefix;
8956 public void unsetPrefix() {
8960 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
8961 public boolean isSetPrefix() {
8962 return this.prefix != null;
8965 public void setPrefixIsSet(boolean value) {
8971 public String getRd() {
8975 public withdrawRoute_args setRd(String rd) {
8980 public void unsetRd() {
8984 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8985 public boolean isSetRd() {
8986 return this.rd != null;
8989 public void setRdIsSet(boolean value) {
8995 public void setFieldValue(_Fields field, Object value) {
8998 if (value == null) {
9001 setPrefix((String)value);
9006 if (value == null) {
9009 setRd((String)value);
9016 public Object getFieldValue(_Fields field) {
9025 throw new IllegalStateException();
9028 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9029 public boolean isSet(_Fields field) {
9030 if (field == null) {
9031 throw new IllegalArgumentException();
9036 return isSetPrefix();
9040 throw new IllegalStateException();
9044 public boolean equals(Object that) {
9047 if (that instanceof withdrawRoute_args)
9048 return this.equals((withdrawRoute_args)that);
9052 public boolean equals(withdrawRoute_args that) {
9056 boolean this_present_prefix = this.isSetPrefix();
9057 boolean that_present_prefix = that.isSetPrefix();
9058 if (this_present_prefix || that_present_prefix) {
9059 if (!(this_present_prefix && that_present_prefix))
9061 if (!this.prefix.equals(that.prefix))
9065 boolean this_present_rd = this.isSetRd();
9066 boolean that_present_rd = that.isSetRd();
9067 if (this_present_rd || that_present_rd) {
9068 if (!(this_present_rd && that_present_rd))
9070 if (!this.rd.equals(that.rd))
9078 public int hashCode() {
9083 public int compareTo(withdrawRoute_args other) {
9084 if (!getClass().equals(other.getClass())) {
9085 return getClass().getName().compareTo(other.getClass().getName());
9088 int lastComparison = 0;
9090 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
9091 if (lastComparison != 0) {
9092 return lastComparison;
9094 if (isSetPrefix()) {
9095 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
9096 if (lastComparison != 0) {
9097 return lastComparison;
9100 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9101 if (lastComparison != 0) {
9102 return lastComparison;
9105 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9106 if (lastComparison != 0) {
9107 return lastComparison;
9113 public _Fields fieldForId(int fieldId) {
9114 return _Fields.findByThriftId(fieldId);
9117 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9118 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9121 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9122 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9126 public String toString() {
9127 StringBuilder sb = new StringBuilder("withdrawRoute_args(");
9128 boolean first = true;
9130 sb.append("prefix:");
9131 if (this.prefix == null) {
9134 sb.append(this.prefix);
9137 if (!first) sb.append(", ");
9139 if (this.rd == null) {
9146 return sb.toString();
9149 public void validate() throws org.apache.thrift.TException {
9150 // check for required fields
9151 // check for sub-struct validity
9154 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9156 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9157 } catch (org.apache.thrift.TException te) {
9158 throw new java.io.IOException(te);
9162 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9164 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9165 } catch (org.apache.thrift.TException te) {
9166 throw new java.io.IOException(te);
9170 private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
9171 public withdrawRoute_argsStandardScheme getScheme() {
9172 return new withdrawRoute_argsStandardScheme();
9176 private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
9178 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9179 org.apache.thrift.protocol.TField schemeField;
9180 iprot.readStructBegin();
9183 schemeField = iprot.readFieldBegin();
9184 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9187 switch (schemeField.id) {
9189 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9190 struct.prefix = iprot.readString();
9191 struct.setPrefixIsSet(true);
9193 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9197 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9198 struct.rd = iprot.readString();
9199 struct.setRdIsSet(true);
9201 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9205 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9207 iprot.readFieldEnd();
9209 iprot.readStructEnd();
9211 // check for required fields of primitive type, which can't be checked in the validate method
9215 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9218 oprot.writeStructBegin(STRUCT_DESC);
9219 if (struct.prefix != null) {
9220 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
9221 oprot.writeString(struct.prefix);
9222 oprot.writeFieldEnd();
9224 if (struct.rd != null) {
9225 oprot.writeFieldBegin(RD_FIELD_DESC);
9226 oprot.writeString(struct.rd);
9227 oprot.writeFieldEnd();
9229 oprot.writeFieldStop();
9230 oprot.writeStructEnd();
9235 private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
9236 public withdrawRoute_argsTupleScheme getScheme() {
9237 return new withdrawRoute_argsTupleScheme();
9241 private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
9244 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9245 TTupleProtocol oprot = (TTupleProtocol) prot;
9246 BitSet optionals = new BitSet();
9247 if (struct.isSetPrefix()) {
9250 if (struct.isSetRd()) {
9253 oprot.writeBitSet(optionals, 2);
9254 if (struct.isSetPrefix()) {
9255 oprot.writeString(struct.prefix);
9257 if (struct.isSetRd()) {
9258 oprot.writeString(struct.rd);
9263 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9264 TTupleProtocol iprot = (TTupleProtocol) prot;
9265 BitSet incoming = iprot.readBitSet(2);
9266 if (incoming.get(0)) {
9267 struct.prefix = iprot.readString();
9268 struct.setPrefixIsSet(true);
9270 if (incoming.get(1)) {
9271 struct.rd = iprot.readString();
9272 struct.setRdIsSet(true);
9279 public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result> {
9280 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
9282 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
9284 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
9286 schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
9287 schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
9290 public int success; // required
9292 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9293 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9294 SUCCESS((short)0, "success");
9296 private static final Map<String, _Fields> byName = new HashMap<>();
9299 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9300 byName.put(field.getFieldName(), field);
9305 * Find the _Fields constant that matches fieldId, or null if its not found.
9307 public static _Fields findByThriftId(int fieldId) {
9317 * Find the _Fields constant that matches fieldId, throwing an exception
9318 * if it is not found.
9320 public static _Fields findByThriftIdOrThrow(int fieldId) {
9321 _Fields fields = findByThriftId(fieldId);
9322 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9327 * Find the _Fields constant that matches name, or null if its not found.
9329 public static _Fields findByName(String name) {
9330 return byName.get(name);
9333 private final short _thriftId;
9334 private final String _fieldName;
9336 _Fields(short thriftId, String fieldName) {
9337 _thriftId = thriftId;
9338 _fieldName = fieldName;
9341 public short getThriftFieldId() {
9345 public String getFieldName() {
9350 // isset id assignments
9351 private static final int __SUCCESS_ISSET_ID = 0;
9352 private byte __isset_bitfield = 0;
9353 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9355 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
9356 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9357 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9358 metaDataMap = Collections.unmodifiableMap(tmpMap);
9359 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
9362 public withdrawRoute_result() {
9365 public withdrawRoute_result(
9369 this.success = success;
9370 setSuccessIsSet(true);
9374 * Performs a deep copy on <i>other</i>.
9376 public withdrawRoute_result(withdrawRoute_result other) {
9377 __isset_bitfield = other.__isset_bitfield;
9378 this.success = other.success;
9381 public withdrawRoute_result deepCopy() {
9382 return new withdrawRoute_result(this);
9386 public void clear() {
9387 setSuccessIsSet(false);
9391 public int getSuccess() {
9392 return this.success;
9395 public withdrawRoute_result setSuccess(int success) {
9396 this.success = success;
9397 setSuccessIsSet(true);
9401 public void unsetSuccess() {
9402 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9405 /** Returns true if field success is set (has been assigned a value) and false otherwise */
9406 public boolean isSetSuccess() {
9407 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9410 public void setSuccessIsSet(boolean value) {
9411 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9414 public void setFieldValue(_Fields field, Object value) {
9417 if (value == null) {
9420 setSuccess((Integer)value);
9427 public Object getFieldValue(_Fields field) {
9430 return Integer.valueOf(getSuccess());
9433 throw new IllegalStateException();
9436 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9437 public boolean isSet(_Fields field) {
9438 if (field == null) {
9439 throw new IllegalArgumentException();
9444 return isSetSuccess();
9446 throw new IllegalStateException();
9450 public boolean equals(Object that) {
9453 if (that instanceof withdrawRoute_result)
9454 return this.equals((withdrawRoute_result)that);
9458 public boolean equals(withdrawRoute_result that) {
9462 boolean this_present_success = true;
9463 boolean that_present_success = true;
9464 if (this_present_success || that_present_success) {
9465 if (!(this_present_success && that_present_success))
9467 if (this.success != that.success)
9475 public int hashCode() {
9480 public int compareTo(withdrawRoute_result other) {
9481 if (!getClass().equals(other.getClass())) {
9482 return getClass().getName().compareTo(other.getClass().getName());
9485 int lastComparison = 0;
9487 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9488 if (lastComparison != 0) {
9489 return lastComparison;
9491 if (isSetSuccess()) {
9492 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9493 if (lastComparison != 0) {
9494 return lastComparison;
9500 public _Fields fieldForId(int fieldId) {
9501 return _Fields.findByThriftId(fieldId);
9504 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9505 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9508 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9509 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9513 public String toString() {
9514 StringBuilder sb = new StringBuilder("withdrawRoute_result(");
9515 boolean first = true;
9517 sb.append("success:");
9518 sb.append(this.success);
9521 return sb.toString();
9524 public void validate() throws org.apache.thrift.TException {
9525 // check for required fields
9526 // check for sub-struct validity
9529 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9531 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9532 } catch (org.apache.thrift.TException te) {
9533 throw new java.io.IOException(te);
9537 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9539 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9540 __isset_bitfield = 0;
9541 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9542 } catch (org.apache.thrift.TException te) {
9543 throw new java.io.IOException(te);
9547 private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
9548 public withdrawRoute_resultStandardScheme getScheme() {
9549 return new withdrawRoute_resultStandardScheme();
9553 private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
9555 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9556 org.apache.thrift.protocol.TField schemeField;
9557 iprot.readStructBegin();
9560 schemeField = iprot.readFieldBegin();
9561 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9564 switch (schemeField.id) {
9566 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9567 struct.success = iprot.readI32();
9568 struct.setSuccessIsSet(true);
9570 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9574 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9576 iprot.readFieldEnd();
9578 iprot.readStructEnd();
9580 // check for required fields of primitive type, which can't be checked in the validate method
9584 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9587 oprot.writeStructBegin(STRUCT_DESC);
9588 if (struct.isSetSuccess()) {
9589 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9590 oprot.writeI32(struct.success);
9591 oprot.writeFieldEnd();
9593 oprot.writeFieldStop();
9594 oprot.writeStructEnd();
9599 private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
9600 public withdrawRoute_resultTupleScheme getScheme() {
9601 return new withdrawRoute_resultTupleScheme();
9605 private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
9608 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9609 TTupleProtocol oprot = (TTupleProtocol) prot;
9610 BitSet optionals = new BitSet();
9611 if (struct.isSetSuccess()) {
9614 oprot.writeBitSet(optionals, 1);
9615 if (struct.isSetSuccess()) {
9616 oprot.writeI32(struct.success);
9621 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9622 TTupleProtocol iprot = (TTupleProtocol) prot;
9623 BitSet incoming = iprot.readBitSet(1);
9624 if (incoming.get(0)) {
9625 struct.success = iprot.readI32();
9626 struct.setSuccessIsSet(true);
9633 public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args> {
9634 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
9636 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
9637 private static final org.apache.thrift.protocol.TField N_HOPS_FIELD_DESC = new org.apache.thrift.protocol.TField("nHops", org.apache.thrift.protocol.TType.I32, (short)2);
9639 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
9641 schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
9642 schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
9645 public String peerIp; // required
9646 public int nHops; // required
9648 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9649 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9650 PEER_IP((short)1, "peerIp"),
9651 N_HOPS((short)2, "nHops");
9653 private static final Map<String, _Fields> byName = new HashMap<>();
9656 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9657 byName.put(field.getFieldName(), field);
9662 * Find the _Fields constant that matches fieldId, or null if its not found.
9664 public static _Fields findByThriftId(int fieldId) {
9676 * Find the _Fields constant that matches fieldId, throwing an exception
9677 * if it is not found.
9679 public static _Fields findByThriftIdOrThrow(int fieldId) {
9680 _Fields fields = findByThriftId(fieldId);
9681 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9686 * Find the _Fields constant that matches name, or null if its not found.
9688 public static _Fields findByName(String name) {
9689 return byName.get(name);
9692 private final short _thriftId;
9693 private final String _fieldName;
9695 _Fields(short thriftId, String fieldName) {
9696 _thriftId = thriftId;
9697 _fieldName = fieldName;
9700 public short getThriftFieldId() {
9704 public String getFieldName() {
9709 // isset id assignments
9710 private static final int __NHOPS_ISSET_ID = 0;
9711 private byte __isset_bitfield = 0;
9712 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9714 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
9715 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
9716 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9717 tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
9718 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9719 metaDataMap = Collections.unmodifiableMap(tmpMap);
9720 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
9723 public setEbgpMultihop_args() {
9726 public setEbgpMultihop_args(
9731 this.peerIp = peerIp;
9733 setNHopsIsSet(true);
9737 * Performs a deep copy on <i>other</i>.
9739 public setEbgpMultihop_args(setEbgpMultihop_args other) {
9740 __isset_bitfield = other.__isset_bitfield;
9741 if (other.isSetPeerIp()) {
9742 this.peerIp = other.peerIp;
9744 this.nHops = other.nHops;
9747 public setEbgpMultihop_args deepCopy() {
9748 return new setEbgpMultihop_args(this);
9752 public void clear() {
9754 setNHopsIsSet(false);
9758 public String getPeerIp() {
9762 public setEbgpMultihop_args setPeerIp(String peerIp) {
9763 this.peerIp = peerIp;
9767 public void unsetPeerIp() {
9771 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
9772 public boolean isSetPeerIp() {
9773 return this.peerIp != null;
9776 public void setPeerIpIsSet(boolean value) {
9782 public int getNHops() {
9786 public setEbgpMultihop_args setNHops(int nHops) {
9788 setNHopsIsSet(true);
9792 public void unsetNHops() {
9793 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
9796 /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
9797 public boolean isSetNHops() {
9798 return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
9801 public void setNHopsIsSet(boolean value) {
9802 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
9805 public void setFieldValue(_Fields field, Object value) {
9808 if (value == null) {
9811 setPeerIp((String)value);
9816 if (value == null) {
9819 setNHops((Integer)value);
9826 public Object getFieldValue(_Fields field) {
9832 return Integer.valueOf(getNHops());
9835 throw new IllegalStateException();
9838 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9839 public boolean isSet(_Fields field) {
9840 if (field == null) {
9841 throw new IllegalArgumentException();
9846 return isSetPeerIp();
9848 return isSetNHops();
9850 throw new IllegalStateException();
9854 public boolean equals(Object that) {
9857 if (that instanceof setEbgpMultihop_args)
9858 return this.equals((setEbgpMultihop_args)that);
9862 public boolean equals(setEbgpMultihop_args that) {
9866 boolean this_present_peerIp = this.isSetPeerIp();
9867 boolean that_present_peerIp = that.isSetPeerIp();
9868 if (this_present_peerIp || that_present_peerIp) {
9869 if (!(this_present_peerIp && that_present_peerIp))
9871 if (!this.peerIp.equals(that.peerIp))
9875 boolean this_present_nHops = true;
9876 boolean that_present_nHops = true;
9877 if (this_present_nHops || that_present_nHops) {
9878 if (!(this_present_nHops && that_present_nHops))
9880 if (this.nHops != that.nHops)
9888 public int hashCode() {
9893 public int compareTo(setEbgpMultihop_args other) {
9894 if (!getClass().equals(other.getClass())) {
9895 return getClass().getName().compareTo(other.getClass().getName());
9898 int lastComparison = 0;
9900 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
9901 if (lastComparison != 0) {
9902 return lastComparison;
9904 if (isSetPeerIp()) {
9905 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
9906 if (lastComparison != 0) {
9907 return lastComparison;
9910 lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
9911 if (lastComparison != 0) {
9912 return lastComparison;
9915 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
9916 if (lastComparison != 0) {
9917 return lastComparison;
9923 public _Fields fieldForId(int fieldId) {
9924 return _Fields.findByThriftId(fieldId);
9927 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9928 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9931 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9932 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9936 public String toString() {
9937 StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
9938 boolean first = true;
9940 sb.append("peerIp:");
9941 if (this.peerIp == null) {
9944 sb.append(this.peerIp);
9947 if (!first) sb.append(", ");
9948 sb.append("nHops:");
9949 sb.append(this.nHops);
9952 return sb.toString();
9955 public void validate() throws org.apache.thrift.TException {
9956 // check for required fields
9957 // check for sub-struct validity
9960 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9962 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9963 } catch (org.apache.thrift.TException te) {
9964 throw new java.io.IOException(te);
9968 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9970 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9971 __isset_bitfield = 0;
9972 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9973 } catch (org.apache.thrift.TException te) {
9974 throw new java.io.IOException(te);
9978 private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
9979 public setEbgpMultihop_argsStandardScheme getScheme() {
9980 return new setEbgpMultihop_argsStandardScheme();
9984 private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
9986 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
9987 org.apache.thrift.protocol.TField schemeField;
9988 iprot.readStructBegin();
9991 schemeField = iprot.readFieldBegin();
9992 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9995 switch (schemeField.id) {
9997 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9998 struct.peerIp = iprot.readString();
9999 struct.setPeerIpIsSet(true);
10001 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10005 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10006 struct.nHops = iprot.readI32();
10007 struct.setNHopsIsSet(true);
10009 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10013 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10015 iprot.readFieldEnd();
10017 iprot.readStructEnd();
10019 // check for required fields of primitive type, which can't be checked in the validate method
10023 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10026 oprot.writeStructBegin(STRUCT_DESC);
10027 if (struct.peerIp != null) {
10028 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10029 oprot.writeString(struct.peerIp);
10030 oprot.writeFieldEnd();
10032 oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
10033 oprot.writeI32(struct.nHops);
10034 oprot.writeFieldEnd();
10035 oprot.writeFieldStop();
10036 oprot.writeStructEnd();
10041 private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10042 public setEbgpMultihop_argsTupleScheme getScheme() {
10043 return new setEbgpMultihop_argsTupleScheme();
10047 private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
10050 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10051 TTupleProtocol oprot = (TTupleProtocol) prot;
10052 BitSet optionals = new BitSet();
10053 if (struct.isSetPeerIp()) {
10056 if (struct.isSetNHops()) {
10059 oprot.writeBitSet(optionals, 2);
10060 if (struct.isSetPeerIp()) {
10061 oprot.writeString(struct.peerIp);
10063 if (struct.isSetNHops()) {
10064 oprot.writeI32(struct.nHops);
10069 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10070 TTupleProtocol iprot = (TTupleProtocol) prot;
10071 BitSet incoming = iprot.readBitSet(2);
10072 if (incoming.get(0)) {
10073 struct.peerIp = iprot.readString();
10074 struct.setPeerIpIsSet(true);
10076 if (incoming.get(1)) {
10077 struct.nHops = iprot.readI32();
10078 struct.setNHopsIsSet(true);
10085 public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result> {
10086 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
10088 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
10090 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
10092 schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
10093 schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
10096 public int success; // required
10098 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10099 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10100 SUCCESS((short)0, "success");
10102 private static final Map<String, _Fields> byName = new HashMap<>();
10105 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10106 byName.put(field.getFieldName(), field);
10111 * Find the _Fields constant that matches fieldId, or null if its not found.
10113 public static _Fields findByThriftId(int fieldId) {
10123 * Find the _Fields constant that matches fieldId, throwing an exception
10124 * if it is not found.
10126 public static _Fields findByThriftIdOrThrow(int fieldId) {
10127 _Fields fields = findByThriftId(fieldId);
10128 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10133 * Find the _Fields constant that matches name, or null if its not found.
10135 public static _Fields findByName(String name) {
10136 return byName.get(name);
10139 private final short _thriftId;
10140 private final String _fieldName;
10142 _Fields(short thriftId, String fieldName) {
10143 _thriftId = thriftId;
10144 _fieldName = fieldName;
10147 public short getThriftFieldId() {
10151 public String getFieldName() {
10156 // isset id assignments
10157 private static final int __SUCCESS_ISSET_ID = 0;
10158 private byte __isset_bitfield = 0;
10159 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10161 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
10162 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10163 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10164 metaDataMap = Collections.unmodifiableMap(tmpMap);
10165 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
10168 public setEbgpMultihop_result() {
10171 public setEbgpMultihop_result(
10175 this.success = success;
10176 setSuccessIsSet(true);
10180 * Performs a deep copy on <i>other</i>.
10182 public setEbgpMultihop_result(setEbgpMultihop_result other) {
10183 __isset_bitfield = other.__isset_bitfield;
10184 this.success = other.success;
10187 public setEbgpMultihop_result deepCopy() {
10188 return new setEbgpMultihop_result(this);
10192 public void clear() {
10193 setSuccessIsSet(false);
10197 public int getSuccess() {
10198 return this.success;
10201 public setEbgpMultihop_result setSuccess(int success) {
10202 this.success = success;
10203 setSuccessIsSet(true);
10207 public void unsetSuccess() {
10208 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10211 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10212 public boolean isSetSuccess() {
10213 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10216 public void setSuccessIsSet(boolean value) {
10217 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10220 public void setFieldValue(_Fields field, Object value) {
10223 if (value == null) {
10226 setSuccess((Integer)value);
10233 public Object getFieldValue(_Fields field) {
10236 return Integer.valueOf(getSuccess());
10239 throw new IllegalStateException();
10242 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10243 public boolean isSet(_Fields field) {
10244 if (field == null) {
10245 throw new IllegalArgumentException();
10250 return isSetSuccess();
10252 throw new IllegalStateException();
10256 public boolean equals(Object that) {
10259 if (that instanceof setEbgpMultihop_result)
10260 return this.equals((setEbgpMultihop_result)that);
10264 public boolean equals(setEbgpMultihop_result that) {
10268 boolean this_present_success = true;
10269 boolean that_present_success = true;
10270 if (this_present_success || that_present_success) {
10271 if (!(this_present_success && that_present_success))
10273 if (this.success != that.success)
10281 public int hashCode() {
10286 public int compareTo(setEbgpMultihop_result other) {
10287 if (!getClass().equals(other.getClass())) {
10288 return getClass().getName().compareTo(other.getClass().getName());
10291 int lastComparison = 0;
10293 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10294 if (lastComparison != 0) {
10295 return lastComparison;
10297 if (isSetSuccess()) {
10298 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10299 if (lastComparison != 0) {
10300 return lastComparison;
10306 public _Fields fieldForId(int fieldId) {
10307 return _Fields.findByThriftId(fieldId);
10310 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10311 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10314 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10315 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10319 public String toString() {
10320 StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
10321 boolean first = true;
10323 sb.append("success:");
10324 sb.append(this.success);
10327 return sb.toString();
10330 public void validate() throws org.apache.thrift.TException {
10331 // check for required fields
10332 // check for sub-struct validity
10335 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10337 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10338 } catch (org.apache.thrift.TException te) {
10339 throw new java.io.IOException(te);
10343 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10345 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10346 __isset_bitfield = 0;
10347 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10348 } catch (org.apache.thrift.TException te) {
10349 throw new java.io.IOException(te);
10353 private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
10354 public setEbgpMultihop_resultStandardScheme getScheme() {
10355 return new setEbgpMultihop_resultStandardScheme();
10359 private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
10361 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10362 org.apache.thrift.protocol.TField schemeField;
10363 iprot.readStructBegin();
10366 schemeField = iprot.readFieldBegin();
10367 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10370 switch (schemeField.id) {
10372 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10373 struct.success = iprot.readI32();
10374 struct.setSuccessIsSet(true);
10376 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10380 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10382 iprot.readFieldEnd();
10384 iprot.readStructEnd();
10386 // check for required fields of primitive type, which can't be checked in the validate method
10390 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10393 oprot.writeStructBegin(STRUCT_DESC);
10394 if (struct.isSetSuccess()) {
10395 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10396 oprot.writeI32(struct.success);
10397 oprot.writeFieldEnd();
10399 oprot.writeFieldStop();
10400 oprot.writeStructEnd();
10405 private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
10406 public setEbgpMultihop_resultTupleScheme getScheme() {
10407 return new setEbgpMultihop_resultTupleScheme();
10411 private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
10414 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10415 TTupleProtocol oprot = (TTupleProtocol) prot;
10416 BitSet optionals = new BitSet();
10417 if (struct.isSetSuccess()) {
10420 oprot.writeBitSet(optionals, 1);
10421 if (struct.isSetSuccess()) {
10422 oprot.writeI32(struct.success);
10427 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10428 TTupleProtocol iprot = (TTupleProtocol) prot;
10429 BitSet incoming = iprot.readBitSet(1);
10430 if (incoming.get(0)) {
10431 struct.success = iprot.readI32();
10432 struct.setSuccessIsSet(true);
10439 public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args> {
10440 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
10442 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
10444 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
10446 schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
10447 schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
10450 public String peerIp; // required
10452 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10453 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10454 PEER_IP((short)1, "peerIp");
10456 private static final Map<String, _Fields> byName = new HashMap<>();
10459 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10460 byName.put(field.getFieldName(), field);
10465 * Find the _Fields constant that matches fieldId, or null if its not found.
10467 public static _Fields findByThriftId(int fieldId) {
10477 * Find the _Fields constant that matches fieldId, throwing an exception
10478 * if it is not found.
10480 public static _Fields findByThriftIdOrThrow(int fieldId) {
10481 _Fields fields = findByThriftId(fieldId);
10482 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10487 * Find the _Fields constant that matches name, or null if its not found.
10489 public static _Fields findByName(String name) {
10490 return byName.get(name);
10493 private final short _thriftId;
10494 private final String _fieldName;
10496 _Fields(short thriftId, String fieldName) {
10497 _thriftId = thriftId;
10498 _fieldName = fieldName;
10501 public short getThriftFieldId() {
10505 public String getFieldName() {
10510 // isset id assignments
10511 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10513 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
10514 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
10515 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10516 metaDataMap = Collections.unmodifiableMap(tmpMap);
10517 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
10520 public unsetEbgpMultihop_args() {
10523 public unsetEbgpMultihop_args(
10527 this.peerIp = peerIp;
10531 * Performs a deep copy on <i>other</i>.
10533 public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
10534 if (other.isSetPeerIp()) {
10535 this.peerIp = other.peerIp;
10539 public unsetEbgpMultihop_args deepCopy() {
10540 return new unsetEbgpMultihop_args(this);
10544 public void clear() {
10545 this.peerIp = null;
10548 public String getPeerIp() {
10549 return this.peerIp;
10552 public unsetEbgpMultihop_args setPeerIp(String peerIp) {
10553 this.peerIp = peerIp;
10557 public void unsetPeerIp() {
10558 this.peerIp = null;
10561 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
10562 public boolean isSetPeerIp() {
10563 return this.peerIp != null;
10566 public void setPeerIpIsSet(boolean value) {
10568 this.peerIp = null;
10572 public void setFieldValue(_Fields field, Object value) {
10575 if (value == null) {
10578 setPeerIp((String)value);
10585 public Object getFieldValue(_Fields field) {
10588 return getPeerIp();
10591 throw new IllegalStateException();
10594 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10595 public boolean isSet(_Fields field) {
10596 if (field == null) {
10597 throw new IllegalArgumentException();
10602 return isSetPeerIp();
10604 throw new IllegalStateException();
10608 public boolean equals(Object that) {
10611 if (that instanceof unsetEbgpMultihop_args)
10612 return this.equals((unsetEbgpMultihop_args)that);
10616 public boolean equals(unsetEbgpMultihop_args that) {
10620 boolean this_present_peerIp = this.isSetPeerIp();
10621 boolean that_present_peerIp = that.isSetPeerIp();
10622 if (this_present_peerIp || that_present_peerIp) {
10623 if (!(this_present_peerIp && that_present_peerIp))
10625 if (!this.peerIp.equals(that.peerIp))
10633 public int hashCode() {
10638 public int compareTo(unsetEbgpMultihop_args other) {
10639 if (!getClass().equals(other.getClass())) {
10640 return getClass().getName().compareTo(other.getClass().getName());
10643 int lastComparison = 0;
10645 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
10646 if (lastComparison != 0) {
10647 return lastComparison;
10649 if (isSetPeerIp()) {
10650 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
10651 if (lastComparison != 0) {
10652 return lastComparison;
10658 public _Fields fieldForId(int fieldId) {
10659 return _Fields.findByThriftId(fieldId);
10662 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10663 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10666 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10667 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10671 public String toString() {
10672 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
10673 boolean first = true;
10675 sb.append("peerIp:");
10676 if (this.peerIp == null) {
10679 sb.append(this.peerIp);
10683 return sb.toString();
10686 public void validate() throws org.apache.thrift.TException {
10687 // check for required fields
10688 // check for sub-struct validity
10691 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10693 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10694 } catch (org.apache.thrift.TException te) {
10695 throw new java.io.IOException(te);
10699 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10701 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10702 } catch (org.apache.thrift.TException te) {
10703 throw new java.io.IOException(te);
10707 private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
10708 public unsetEbgpMultihop_argsStandardScheme getScheme() {
10709 return new unsetEbgpMultihop_argsStandardScheme();
10713 private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
10715 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10716 org.apache.thrift.protocol.TField schemeField;
10717 iprot.readStructBegin();
10720 schemeField = iprot.readFieldBegin();
10721 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10724 switch (schemeField.id) {
10726 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10727 struct.peerIp = iprot.readString();
10728 struct.setPeerIpIsSet(true);
10730 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10734 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10736 iprot.readFieldEnd();
10738 iprot.readStructEnd();
10740 // check for required fields of primitive type, which can't be checked in the validate method
10744 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10747 oprot.writeStructBegin(STRUCT_DESC);
10748 if (struct.peerIp != null) {
10749 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10750 oprot.writeString(struct.peerIp);
10751 oprot.writeFieldEnd();
10753 oprot.writeFieldStop();
10754 oprot.writeStructEnd();
10759 private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10760 public unsetEbgpMultihop_argsTupleScheme getScheme() {
10761 return new unsetEbgpMultihop_argsTupleScheme();
10765 private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
10768 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10769 TTupleProtocol oprot = (TTupleProtocol) prot;
10770 BitSet optionals = new BitSet();
10771 if (struct.isSetPeerIp()) {
10774 oprot.writeBitSet(optionals, 1);
10775 if (struct.isSetPeerIp()) {
10776 oprot.writeString(struct.peerIp);
10781 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10782 TTupleProtocol iprot = (TTupleProtocol) prot;
10783 BitSet incoming = iprot.readBitSet(1);
10784 if (incoming.get(0)) {
10785 struct.peerIp = iprot.readString();
10786 struct.setPeerIpIsSet(true);
10793 public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result> {
10794 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
10796 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
10798 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
10800 schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
10801 schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
10804 public int success; // required
10806 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10807 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10808 SUCCESS((short)0, "success");
10810 private static final Map<String, _Fields> byName = new HashMap<>();
10813 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10814 byName.put(field.getFieldName(), field);
10819 * Find the _Fields constant that matches fieldId, or null if its not found.
10821 public static _Fields findByThriftId(int fieldId) {
10831 * Find the _Fields constant that matches fieldId, throwing an exception
10832 * if it is not found.
10834 public static _Fields findByThriftIdOrThrow(int fieldId) {
10835 _Fields fields = findByThriftId(fieldId);
10836 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10841 * Find the _Fields constant that matches name, or null if its not found.
10843 public static _Fields findByName(String name) {
10844 return byName.get(name);
10847 private final short _thriftId;
10848 private final String _fieldName;
10850 _Fields(short thriftId, String fieldName) {
10851 _thriftId = thriftId;
10852 _fieldName = fieldName;
10855 public short getThriftFieldId() {
10859 public String getFieldName() {
10864 // isset id assignments
10865 private static final int __SUCCESS_ISSET_ID = 0;
10866 private byte __isset_bitfield = 0;
10867 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10869 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
10870 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10871 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10872 metaDataMap = Collections.unmodifiableMap(tmpMap);
10873 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
10876 public unsetEbgpMultihop_result() {
10879 public unsetEbgpMultihop_result(
10883 this.success = success;
10884 setSuccessIsSet(true);
10888 * Performs a deep copy on <i>other</i>.
10890 public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
10891 __isset_bitfield = other.__isset_bitfield;
10892 this.success = other.success;
10895 public unsetEbgpMultihop_result deepCopy() {
10896 return new unsetEbgpMultihop_result(this);
10900 public void clear() {
10901 setSuccessIsSet(false);
10905 public int getSuccess() {
10906 return this.success;
10909 public unsetEbgpMultihop_result setSuccess(int success) {
10910 this.success = success;
10911 setSuccessIsSet(true);
10915 public void unsetSuccess() {
10916 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10919 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10920 public boolean isSetSuccess() {
10921 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10924 public void setSuccessIsSet(boolean value) {
10925 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10928 public void setFieldValue(_Fields field, Object value) {
10931 if (value == null) {
10934 setSuccess((Integer)value);
10941 public Object getFieldValue(_Fields field) {
10944 return Integer.valueOf(getSuccess());
10947 throw new IllegalStateException();
10950 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10951 public boolean isSet(_Fields field) {
10952 if (field == null) {
10953 throw new IllegalArgumentException();
10958 return isSetSuccess();
10960 throw new IllegalStateException();
10964 public boolean equals(Object that) {
10967 if (that instanceof unsetEbgpMultihop_result)
10968 return this.equals((unsetEbgpMultihop_result)that);
10972 public boolean equals(unsetEbgpMultihop_result that) {
10976 boolean this_present_success = true;
10977 boolean that_present_success = true;
10978 if (this_present_success || that_present_success) {
10979 if (!(this_present_success && that_present_success))
10981 if (this.success != that.success)
10989 public int hashCode() {
10994 public int compareTo(unsetEbgpMultihop_result other) {
10995 if (!getClass().equals(other.getClass())) {
10996 return getClass().getName().compareTo(other.getClass().getName());
10999 int lastComparison = 0;
11001 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11002 if (lastComparison != 0) {
11003 return lastComparison;
11005 if (isSetSuccess()) {
11006 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11007 if (lastComparison != 0) {
11008 return lastComparison;
11014 public _Fields fieldForId(int fieldId) {
11015 return _Fields.findByThriftId(fieldId);
11018 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11019 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11022 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11023 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11027 public String toString() {
11028 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
11029 boolean first = true;
11031 sb.append("success:");
11032 sb.append(this.success);
11035 return sb.toString();
11038 public void validate() throws org.apache.thrift.TException {
11039 // check for required fields
11040 // check for sub-struct validity
11043 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11045 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11046 } catch (org.apache.thrift.TException te) {
11047 throw new java.io.IOException(te);
11051 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11053 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11054 __isset_bitfield = 0;
11055 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11056 } catch (org.apache.thrift.TException te) {
11057 throw new java.io.IOException(te);
11061 private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
11062 public unsetEbgpMultihop_resultStandardScheme getScheme() {
11063 return new unsetEbgpMultihop_resultStandardScheme();
11067 private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
11069 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11070 org.apache.thrift.protocol.TField schemeField;
11071 iprot.readStructBegin();
11074 schemeField = iprot.readFieldBegin();
11075 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11078 switch (schemeField.id) {
11080 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11081 struct.success = iprot.readI32();
11082 struct.setSuccessIsSet(true);
11084 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11088 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11090 iprot.readFieldEnd();
11092 iprot.readStructEnd();
11094 // check for required fields of primitive type, which can't be checked in the validate method
11098 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11101 oprot.writeStructBegin(STRUCT_DESC);
11102 if (struct.isSetSuccess()) {
11103 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11104 oprot.writeI32(struct.success);
11105 oprot.writeFieldEnd();
11107 oprot.writeFieldStop();
11108 oprot.writeStructEnd();
11113 private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
11114 public unsetEbgpMultihop_resultTupleScheme getScheme() {
11115 return new unsetEbgpMultihop_resultTupleScheme();
11119 private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
11122 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11123 TTupleProtocol oprot = (TTupleProtocol) prot;
11124 BitSet optionals = new BitSet();
11125 if (struct.isSetSuccess()) {
11128 oprot.writeBitSet(optionals, 1);
11129 if (struct.isSetSuccess()) {
11130 oprot.writeI32(struct.success);
11135 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11136 TTupleProtocol iprot = (TTupleProtocol) prot;
11137 BitSet incoming = iprot.readBitSet(1);
11138 if (incoming.get(0)) {
11139 struct.success = iprot.readI32();
11140 struct.setSuccessIsSet(true);
11147 public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args> {
11148 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
11150 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
11151 private static final org.apache.thrift.protocol.TField SRC_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("srcIp", org.apache.thrift.protocol.TType.STRING, (short)2);
11153 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
11155 schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
11156 schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
11159 public String peerIp; // required
11160 public String srcIp; // required
11162 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11163 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11164 PEER_IP((short)1, "peerIp"),
11165 SRC_IP((short)2, "srcIp");
11167 private static final Map<String, _Fields> byName = new HashMap<>();
11170 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11171 byName.put(field.getFieldName(), field);
11176 * Find the _Fields constant that matches fieldId, or null if its not found.
11178 public static _Fields findByThriftId(int fieldId) {
11190 * Find the _Fields constant that matches fieldId, throwing an exception
11191 * if it is not found.
11193 public static _Fields findByThriftIdOrThrow(int fieldId) {
11194 _Fields fields = findByThriftId(fieldId);
11195 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11200 * Find the _Fields constant that matches name, or null if its not found.
11202 public static _Fields findByName(String name) {
11203 return byName.get(name);
11206 private final short _thriftId;
11207 private final String _fieldName;
11209 _Fields(short thriftId, String fieldName) {
11210 _thriftId = thriftId;
11211 _fieldName = fieldName;
11214 public short getThriftFieldId() {
11218 public String getFieldName() {
11223 // isset id assignments
11224 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11226 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
11227 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
11228 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11229 tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
11230 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11231 metaDataMap = Collections.unmodifiableMap(tmpMap);
11232 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
11235 public setUpdateSource_args() {
11238 public setUpdateSource_args(
11243 this.peerIp = peerIp;
11244 this.srcIp = srcIp;
11248 * Performs a deep copy on <i>other</i>.
11250 public setUpdateSource_args(setUpdateSource_args other) {
11251 if (other.isSetPeerIp()) {
11252 this.peerIp = other.peerIp;
11254 if (other.isSetSrcIp()) {
11255 this.srcIp = other.srcIp;
11259 public setUpdateSource_args deepCopy() {
11260 return new setUpdateSource_args(this);
11264 public void clear() {
11265 this.peerIp = null;
11269 public String getPeerIp() {
11270 return this.peerIp;
11273 public setUpdateSource_args setPeerIp(String peerIp) {
11274 this.peerIp = peerIp;
11278 public void unsetPeerIp() {
11279 this.peerIp = null;
11282 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
11283 public boolean isSetPeerIp() {
11284 return this.peerIp != null;
11287 public void setPeerIpIsSet(boolean value) {
11289 this.peerIp = null;
11293 public String getSrcIp() {
11297 public setUpdateSource_args setSrcIp(String srcIp) {
11298 this.srcIp = srcIp;
11302 public void unsetSrcIp() {
11306 /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
11307 public boolean isSetSrcIp() {
11308 return this.srcIp != null;
11311 public void setSrcIpIsSet(boolean value) {
11317 public void setFieldValue(_Fields field, Object value) {
11320 if (value == null) {
11323 setPeerIp((String)value);
11328 if (value == null) {
11331 setSrcIp((String)value);
11338 public Object getFieldValue(_Fields field) {
11341 return getPeerIp();
11347 throw new IllegalStateException();
11350 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11351 public boolean isSet(_Fields field) {
11352 if (field == null) {
11353 throw new IllegalArgumentException();
11358 return isSetPeerIp();
11360 return isSetSrcIp();
11362 throw new IllegalStateException();
11366 public boolean equals(Object that) {
11369 if (that instanceof setUpdateSource_args)
11370 return this.equals((setUpdateSource_args)that);
11374 public boolean equals(setUpdateSource_args that) {
11378 boolean this_present_peerIp = this.isSetPeerIp();
11379 boolean that_present_peerIp = that.isSetPeerIp();
11380 if (this_present_peerIp || that_present_peerIp) {
11381 if (!(this_present_peerIp && that_present_peerIp))
11383 if (!this.peerIp.equals(that.peerIp))
11387 boolean this_present_srcIp = this.isSetSrcIp();
11388 boolean that_present_srcIp = that.isSetSrcIp();
11389 if (this_present_srcIp || that_present_srcIp) {
11390 if (!(this_present_srcIp && that_present_srcIp))
11392 if (!this.srcIp.equals(that.srcIp))
11400 public int hashCode() {
11405 public int compareTo(setUpdateSource_args other) {
11406 if (!getClass().equals(other.getClass())) {
11407 return getClass().getName().compareTo(other.getClass().getName());
11410 int lastComparison = 0;
11412 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
11413 if (lastComparison != 0) {
11414 return lastComparison;
11416 if (isSetPeerIp()) {
11417 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
11418 if (lastComparison != 0) {
11419 return lastComparison;
11422 lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
11423 if (lastComparison != 0) {
11424 return lastComparison;
11426 if (isSetSrcIp()) {
11427 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
11428 if (lastComparison != 0) {
11429 return lastComparison;
11435 public _Fields fieldForId(int fieldId) {
11436 return _Fields.findByThriftId(fieldId);
11439 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11440 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11443 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11444 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11448 public String toString() {
11449 StringBuilder sb = new StringBuilder("setUpdateSource_args(");
11450 boolean first = true;
11452 sb.append("peerIp:");
11453 if (this.peerIp == null) {
11456 sb.append(this.peerIp);
11459 if (!first) sb.append(", ");
11460 sb.append("srcIp:");
11461 if (this.srcIp == null) {
11464 sb.append(this.srcIp);
11468 return sb.toString();
11471 public void validate() throws org.apache.thrift.TException {
11472 // check for required fields
11473 // check for sub-struct validity
11476 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11478 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11479 } catch (org.apache.thrift.TException te) {
11480 throw new java.io.IOException(te);
11484 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11486 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11487 } catch (org.apache.thrift.TException te) {
11488 throw new java.io.IOException(te);
11492 private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
11493 public setUpdateSource_argsStandardScheme getScheme() {
11494 return new setUpdateSource_argsStandardScheme();
11498 private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
11500 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11501 org.apache.thrift.protocol.TField schemeField;
11502 iprot.readStructBegin();
11505 schemeField = iprot.readFieldBegin();
11506 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11509 switch (schemeField.id) {
11511 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11512 struct.peerIp = iprot.readString();
11513 struct.setPeerIpIsSet(true);
11515 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11519 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11520 struct.srcIp = iprot.readString();
11521 struct.setSrcIpIsSet(true);
11523 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11527 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11529 iprot.readFieldEnd();
11531 iprot.readStructEnd();
11533 // check for required fields of primitive type, which can't be checked in the validate method
11537 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11540 oprot.writeStructBegin(STRUCT_DESC);
11541 if (struct.peerIp != null) {
11542 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
11543 oprot.writeString(struct.peerIp);
11544 oprot.writeFieldEnd();
11546 if (struct.srcIp != null) {
11547 oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
11548 oprot.writeString(struct.srcIp);
11549 oprot.writeFieldEnd();
11551 oprot.writeFieldStop();
11552 oprot.writeStructEnd();
11557 private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
11558 public setUpdateSource_argsTupleScheme getScheme() {
11559 return new setUpdateSource_argsTupleScheme();
11563 private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
11566 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11567 TTupleProtocol oprot = (TTupleProtocol) prot;
11568 BitSet optionals = new BitSet();
11569 if (struct.isSetPeerIp()) {
11572 if (struct.isSetSrcIp()) {
11575 oprot.writeBitSet(optionals, 2);
11576 if (struct.isSetPeerIp()) {
11577 oprot.writeString(struct.peerIp);
11579 if (struct.isSetSrcIp()) {
11580 oprot.writeString(struct.srcIp);
11585 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11586 TTupleProtocol iprot = (TTupleProtocol) prot;
11587 BitSet incoming = iprot.readBitSet(2);
11588 if (incoming.get(0)) {
11589 struct.peerIp = iprot.readString();
11590 struct.setPeerIpIsSet(true);
11592 if (incoming.get(1)) {
11593 struct.srcIp = iprot.readString();
11594 struct.setSrcIpIsSet(true);
11601 public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result> {
11602 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
11604 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
11606 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
11608 schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
11609 schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
11612 public int success; // required
11614 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11615 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11616 SUCCESS((short)0, "success");
11618 private static final Map<String, _Fields> byName = new HashMap<>();
11621 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11622 byName.put(field.getFieldName(), field);
11627 * Find the _Fields constant that matches fieldId, or null if its not found.
11629 public static _Fields findByThriftId(int fieldId) {
11639 * Find the _Fields constant that matches fieldId, throwing an exception
11640 * if it is not found.
11642 public static _Fields findByThriftIdOrThrow(int fieldId) {
11643 _Fields fields = findByThriftId(fieldId);
11644 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11649 * Find the _Fields constant that matches name, or null if its not found.
11651 public static _Fields findByName(String name) {
11652 return byName.get(name);
11655 private final short _thriftId;
11656 private final String _fieldName;
11658 _Fields(short thriftId, String fieldName) {
11659 _thriftId = thriftId;
11660 _fieldName = fieldName;
11663 public short getThriftFieldId() {
11667 public String getFieldName() {
11672 // isset id assignments
11673 private static final int __SUCCESS_ISSET_ID = 0;
11674 private byte __isset_bitfield = 0;
11675 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11677 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
11678 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
11679 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11680 metaDataMap = Collections.unmodifiableMap(tmpMap);
11681 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
11684 public setUpdateSource_result() {
11687 public setUpdateSource_result(
11691 this.success = success;
11692 setSuccessIsSet(true);
11696 * Performs a deep copy on <i>other</i>.
11698 public setUpdateSource_result(setUpdateSource_result other) {
11699 __isset_bitfield = other.__isset_bitfield;
11700 this.success = other.success;
11703 public setUpdateSource_result deepCopy() {
11704 return new setUpdateSource_result(this);
11708 public void clear() {
11709 setSuccessIsSet(false);
11713 public int getSuccess() {
11714 return this.success;
11717 public setUpdateSource_result setSuccess(int success) {
11718 this.success = success;
11719 setSuccessIsSet(true);
11723 public void unsetSuccess() {
11724 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11727 /** Returns true if field success is set (has been assigned a value) and false otherwise */
11728 public boolean isSetSuccess() {
11729 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11732 public void setSuccessIsSet(boolean value) {
11733 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
11736 public void setFieldValue(_Fields field, Object value) {
11739 if (value == null) {
11742 setSuccess((Integer)value);
11749 public Object getFieldValue(_Fields field) {
11752 return Integer.valueOf(getSuccess());
11755 throw new IllegalStateException();
11758 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11759 public boolean isSet(_Fields field) {
11760 if (field == null) {
11761 throw new IllegalArgumentException();
11766 return isSetSuccess();
11768 throw new IllegalStateException();
11772 public boolean equals(Object that) {
11775 if (that instanceof setUpdateSource_result)
11776 return this.equals((setUpdateSource_result)that);
11780 public boolean equals(setUpdateSource_result that) {
11784 boolean this_present_success = true;
11785 boolean that_present_success = true;
11786 if (this_present_success || that_present_success) {
11787 if (!(this_present_success && that_present_success))
11789 if (this.success != that.success)
11797 public int hashCode() {
11802 public int compareTo(setUpdateSource_result other) {
11803 if (!getClass().equals(other.getClass())) {
11804 return getClass().getName().compareTo(other.getClass().getName());
11807 int lastComparison = 0;
11809 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11810 if (lastComparison != 0) {
11811 return lastComparison;
11813 if (isSetSuccess()) {
11814 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11815 if (lastComparison != 0) {
11816 return lastComparison;
11822 public _Fields fieldForId(int fieldId) {
11823 return _Fields.findByThriftId(fieldId);
11826 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11827 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11830 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11831 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11835 public String toString() {
11836 StringBuilder sb = new StringBuilder("setUpdateSource_result(");
11837 boolean first = true;
11839 sb.append("success:");
11840 sb.append(this.success);
11843 return sb.toString();
11846 public void validate() throws org.apache.thrift.TException {
11847 // check for required fields
11848 // check for sub-struct validity
11851 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11853 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11854 } catch (org.apache.thrift.TException te) {
11855 throw new java.io.IOException(te);
11859 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11861 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11862 __isset_bitfield = 0;
11863 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11864 } catch (org.apache.thrift.TException te) {
11865 throw new java.io.IOException(te);
11869 private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
11870 public setUpdateSource_resultStandardScheme getScheme() {
11871 return new setUpdateSource_resultStandardScheme();
11875 private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
11877 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11878 org.apache.thrift.protocol.TField schemeField;
11879 iprot.readStructBegin();
11882 schemeField = iprot.readFieldBegin();
11883 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11886 switch (schemeField.id) {
11888 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11889 struct.success = iprot.readI32();
11890 struct.setSuccessIsSet(true);
11892 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11896 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11898 iprot.readFieldEnd();
11900 iprot.readStructEnd();
11902 // check for required fields of primitive type, which can't be checked in the validate method
11906 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11909 oprot.writeStructBegin(STRUCT_DESC);
11910 if (struct.isSetSuccess()) {
11911 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11912 oprot.writeI32(struct.success);
11913 oprot.writeFieldEnd();
11915 oprot.writeFieldStop();
11916 oprot.writeStructEnd();
11921 private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
11922 public setUpdateSource_resultTupleScheme getScheme() {
11923 return new setUpdateSource_resultTupleScheme();
11927 private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
11930 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11931 TTupleProtocol oprot = (TTupleProtocol) prot;
11932 BitSet optionals = new BitSet();
11933 if (struct.isSetSuccess()) {
11936 oprot.writeBitSet(optionals, 1);
11937 if (struct.isSetSuccess()) {
11938 oprot.writeI32(struct.success);
11943 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11944 TTupleProtocol iprot = (TTupleProtocol) prot;
11945 BitSet incoming = iprot.readBitSet(1);
11946 if (incoming.get(0)) {
11947 struct.success = iprot.readI32();
11948 struct.setSuccessIsSet(true);
11955 public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args> {
11956 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
11958 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
11960 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
11962 schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
11963 schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
11966 public String peerIp; // required
11968 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11969 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11970 PEER_IP((short)1, "peerIp");
11972 private static final Map<String, _Fields> byName = new HashMap<>();
11975 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11976 byName.put(field.getFieldName(), field);
11981 * Find the _Fields constant that matches fieldId, or null if its not found.
11983 public static _Fields findByThriftId(int fieldId) {
11993 * Find the _Fields constant that matches fieldId, throwing an exception
11994 * if it is not found.
11996 public static _Fields findByThriftIdOrThrow(int fieldId) {
11997 _Fields fields = findByThriftId(fieldId);
11998 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12003 * Find the _Fields constant that matches name, or null if its not found.
12005 public static _Fields findByName(String name) {
12006 return byName.get(name);
12009 private final short _thriftId;
12010 private final String _fieldName;
12012 _Fields(short thriftId, String fieldName) {
12013 _thriftId = thriftId;
12014 _fieldName = fieldName;
12017 public short getThriftFieldId() {
12021 public String getFieldName() {
12026 // isset id assignments
12027 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12029 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
12030 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
12031 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12032 metaDataMap = Collections.unmodifiableMap(tmpMap);
12033 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
12036 public unsetUpdateSource_args() {
12039 public unsetUpdateSource_args(
12043 this.peerIp = peerIp;
12047 * Performs a deep copy on <i>other</i>.
12049 public unsetUpdateSource_args(unsetUpdateSource_args other) {
12050 if (other.isSetPeerIp()) {
12051 this.peerIp = other.peerIp;
12055 public unsetUpdateSource_args deepCopy() {
12056 return new unsetUpdateSource_args(this);
12060 public void clear() {
12061 this.peerIp = null;
12064 public String getPeerIp() {
12065 return this.peerIp;
12068 public unsetUpdateSource_args setPeerIp(String peerIp) {
12069 this.peerIp = peerIp;
12073 public void unsetPeerIp() {
12074 this.peerIp = null;
12077 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12078 public boolean isSetPeerIp() {
12079 return this.peerIp != null;
12082 public void setPeerIpIsSet(boolean value) {
12084 this.peerIp = null;
12088 public void setFieldValue(_Fields field, Object value) {
12091 if (value == null) {
12094 setPeerIp((String)value);
12101 public Object getFieldValue(_Fields field) {
12104 return getPeerIp();
12107 throw new IllegalStateException();
12110 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12111 public boolean isSet(_Fields field) {
12112 if (field == null) {
12113 throw new IllegalArgumentException();
12118 return isSetPeerIp();
12120 throw new IllegalStateException();
12124 public boolean equals(Object that) {
12127 if (that instanceof unsetUpdateSource_args)
12128 return this.equals((unsetUpdateSource_args)that);
12132 public boolean equals(unsetUpdateSource_args that) {
12136 boolean this_present_peerIp = this.isSetPeerIp();
12137 boolean that_present_peerIp = that.isSetPeerIp();
12138 if (this_present_peerIp || that_present_peerIp) {
12139 if (!(this_present_peerIp && that_present_peerIp))
12141 if (!this.peerIp.equals(that.peerIp))
12149 public int hashCode() {
12154 public int compareTo(unsetUpdateSource_args other) {
12155 if (!getClass().equals(other.getClass())) {
12156 return getClass().getName().compareTo(other.getClass().getName());
12159 int lastComparison = 0;
12161 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12162 if (lastComparison != 0) {
12163 return lastComparison;
12165 if (isSetPeerIp()) {
12166 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12167 if (lastComparison != 0) {
12168 return lastComparison;
12174 public _Fields fieldForId(int fieldId) {
12175 return _Fields.findByThriftId(fieldId);
12178 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12179 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12182 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12183 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12187 public String toString() {
12188 StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
12189 boolean first = true;
12191 sb.append("peerIp:");
12192 if (this.peerIp == null) {
12195 sb.append(this.peerIp);
12199 return sb.toString();
12202 public void validate() throws org.apache.thrift.TException {
12203 // check for required fields
12204 // check for sub-struct validity
12207 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12209 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12210 } catch (org.apache.thrift.TException te) {
12211 throw new java.io.IOException(te);
12215 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12217 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12218 } catch (org.apache.thrift.TException te) {
12219 throw new java.io.IOException(te);
12223 private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
12224 public unsetUpdateSource_argsStandardScheme getScheme() {
12225 return new unsetUpdateSource_argsStandardScheme();
12229 private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
12231 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12232 org.apache.thrift.protocol.TField schemeField;
12233 iprot.readStructBegin();
12236 schemeField = iprot.readFieldBegin();
12237 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12240 switch (schemeField.id) {
12242 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12243 struct.peerIp = iprot.readString();
12244 struct.setPeerIpIsSet(true);
12246 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12250 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12252 iprot.readFieldEnd();
12254 iprot.readStructEnd();
12256 // check for required fields of primitive type, which can't be checked in the validate method
12260 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12263 oprot.writeStructBegin(STRUCT_DESC);
12264 if (struct.peerIp != null) {
12265 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12266 oprot.writeString(struct.peerIp);
12267 oprot.writeFieldEnd();
12269 oprot.writeFieldStop();
12270 oprot.writeStructEnd();
12275 private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
12276 public unsetUpdateSource_argsTupleScheme getScheme() {
12277 return new unsetUpdateSource_argsTupleScheme();
12281 private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
12284 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12285 TTupleProtocol oprot = (TTupleProtocol) prot;
12286 BitSet optionals = new BitSet();
12287 if (struct.isSetPeerIp()) {
12290 oprot.writeBitSet(optionals, 1);
12291 if (struct.isSetPeerIp()) {
12292 oprot.writeString(struct.peerIp);
12297 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12298 TTupleProtocol iprot = (TTupleProtocol) prot;
12299 BitSet incoming = iprot.readBitSet(1);
12300 if (incoming.get(0)) {
12301 struct.peerIp = iprot.readString();
12302 struct.setPeerIpIsSet(true);
12309 public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result> {
12310 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
12312 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
12314 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
12316 schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
12317 schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
12320 public int success; // required
12322 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12323 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12324 SUCCESS((short)0, "success");
12326 private static final Map<String, _Fields> byName = new HashMap<>();
12329 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12330 byName.put(field.getFieldName(), field);
12335 * Find the _Fields constant that matches fieldId, or null if its not found.
12337 public static _Fields findByThriftId(int fieldId) {
12347 * Find the _Fields constant that matches fieldId, throwing an exception
12348 * if it is not found.
12350 public static _Fields findByThriftIdOrThrow(int fieldId) {
12351 _Fields fields = findByThriftId(fieldId);
12352 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12357 * Find the _Fields constant that matches name, or null if its not found.
12359 public static _Fields findByName(String name) {
12360 return byName.get(name);
12363 private final short _thriftId;
12364 private final String _fieldName;
12366 _Fields(short thriftId, String fieldName) {
12367 _thriftId = thriftId;
12368 _fieldName = fieldName;
12371 public short getThriftFieldId() {
12375 public String getFieldName() {
12380 // isset id assignments
12381 private static final int __SUCCESS_ISSET_ID = 0;
12382 private byte __isset_bitfield = 0;
12383 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12385 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
12386 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12387 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12388 metaDataMap = Collections.unmodifiableMap(tmpMap);
12389 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
12392 public unsetUpdateSource_result() {
12395 public unsetUpdateSource_result(
12399 this.success = success;
12400 setSuccessIsSet(true);
12404 * Performs a deep copy on <i>other</i>.
12406 public unsetUpdateSource_result(unsetUpdateSource_result other) {
12407 __isset_bitfield = other.__isset_bitfield;
12408 this.success = other.success;
12411 public unsetUpdateSource_result deepCopy() {
12412 return new unsetUpdateSource_result(this);
12416 public void clear() {
12417 setSuccessIsSet(false);
12421 public int getSuccess() {
12422 return this.success;
12425 public unsetUpdateSource_result setSuccess(int success) {
12426 this.success = success;
12427 setSuccessIsSet(true);
12431 public void unsetSuccess() {
12432 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12435 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12436 public boolean isSetSuccess() {
12437 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12440 public void setSuccessIsSet(boolean value) {
12441 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12444 public void setFieldValue(_Fields field, Object value) {
12447 if (value == null) {
12450 setSuccess((Integer)value);
12457 public Object getFieldValue(_Fields field) {
12460 return Integer.valueOf(getSuccess());
12463 throw new IllegalStateException();
12466 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12467 public boolean isSet(_Fields field) {
12468 if (field == null) {
12469 throw new IllegalArgumentException();
12474 return isSetSuccess();
12476 throw new IllegalStateException();
12480 public boolean equals(Object that) {
12483 if (that instanceof unsetUpdateSource_result)
12484 return this.equals((unsetUpdateSource_result)that);
12488 public boolean equals(unsetUpdateSource_result that) {
12492 boolean this_present_success = true;
12493 boolean that_present_success = true;
12494 if (this_present_success || that_present_success) {
12495 if (!(this_present_success && that_present_success))
12497 if (this.success != that.success)
12505 public int hashCode() {
12510 public int compareTo(unsetUpdateSource_result other) {
12511 if (!getClass().equals(other.getClass())) {
12512 return getClass().getName().compareTo(other.getClass().getName());
12515 int lastComparison = 0;
12517 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12518 if (lastComparison != 0) {
12519 return lastComparison;
12521 if (isSetSuccess()) {
12522 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12523 if (lastComparison != 0) {
12524 return lastComparison;
12530 public _Fields fieldForId(int fieldId) {
12531 return _Fields.findByThriftId(fieldId);
12534 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12535 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12538 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12539 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12543 public String toString() {
12544 StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
12545 boolean first = true;
12547 sb.append("success:");
12548 sb.append(this.success);
12551 return sb.toString();
12554 public void validate() throws org.apache.thrift.TException {
12555 // check for required fields
12556 // check for sub-struct validity
12559 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12561 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12562 } catch (org.apache.thrift.TException te) {
12563 throw new java.io.IOException(te);
12567 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12569 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12570 __isset_bitfield = 0;
12571 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12572 } catch (org.apache.thrift.TException te) {
12573 throw new java.io.IOException(te);
12577 private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
12578 public unsetUpdateSource_resultStandardScheme getScheme() {
12579 return new unsetUpdateSource_resultStandardScheme();
12583 private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
12585 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12586 org.apache.thrift.protocol.TField schemeField;
12587 iprot.readStructBegin();
12590 schemeField = iprot.readFieldBegin();
12591 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12594 switch (schemeField.id) {
12596 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12597 struct.success = iprot.readI32();
12598 struct.setSuccessIsSet(true);
12600 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12604 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12606 iprot.readFieldEnd();
12608 iprot.readStructEnd();
12610 // check for required fields of primitive type, which can't be checked in the validate method
12614 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12617 oprot.writeStructBegin(STRUCT_DESC);
12618 if (struct.isSetSuccess()) {
12619 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12620 oprot.writeI32(struct.success);
12621 oprot.writeFieldEnd();
12623 oprot.writeFieldStop();
12624 oprot.writeStructEnd();
12629 private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
12630 public unsetUpdateSource_resultTupleScheme getScheme() {
12631 return new unsetUpdateSource_resultTupleScheme();
12635 private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
12638 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12639 TTupleProtocol oprot = (TTupleProtocol) prot;
12640 BitSet optionals = new BitSet();
12641 if (struct.isSetSuccess()) {
12644 oprot.writeBitSet(optionals, 1);
12645 if (struct.isSetSuccess()) {
12646 oprot.writeI32(struct.success);
12651 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12652 TTupleProtocol iprot = (TTupleProtocol) prot;
12653 BitSet incoming = iprot.readBitSet(1);
12654 if (incoming.get(0)) {
12655 struct.success = iprot.readI32();
12656 struct.setSuccessIsSet(true);
12663 public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args> {
12664 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
12666 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
12667 private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)2);
12668 private static final org.apache.thrift.protocol.TField SAFI_FIELD_DESC = new org.apache.thrift.protocol.TField("safi", org.apache.thrift.protocol.TType.I32, (short)3);
12670 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
12672 schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
12673 schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
12676 public String peerIp; // required
12681 public af_afi afi; // required
12686 public af_safi safi; // required
12688 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12689 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12690 PEER_IP((short)1, "peerIp"),
12695 AFI((short)2, "afi"),
12700 SAFI((short)3, "safi");
12702 private static final Map<String, _Fields> byName = new HashMap<>();
12705 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12706 byName.put(field.getFieldName(), field);
12711 * Find the _Fields constant that matches fieldId, or null if its not found.
12713 public static _Fields findByThriftId(int fieldId) {
12727 * Find the _Fields constant that matches fieldId, throwing an exception
12728 * if it is not found.
12730 public static _Fields findByThriftIdOrThrow(int fieldId) {
12731 _Fields fields = findByThriftId(fieldId);
12732 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12737 * Find the _Fields constant that matches name, or null if its not found.
12739 public static _Fields findByName(String name) {
12740 return byName.get(name);
12743 private final short _thriftId;
12744 private final String _fieldName;
12746 _Fields(short thriftId, String fieldName) {
12747 _thriftId = thriftId;
12748 _fieldName = fieldName;
12751 public short getThriftFieldId() {
12755 public String getFieldName() {
12760 // isset id assignments
12761 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12763 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
12764 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
12765 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12766 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12767 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12768 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12769 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
12770 metaDataMap = Collections.unmodifiableMap(tmpMap);
12771 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
12774 public enableAddressFamily_args() {
12777 public enableAddressFamily_args(
12783 this.peerIp = peerIp;
12789 * Performs a deep copy on <i>other</i>.
12791 public enableAddressFamily_args(enableAddressFamily_args other) {
12792 if (other.isSetPeerIp()) {
12793 this.peerIp = other.peerIp;
12795 if (other.isSetAfi()) {
12796 this.afi = other.afi;
12798 if (other.isSetSafi()) {
12799 this.safi = other.safi;
12803 public enableAddressFamily_args deepCopy() {
12804 return new enableAddressFamily_args(this);
12808 public void clear() {
12809 this.peerIp = null;
12814 public String getPeerIp() {
12815 return this.peerIp;
12818 public enableAddressFamily_args setPeerIp(String peerIp) {
12819 this.peerIp = peerIp;
12823 public void unsetPeerIp() {
12824 this.peerIp = null;
12827 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12828 public boolean isSetPeerIp() {
12829 return this.peerIp != null;
12832 public void setPeerIpIsSet(boolean value) {
12834 this.peerIp = null;
12842 public af_afi getAfi() {
12850 public enableAddressFamily_args setAfi(af_afi afi) {
12855 public void unsetAfi() {
12859 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12860 public boolean isSetAfi() {
12861 return this.afi != null;
12864 public void setAfiIsSet(boolean value) {
12874 public af_safi getSafi() {
12882 public enableAddressFamily_args setSafi(af_safi safi) {
12887 public void unsetSafi() {
12891 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
12892 public boolean isSetSafi() {
12893 return this.safi != null;
12896 public void setSafiIsSet(boolean value) {
12902 public void setFieldValue(_Fields field, Object value) {
12905 if (value == null) {
12908 setPeerIp((String)value);
12913 if (value == null) {
12916 setAfi((af_afi)value);
12921 if (value == null) {
12924 setSafi((af_safi)value);
12931 public Object getFieldValue(_Fields field) {
12934 return getPeerIp();
12943 throw new IllegalStateException();
12946 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12947 public boolean isSet(_Fields field) {
12948 if (field == null) {
12949 throw new IllegalArgumentException();
12954 return isSetPeerIp();
12958 return isSetSafi();
12960 throw new IllegalStateException();
12964 public boolean equals(Object that) {
12967 if (that instanceof enableAddressFamily_args)
12968 return this.equals((enableAddressFamily_args)that);
12972 public boolean equals(enableAddressFamily_args that) {
12976 boolean this_present_peerIp = this.isSetPeerIp();
12977 boolean that_present_peerIp = that.isSetPeerIp();
12978 if (this_present_peerIp || that_present_peerIp) {
12979 if (!(this_present_peerIp && that_present_peerIp))
12981 if (!this.peerIp.equals(that.peerIp))
12985 boolean this_present_afi = this.isSetAfi();
12986 boolean that_present_afi = that.isSetAfi();
12987 if (this_present_afi || that_present_afi) {
12988 if (!(this_present_afi && that_present_afi))
12990 if (!this.afi.equals(that.afi))
12994 boolean this_present_safi = this.isSetSafi();
12995 boolean that_present_safi = that.isSetSafi();
12996 if (this_present_safi || that_present_safi) {
12997 if (!(this_present_safi && that_present_safi))
12999 if (!this.safi.equals(that.safi))
13007 public int hashCode() {
13012 public int compareTo(enableAddressFamily_args other) {
13013 if (!getClass().equals(other.getClass())) {
13014 return getClass().getName().compareTo(other.getClass().getName());
13017 int lastComparison = 0;
13019 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13020 if (lastComparison != 0) {
13021 return lastComparison;
13023 if (isSetPeerIp()) {
13024 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13025 if (lastComparison != 0) {
13026 return lastComparison;
13029 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13030 if (lastComparison != 0) {
13031 return lastComparison;
13034 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13035 if (lastComparison != 0) {
13036 return lastComparison;
13039 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13040 if (lastComparison != 0) {
13041 return lastComparison;
13044 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13045 if (lastComparison != 0) {
13046 return lastComparison;
13052 public _Fields fieldForId(int fieldId) {
13053 return _Fields.findByThriftId(fieldId);
13056 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13057 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13060 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13061 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13065 public String toString() {
13066 StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
13067 boolean first = true;
13069 sb.append("peerIp:");
13070 if (this.peerIp == null) {
13073 sb.append(this.peerIp);
13076 if (!first) sb.append(", ");
13078 if (this.afi == null) {
13081 sb.append(this.afi);
13084 if (!first) sb.append(", ");
13085 sb.append("safi:");
13086 if (this.safi == null) {
13089 sb.append(this.safi);
13093 return sb.toString();
13096 public void validate() throws org.apache.thrift.TException {
13097 // check for required fields
13098 // check for sub-struct validity
13101 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13103 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13104 } catch (org.apache.thrift.TException te) {
13105 throw new java.io.IOException(te);
13109 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13111 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13112 } catch (org.apache.thrift.TException te) {
13113 throw new java.io.IOException(te);
13117 private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
13118 public enableAddressFamily_argsStandardScheme getScheme() {
13119 return new enableAddressFamily_argsStandardScheme();
13123 private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
13125 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13126 org.apache.thrift.protocol.TField schemeField;
13127 iprot.readStructBegin();
13130 schemeField = iprot.readFieldBegin();
13131 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13134 switch (schemeField.id) {
13136 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13137 struct.peerIp = iprot.readString();
13138 struct.setPeerIpIsSet(true);
13140 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13144 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13145 struct.afi = af_afi.findByValue(iprot.readI32());
13146 struct.setAfiIsSet(true);
13148 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13152 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13153 struct.safi = af_safi.findByValue(iprot.readI32());
13154 struct.setSafiIsSet(true);
13156 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13160 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13162 iprot.readFieldEnd();
13164 iprot.readStructEnd();
13166 // check for required fields of primitive type, which can't be checked in the validate method
13170 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13173 oprot.writeStructBegin(STRUCT_DESC);
13174 if (struct.peerIp != null) {
13175 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13176 oprot.writeString(struct.peerIp);
13177 oprot.writeFieldEnd();
13179 if (struct.afi != null) {
13180 oprot.writeFieldBegin(AFI_FIELD_DESC);
13181 oprot.writeI32(struct.afi.getValue());
13182 oprot.writeFieldEnd();
13184 if (struct.safi != null) {
13185 oprot.writeFieldBegin(SAFI_FIELD_DESC);
13186 oprot.writeI32(struct.safi.getValue());
13187 oprot.writeFieldEnd();
13189 oprot.writeFieldStop();
13190 oprot.writeStructEnd();
13195 private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
13196 public enableAddressFamily_argsTupleScheme getScheme() {
13197 return new enableAddressFamily_argsTupleScheme();
13201 private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
13204 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13205 TTupleProtocol oprot = (TTupleProtocol) prot;
13206 BitSet optionals = new BitSet();
13207 if (struct.isSetPeerIp()) {
13210 if (struct.isSetAfi()) {
13213 if (struct.isSetSafi()) {
13216 oprot.writeBitSet(optionals, 3);
13217 if (struct.isSetPeerIp()) {
13218 oprot.writeString(struct.peerIp);
13220 if (struct.isSetAfi()) {
13221 oprot.writeI32(struct.afi.getValue());
13223 if (struct.isSetSafi()) {
13224 oprot.writeI32(struct.safi.getValue());
13229 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13230 TTupleProtocol iprot = (TTupleProtocol) prot;
13231 BitSet incoming = iprot.readBitSet(3);
13232 if (incoming.get(0)) {
13233 struct.peerIp = iprot.readString();
13234 struct.setPeerIpIsSet(true);
13236 if (incoming.get(1)) {
13237 struct.afi = af_afi.findByValue(iprot.readI32());
13238 struct.setAfiIsSet(true);
13240 if (incoming.get(2)) {
13241 struct.safi = af_safi.findByValue(iprot.readI32());
13242 struct.setSafiIsSet(true);
13249 public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result> {
13250 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
13252 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
13254 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
13256 schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
13257 schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
13260 public int success; // required
13262 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13263 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13264 SUCCESS((short)0, "success");
13266 private static final Map<String, _Fields> byName = new HashMap<>();
13269 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13270 byName.put(field.getFieldName(), field);
13275 * Find the _Fields constant that matches fieldId, or null if its not found.
13277 public static _Fields findByThriftId(int fieldId) {
13287 * Find the _Fields constant that matches fieldId, throwing an exception
13288 * if it is not found.
13290 public static _Fields findByThriftIdOrThrow(int fieldId) {
13291 _Fields fields = findByThriftId(fieldId);
13292 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13297 * Find the _Fields constant that matches name, or null if its not found.
13299 public static _Fields findByName(String name) {
13300 return byName.get(name);
13303 private final short _thriftId;
13304 private final String _fieldName;
13306 _Fields(short thriftId, String fieldName) {
13307 _thriftId = thriftId;
13308 _fieldName = fieldName;
13311 public short getThriftFieldId() {
13315 public String getFieldName() {
13320 // isset id assignments
13321 private static final int __SUCCESS_ISSET_ID = 0;
13322 private byte __isset_bitfield = 0;
13323 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13325 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
13326 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13327 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13328 metaDataMap = Collections.unmodifiableMap(tmpMap);
13329 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
13332 public enableAddressFamily_result() {
13335 public enableAddressFamily_result(
13339 this.success = success;
13340 setSuccessIsSet(true);
13344 * Performs a deep copy on <i>other</i>.
13346 public enableAddressFamily_result(enableAddressFamily_result other) {
13347 __isset_bitfield = other.__isset_bitfield;
13348 this.success = other.success;
13351 public enableAddressFamily_result deepCopy() {
13352 return new enableAddressFamily_result(this);
13356 public void clear() {
13357 setSuccessIsSet(false);
13361 public int getSuccess() {
13362 return this.success;
13365 public enableAddressFamily_result setSuccess(int success) {
13366 this.success = success;
13367 setSuccessIsSet(true);
13371 public void unsetSuccess() {
13372 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13375 /** Returns true if field success is set (has been assigned a value) and false otherwise */
13376 public boolean isSetSuccess() {
13377 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13380 public void setSuccessIsSet(boolean value) {
13381 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13384 public void setFieldValue(_Fields field, Object value) {
13387 if (value == null) {
13390 setSuccess((Integer)value);
13397 public Object getFieldValue(_Fields field) {
13400 return Integer.valueOf(getSuccess());
13403 throw new IllegalStateException();
13406 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13407 public boolean isSet(_Fields field) {
13408 if (field == null) {
13409 throw new IllegalArgumentException();
13414 return isSetSuccess();
13416 throw new IllegalStateException();
13420 public boolean equals(Object that) {
13423 if (that instanceof enableAddressFamily_result)
13424 return this.equals((enableAddressFamily_result)that);
13428 public boolean equals(enableAddressFamily_result that) {
13432 boolean this_present_success = true;
13433 boolean that_present_success = true;
13434 if (this_present_success || that_present_success) {
13435 if (!(this_present_success && that_present_success))
13437 if (this.success != that.success)
13445 public int hashCode() {
13450 public int compareTo(enableAddressFamily_result other) {
13451 if (!getClass().equals(other.getClass())) {
13452 return getClass().getName().compareTo(other.getClass().getName());
13455 int lastComparison = 0;
13457 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13458 if (lastComparison != 0) {
13459 return lastComparison;
13461 if (isSetSuccess()) {
13462 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13463 if (lastComparison != 0) {
13464 return lastComparison;
13470 public _Fields fieldForId(int fieldId) {
13471 return _Fields.findByThriftId(fieldId);
13474 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13475 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13478 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13479 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13483 public String toString() {
13484 StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
13485 boolean first = true;
13487 sb.append("success:");
13488 sb.append(this.success);
13491 return sb.toString();
13494 public void validate() throws org.apache.thrift.TException {
13495 // check for required fields
13496 // check for sub-struct validity
13499 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13501 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13502 } catch (org.apache.thrift.TException te) {
13503 throw new java.io.IOException(te);
13507 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13509 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13510 __isset_bitfield = 0;
13511 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13512 } catch (org.apache.thrift.TException te) {
13513 throw new java.io.IOException(te);
13517 private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
13518 public enableAddressFamily_resultStandardScheme getScheme() {
13519 return new enableAddressFamily_resultStandardScheme();
13523 private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
13525 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13526 org.apache.thrift.protocol.TField schemeField;
13527 iprot.readStructBegin();
13530 schemeField = iprot.readFieldBegin();
13531 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13534 switch (schemeField.id) {
13536 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13537 struct.success = iprot.readI32();
13538 struct.setSuccessIsSet(true);
13540 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13544 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13546 iprot.readFieldEnd();
13548 iprot.readStructEnd();
13550 // check for required fields of primitive type, which can't be checked in the validate method
13554 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13557 oprot.writeStructBegin(STRUCT_DESC);
13558 if (struct.isSetSuccess()) {
13559 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13560 oprot.writeI32(struct.success);
13561 oprot.writeFieldEnd();
13563 oprot.writeFieldStop();
13564 oprot.writeStructEnd();
13569 private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
13570 public enableAddressFamily_resultTupleScheme getScheme() {
13571 return new enableAddressFamily_resultTupleScheme();
13575 private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
13578 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13579 TTupleProtocol oprot = (TTupleProtocol) prot;
13580 BitSet optionals = new BitSet();
13581 if (struct.isSetSuccess()) {
13584 oprot.writeBitSet(optionals, 1);
13585 if (struct.isSetSuccess()) {
13586 oprot.writeI32(struct.success);
13591 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13592 TTupleProtocol iprot = (TTupleProtocol) prot;
13593 BitSet incoming = iprot.readBitSet(1);
13594 if (incoming.get(0)) {
13595 struct.success = iprot.readI32();
13596 struct.setSuccessIsSet(true);
13603 public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args> {
13604 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
13606 private static final org.apache.thrift.protocol.TField PEER_IP_FIELD_DESC = new org.apache.thrift.protocol.TField("peerIp", org.apache.thrift.protocol.TType.STRING, (short)1);
13607 private static final org.apache.thrift.protocol.TField AFI_FIELD_DESC = new org.apache.thrift.protocol.TField("afi", org.apache.thrift.protocol.TType.I32, (short)2);
13608 private static final org.apache.thrift.protocol.TField SAFI_FIELD_DESC = new org.apache.thrift.protocol.TField("safi", org.apache.thrift.protocol.TType.I32, (short)3);
13610 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
13612 schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
13613 schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
13616 public String peerIp; // required
13621 public af_afi afi; // required
13626 public af_safi safi; // required
13628 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13629 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13630 PEER_IP((short)1, "peerIp"),
13635 AFI((short)2, "afi"),
13640 SAFI((short)3, "safi");
13642 private static final Map<String, _Fields> byName = new HashMap<>();
13645 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13646 byName.put(field.getFieldName(), field);
13651 * Find the _Fields constant that matches fieldId, or null if its not found.
13653 public static _Fields findByThriftId(int fieldId) {
13667 * Find the _Fields constant that matches fieldId, throwing an exception
13668 * if it is not found.
13670 public static _Fields findByThriftIdOrThrow(int fieldId) {
13671 _Fields fields = findByThriftId(fieldId);
13672 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13677 * Find the _Fields constant that matches name, or null if its not found.
13679 public static _Fields findByName(String name) {
13680 return byName.get(name);
13683 private final short _thriftId;
13684 private final String _fieldName;
13686 _Fields(short thriftId, String fieldName) {
13687 _thriftId = thriftId;
13688 _fieldName = fieldName;
13691 public short getThriftFieldId() {
13695 public String getFieldName() {
13700 // isset id assignments
13701 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13703 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
13704 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13705 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13706 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
13707 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
13708 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
13709 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
13710 metaDataMap = Collections.unmodifiableMap(tmpMap);
13711 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
13714 public disableAddressFamily_args() {
13717 public disableAddressFamily_args(
13723 this.peerIp = peerIp;
13729 * Performs a deep copy on <i>other</i>.
13731 public disableAddressFamily_args(disableAddressFamily_args other) {
13732 if (other.isSetPeerIp()) {
13733 this.peerIp = other.peerIp;
13735 if (other.isSetAfi()) {
13736 this.afi = other.afi;
13738 if (other.isSetSafi()) {
13739 this.safi = other.safi;
13743 public disableAddressFamily_args deepCopy() {
13744 return new disableAddressFamily_args(this);
13748 public void clear() {
13749 this.peerIp = null;
13754 public String getPeerIp() {
13755 return this.peerIp;
13758 public disableAddressFamily_args setPeerIp(String peerIp) {
13759 this.peerIp = peerIp;
13763 public void unsetPeerIp() {
13764 this.peerIp = null;
13767 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13768 public boolean isSetPeerIp() {
13769 return this.peerIp != null;
13772 public void setPeerIpIsSet(boolean value) {
13774 this.peerIp = null;
13782 public af_afi getAfi() {
13790 public disableAddressFamily_args setAfi(af_afi afi) {
13795 public void unsetAfi() {
13799 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13800 public boolean isSetAfi() {
13801 return this.afi != null;
13804 public void setAfiIsSet(boolean value) {
13814 public af_safi getSafi() {
13822 public disableAddressFamily_args setSafi(af_safi safi) {
13827 public void unsetSafi() {
13831 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
13832 public boolean isSetSafi() {
13833 return this.safi != null;
13836 public void setSafiIsSet(boolean value) {
13842 public void setFieldValue(_Fields field, Object value) {
13845 if (value == null) {
13848 setPeerIp((String)value);
13853 if (value == null) {
13856 setAfi((af_afi)value);
13861 if (value == null) {
13864 setSafi((af_safi)value);
13871 public Object getFieldValue(_Fields field) {
13874 return getPeerIp();
13883 throw new IllegalStateException();
13886 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13887 public boolean isSet(_Fields field) {
13888 if (field == null) {
13889 throw new IllegalArgumentException();
13894 return isSetPeerIp();
13898 return isSetSafi();
13900 throw new IllegalStateException();
13904 public boolean equals(Object that) {
13907 if (that instanceof disableAddressFamily_args)
13908 return this.equals((disableAddressFamily_args)that);
13912 public boolean equals(disableAddressFamily_args that) {
13916 boolean this_present_peerIp = this.isSetPeerIp();
13917 boolean that_present_peerIp = that.isSetPeerIp();
13918 if (this_present_peerIp || that_present_peerIp) {
13919 if (!(this_present_peerIp && that_present_peerIp))
13921 if (!this.peerIp.equals(that.peerIp))
13925 boolean this_present_afi = this.isSetAfi();
13926 boolean that_present_afi = that.isSetAfi();
13927 if (this_present_afi || that_present_afi) {
13928 if (!(this_present_afi && that_present_afi))
13930 if (!this.afi.equals(that.afi))
13934 boolean this_present_safi = this.isSetSafi();
13935 boolean that_present_safi = that.isSetSafi();
13936 if (this_present_safi || that_present_safi) {
13937 if (!(this_present_safi && that_present_safi))
13939 if (!this.safi.equals(that.safi))
13947 public int hashCode() {
13952 public int compareTo(disableAddressFamily_args other) {
13953 if (!getClass().equals(other.getClass())) {
13954 return getClass().getName().compareTo(other.getClass().getName());
13957 int lastComparison = 0;
13959 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13960 if (lastComparison != 0) {
13961 return lastComparison;
13963 if (isSetPeerIp()) {
13964 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13965 if (lastComparison != 0) {
13966 return lastComparison;
13969 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13970 if (lastComparison != 0) {
13971 return lastComparison;
13974 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13975 if (lastComparison != 0) {
13976 return lastComparison;
13979 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13980 if (lastComparison != 0) {
13981 return lastComparison;
13984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13985 if (lastComparison != 0) {
13986 return lastComparison;
13992 public _Fields fieldForId(int fieldId) {
13993 return _Fields.findByThriftId(fieldId);
13996 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13997 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14000 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14001 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14005 public String toString() {
14006 StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
14007 boolean first = true;
14009 sb.append("peerIp:");
14010 if (this.peerIp == null) {
14013 sb.append(this.peerIp);
14016 if (!first) sb.append(", ");
14018 if (this.afi == null) {
14021 sb.append(this.afi);
14024 if (!first) sb.append(", ");
14025 sb.append("safi:");
14026 if (this.safi == null) {
14029 sb.append(this.safi);
14033 return sb.toString();
14036 public void validate() throws org.apache.thrift.TException {
14037 // check for required fields
14038 // check for sub-struct validity
14041 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14043 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14044 } catch (org.apache.thrift.TException te) {
14045 throw new java.io.IOException(te);
14049 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14051 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14052 } catch (org.apache.thrift.TException te) {
14053 throw new java.io.IOException(te);
14057 private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
14058 public disableAddressFamily_argsStandardScheme getScheme() {
14059 return new disableAddressFamily_argsStandardScheme();
14063 private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
14065 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14066 org.apache.thrift.protocol.TField schemeField;
14067 iprot.readStructBegin();
14070 schemeField = iprot.readFieldBegin();
14071 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14074 switch (schemeField.id) {
14076 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14077 struct.peerIp = iprot.readString();
14078 struct.setPeerIpIsSet(true);
14080 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14084 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14085 struct.afi = af_afi.findByValue(iprot.readI32());
14086 struct.setAfiIsSet(true);
14088 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14092 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14093 struct.safi = af_safi.findByValue(iprot.readI32());
14094 struct.setSafiIsSet(true);
14096 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14100 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14102 iprot.readFieldEnd();
14104 iprot.readStructEnd();
14106 // check for required fields of primitive type, which can't be checked in the validate method
14110 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14113 oprot.writeStructBegin(STRUCT_DESC);
14114 if (struct.peerIp != null) {
14115 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14116 oprot.writeString(struct.peerIp);
14117 oprot.writeFieldEnd();
14119 if (struct.afi != null) {
14120 oprot.writeFieldBegin(AFI_FIELD_DESC);
14121 oprot.writeI32(struct.afi.getValue());
14122 oprot.writeFieldEnd();
14124 if (struct.safi != null) {
14125 oprot.writeFieldBegin(SAFI_FIELD_DESC);
14126 oprot.writeI32(struct.safi.getValue());
14127 oprot.writeFieldEnd();
14129 oprot.writeFieldStop();
14130 oprot.writeStructEnd();
14135 private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
14136 public disableAddressFamily_argsTupleScheme getScheme() {
14137 return new disableAddressFamily_argsTupleScheme();
14141 private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
14144 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14145 TTupleProtocol oprot = (TTupleProtocol) prot;
14146 BitSet optionals = new BitSet();
14147 if (struct.isSetPeerIp()) {
14150 if (struct.isSetAfi()) {
14153 if (struct.isSetSafi()) {
14156 oprot.writeBitSet(optionals, 3);
14157 if (struct.isSetPeerIp()) {
14158 oprot.writeString(struct.peerIp);
14160 if (struct.isSetAfi()) {
14161 oprot.writeI32(struct.afi.getValue());
14163 if (struct.isSetSafi()) {
14164 oprot.writeI32(struct.safi.getValue());
14169 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14170 TTupleProtocol iprot = (TTupleProtocol) prot;
14171 BitSet incoming = iprot.readBitSet(3);
14172 if (incoming.get(0)) {
14173 struct.peerIp = iprot.readString();
14174 struct.setPeerIpIsSet(true);
14176 if (incoming.get(1)) {
14177 struct.afi = af_afi.findByValue(iprot.readI32());
14178 struct.setAfiIsSet(true);
14180 if (incoming.get(2)) {
14181 struct.safi = af_safi.findByValue(iprot.readI32());
14182 struct.setSafiIsSet(true);
14189 public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result> {
14190 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
14192 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
14194 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
14196 schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
14197 schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
14200 public int success; // required
14202 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14203 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14204 SUCCESS((short)0, "success");
14206 private static final Map<String, _Fields> byName = new HashMap<>();
14209 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14210 byName.put(field.getFieldName(), field);
14215 * Find the _Fields constant that matches fieldId, or null if its not found.
14217 public static _Fields findByThriftId(int fieldId) {
14227 * Find the _Fields constant that matches fieldId, throwing an exception
14228 * if it is not found.
14230 public static _Fields findByThriftIdOrThrow(int fieldId) {
14231 _Fields fields = findByThriftId(fieldId);
14232 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14237 * Find the _Fields constant that matches name, or null if its not found.
14239 public static _Fields findByName(String name) {
14240 return byName.get(name);
14243 private final short _thriftId;
14244 private final String _fieldName;
14246 _Fields(short thriftId, String fieldName) {
14247 _thriftId = thriftId;
14248 _fieldName = fieldName;
14251 public short getThriftFieldId() {
14255 public String getFieldName() {
14260 // isset id assignments
14261 private static final int __SUCCESS_ISSET_ID = 0;
14262 private byte __isset_bitfield = 0;
14263 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14265 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
14266 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14267 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14268 metaDataMap = Collections.unmodifiableMap(tmpMap);
14269 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
14272 public disableAddressFamily_result() {
14275 public disableAddressFamily_result(
14279 this.success = success;
14280 setSuccessIsSet(true);
14284 * Performs a deep copy on <i>other</i>.
14286 public disableAddressFamily_result(disableAddressFamily_result other) {
14287 __isset_bitfield = other.__isset_bitfield;
14288 this.success = other.success;
14291 public disableAddressFamily_result deepCopy() {
14292 return new disableAddressFamily_result(this);
14296 public void clear() {
14297 setSuccessIsSet(false);
14301 public int getSuccess() {
14302 return this.success;
14305 public disableAddressFamily_result setSuccess(int success) {
14306 this.success = success;
14307 setSuccessIsSet(true);
14311 public void unsetSuccess() {
14312 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14315 /** Returns true if field success is set (has been assigned a value) and false otherwise */
14316 public boolean isSetSuccess() {
14317 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14320 public void setSuccessIsSet(boolean value) {
14321 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14324 public void setFieldValue(_Fields field, Object value) {
14327 if (value == null) {
14330 setSuccess((Integer)value);
14337 public Object getFieldValue(_Fields field) {
14340 return Integer.valueOf(getSuccess());
14343 throw new IllegalStateException();
14346 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14347 public boolean isSet(_Fields field) {
14348 if (field == null) {
14349 throw new IllegalArgumentException();
14354 return isSetSuccess();
14356 throw new IllegalStateException();
14360 public boolean equals(Object that) {
14363 if (that instanceof disableAddressFamily_result)
14364 return this.equals((disableAddressFamily_result)that);
14368 public boolean equals(disableAddressFamily_result that) {
14372 boolean this_present_success = true;
14373 boolean that_present_success = true;
14374 if (this_present_success || that_present_success) {
14375 if (!(this_present_success && that_present_success))
14377 if (this.success != that.success)
14385 public int hashCode() {
14390 public int compareTo(disableAddressFamily_result other) {
14391 if (!getClass().equals(other.getClass())) {
14392 return getClass().getName().compareTo(other.getClass().getName());
14395 int lastComparison = 0;
14397 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14398 if (lastComparison != 0) {
14399 return lastComparison;
14401 if (isSetSuccess()) {
14402 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14403 if (lastComparison != 0) {
14404 return lastComparison;
14410 public _Fields fieldForId(int fieldId) {
14411 return _Fields.findByThriftId(fieldId);
14414 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14415 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14418 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14419 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14423 public String toString() {
14424 StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
14425 boolean first = true;
14427 sb.append("success:");
14428 sb.append(this.success);
14431 return sb.toString();
14434 public void validate() throws org.apache.thrift.TException {
14435 // check for required fields
14436 // check for sub-struct validity
14439 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14441 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14442 } catch (org.apache.thrift.TException te) {
14443 throw new java.io.IOException(te);
14447 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14449 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14450 __isset_bitfield = 0;
14451 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14452 } catch (org.apache.thrift.TException te) {
14453 throw new java.io.IOException(te);
14457 private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
14458 public disableAddressFamily_resultStandardScheme getScheme() {
14459 return new disableAddressFamily_resultStandardScheme();
14463 private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
14465 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14466 org.apache.thrift.protocol.TField schemeField;
14467 iprot.readStructBegin();
14470 schemeField = iprot.readFieldBegin();
14471 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14474 switch (schemeField.id) {
14476 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14477 struct.success = iprot.readI32();
14478 struct.setSuccessIsSet(true);
14480 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14484 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14486 iprot.readFieldEnd();
14488 iprot.readStructEnd();
14490 // check for required fields of primitive type, which can't be checked in the validate method
14494 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14497 oprot.writeStructBegin(STRUCT_DESC);
14498 if (struct.isSetSuccess()) {
14499 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14500 oprot.writeI32(struct.success);
14501 oprot.writeFieldEnd();
14503 oprot.writeFieldStop();
14504 oprot.writeStructEnd();
14509 private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
14510 public disableAddressFamily_resultTupleScheme getScheme() {
14511 return new disableAddressFamily_resultTupleScheme();
14515 private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
14518 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14519 TTupleProtocol oprot = (TTupleProtocol) prot;
14520 BitSet optionals = new BitSet();
14521 if (struct.isSetSuccess()) {
14524 oprot.writeBitSet(optionals, 1);
14525 if (struct.isSetSuccess()) {
14526 oprot.writeI32(struct.success);
14531 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14532 TTupleProtocol iprot = (TTupleProtocol) prot;
14533 BitSet incoming = iprot.readBitSet(1);
14534 if (incoming.get(0)) {
14535 struct.success = iprot.readI32();
14536 struct.setSuccessIsSet(true);
14543 public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args> {
14544 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
14546 private static final org.apache.thrift.protocol.TField LOG_FILE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("logFileName", org.apache.thrift.protocol.TType.STRING, (short)1);
14547 private static final org.apache.thrift.protocol.TField LOG_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("logLevel", org.apache.thrift.protocol.TType.STRING, (short)2);
14549 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
14551 schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
14552 schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
14555 public String logFileName; // required
14556 public String logLevel; // required
14558 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14559 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14560 LOG_FILE_NAME((short)1, "logFileName"),
14561 LOG_LEVEL((short)2, "logLevel");
14563 private static final Map<String, _Fields> byName = new HashMap<>();
14566 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14567 byName.put(field.getFieldName(), field);
14572 * Find the _Fields constant that matches fieldId, or null if its not found.
14574 public static _Fields findByThriftId(int fieldId) {
14576 case 1: // LOG_FILE_NAME
14577 return LOG_FILE_NAME;
14578 case 2: // LOG_LEVEL
14586 * Find the _Fields constant that matches fieldId, throwing an exception
14587 * if it is not found.
14589 public static _Fields findByThriftIdOrThrow(int fieldId) {
14590 _Fields fields = findByThriftId(fieldId);
14591 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14596 * Find the _Fields constant that matches name, or null if its not found.
14598 public static _Fields findByName(String name) {
14599 return byName.get(name);
14602 private final short _thriftId;
14603 private final String _fieldName;
14605 _Fields(short thriftId, String fieldName) {
14606 _thriftId = thriftId;
14607 _fieldName = fieldName;
14610 public short getThriftFieldId() {
14614 public String getFieldName() {
14619 // isset id assignments
14620 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14622 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
14623 tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14624 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14625 tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
14626 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14627 metaDataMap = Collections.unmodifiableMap(tmpMap);
14628 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
14631 public setLogConfig_args() {
14634 public setLogConfig_args(
14635 String logFileName,
14639 this.logFileName = logFileName;
14640 this.logLevel = logLevel;
14644 * Performs a deep copy on <i>other</i>.
14646 public setLogConfig_args(setLogConfig_args other) {
14647 if (other.isSetLogFileName()) {
14648 this.logFileName = other.logFileName;
14650 if (other.isSetLogLevel()) {
14651 this.logLevel = other.logLevel;
14655 public setLogConfig_args deepCopy() {
14656 return new setLogConfig_args(this);
14660 public void clear() {
14661 this.logFileName = null;
14662 this.logLevel = null;
14665 public String getLogFileName() {
14666 return this.logFileName;
14669 public setLogConfig_args setLogFileName(String logFileName) {
14670 this.logFileName = logFileName;
14674 public void unsetLogFileName() {
14675 this.logFileName = null;
14678 /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
14679 public boolean isSetLogFileName() {
14680 return this.logFileName != null;
14683 public void setLogFileNameIsSet(boolean value) {
14685 this.logFileName = null;
14689 public String getLogLevel() {
14690 return this.logLevel;
14693 public setLogConfig_args setLogLevel(String logLevel) {
14694 this.logLevel = logLevel;
14698 public void unsetLogLevel() {
14699 this.logLevel = null;
14702 /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
14703 public boolean isSetLogLevel() {
14704 return this.logLevel != null;
14707 public void setLogLevelIsSet(boolean value) {
14709 this.logLevel = null;
14713 public void setFieldValue(_Fields field, Object value) {
14715 case LOG_FILE_NAME:
14716 if (value == null) {
14717 unsetLogFileName();
14719 setLogFileName((String)value);
14724 if (value == null) {
14727 setLogLevel((String)value);
14734 public Object getFieldValue(_Fields field) {
14736 case LOG_FILE_NAME:
14737 return getLogFileName();
14740 return getLogLevel();
14743 throw new IllegalStateException();
14746 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14747 public boolean isSet(_Fields field) {
14748 if (field == null) {
14749 throw new IllegalArgumentException();
14753 case LOG_FILE_NAME:
14754 return isSetLogFileName();
14756 return isSetLogLevel();
14758 throw new IllegalStateException();
14762 public boolean equals(Object that) {
14765 if (that instanceof setLogConfig_args)
14766 return this.equals((setLogConfig_args)that);
14770 public boolean equals(setLogConfig_args that) {
14774 boolean this_present_logFileName = this.isSetLogFileName();
14775 boolean that_present_logFileName = that.isSetLogFileName();
14776 if (this_present_logFileName || that_present_logFileName) {
14777 if (!(this_present_logFileName && that_present_logFileName))
14779 if (!this.logFileName.equals(that.logFileName))
14783 boolean this_present_logLevel = this.isSetLogLevel();
14784 boolean that_present_logLevel = that.isSetLogLevel();
14785 if (this_present_logLevel || that_present_logLevel) {
14786 if (!(this_present_logLevel && that_present_logLevel))
14788 if (!this.logLevel.equals(that.logLevel))
14796 public int hashCode() {
14801 public int compareTo(setLogConfig_args other) {
14802 if (!getClass().equals(other.getClass())) {
14803 return getClass().getName().compareTo(other.getClass().getName());
14806 int lastComparison = 0;
14808 lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
14809 if (lastComparison != 0) {
14810 return lastComparison;
14812 if (isSetLogFileName()) {
14813 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
14814 if (lastComparison != 0) {
14815 return lastComparison;
14818 lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
14819 if (lastComparison != 0) {
14820 return lastComparison;
14822 if (isSetLogLevel()) {
14823 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
14824 if (lastComparison != 0) {
14825 return lastComparison;
14831 public _Fields fieldForId(int fieldId) {
14832 return _Fields.findByThriftId(fieldId);
14835 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14836 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14839 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14840 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14844 public String toString() {
14845 StringBuilder sb = new StringBuilder("setLogConfig_args(");
14846 boolean first = true;
14848 sb.append("logFileName:");
14849 if (this.logFileName == null) {
14852 sb.append(this.logFileName);
14855 if (!first) sb.append(", ");
14856 sb.append("logLevel:");
14857 if (this.logLevel == null) {
14860 sb.append(this.logLevel);
14864 return sb.toString();
14867 public void validate() throws org.apache.thrift.TException {
14868 // check for required fields
14869 // check for sub-struct validity
14872 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14874 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14875 } catch (org.apache.thrift.TException te) {
14876 throw new java.io.IOException(te);
14880 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14882 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14883 } catch (org.apache.thrift.TException te) {
14884 throw new java.io.IOException(te);
14888 private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
14889 public setLogConfig_argsStandardScheme getScheme() {
14890 return new setLogConfig_argsStandardScheme();
14894 private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
14896 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14897 org.apache.thrift.protocol.TField schemeField;
14898 iprot.readStructBegin();
14901 schemeField = iprot.readFieldBegin();
14902 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14905 switch (schemeField.id) {
14906 case 1: // LOG_FILE_NAME
14907 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14908 struct.logFileName = iprot.readString();
14909 struct.setLogFileNameIsSet(true);
14911 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14914 case 2: // LOG_LEVEL
14915 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14916 struct.logLevel = iprot.readString();
14917 struct.setLogLevelIsSet(true);
14919 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14923 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14925 iprot.readFieldEnd();
14927 iprot.readStructEnd();
14929 // check for required fields of primitive type, which can't be checked in the validate method
14933 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14936 oprot.writeStructBegin(STRUCT_DESC);
14937 if (struct.logFileName != null) {
14938 oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
14939 oprot.writeString(struct.logFileName);
14940 oprot.writeFieldEnd();
14942 if (struct.logLevel != null) {
14943 oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
14944 oprot.writeString(struct.logLevel);
14945 oprot.writeFieldEnd();
14947 oprot.writeFieldStop();
14948 oprot.writeStructEnd();
14953 private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
14954 public setLogConfig_argsTupleScheme getScheme() {
14955 return new setLogConfig_argsTupleScheme();
14959 private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
14962 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14963 TTupleProtocol oprot = (TTupleProtocol) prot;
14964 BitSet optionals = new BitSet();
14965 if (struct.isSetLogFileName()) {
14968 if (struct.isSetLogLevel()) {
14971 oprot.writeBitSet(optionals, 2);
14972 if (struct.isSetLogFileName()) {
14973 oprot.writeString(struct.logFileName);
14975 if (struct.isSetLogLevel()) {
14976 oprot.writeString(struct.logLevel);
14981 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14982 TTupleProtocol iprot = (TTupleProtocol) prot;
14983 BitSet incoming = iprot.readBitSet(2);
14984 if (incoming.get(0)) {
14985 struct.logFileName = iprot.readString();
14986 struct.setLogFileNameIsSet(true);
14988 if (incoming.get(1)) {
14989 struct.logLevel = iprot.readString();
14990 struct.setLogLevelIsSet(true);
14997 public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result> {
14998 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
15000 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
15002 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
15004 schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
15005 schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
15008 public int success; // required
15010 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15011 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15012 SUCCESS((short)0, "success");
15014 private static final Map<String, _Fields> byName = new HashMap<>();
15017 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15018 byName.put(field.getFieldName(), field);
15023 * Find the _Fields constant that matches fieldId, or null if its not found.
15025 public static _Fields findByThriftId(int fieldId) {
15035 * Find the _Fields constant that matches fieldId, throwing an exception
15036 * if it is not found.
15038 public static _Fields findByThriftIdOrThrow(int fieldId) {
15039 _Fields fields = findByThriftId(fieldId);
15040 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15045 * Find the _Fields constant that matches name, or null if its not found.
15047 public static _Fields findByName(String name) {
15048 return byName.get(name);
15051 private final short _thriftId;
15052 private final String _fieldName;
15054 _Fields(short thriftId, String fieldName) {
15055 _thriftId = thriftId;
15056 _fieldName = fieldName;
15059 public short getThriftFieldId() {
15063 public String getFieldName() {
15068 // isset id assignments
15069 private static final int __SUCCESS_ISSET_ID = 0;
15070 private byte __isset_bitfield = 0;
15071 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15073 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
15074 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15075 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15076 metaDataMap = Collections.unmodifiableMap(tmpMap);
15077 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
15080 public setLogConfig_result() {
15083 public setLogConfig_result(
15087 this.success = success;
15088 setSuccessIsSet(true);
15092 * Performs a deep copy on <i>other</i>.
15094 public setLogConfig_result(setLogConfig_result other) {
15095 __isset_bitfield = other.__isset_bitfield;
15096 this.success = other.success;
15099 public setLogConfig_result deepCopy() {
15100 return new setLogConfig_result(this);
15104 public void clear() {
15105 setSuccessIsSet(false);
15109 public int getSuccess() {
15110 return this.success;
15113 public setLogConfig_result setSuccess(int success) {
15114 this.success = success;
15115 setSuccessIsSet(true);
15119 public void unsetSuccess() {
15120 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15123 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15124 public boolean isSetSuccess() {
15125 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15128 public void setSuccessIsSet(boolean value) {
15129 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15132 public void setFieldValue(_Fields field, Object value) {
15135 if (value == null) {
15138 setSuccess((Integer)value);
15145 public Object getFieldValue(_Fields field) {
15148 return Integer.valueOf(getSuccess());
15151 throw new IllegalStateException();
15154 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15155 public boolean isSet(_Fields field) {
15156 if (field == null) {
15157 throw new IllegalArgumentException();
15162 return isSetSuccess();
15164 throw new IllegalStateException();
15168 public boolean equals(Object that) {
15171 if (that instanceof setLogConfig_result)
15172 return this.equals((setLogConfig_result)that);
15176 public boolean equals(setLogConfig_result that) {
15180 boolean this_present_success = true;
15181 boolean that_present_success = true;
15182 if (this_present_success || that_present_success) {
15183 if (!(this_present_success && that_present_success))
15185 if (this.success != that.success)
15193 public int hashCode() {
15198 public int compareTo(setLogConfig_result other) {
15199 if (!getClass().equals(other.getClass())) {
15200 return getClass().getName().compareTo(other.getClass().getName());
15203 int lastComparison = 0;
15205 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15206 if (lastComparison != 0) {
15207 return lastComparison;
15209 if (isSetSuccess()) {
15210 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15211 if (lastComparison != 0) {
15212 return lastComparison;
15218 public _Fields fieldForId(int fieldId) {
15219 return _Fields.findByThriftId(fieldId);
15222 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15223 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15226 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15227 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15231 public String toString() {
15232 StringBuilder sb = new StringBuilder("setLogConfig_result(");
15233 boolean first = true;
15235 sb.append("success:");
15236 sb.append(this.success);
15239 return sb.toString();
15242 public void validate() throws org.apache.thrift.TException {
15243 // check for required fields
15244 // check for sub-struct validity
15247 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15249 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15250 } catch (org.apache.thrift.TException te) {
15251 throw new java.io.IOException(te);
15255 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15257 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15258 __isset_bitfield = 0;
15259 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15260 } catch (org.apache.thrift.TException te) {
15261 throw new java.io.IOException(te);
15265 private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
15266 public setLogConfig_resultStandardScheme getScheme() {
15267 return new setLogConfig_resultStandardScheme();
15271 private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
15273 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15274 org.apache.thrift.protocol.TField schemeField;
15275 iprot.readStructBegin();
15278 schemeField = iprot.readFieldBegin();
15279 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15282 switch (schemeField.id) {
15284 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15285 struct.success = iprot.readI32();
15286 struct.setSuccessIsSet(true);
15288 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15292 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15294 iprot.readFieldEnd();
15296 iprot.readStructEnd();
15298 // check for required fields of primitive type, which can't be checked in the validate method
15302 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15305 oprot.writeStructBegin(STRUCT_DESC);
15306 if (struct.isSetSuccess()) {
15307 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15308 oprot.writeI32(struct.success);
15309 oprot.writeFieldEnd();
15311 oprot.writeFieldStop();
15312 oprot.writeStructEnd();
15317 private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
15318 public setLogConfig_resultTupleScheme getScheme() {
15319 return new setLogConfig_resultTupleScheme();
15323 private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
15326 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15327 TTupleProtocol oprot = (TTupleProtocol) prot;
15328 BitSet optionals = new BitSet();
15329 if (struct.isSetSuccess()) {
15332 oprot.writeBitSet(optionals, 1);
15333 if (struct.isSetSuccess()) {
15334 oprot.writeI32(struct.success);
15339 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15340 TTupleProtocol iprot = (TTupleProtocol) prot;
15341 BitSet incoming = iprot.readBitSet(1);
15342 if (incoming.get(0)) {
15343 struct.success = iprot.readI32();
15344 struct.setSuccessIsSet(true);
15351 public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args> {
15352 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
15354 private static final org.apache.thrift.protocol.TField STALEPATH_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("stalepathTime", org.apache.thrift.protocol.TType.I32, (short)1);
15356 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
15358 schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
15359 schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
15362 public int stalepathTime; // required
15364 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15365 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15366 STALEPATH_TIME((short)1, "stalepathTime");
15368 private static final Map<String, _Fields> byName = new HashMap<>();
15371 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15372 byName.put(field.getFieldName(), field);
15377 * Find the _Fields constant that matches fieldId, or null if its not found.
15379 public static _Fields findByThriftId(int fieldId) {
15381 case 1: // STALEPATH_TIME
15382 return STALEPATH_TIME;
15389 * Find the _Fields constant that matches fieldId, throwing an exception
15390 * if it is not found.
15392 public static _Fields findByThriftIdOrThrow(int fieldId) {
15393 _Fields fields = findByThriftId(fieldId);
15394 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15399 * Find the _Fields constant that matches name, or null if its not found.
15401 public static _Fields findByName(String name) {
15402 return byName.get(name);
15405 private final short _thriftId;
15406 private final String _fieldName;
15408 _Fields(short thriftId, String fieldName) {
15409 _thriftId = thriftId;
15410 _fieldName = fieldName;
15413 public short getThriftFieldId() {
15417 public String getFieldName() {
15422 // isset id assignments
15423 private static final int __STALEPATHTIME_ISSET_ID = 0;
15424 private byte __isset_bitfield = 0;
15425 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15427 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
15428 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
15429 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15430 metaDataMap = Collections.unmodifiableMap(tmpMap);
15431 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
15434 public enableGracefulRestart_args() {
15437 public enableGracefulRestart_args(
15441 this.stalepathTime = stalepathTime;
15442 setStalepathTimeIsSet(true);
15446 * Performs a deep copy on <i>other</i>.
15448 public enableGracefulRestart_args(enableGracefulRestart_args other) {
15449 __isset_bitfield = other.__isset_bitfield;
15450 this.stalepathTime = other.stalepathTime;
15453 public enableGracefulRestart_args deepCopy() {
15454 return new enableGracefulRestart_args(this);
15458 public void clear() {
15459 setStalepathTimeIsSet(false);
15460 this.stalepathTime = 0;
15463 public int getStalepathTime() {
15464 return this.stalepathTime;
15467 public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
15468 this.stalepathTime = stalepathTime;
15469 setStalepathTimeIsSet(true);
15473 public void unsetStalepathTime() {
15474 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15477 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
15478 public boolean isSetStalepathTime() {
15479 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15482 public void setStalepathTimeIsSet(boolean value) {
15483 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
15486 public void setFieldValue(_Fields field, Object value) {
15488 case STALEPATH_TIME:
15489 if (value == null) {
15490 unsetStalepathTime();
15492 setStalepathTime((Integer)value);
15499 public Object getFieldValue(_Fields field) {
15501 case STALEPATH_TIME:
15502 return Integer.valueOf(getStalepathTime());
15505 throw new IllegalStateException();
15508 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15509 public boolean isSet(_Fields field) {
15510 if (field == null) {
15511 throw new IllegalArgumentException();
15515 case STALEPATH_TIME:
15516 return isSetStalepathTime();
15518 throw new IllegalStateException();
15522 public boolean equals(Object that) {
15525 if (that instanceof enableGracefulRestart_args)
15526 return this.equals((enableGracefulRestart_args)that);
15530 public boolean equals(enableGracefulRestart_args that) {
15534 boolean this_present_stalepathTime = true;
15535 boolean that_present_stalepathTime = true;
15536 if (this_present_stalepathTime || that_present_stalepathTime) {
15537 if (!(this_present_stalepathTime && that_present_stalepathTime))
15539 if (this.stalepathTime != that.stalepathTime)
15547 public int hashCode() {
15552 public int compareTo(enableGracefulRestart_args other) {
15553 if (!getClass().equals(other.getClass())) {
15554 return getClass().getName().compareTo(other.getClass().getName());
15557 int lastComparison = 0;
15559 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
15560 if (lastComparison != 0) {
15561 return lastComparison;
15563 if (isSetStalepathTime()) {
15564 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
15565 if (lastComparison != 0) {
15566 return lastComparison;
15572 public _Fields fieldForId(int fieldId) {
15573 return _Fields.findByThriftId(fieldId);
15576 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15577 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15580 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15581 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15585 public String toString() {
15586 StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
15587 boolean first = true;
15589 sb.append("stalepathTime:");
15590 sb.append(this.stalepathTime);
15593 return sb.toString();
15596 public void validate() throws org.apache.thrift.TException {
15597 // check for required fields
15598 // check for sub-struct validity
15601 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15603 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15604 } catch (org.apache.thrift.TException te) {
15605 throw new java.io.IOException(te);
15609 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15611 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15612 __isset_bitfield = 0;
15613 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15614 } catch (org.apache.thrift.TException te) {
15615 throw new java.io.IOException(te);
15619 private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
15620 public enableGracefulRestart_argsStandardScheme getScheme() {
15621 return new enableGracefulRestart_argsStandardScheme();
15625 private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
15627 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15628 org.apache.thrift.protocol.TField schemeField;
15629 iprot.readStructBegin();
15632 schemeField = iprot.readFieldBegin();
15633 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15636 switch (schemeField.id) {
15637 case 1: // STALEPATH_TIME
15638 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15639 struct.stalepathTime = iprot.readI32();
15640 struct.setStalepathTimeIsSet(true);
15642 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15646 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15648 iprot.readFieldEnd();
15650 iprot.readStructEnd();
15652 // check for required fields of primitive type, which can't be checked in the validate method
15656 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15659 oprot.writeStructBegin(STRUCT_DESC);
15660 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
15661 oprot.writeI32(struct.stalepathTime);
15662 oprot.writeFieldEnd();
15663 oprot.writeFieldStop();
15664 oprot.writeStructEnd();
15669 private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
15670 public enableGracefulRestart_argsTupleScheme getScheme() {
15671 return new enableGracefulRestart_argsTupleScheme();
15675 private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
15678 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15679 TTupleProtocol oprot = (TTupleProtocol) prot;
15680 BitSet optionals = new BitSet();
15681 if (struct.isSetStalepathTime()) {
15684 oprot.writeBitSet(optionals, 1);
15685 if (struct.isSetStalepathTime()) {
15686 oprot.writeI32(struct.stalepathTime);
15691 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15692 TTupleProtocol iprot = (TTupleProtocol) prot;
15693 BitSet incoming = iprot.readBitSet(1);
15694 if (incoming.get(0)) {
15695 struct.stalepathTime = iprot.readI32();
15696 struct.setStalepathTimeIsSet(true);
15703 public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result> {
15704 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
15706 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
15708 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
15710 schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
15711 schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
15714 public int success; // required
15716 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15717 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15718 SUCCESS((short)0, "success");
15720 private static final Map<String, _Fields> byName = new HashMap<>();
15723 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15724 byName.put(field.getFieldName(), field);
15729 * Find the _Fields constant that matches fieldId, or null if its not found.
15731 public static _Fields findByThriftId(int fieldId) {
15741 * Find the _Fields constant that matches fieldId, throwing an exception
15742 * if it is not found.
15744 public static _Fields findByThriftIdOrThrow(int fieldId) {
15745 _Fields fields = findByThriftId(fieldId);
15746 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15751 * Find the _Fields constant that matches name, or null if its not found.
15753 public static _Fields findByName(String name) {
15754 return byName.get(name);
15757 private final short _thriftId;
15758 private final String _fieldName;
15760 _Fields(short thriftId, String fieldName) {
15761 _thriftId = thriftId;
15762 _fieldName = fieldName;
15765 public short getThriftFieldId() {
15769 public String getFieldName() {
15774 // isset id assignments
15775 private static final int __SUCCESS_ISSET_ID = 0;
15776 private byte __isset_bitfield = 0;
15777 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15779 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
15780 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15781 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15782 metaDataMap = Collections.unmodifiableMap(tmpMap);
15783 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
15786 public enableGracefulRestart_result() {
15789 public enableGracefulRestart_result(
15793 this.success = success;
15794 setSuccessIsSet(true);
15798 * Performs a deep copy on <i>other</i>.
15800 public enableGracefulRestart_result(enableGracefulRestart_result other) {
15801 __isset_bitfield = other.__isset_bitfield;
15802 this.success = other.success;
15805 public enableGracefulRestart_result deepCopy() {
15806 return new enableGracefulRestart_result(this);
15810 public void clear() {
15811 setSuccessIsSet(false);
15815 public int getSuccess() {
15816 return this.success;
15819 public enableGracefulRestart_result setSuccess(int success) {
15820 this.success = success;
15821 setSuccessIsSet(true);
15825 public void unsetSuccess() {
15826 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15829 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15830 public boolean isSetSuccess() {
15831 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15834 public void setSuccessIsSet(boolean value) {
15835 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15838 public void setFieldValue(_Fields field, Object value) {
15841 if (value == null) {
15844 setSuccess((Integer)value);
15851 public Object getFieldValue(_Fields field) {
15854 return Integer.valueOf(getSuccess());
15857 throw new IllegalStateException();
15860 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15861 public boolean isSet(_Fields field) {
15862 if (field == null) {
15863 throw new IllegalArgumentException();
15868 return isSetSuccess();
15870 throw new IllegalStateException();
15874 public boolean equals(Object that) {
15877 if (that instanceof enableGracefulRestart_result)
15878 return this.equals((enableGracefulRestart_result)that);
15882 public boolean equals(enableGracefulRestart_result that) {
15886 boolean this_present_success = true;
15887 boolean that_present_success = true;
15888 if (this_present_success || that_present_success) {
15889 if (!(this_present_success && that_present_success))
15891 if (this.success != that.success)
15899 public int hashCode() {
15904 public int compareTo(enableGracefulRestart_result other) {
15905 if (!getClass().equals(other.getClass())) {
15906 return getClass().getName().compareTo(other.getClass().getName());
15909 int lastComparison = 0;
15911 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15912 if (lastComparison != 0) {
15913 return lastComparison;
15915 if (isSetSuccess()) {
15916 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15917 if (lastComparison != 0) {
15918 return lastComparison;
15924 public _Fields fieldForId(int fieldId) {
15925 return _Fields.findByThriftId(fieldId);
15928 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15929 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15932 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15933 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15937 public String toString() {
15938 StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
15939 boolean first = true;
15941 sb.append("success:");
15942 sb.append(this.success);
15945 return sb.toString();
15948 public void validate() throws org.apache.thrift.TException {
15949 // check for required fields
15950 // check for sub-struct validity
15953 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15955 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15956 } catch (org.apache.thrift.TException te) {
15957 throw new java.io.IOException(te);
15961 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15963 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15964 __isset_bitfield = 0;
15965 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15966 } catch (org.apache.thrift.TException te) {
15967 throw new java.io.IOException(te);
15971 private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
15972 public enableGracefulRestart_resultStandardScheme getScheme() {
15973 return new enableGracefulRestart_resultStandardScheme();
15977 private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
15979 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
15980 org.apache.thrift.protocol.TField schemeField;
15981 iprot.readStructBegin();
15984 schemeField = iprot.readFieldBegin();
15985 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15988 switch (schemeField.id) {
15990 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15991 struct.success = iprot.readI32();
15992 struct.setSuccessIsSet(true);
15994 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15998 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16000 iprot.readFieldEnd();
16002 iprot.readStructEnd();
16004 // check for required fields of primitive type, which can't be checked in the validate method
16008 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16011 oprot.writeStructBegin(STRUCT_DESC);
16012 if (struct.isSetSuccess()) {
16013 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16014 oprot.writeI32(struct.success);
16015 oprot.writeFieldEnd();
16017 oprot.writeFieldStop();
16018 oprot.writeStructEnd();
16023 private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16024 public enableGracefulRestart_resultTupleScheme getScheme() {
16025 return new enableGracefulRestart_resultTupleScheme();
16029 private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
16032 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16033 TTupleProtocol oprot = (TTupleProtocol) prot;
16034 BitSet optionals = new BitSet();
16035 if (struct.isSetSuccess()) {
16038 oprot.writeBitSet(optionals, 1);
16039 if (struct.isSetSuccess()) {
16040 oprot.writeI32(struct.success);
16045 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16046 TTupleProtocol iprot = (TTupleProtocol) prot;
16047 BitSet incoming = iprot.readBitSet(1);
16048 if (incoming.get(0)) {
16049 struct.success = iprot.readI32();
16050 struct.setSuccessIsSet(true);
16057 public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args> {
16058 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
16061 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
16063 schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
16064 schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
16068 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16069 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16072 private static final Map<String, _Fields> byName = new HashMap<>();
16075 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16076 byName.put(field.getFieldName(), field);
16081 * Find the _Fields constant that matches fieldId, or null if its not found.
16083 public static _Fields findByThriftId(int fieldId) {
16091 * Find the _Fields constant that matches fieldId, throwing an exception
16092 * if it is not found.
16094 public static _Fields findByThriftIdOrThrow(int fieldId) {
16095 _Fields fields = findByThriftId(fieldId);
16096 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16101 * Find the _Fields constant that matches name, or null if its not found.
16103 public static _Fields findByName(String name) {
16104 return byName.get(name);
16107 private final short _thriftId;
16108 private final String _fieldName;
16110 _Fields(short thriftId, String fieldName) {
16111 _thriftId = thriftId;
16112 _fieldName = fieldName;
16115 public short getThriftFieldId() {
16119 public String getFieldName() {
16123 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16125 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
16126 metaDataMap = Collections.unmodifiableMap(tmpMap);
16127 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
16130 public disableGracefulRestart_args() {
16134 * Performs a deep copy on <i>other</i>.
16136 public disableGracefulRestart_args(disableGracefulRestart_args other) {
16139 public disableGracefulRestart_args deepCopy() {
16140 return new disableGracefulRestart_args(this);
16144 public void clear() {
16147 public void setFieldValue(_Fields field, Object value) {
16152 public Object getFieldValue(_Fields field) {
16155 throw new IllegalStateException();
16158 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16159 public boolean isSet(_Fields field) {
16160 if (field == null) {
16161 throw new IllegalArgumentException();
16166 throw new IllegalStateException();
16170 public boolean equals(Object that) {
16173 if (that instanceof disableGracefulRestart_args)
16174 return this.equals((disableGracefulRestart_args)that);
16178 public boolean equals(disableGracefulRestart_args that) {
16186 public int hashCode() {
16191 public int compareTo(disableGracefulRestart_args other) {
16192 if (!getClass().equals(other.getClass())) {
16193 return getClass().getName().compareTo(other.getClass().getName());
16196 int lastComparison = 0;
16201 public _Fields fieldForId(int fieldId) {
16202 return _Fields.findByThriftId(fieldId);
16205 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16206 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16209 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16210 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16214 public String toString() {
16215 StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
16216 boolean first = true;
16219 return sb.toString();
16222 public void validate() throws org.apache.thrift.TException {
16223 // check for required fields
16224 // check for sub-struct validity
16227 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16229 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16230 } catch (org.apache.thrift.TException te) {
16231 throw new java.io.IOException(te);
16235 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16237 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16238 } catch (org.apache.thrift.TException te) {
16239 throw new java.io.IOException(te);
16243 private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
16244 public disableGracefulRestart_argsStandardScheme getScheme() {
16245 return new disableGracefulRestart_argsStandardScheme();
16249 private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
16251 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16252 org.apache.thrift.protocol.TField schemeField;
16253 iprot.readStructBegin();
16256 schemeField = iprot.readFieldBegin();
16257 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16260 switch (schemeField.id) {
16262 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16264 iprot.readFieldEnd();
16266 iprot.readStructEnd();
16268 // check for required fields of primitive type, which can't be checked in the validate method
16272 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16275 oprot.writeStructBegin(STRUCT_DESC);
16276 oprot.writeFieldStop();
16277 oprot.writeStructEnd();
16282 private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
16283 public disableGracefulRestart_argsTupleScheme getScheme() {
16284 return new disableGracefulRestart_argsTupleScheme();
16288 private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
16291 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16292 TTupleProtocol oprot = (TTupleProtocol) prot;
16296 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16297 TTupleProtocol iprot = (TTupleProtocol) prot;
16303 public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result> {
16304 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
16306 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
16308 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
16310 schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
16311 schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
16314 public int success; // required
16316 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16317 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16318 SUCCESS((short)0, "success");
16320 private static final Map<String, _Fields> byName = new HashMap<>();
16323 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16324 byName.put(field.getFieldName(), field);
16329 * Find the _Fields constant that matches fieldId, or null if its not found.
16331 public static _Fields findByThriftId(int fieldId) {
16341 * Find the _Fields constant that matches fieldId, throwing an exception
16342 * if it is not found.
16344 public static _Fields findByThriftIdOrThrow(int fieldId) {
16345 _Fields fields = findByThriftId(fieldId);
16346 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16351 * Find the _Fields constant that matches name, or null if its not found.
16353 public static _Fields findByName(String name) {
16354 return byName.get(name);
16357 private final short _thriftId;
16358 private final String _fieldName;
16360 _Fields(short thriftId, String fieldName) {
16361 _thriftId = thriftId;
16362 _fieldName = fieldName;
16365 public short getThriftFieldId() {
16369 public String getFieldName() {
16374 // isset id assignments
16375 private static final int __SUCCESS_ISSET_ID = 0;
16376 private byte __isset_bitfield = 0;
16377 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16379 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
16380 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16381 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16382 metaDataMap = Collections.unmodifiableMap(tmpMap);
16383 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
16386 public disableGracefulRestart_result() {
16389 public disableGracefulRestart_result(
16393 this.success = success;
16394 setSuccessIsSet(true);
16398 * Performs a deep copy on <i>other</i>.
16400 public disableGracefulRestart_result(disableGracefulRestart_result other) {
16401 __isset_bitfield = other.__isset_bitfield;
16402 this.success = other.success;
16405 public disableGracefulRestart_result deepCopy() {
16406 return new disableGracefulRestart_result(this);
16410 public void clear() {
16411 setSuccessIsSet(false);
16415 public int getSuccess() {
16416 return this.success;
16419 public disableGracefulRestart_result setSuccess(int success) {
16420 this.success = success;
16421 setSuccessIsSet(true);
16425 public void unsetSuccess() {
16426 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16429 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16430 public boolean isSetSuccess() {
16431 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16434 public void setSuccessIsSet(boolean value) {
16435 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16438 public void setFieldValue(_Fields field, Object value) {
16441 if (value == null) {
16444 setSuccess((Integer)value);
16451 public Object getFieldValue(_Fields field) {
16454 return Integer.valueOf(getSuccess());
16457 throw new IllegalStateException();
16460 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16461 public boolean isSet(_Fields field) {
16462 if (field == null) {
16463 throw new IllegalArgumentException();
16468 return isSetSuccess();
16470 throw new IllegalStateException();
16474 public boolean equals(Object that) {
16477 if (that instanceof disableGracefulRestart_result)
16478 return this.equals((disableGracefulRestart_result)that);
16482 public boolean equals(disableGracefulRestart_result that) {
16486 boolean this_present_success = true;
16487 boolean that_present_success = true;
16488 if (this_present_success || that_present_success) {
16489 if (!(this_present_success && that_present_success))
16491 if (this.success != that.success)
16499 public int hashCode() {
16504 public int compareTo(disableGracefulRestart_result other) {
16505 if (!getClass().equals(other.getClass())) {
16506 return getClass().getName().compareTo(other.getClass().getName());
16509 int lastComparison = 0;
16511 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16512 if (lastComparison != 0) {
16513 return lastComparison;
16515 if (isSetSuccess()) {
16516 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16517 if (lastComparison != 0) {
16518 return lastComparison;
16524 public _Fields fieldForId(int fieldId) {
16525 return _Fields.findByThriftId(fieldId);
16528 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16529 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16532 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16533 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16537 public String toString() {
16538 StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
16539 boolean first = true;
16541 sb.append("success:");
16542 sb.append(this.success);
16545 return sb.toString();
16548 public void validate() throws org.apache.thrift.TException {
16549 // check for required fields
16550 // check for sub-struct validity
16553 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16555 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16556 } catch (org.apache.thrift.TException te) {
16557 throw new java.io.IOException(te);
16561 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16563 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16564 __isset_bitfield = 0;
16565 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16566 } catch (org.apache.thrift.TException te) {
16567 throw new java.io.IOException(te);
16571 private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
16572 public disableGracefulRestart_resultStandardScheme getScheme() {
16573 return new disableGracefulRestart_resultStandardScheme();
16577 private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
16579 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16580 org.apache.thrift.protocol.TField schemeField;
16581 iprot.readStructBegin();
16584 schemeField = iprot.readFieldBegin();
16585 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16588 switch (schemeField.id) {
16590 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16591 struct.success = iprot.readI32();
16592 struct.setSuccessIsSet(true);
16594 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16598 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16600 iprot.readFieldEnd();
16602 iprot.readStructEnd();
16604 // check for required fields of primitive type, which can't be checked in the validate method
16608 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16611 oprot.writeStructBegin(STRUCT_DESC);
16612 if (struct.isSetSuccess()) {
16613 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16614 oprot.writeI32(struct.success);
16615 oprot.writeFieldEnd();
16617 oprot.writeFieldStop();
16618 oprot.writeStructEnd();
16623 private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16624 public disableGracefulRestart_resultTupleScheme getScheme() {
16625 return new disableGracefulRestart_resultTupleScheme();
16629 private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
16632 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16633 TTupleProtocol oprot = (TTupleProtocol) prot;
16634 BitSet optionals = new BitSet();
16635 if (struct.isSetSuccess()) {
16638 oprot.writeBitSet(optionals, 1);
16639 if (struct.isSetSuccess()) {
16640 oprot.writeI32(struct.success);
16645 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16646 TTupleProtocol iprot = (TTupleProtocol) prot;
16647 BitSet incoming = iprot.readBitSet(1);
16648 if (incoming.get(0)) {
16649 struct.success = iprot.readI32();
16650 struct.setSuccessIsSet(true);
16657 public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args> {
16658 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
16660 private static final org.apache.thrift.protocol.TField OPTYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("optype", org.apache.thrift.protocol.TType.I32, (short)1);
16661 private static final org.apache.thrift.protocol.TField WIN_SIZE_FIELD_DESC = new org.apache.thrift.protocol.TField("winSize", org.apache.thrift.protocol.TType.I32, (short)2);
16663 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
16665 schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
16666 schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
16669 public int optype; // required
16670 public int winSize; // required
16672 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16673 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16674 OPTYPE((short)1, "optype"),
16675 WIN_SIZE((short)2, "winSize");
16677 private static final Map<String, _Fields> byName = new HashMap<>();
16680 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16681 byName.put(field.getFieldName(), field);
16686 * Find the _Fields constant that matches fieldId, or null if its not found.
16688 public static _Fields findByThriftId(int fieldId) {
16692 case 2: // WIN_SIZE
16700 * Find the _Fields constant that matches fieldId, throwing an exception
16701 * if it is not found.
16703 public static _Fields findByThriftIdOrThrow(int fieldId) {
16704 _Fields fields = findByThriftId(fieldId);
16705 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16710 * Find the _Fields constant that matches name, or null if its not found.
16712 public static _Fields findByName(String name) {
16713 return byName.get(name);
16716 private final short _thriftId;
16717 private final String _fieldName;
16719 _Fields(short thriftId, String fieldName) {
16720 _thriftId = thriftId;
16721 _fieldName = fieldName;
16724 public short getThriftFieldId() {
16728 public String getFieldName() {
16733 // isset id assignments
16734 private static final int __OPTYPE_ISSET_ID = 0;
16735 private static final int __WINSIZE_ISSET_ID = 1;
16736 private byte __isset_bitfield = 0;
16737 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16739 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
16740 tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
16741 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16742 tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
16743 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16744 metaDataMap = Collections.unmodifiableMap(tmpMap);
16745 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
16748 public getRoutes_args() {
16751 public getRoutes_args(
16756 this.optype = optype;
16757 setOptypeIsSet(true);
16758 this.winSize = winSize;
16759 setWinSizeIsSet(true);
16763 * Performs a deep copy on <i>other</i>.
16765 public getRoutes_args(getRoutes_args other) {
16766 __isset_bitfield = other.__isset_bitfield;
16767 this.optype = other.optype;
16768 this.winSize = other.winSize;
16771 public getRoutes_args deepCopy() {
16772 return new getRoutes_args(this);
16776 public void clear() {
16777 setOptypeIsSet(false);
16779 setWinSizeIsSet(false);
16783 public int getOptype() {
16784 return this.optype;
16787 public getRoutes_args setOptype(int optype) {
16788 this.optype = optype;
16789 setOptypeIsSet(true);
16793 public void unsetOptype() {
16794 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16797 /** Returns true if field optype is set (has been assigned a value) and false otherwise */
16798 public boolean isSetOptype() {
16799 return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16802 public void setOptypeIsSet(boolean value) {
16803 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
16806 public int getWinSize() {
16807 return this.winSize;
16810 public getRoutes_args setWinSize(int winSize) {
16811 this.winSize = winSize;
16812 setWinSizeIsSet(true);
16816 public void unsetWinSize() {
16817 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16820 /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
16821 public boolean isSetWinSize() {
16822 return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16825 public void setWinSizeIsSet(boolean value) {
16826 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
16829 public void setFieldValue(_Fields field, Object value) {
16832 if (value == null) {
16835 setOptype((Integer)value);
16840 if (value == null) {
16843 setWinSize((Integer)value);
16850 public Object getFieldValue(_Fields field) {
16853 return Integer.valueOf(getOptype());
16856 return Integer.valueOf(getWinSize());
16859 throw new IllegalStateException();
16862 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16863 public boolean isSet(_Fields field) {
16864 if (field == null) {
16865 throw new IllegalArgumentException();
16870 return isSetOptype();
16872 return isSetWinSize();
16874 throw new IllegalStateException();
16878 public boolean equals(Object that) {
16881 if (that instanceof getRoutes_args)
16882 return this.equals((getRoutes_args)that);
16886 public boolean equals(getRoutes_args that) {
16890 boolean this_present_optype = true;
16891 boolean that_present_optype = true;
16892 if (this_present_optype || that_present_optype) {
16893 if (!(this_present_optype && that_present_optype))
16895 if (this.optype != that.optype)
16899 boolean this_present_winSize = true;
16900 boolean that_present_winSize = true;
16901 if (this_present_winSize || that_present_winSize) {
16902 if (!(this_present_winSize && that_present_winSize))
16904 if (this.winSize != that.winSize)
16912 public int hashCode() {
16917 public int compareTo(getRoutes_args other) {
16918 if (!getClass().equals(other.getClass())) {
16919 return getClass().getName().compareTo(other.getClass().getName());
16922 int lastComparison = 0;
16924 lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
16925 if (lastComparison != 0) {
16926 return lastComparison;
16928 if (isSetOptype()) {
16929 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
16930 if (lastComparison != 0) {
16931 return lastComparison;
16934 lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
16935 if (lastComparison != 0) {
16936 return lastComparison;
16938 if (isSetWinSize()) {
16939 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
16940 if (lastComparison != 0) {
16941 return lastComparison;
16947 public _Fields fieldForId(int fieldId) {
16948 return _Fields.findByThriftId(fieldId);
16951 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16952 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16955 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16956 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16960 public String toString() {
16961 StringBuilder sb = new StringBuilder("getRoutes_args(");
16962 boolean first = true;
16964 sb.append("optype:");
16965 sb.append(this.optype);
16967 if (!first) sb.append(", ");
16968 sb.append("winSize:");
16969 sb.append(this.winSize);
16972 return sb.toString();
16975 public void validate() throws org.apache.thrift.TException {
16976 // check for required fields
16977 // check for sub-struct validity
16980 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16982 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16983 } catch (org.apache.thrift.TException te) {
16984 throw new java.io.IOException(te);
16988 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16990 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16991 __isset_bitfield = 0;
16992 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16993 } catch (org.apache.thrift.TException te) {
16994 throw new java.io.IOException(te);
16998 private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
16999 public getRoutes_argsStandardScheme getScheme() {
17000 return new getRoutes_argsStandardScheme();
17004 private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
17006 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
17007 org.apache.thrift.protocol.TField schemeField;
17008 iprot.readStructBegin();
17011 schemeField = iprot.readFieldBegin();
17012 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17015 switch (schemeField.id) {
17017 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17018 struct.optype = iprot.readI32();
17019 struct.setOptypeIsSet(true);
17021 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17024 case 2: // WIN_SIZE
17025 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17026 struct.winSize = iprot.readI32();
17027 struct.setWinSizeIsSet(true);
17029 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17033 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17035 iprot.readFieldEnd();
17037 iprot.readStructEnd();
17039 // check for required fields of primitive type, which can't be checked in the validate method
17043 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
17046 oprot.writeStructBegin(STRUCT_DESC);
17047 oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
17048 oprot.writeI32(struct.optype);
17049 oprot.writeFieldEnd();
17050 oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
17051 oprot.writeI32(struct.winSize);
17052 oprot.writeFieldEnd();
17053 oprot.writeFieldStop();
17054 oprot.writeStructEnd();
17059 private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
17060 public getRoutes_argsTupleScheme getScheme() {
17061 return new getRoutes_argsTupleScheme();
17065 private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
17068 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17069 TTupleProtocol oprot = (TTupleProtocol) prot;
17070 BitSet optionals = new BitSet();
17071 if (struct.isSetOptype()) {
17074 if (struct.isSetWinSize()) {
17077 oprot.writeBitSet(optionals, 2);
17078 if (struct.isSetOptype()) {
17079 oprot.writeI32(struct.optype);
17081 if (struct.isSetWinSize()) {
17082 oprot.writeI32(struct.winSize);
17087 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17088 TTupleProtocol iprot = (TTupleProtocol) prot;
17089 BitSet incoming = iprot.readBitSet(2);
17090 if (incoming.get(0)) {
17091 struct.optype = iprot.readI32();
17092 struct.setOptypeIsSet(true);
17094 if (incoming.get(1)) {
17095 struct.winSize = iprot.readI32();
17096 struct.setWinSizeIsSet(true);
17103 public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result> {
17104 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
17106 private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
17108 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
17110 schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
17111 schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
17114 public Routes success; // required
17116 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17117 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17118 SUCCESS((short)0, "success");
17120 private static final Map<String, _Fields> byName = new HashMap<>();
17123 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17124 byName.put(field.getFieldName(), field);
17129 * Find the _Fields constant that matches fieldId, or null if its not found.
17131 public static _Fields findByThriftId(int fieldId) {
17141 * Find the _Fields constant that matches fieldId, throwing an exception
17142 * if it is not found.
17144 public static _Fields findByThriftIdOrThrow(int fieldId) {
17145 _Fields fields = findByThriftId(fieldId);
17146 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17151 * Find the _Fields constant that matches name, or null if its not found.
17153 public static _Fields findByName(String name) {
17154 return byName.get(name);
17157 private final short _thriftId;
17158 private final String _fieldName;
17160 _Fields(short thriftId, String fieldName) {
17161 _thriftId = thriftId;
17162 _fieldName = fieldName;
17165 public short getThriftFieldId() {
17169 public String getFieldName() {
17174 // isset id assignments
17175 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17177 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
17178 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17179 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
17180 metaDataMap = Collections.unmodifiableMap(tmpMap);
17181 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
17184 public getRoutes_result() {
17187 public getRoutes_result(
17191 this.success = success;
17195 * Performs a deep copy on <i>other</i>.
17197 public getRoutes_result(getRoutes_result other) {
17198 if (other.isSetSuccess()) {
17199 this.success = new Routes(other.success);
17203 public getRoutes_result deepCopy() {
17204 return new getRoutes_result(this);
17208 public void clear() {
17209 this.success = null;
17212 public Routes getSuccess() {
17213 return this.success;
17216 public getRoutes_result setSuccess(Routes success) {
17217 this.success = success;
17221 public void unsetSuccess() {
17222 this.success = null;
17225 /** Returns true if field success is set (has been assigned a value) and false otherwise */
17226 public boolean isSetSuccess() {
17227 return this.success != null;
17230 public void setSuccessIsSet(boolean value) {
17232 this.success = null;
17236 public void setFieldValue(_Fields field, Object value) {
17239 if (value == null) {
17242 setSuccess((Routes)value);
17249 public Object getFieldValue(_Fields field) {
17252 return getSuccess();
17255 throw new IllegalStateException();
17258 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17259 public boolean isSet(_Fields field) {
17260 if (field == null) {
17261 throw new IllegalArgumentException();
17266 return isSetSuccess();
17268 throw new IllegalStateException();
17272 public boolean equals(Object that) {
17275 if (that instanceof getRoutes_result)
17276 return this.equals((getRoutes_result)that);
17280 public boolean equals(getRoutes_result that) {
17284 boolean this_present_success = this.isSetSuccess();
17285 boolean that_present_success = that.isSetSuccess();
17286 if (this_present_success || that_present_success) {
17287 if (!(this_present_success && that_present_success))
17289 if (!this.success.equals(that.success))
17297 public int hashCode() {
17302 public int compareTo(getRoutes_result other) {
17303 if (!getClass().equals(other.getClass())) {
17304 return getClass().getName().compareTo(other.getClass().getName());
17307 int lastComparison = 0;
17309 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17310 if (lastComparison != 0) {
17311 return lastComparison;
17313 if (isSetSuccess()) {
17314 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17315 if (lastComparison != 0) {
17316 return lastComparison;
17322 public _Fields fieldForId(int fieldId) {
17323 return _Fields.findByThriftId(fieldId);
17326 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17327 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17330 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17331 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17335 public String toString() {
17336 StringBuilder sb = new StringBuilder("getRoutes_result(");
17337 boolean first = true;
17339 sb.append("success:");
17340 if (this.success == null) {
17343 sb.append(this.success);
17347 return sb.toString();
17350 public void validate() throws org.apache.thrift.TException {
17351 // check for required fields
17352 // check for sub-struct validity
17353 if (success != null) {
17354 success.validate();
17358 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17360 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17361 } catch (org.apache.thrift.TException te) {
17362 throw new java.io.IOException(te);
17366 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17368 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17369 } catch (org.apache.thrift.TException te) {
17370 throw new java.io.IOException(te);
17374 private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
17375 public getRoutes_resultStandardScheme getScheme() {
17376 return new getRoutes_resultStandardScheme();
17380 private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
17382 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
17383 org.apache.thrift.protocol.TField schemeField;
17384 iprot.readStructBegin();
17387 schemeField = iprot.readFieldBegin();
17388 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17391 switch (schemeField.id) {
17393 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17394 struct.success = new Routes();
17395 struct.success.read(iprot);
17396 struct.setSuccessIsSet(true);
17398 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17402 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17404 iprot.readFieldEnd();
17406 iprot.readStructEnd();
17408 // check for required fields of primitive type, which can't be checked in the validate method
17412 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
17415 oprot.writeStructBegin(STRUCT_DESC);
17416 if (struct.success != null) {
17417 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17418 struct.success.write(oprot);
17419 oprot.writeFieldEnd();
17421 oprot.writeFieldStop();
17422 oprot.writeStructEnd();
17427 private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
17428 public getRoutes_resultTupleScheme getScheme() {
17429 return new getRoutes_resultTupleScheme();
17433 private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
17436 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17437 TTupleProtocol oprot = (TTupleProtocol) prot;
17438 BitSet optionals = new BitSet();
17439 if (struct.isSetSuccess()) {
17442 oprot.writeBitSet(optionals, 1);
17443 if (struct.isSetSuccess()) {
17444 struct.success.write(oprot);
17449 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17450 TTupleProtocol iprot = (TTupleProtocol) prot;
17451 BitSet incoming = iprot.readBitSet(1);
17452 if (incoming.get(0)) {
17453 struct.success = new Routes();
17454 struct.success.read(iprot);
17455 struct.setSuccessIsSet(true);