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.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.*;
21 import java.util.List;
22 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.EnumMap;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
36 public class BgpConfigurator {
38 public interface Iface {
40 public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException;
42 public int stopBgp(int asNumber) throws org.apache.thrift.TException;
44 public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException;
46 public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
48 public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
50 public int delVrf(String rd) throws org.apache.thrift.TException;
52 public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException;
54 public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException;
56 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
58 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
60 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
62 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
64 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
66 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
68 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
70 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
72 public int disableGracefulRestart() throws org.apache.thrift.TException;
74 public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException;
78 public interface AsyncIface {
80 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;
82 public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
84 public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
86 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
88 public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
90 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
92 public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
94 public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
96 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
98 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
100 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
102 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
104 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
106 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
108 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
110 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
112 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
114 public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
118 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
119 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
121 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
122 return new Client(prot);
124 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
125 return new Client(iprot, oprot);
129 public Client(org.apache.thrift.protocol.TProtocol prot)
134 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
138 public int startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
140 send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit);
141 return recv_startBgp();
144 public void send_startBgp(int asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException
146 startBgp_args args = new startBgp_args();
147 args.setAsNumber(asNumber);
148 args.setRouterId(routerId);
150 args.setHoldTime(holdTime);
151 args.setKeepAliveTime(keepAliveTime);
152 args.setStalepathTime(stalepathTime);
153 args.setAnnounceFbit(announceFbit);
154 sendBase("startBgp", args);
157 public int recv_startBgp() throws org.apache.thrift.TException
159 startBgp_result result = new startBgp_result();
160 receiveBase(result, "startBgp");
161 if (result.isSetSuccess()) {
162 return result.success;
164 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
167 public int stopBgp(int asNumber) throws org.apache.thrift.TException
169 send_stopBgp(asNumber);
170 return recv_stopBgp();
173 public void send_stopBgp(int asNumber) throws org.apache.thrift.TException
175 stopBgp_args args = new stopBgp_args();
176 args.setAsNumber(asNumber);
177 sendBase("stopBgp", args);
180 public int recv_stopBgp() throws org.apache.thrift.TException
182 stopBgp_result result = new stopBgp_result();
183 receiveBase(result, "stopBgp");
184 if (result.isSetSuccess()) {
185 return result.success;
187 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
190 public int createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
192 send_createPeer(ipAddress, asNumber);
193 return recv_createPeer();
196 public void send_createPeer(String ipAddress, int asNumber) throws org.apache.thrift.TException
198 createPeer_args args = new createPeer_args();
199 args.setIpAddress(ipAddress);
200 args.setAsNumber(asNumber);
201 sendBase("createPeer", args);
204 public int recv_createPeer() throws org.apache.thrift.TException
206 createPeer_result result = new createPeer_result();
207 receiveBase(result, "createPeer");
208 if (result.isSetSuccess()) {
209 return result.success;
211 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
214 public int deletePeer(String ipAddress) throws org.apache.thrift.TException
216 send_deletePeer(ipAddress);
217 return recv_deletePeer();
220 public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
222 deletePeer_args args = new deletePeer_args();
223 args.setIpAddress(ipAddress);
224 sendBase("deletePeer", args);
227 public int recv_deletePeer() throws org.apache.thrift.TException
229 deletePeer_result result = new deletePeer_result();
230 receiveBase(result, "deletePeer");
231 if (result.isSetSuccess()) {
232 return result.success;
234 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
237 public int addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
239 send_addVrf(rd, irts, erts);
240 return recv_addVrf();
243 public void send_addVrf(String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
245 addVrf_args args = new addVrf_args();
249 sendBase("addVrf", args);
252 public int recv_addVrf() throws org.apache.thrift.TException
254 addVrf_result result = new addVrf_result();
255 receiveBase(result, "addVrf");
256 if (result.isSetSuccess()) {
257 return result.success;
259 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
262 public int delVrf(String rd) throws org.apache.thrift.TException
265 return recv_delVrf();
268 public void send_delVrf(String rd) throws org.apache.thrift.TException
270 delVrf_args args = new delVrf_args();
272 sendBase("delVrf", args);
275 public int recv_delVrf() throws org.apache.thrift.TException
277 delVrf_result result = new delVrf_result();
278 receiveBase(result, "delVrf");
279 if (result.isSetSuccess()) {
280 return result.success;
282 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
285 public int pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
287 send_pushRoute(prefix, nexthop, rd, label);
288 return recv_pushRoute();
291 public void send_pushRoute(String prefix, String nexthop, String rd, int label) throws org.apache.thrift.TException
293 pushRoute_args args = new pushRoute_args();
294 args.setPrefix(prefix);
295 args.setNexthop(nexthop);
297 args.setLabel(label);
298 sendBase("pushRoute", args);
301 public int recv_pushRoute() throws org.apache.thrift.TException
303 pushRoute_result result = new pushRoute_result();
304 receiveBase(result, "pushRoute");
305 if (result.isSetSuccess()) {
306 return result.success;
308 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
311 public int withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
313 send_withdrawRoute(prefix, rd);
314 return recv_withdrawRoute();
317 public void send_withdrawRoute(String prefix, String rd) throws org.apache.thrift.TException
319 withdrawRoute_args args = new withdrawRoute_args();
320 args.setPrefix(prefix);
322 sendBase("withdrawRoute", args);
325 public int recv_withdrawRoute() throws org.apache.thrift.TException
327 withdrawRoute_result result = new withdrawRoute_result();
328 receiveBase(result, "withdrawRoute");
329 if (result.isSetSuccess()) {
330 return result.success;
332 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
335 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
337 send_setEbgpMultihop(peerIp, nHops);
338 return recv_setEbgpMultihop();
341 public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
343 setEbgpMultihop_args args = new setEbgpMultihop_args();
344 args.setPeerIp(peerIp);
345 args.setNHops(nHops);
346 sendBase("setEbgpMultihop", args);
349 public int recv_setEbgpMultihop() throws org.apache.thrift.TException
351 setEbgpMultihop_result result = new setEbgpMultihop_result();
352 receiveBase(result, "setEbgpMultihop");
353 if (result.isSetSuccess()) {
354 return result.success;
356 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
359 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
361 send_unsetEbgpMultihop(peerIp);
362 return recv_unsetEbgpMultihop();
365 public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
367 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
368 args.setPeerIp(peerIp);
369 sendBase("unsetEbgpMultihop", args);
372 public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
374 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
375 receiveBase(result, "unsetEbgpMultihop");
376 if (result.isSetSuccess()) {
377 return result.success;
379 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
382 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
384 send_setUpdateSource(peerIp, srcIp);
385 return recv_setUpdateSource();
388 public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
390 setUpdateSource_args args = new setUpdateSource_args();
391 args.setPeerIp(peerIp);
392 args.setSrcIp(srcIp);
393 sendBase("setUpdateSource", args);
396 public int recv_setUpdateSource() throws org.apache.thrift.TException
398 setUpdateSource_result result = new setUpdateSource_result();
399 receiveBase(result, "setUpdateSource");
400 if (result.isSetSuccess()) {
401 return result.success;
403 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
406 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
408 send_unsetUpdateSource(peerIp);
409 return recv_unsetUpdateSource();
412 public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
414 unsetUpdateSource_args args = new unsetUpdateSource_args();
415 args.setPeerIp(peerIp);
416 sendBase("unsetUpdateSource", args);
419 public int recv_unsetUpdateSource() throws org.apache.thrift.TException
421 unsetUpdateSource_result result = new unsetUpdateSource_result();
422 receiveBase(result, "unsetUpdateSource");
423 if (result.isSetSuccess()) {
424 return result.success;
426 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
429 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
431 send_enableAddressFamily(peerIp, afi, safi);
432 return recv_enableAddressFamily();
435 public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
437 enableAddressFamily_args args = new enableAddressFamily_args();
438 args.setPeerIp(peerIp);
441 sendBase("enableAddressFamily", args);
444 public int recv_enableAddressFamily() throws org.apache.thrift.TException
446 enableAddressFamily_result result = new enableAddressFamily_result();
447 receiveBase(result, "enableAddressFamily");
448 if (result.isSetSuccess()) {
449 return result.success;
451 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
454 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
456 send_disableAddressFamily(peerIp, afi, safi);
457 return recv_disableAddressFamily();
460 public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
462 disableAddressFamily_args args = new disableAddressFamily_args();
463 args.setPeerIp(peerIp);
466 sendBase("disableAddressFamily", args);
469 public int recv_disableAddressFamily() throws org.apache.thrift.TException
471 disableAddressFamily_result result = new disableAddressFamily_result();
472 receiveBase(result, "disableAddressFamily");
473 if (result.isSetSuccess()) {
474 return result.success;
476 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
479 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
481 send_setLogConfig(logFileName, logLevel);
482 return recv_setLogConfig();
485 public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
487 setLogConfig_args args = new setLogConfig_args();
488 args.setLogFileName(logFileName);
489 args.setLogLevel(logLevel);
490 sendBase("setLogConfig", args);
493 public int recv_setLogConfig() throws org.apache.thrift.TException
495 setLogConfig_result result = new setLogConfig_result();
496 receiveBase(result, "setLogConfig");
497 if (result.isSetSuccess()) {
498 return result.success;
500 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
503 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
505 send_enableGracefulRestart(stalepathTime);
506 return recv_enableGracefulRestart();
509 public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
511 enableGracefulRestart_args args = new enableGracefulRestart_args();
512 args.setStalepathTime(stalepathTime);
513 sendBase("enableGracefulRestart", args);
516 public int recv_enableGracefulRestart() throws org.apache.thrift.TException
518 enableGracefulRestart_result result = new enableGracefulRestart_result();
519 receiveBase(result, "enableGracefulRestart");
520 if (result.isSetSuccess()) {
521 return result.success;
523 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
526 public int disableGracefulRestart() throws org.apache.thrift.TException
528 send_disableGracefulRestart();
529 return recv_disableGracefulRestart();
532 public void send_disableGracefulRestart() throws org.apache.thrift.TException
534 disableGracefulRestart_args args = new disableGracefulRestart_args();
535 sendBase("disableGracefulRestart", args);
538 public int recv_disableGracefulRestart() throws org.apache.thrift.TException
540 disableGracefulRestart_result result = new disableGracefulRestart_result();
541 receiveBase(result, "disableGracefulRestart");
542 if (result.isSetSuccess()) {
543 return result.success;
545 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
548 public Routes getRoutes(int optype, int winSize) throws org.apache.thrift.TException
550 send_getRoutes(optype, winSize);
551 return recv_getRoutes();
554 public void send_getRoutes(int optype, int winSize) throws org.apache.thrift.TException
556 getRoutes_args args = new getRoutes_args();
557 args.setOptype(optype);
558 args.setWinSize(winSize);
559 sendBase("getRoutes", args);
562 public Routes recv_getRoutes() throws org.apache.thrift.TException
564 getRoutes_result result = new getRoutes_result();
565 receiveBase(result, "getRoutes");
566 if (result.isSetSuccess()) {
567 return result.success;
569 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
573 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
574 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
575 private org.apache.thrift.async.TAsyncClientManager clientManager;
576 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
577 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
578 this.clientManager = clientManager;
579 this.protocolFactory = protocolFactory;
581 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
582 return new AsyncClient(protocolFactory, clientManager, transport);
586 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
587 super(protocolFactory, clientManager, transport);
590 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 {
592 startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFbit, resultHandler, this, ___protocolFactory, ___transport);
593 this.___currentMethod = method_call;
594 ___manager.call(method_call);
597 public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
598 private int asNumber;
599 private String routerId;
601 private int holdTime;
602 private int keepAliveTime;
603 private int stalepathTime;
604 private boolean announceFbit;
605 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 {
606 super(client, protocolFactory, transport, resultHandler, false);
607 this.asNumber = asNumber;
608 this.routerId = routerId;
610 this.holdTime = holdTime;
611 this.keepAliveTime = keepAliveTime;
612 this.stalepathTime = stalepathTime;
613 this.announceFbit = announceFbit;
616 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
617 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
618 startBgp_args args = new startBgp_args();
619 args.setAsNumber(asNumber);
620 args.setRouterId(routerId);
622 args.setHoldTime(holdTime);
623 args.setKeepAliveTime(keepAliveTime);
624 args.setStalepathTime(stalepathTime);
625 args.setAnnounceFbit(announceFbit);
627 prot.writeMessageEnd();
630 public int getResult() throws org.apache.thrift.TException {
631 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
632 throw new IllegalStateException("Method call not finished!");
634 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
635 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
636 return (new Client(prot)).recv_startBgp();
640 public void stopBgp(int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
642 stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
643 this.___currentMethod = method_call;
644 ___manager.call(method_call);
647 public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
648 private int asNumber;
649 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 {
650 super(client, protocolFactory, transport, resultHandler, false);
651 this.asNumber = asNumber;
654 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
655 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
656 stopBgp_args args = new stopBgp_args();
657 args.setAsNumber(asNumber);
659 prot.writeMessageEnd();
662 public int getResult() throws org.apache.thrift.TException {
663 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
664 throw new IllegalStateException("Method call not finished!");
666 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
667 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
668 return (new Client(prot)).recv_stopBgp();
672 public void createPeer(String ipAddress, int asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
674 createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
675 this.___currentMethod = method_call;
676 ___manager.call(method_call);
679 public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
680 private String ipAddress;
681 private int asNumber;
682 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 {
683 super(client, protocolFactory, transport, resultHandler, false);
684 this.ipAddress = ipAddress;
685 this.asNumber = asNumber;
688 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
689 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
690 createPeer_args args = new createPeer_args();
691 args.setIpAddress(ipAddress);
692 args.setAsNumber(asNumber);
694 prot.writeMessageEnd();
697 public int getResult() throws org.apache.thrift.TException {
698 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
699 throw new IllegalStateException("Method call not finished!");
701 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
702 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
703 return (new Client(prot)).recv_createPeer();
707 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
709 deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
710 this.___currentMethod = method_call;
711 ___manager.call(method_call);
714 public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
715 private String ipAddress;
716 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 {
717 super(client, protocolFactory, transport, resultHandler, false);
718 this.ipAddress = ipAddress;
721 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
722 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
723 deletePeer_args args = new deletePeer_args();
724 args.setIpAddress(ipAddress);
726 prot.writeMessageEnd();
729 public int getResult() throws org.apache.thrift.TException {
730 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
731 throw new IllegalStateException("Method call not finished!");
733 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
734 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
735 return (new Client(prot)).recv_deletePeer();
739 public void addVrf(String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
741 addVrf_call method_call = new addVrf_call(rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
742 this.___currentMethod = method_call;
743 ___manager.call(method_call);
746 public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
748 private List<String> irts;
749 private List<String> erts;
750 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 {
751 super(client, protocolFactory, transport, resultHandler, false);
757 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
758 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
759 addVrf_args args = new addVrf_args();
764 prot.writeMessageEnd();
767 public int getResult() throws org.apache.thrift.TException {
768 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
769 throw new IllegalStateException("Method call not finished!");
771 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
772 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
773 return (new Client(prot)).recv_addVrf();
777 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
779 delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
780 this.___currentMethod = method_call;
781 ___manager.call(method_call);
784 public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
786 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 {
787 super(client, protocolFactory, transport, resultHandler, false);
791 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
792 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
793 delVrf_args args = new delVrf_args();
796 prot.writeMessageEnd();
799 public int getResult() throws org.apache.thrift.TException {
800 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
801 throw new IllegalStateException("Method call not finished!");
803 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
804 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
805 return (new Client(prot)).recv_delVrf();
809 public void pushRoute(String prefix, String nexthop, String rd, int label, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
811 pushRoute_call method_call = new pushRoute_call(prefix, nexthop, rd, label, resultHandler, this, ___protocolFactory, ___transport);
812 this.___currentMethod = method_call;
813 ___manager.call(method_call);
816 public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
817 private String prefix;
818 private String nexthop;
821 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 {
822 super(client, protocolFactory, transport, resultHandler, false);
823 this.prefix = prefix;
824 this.nexthop = nexthop;
829 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
830 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
831 pushRoute_args args = new pushRoute_args();
832 args.setPrefix(prefix);
833 args.setNexthop(nexthop);
835 args.setLabel(label);
837 prot.writeMessageEnd();
840 public int getResult() throws org.apache.thrift.TException {
841 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
842 throw new IllegalStateException("Method call not finished!");
844 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
845 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
846 return (new Client(prot)).recv_pushRoute();
850 public void withdrawRoute(String prefix, String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
852 withdrawRoute_call method_call = new withdrawRoute_call(prefix, rd, resultHandler, this, ___protocolFactory, ___transport);
853 this.___currentMethod = method_call;
854 ___manager.call(method_call);
857 public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
858 private String prefix;
860 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 {
861 super(client, protocolFactory, transport, resultHandler, false);
862 this.prefix = prefix;
866 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
867 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
868 withdrawRoute_args args = new withdrawRoute_args();
869 args.setPrefix(prefix);
872 prot.writeMessageEnd();
875 public int getResult() throws org.apache.thrift.TException {
876 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
877 throw new IllegalStateException("Method call not finished!");
879 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
880 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
881 return (new Client(prot)).recv_withdrawRoute();
885 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
887 setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
888 this.___currentMethod = method_call;
889 ___manager.call(method_call);
892 public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
893 private String peerIp;
895 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 {
896 super(client, protocolFactory, transport, resultHandler, false);
897 this.peerIp = peerIp;
901 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
903 setEbgpMultihop_args args = new setEbgpMultihop_args();
904 args.setPeerIp(peerIp);
905 args.setNHops(nHops);
907 prot.writeMessageEnd();
910 public int getResult() throws org.apache.thrift.TException {
911 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
912 throw new IllegalStateException("Method call not finished!");
914 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
915 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
916 return (new Client(prot)).recv_setEbgpMultihop();
920 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
922 unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
923 this.___currentMethod = method_call;
924 ___manager.call(method_call);
927 public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
928 private String peerIp;
929 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 {
930 super(client, protocolFactory, transport, resultHandler, false);
931 this.peerIp = peerIp;
934 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
935 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
936 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
937 args.setPeerIp(peerIp);
939 prot.writeMessageEnd();
942 public int getResult() throws org.apache.thrift.TException {
943 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
944 throw new IllegalStateException("Method call not finished!");
946 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
947 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
948 return (new Client(prot)).recv_unsetEbgpMultihop();
952 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
954 setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
955 this.___currentMethod = method_call;
956 ___manager.call(method_call);
959 public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
960 private String peerIp;
961 private String srcIp;
962 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 {
963 super(client, protocolFactory, transport, resultHandler, false);
964 this.peerIp = peerIp;
968 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
969 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
970 setUpdateSource_args args = new setUpdateSource_args();
971 args.setPeerIp(peerIp);
972 args.setSrcIp(srcIp);
974 prot.writeMessageEnd();
977 public int getResult() throws org.apache.thrift.TException {
978 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
979 throw new IllegalStateException("Method call not finished!");
981 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
982 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
983 return (new Client(prot)).recv_setUpdateSource();
987 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
989 unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
990 this.___currentMethod = method_call;
991 ___manager.call(method_call);
994 public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
995 private String peerIp;
996 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 {
997 super(client, protocolFactory, transport, resultHandler, false);
998 this.peerIp = peerIp;
1001 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1002 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1003 unsetUpdateSource_args args = new unsetUpdateSource_args();
1004 args.setPeerIp(peerIp);
1006 prot.writeMessageEnd();
1009 public int getResult() throws org.apache.thrift.TException {
1010 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1011 throw new IllegalStateException("Method call not finished!");
1013 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1014 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1015 return (new Client(prot)).recv_unsetUpdateSource();
1019 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1021 enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1022 this.___currentMethod = method_call;
1023 ___manager.call(method_call);
1026 public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1027 private String peerIp;
1029 private af_safi safi;
1030 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 {
1031 super(client, protocolFactory, transport, resultHandler, false);
1032 this.peerIp = peerIp;
1037 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1038 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1039 enableAddressFamily_args args = new enableAddressFamily_args();
1040 args.setPeerIp(peerIp);
1044 prot.writeMessageEnd();
1047 public int getResult() throws org.apache.thrift.TException {
1048 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1049 throw new IllegalStateException("Method call not finished!");
1051 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1052 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1053 return (new Client(prot)).recv_enableAddressFamily();
1057 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1059 disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1060 this.___currentMethod = method_call;
1061 ___manager.call(method_call);
1064 public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1065 private String peerIp;
1067 private af_safi safi;
1068 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 {
1069 super(client, protocolFactory, transport, resultHandler, false);
1070 this.peerIp = peerIp;
1075 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1076 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1077 disableAddressFamily_args args = new disableAddressFamily_args();
1078 args.setPeerIp(peerIp);
1082 prot.writeMessageEnd();
1085 public int getResult() throws org.apache.thrift.TException {
1086 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1087 throw new IllegalStateException("Method call not finished!");
1089 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1090 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1091 return (new Client(prot)).recv_disableAddressFamily();
1095 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1097 setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1098 this.___currentMethod = method_call;
1099 ___manager.call(method_call);
1102 public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1103 private String logFileName;
1104 private String logLevel;
1105 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 {
1106 super(client, protocolFactory, transport, resultHandler, false);
1107 this.logFileName = logFileName;
1108 this.logLevel = logLevel;
1111 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1112 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1113 setLogConfig_args args = new setLogConfig_args();
1114 args.setLogFileName(logFileName);
1115 args.setLogLevel(logLevel);
1117 prot.writeMessageEnd();
1120 public int getResult() throws org.apache.thrift.TException {
1121 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1122 throw new IllegalStateException("Method call not finished!");
1124 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1125 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1126 return (new Client(prot)).recv_setLogConfig();
1130 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1132 enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1133 this.___currentMethod = method_call;
1134 ___manager.call(method_call);
1137 public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1138 private int stalepathTime;
1139 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 {
1140 super(client, protocolFactory, transport, resultHandler, false);
1141 this.stalepathTime = stalepathTime;
1144 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1145 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1146 enableGracefulRestart_args args = new enableGracefulRestart_args();
1147 args.setStalepathTime(stalepathTime);
1149 prot.writeMessageEnd();
1152 public int getResult() throws org.apache.thrift.TException {
1153 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1154 throw new IllegalStateException("Method call not finished!");
1156 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1157 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1158 return (new Client(prot)).recv_enableGracefulRestart();
1162 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1164 disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1165 this.___currentMethod = method_call;
1166 ___manager.call(method_call);
1169 public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1170 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 {
1171 super(client, protocolFactory, transport, resultHandler, false);
1174 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1175 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1176 disableGracefulRestart_args args = new disableGracefulRestart_args();
1178 prot.writeMessageEnd();
1181 public int getResult() throws org.apache.thrift.TException {
1182 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1183 throw new IllegalStateException("Method call not finished!");
1185 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1186 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1187 return (new Client(prot)).recv_disableGracefulRestart();
1191 public void getRoutes(int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1193 getRoutes_call method_call = new getRoutes_call(optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1194 this.___currentMethod = method_call;
1195 ___manager.call(method_call);
1198 public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1200 private int winSize;
1201 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 {
1202 super(client, protocolFactory, transport, resultHandler, false);
1203 this.optype = optype;
1204 this.winSize = winSize;
1207 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1208 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1209 getRoutes_args args = new getRoutes_args();
1210 args.setOptype(optype);
1211 args.setWinSize(winSize);
1213 prot.writeMessageEnd();
1216 public Routes getResult() throws org.apache.thrift.TException {
1217 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1218 throw new IllegalStateException("Method call not finished!");
1220 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1221 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1222 return (new Client(prot)).recv_getRoutes();
1228 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1229 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1230 public Processor(I iface) {
1231 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1234 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1235 super(iface, getProcessMap(processMap));
1238 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) {
1239 processMap.put("startBgp", new startBgp());
1240 processMap.put("stopBgp", new stopBgp());
1241 processMap.put("createPeer", new createPeer());
1242 processMap.put("deletePeer", new deletePeer());
1243 processMap.put("addVrf", new addVrf());
1244 processMap.put("delVrf", new delVrf());
1245 processMap.put("pushRoute", new pushRoute());
1246 processMap.put("withdrawRoute", new withdrawRoute());
1247 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1248 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1249 processMap.put("setUpdateSource", new setUpdateSource());
1250 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1251 processMap.put("enableAddressFamily", new enableAddressFamily());
1252 processMap.put("disableAddressFamily", new disableAddressFamily());
1253 processMap.put("setLogConfig", new setLogConfig());
1254 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1255 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1256 processMap.put("getRoutes", new getRoutes());
1260 public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1265 public startBgp_args getEmptyArgsInstance() {
1266 return new startBgp_args();
1269 protected boolean isOneway() {
1273 public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1274 startBgp_result result = new startBgp_result();
1275 result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit);
1276 result.setSuccessIsSet(true);
1281 public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1286 public stopBgp_args getEmptyArgsInstance() {
1287 return new stopBgp_args();
1290 protected boolean isOneway() {
1294 public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1295 stopBgp_result result = new stopBgp_result();
1296 result.success = iface.stopBgp(args.asNumber);
1297 result.setSuccessIsSet(true);
1302 public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1303 public createPeer() {
1304 super("createPeer");
1307 public createPeer_args getEmptyArgsInstance() {
1308 return new createPeer_args();
1311 protected boolean isOneway() {
1315 public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1316 createPeer_result result = new createPeer_result();
1317 result.success = iface.createPeer(args.ipAddress, args.asNumber);
1318 result.setSuccessIsSet(true);
1323 public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1324 public deletePeer() {
1325 super("deletePeer");
1328 public deletePeer_args getEmptyArgsInstance() {
1329 return new deletePeer_args();
1332 protected boolean isOneway() {
1336 public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1337 deletePeer_result result = new deletePeer_result();
1338 result.success = iface.deletePeer(args.ipAddress);
1339 result.setSuccessIsSet(true);
1344 public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1349 public addVrf_args getEmptyArgsInstance() {
1350 return new addVrf_args();
1353 protected boolean isOneway() {
1357 public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1358 addVrf_result result = new addVrf_result();
1359 result.success = iface.addVrf(args.rd, args.irts, args.erts);
1360 result.setSuccessIsSet(true);
1365 public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1370 public delVrf_args getEmptyArgsInstance() {
1371 return new delVrf_args();
1374 protected boolean isOneway() {
1378 public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1379 delVrf_result result = new delVrf_result();
1380 result.success = iface.delVrf(args.rd);
1381 result.setSuccessIsSet(true);
1386 public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1387 public pushRoute() {
1391 public pushRoute_args getEmptyArgsInstance() {
1392 return new pushRoute_args();
1395 protected boolean isOneway() {
1399 public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1400 pushRoute_result result = new pushRoute_result();
1401 result.success = iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label);
1402 result.setSuccessIsSet(true);
1407 public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1408 public withdrawRoute() {
1409 super("withdrawRoute");
1412 public withdrawRoute_args getEmptyArgsInstance() {
1413 return new withdrawRoute_args();
1416 protected boolean isOneway() {
1420 public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1421 withdrawRoute_result result = new withdrawRoute_result();
1422 result.success = iface.withdrawRoute(args.prefix, args.rd);
1423 result.setSuccessIsSet(true);
1428 public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1429 public setEbgpMultihop() {
1430 super("setEbgpMultihop");
1433 public setEbgpMultihop_args getEmptyArgsInstance() {
1434 return new setEbgpMultihop_args();
1437 protected boolean isOneway() {
1441 public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1442 setEbgpMultihop_result result = new setEbgpMultihop_result();
1443 result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1444 result.setSuccessIsSet(true);
1449 public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1450 public unsetEbgpMultihop() {
1451 super("unsetEbgpMultihop");
1454 public unsetEbgpMultihop_args getEmptyArgsInstance() {
1455 return new unsetEbgpMultihop_args();
1458 protected boolean isOneway() {
1462 public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1463 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1464 result.success = iface.unsetEbgpMultihop(args.peerIp);
1465 result.setSuccessIsSet(true);
1470 public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1471 public setUpdateSource() {
1472 super("setUpdateSource");
1475 public setUpdateSource_args getEmptyArgsInstance() {
1476 return new setUpdateSource_args();
1479 protected boolean isOneway() {
1483 public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1484 setUpdateSource_result result = new setUpdateSource_result();
1485 result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1486 result.setSuccessIsSet(true);
1491 public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1492 public unsetUpdateSource() {
1493 super("unsetUpdateSource");
1496 public unsetUpdateSource_args getEmptyArgsInstance() {
1497 return new unsetUpdateSource_args();
1500 protected boolean isOneway() {
1504 public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1505 unsetUpdateSource_result result = new unsetUpdateSource_result();
1506 result.success = iface.unsetUpdateSource(args.peerIp);
1507 result.setSuccessIsSet(true);
1512 public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1513 public enableAddressFamily() {
1514 super("enableAddressFamily");
1517 public enableAddressFamily_args getEmptyArgsInstance() {
1518 return new enableAddressFamily_args();
1521 protected boolean isOneway() {
1525 public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1526 enableAddressFamily_result result = new enableAddressFamily_result();
1527 result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1528 result.setSuccessIsSet(true);
1533 public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1534 public disableAddressFamily() {
1535 super("disableAddressFamily");
1538 public disableAddressFamily_args getEmptyArgsInstance() {
1539 return new disableAddressFamily_args();
1542 protected boolean isOneway() {
1546 public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1547 disableAddressFamily_result result = new disableAddressFamily_result();
1548 result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1549 result.setSuccessIsSet(true);
1554 public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1555 public setLogConfig() {
1556 super("setLogConfig");
1559 public setLogConfig_args getEmptyArgsInstance() {
1560 return new setLogConfig_args();
1563 protected boolean isOneway() {
1567 public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1568 setLogConfig_result result = new setLogConfig_result();
1569 result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1570 result.setSuccessIsSet(true);
1575 public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1576 public enableGracefulRestart() {
1577 super("enableGracefulRestart");
1580 public enableGracefulRestart_args getEmptyArgsInstance() {
1581 return new enableGracefulRestart_args();
1584 protected boolean isOneway() {
1588 public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1589 enableGracefulRestart_result result = new enableGracefulRestart_result();
1590 result.success = iface.enableGracefulRestart(args.stalepathTime);
1591 result.setSuccessIsSet(true);
1596 public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1597 public disableGracefulRestart() {
1598 super("disableGracefulRestart");
1601 public disableGracefulRestart_args getEmptyArgsInstance() {
1602 return new disableGracefulRestart_args();
1605 protected boolean isOneway() {
1609 public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1610 disableGracefulRestart_result result = new disableGracefulRestart_result();
1611 result.success = iface.disableGracefulRestart();
1612 result.setSuccessIsSet(true);
1617 public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1618 public getRoutes() {
1622 public getRoutes_args getEmptyArgsInstance() {
1623 return new getRoutes_args();
1626 protected boolean isOneway() {
1630 public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1631 getRoutes_result result = new getRoutes_result();
1632 result.success = iface.getRoutes(args.optype, args.winSize);
1639 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
1640 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
1641 public AsyncProcessor(I iface) {
1642 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
1645 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
1646 super(iface, getProcessMap(processMap));
1649 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) {
1650 processMap.put("startBgp", new startBgp());
1651 processMap.put("stopBgp", new stopBgp());
1652 processMap.put("createPeer", new createPeer());
1653 processMap.put("deletePeer", new deletePeer());
1654 processMap.put("addVrf", new addVrf());
1655 processMap.put("delVrf", new delVrf());
1656 processMap.put("pushRoute", new pushRoute());
1657 processMap.put("withdrawRoute", new withdrawRoute());
1658 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1659 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1660 processMap.put("setUpdateSource", new setUpdateSource());
1661 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1662 processMap.put("enableAddressFamily", new enableAddressFamily());
1663 processMap.put("disableAddressFamily", new disableAddressFamily());
1664 processMap.put("setLogConfig", new setLogConfig());
1665 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1666 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1667 processMap.put("getRoutes", new getRoutes());
1671 public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
1676 public startBgp_args getEmptyArgsInstance() {
1677 return new startBgp_args();
1680 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1681 final org.apache.thrift.AsyncProcessFunction fcall = this;
1682 return new AsyncMethodCallback<Integer>() {
1683 public void onComplete(Integer o) {
1684 startBgp_result result = new startBgp_result();
1686 result.setSuccessIsSet(true);
1688 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1690 } catch (Exception e) {
1691 LOGGER.error("Exception writing to internal frame buffer", e);
1695 public void onError(Exception e) {
1696 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1697 org.apache.thrift.TBase msg;
1698 startBgp_result result = new startBgp_result();
1700 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1701 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1704 fcall.sendResponse(fb,msg,msgType,seqid);
1706 } catch (Exception ex) {
1707 LOGGER.error("Exception writing to internal frame buffer", ex);
1714 protected boolean isOneway() {
1718 public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1719 iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFbit,resultHandler);
1723 public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
1728 public stopBgp_args getEmptyArgsInstance() {
1729 return new stopBgp_args();
1732 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1733 final org.apache.thrift.AsyncProcessFunction fcall = this;
1734 return new AsyncMethodCallback<Integer>() {
1735 public void onComplete(Integer o) {
1736 stopBgp_result result = new stopBgp_result();
1738 result.setSuccessIsSet(true);
1740 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1742 } catch (Exception e) {
1743 LOGGER.error("Exception writing to internal frame buffer", e);
1747 public void onError(Exception e) {
1748 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1749 org.apache.thrift.TBase msg;
1750 stopBgp_result result = new stopBgp_result();
1752 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1753 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1756 fcall.sendResponse(fb,msg,msgType,seqid);
1758 } catch (Exception ex) {
1759 LOGGER.error("Exception writing to internal frame buffer", ex);
1766 protected boolean isOneway() {
1770 public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1771 iface.stopBgp(args.asNumber,resultHandler);
1775 public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
1776 public createPeer() {
1777 super("createPeer");
1780 public createPeer_args getEmptyArgsInstance() {
1781 return new createPeer_args();
1784 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1785 final org.apache.thrift.AsyncProcessFunction fcall = this;
1786 return new AsyncMethodCallback<Integer>() {
1787 public void onComplete(Integer o) {
1788 createPeer_result result = new createPeer_result();
1790 result.setSuccessIsSet(true);
1792 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1794 } catch (Exception e) {
1795 LOGGER.error("Exception writing to internal frame buffer", e);
1799 public void onError(Exception e) {
1800 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1801 org.apache.thrift.TBase msg;
1802 createPeer_result result = new createPeer_result();
1804 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1805 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1808 fcall.sendResponse(fb,msg,msgType,seqid);
1810 } catch (Exception ex) {
1811 LOGGER.error("Exception writing to internal frame buffer", ex);
1818 protected boolean isOneway() {
1822 public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1823 iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
1827 public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
1828 public deletePeer() {
1829 super("deletePeer");
1832 public deletePeer_args getEmptyArgsInstance() {
1833 return new deletePeer_args();
1836 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1837 final org.apache.thrift.AsyncProcessFunction fcall = this;
1838 return new AsyncMethodCallback<Integer>() {
1839 public void onComplete(Integer o) {
1840 deletePeer_result result = new deletePeer_result();
1842 result.setSuccessIsSet(true);
1844 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1846 } catch (Exception e) {
1847 LOGGER.error("Exception writing to internal frame buffer", e);
1851 public void onError(Exception e) {
1852 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1853 org.apache.thrift.TBase msg;
1854 deletePeer_result result = new deletePeer_result();
1856 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1857 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1860 fcall.sendResponse(fb,msg,msgType,seqid);
1862 } catch (Exception ex) {
1863 LOGGER.error("Exception writing to internal frame buffer", ex);
1870 protected boolean isOneway() {
1874 public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1875 iface.deletePeer(args.ipAddress,resultHandler);
1879 public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
1884 public addVrf_args getEmptyArgsInstance() {
1885 return new addVrf_args();
1888 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1889 final org.apache.thrift.AsyncProcessFunction fcall = this;
1890 return new AsyncMethodCallback<Integer>() {
1891 public void onComplete(Integer o) {
1892 addVrf_result result = new addVrf_result();
1894 result.setSuccessIsSet(true);
1896 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1898 } catch (Exception e) {
1899 LOGGER.error("Exception writing to internal frame buffer", e);
1903 public void onError(Exception e) {
1904 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1905 org.apache.thrift.TBase msg;
1906 addVrf_result result = new addVrf_result();
1908 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1909 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1912 fcall.sendResponse(fb,msg,msgType,seqid);
1914 } catch (Exception ex) {
1915 LOGGER.error("Exception writing to internal frame buffer", ex);
1922 protected boolean isOneway() {
1926 public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1927 iface.addVrf(args.rd, args.irts, args.erts,resultHandler);
1931 public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
1936 public delVrf_args getEmptyArgsInstance() {
1937 return new delVrf_args();
1940 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1941 final org.apache.thrift.AsyncProcessFunction fcall = this;
1942 return new AsyncMethodCallback<Integer>() {
1943 public void onComplete(Integer o) {
1944 delVrf_result result = new delVrf_result();
1946 result.setSuccessIsSet(true);
1948 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
1950 } catch (Exception e) {
1951 LOGGER.error("Exception writing to internal frame buffer", e);
1955 public void onError(Exception e) {
1956 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
1957 org.apache.thrift.TBase msg;
1958 delVrf_result result = new delVrf_result();
1960 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
1961 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
1964 fcall.sendResponse(fb,msg,msgType,seqid);
1966 } catch (Exception ex) {
1967 LOGGER.error("Exception writing to internal frame buffer", ex);
1974 protected boolean isOneway() {
1978 public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
1979 iface.delVrf(args.rd,resultHandler);
1983 public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
1984 public pushRoute() {
1988 public pushRoute_args getEmptyArgsInstance() {
1989 return new pushRoute_args();
1992 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
1993 final org.apache.thrift.AsyncProcessFunction fcall = this;
1994 return new AsyncMethodCallback<Integer>() {
1995 public void onComplete(Integer o) {
1996 pushRoute_result result = new pushRoute_result();
1998 result.setSuccessIsSet(true);
2000 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2002 } catch (Exception e) {
2003 LOGGER.error("Exception writing to internal frame buffer", e);
2007 public void onError(Exception e) {
2008 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2009 org.apache.thrift.TBase msg;
2010 pushRoute_result result = new pushRoute_result();
2012 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2013 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2016 fcall.sendResponse(fb,msg,msgType,seqid);
2018 } catch (Exception ex) {
2019 LOGGER.error("Exception writing to internal frame buffer", ex);
2026 protected boolean isOneway() {
2030 public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2031 iface.pushRoute(args.prefix, args.nexthop, args.rd, args.label,resultHandler);
2035 public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2036 public withdrawRoute() {
2037 super("withdrawRoute");
2040 public withdrawRoute_args getEmptyArgsInstance() {
2041 return new withdrawRoute_args();
2044 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2045 final org.apache.thrift.AsyncProcessFunction fcall = this;
2046 return new AsyncMethodCallback<Integer>() {
2047 public void onComplete(Integer o) {
2048 withdrawRoute_result result = new withdrawRoute_result();
2050 result.setSuccessIsSet(true);
2052 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2054 } catch (Exception e) {
2055 LOGGER.error("Exception writing to internal frame buffer", e);
2059 public void onError(Exception e) {
2060 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2061 org.apache.thrift.TBase msg;
2062 withdrawRoute_result result = new withdrawRoute_result();
2064 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2065 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2068 fcall.sendResponse(fb,msg,msgType,seqid);
2070 } catch (Exception ex) {
2071 LOGGER.error("Exception writing to internal frame buffer", ex);
2078 protected boolean isOneway() {
2082 public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2083 iface.withdrawRoute(args.prefix, args.rd,resultHandler);
2087 public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2088 public setEbgpMultihop() {
2089 super("setEbgpMultihop");
2092 public setEbgpMultihop_args getEmptyArgsInstance() {
2093 return new setEbgpMultihop_args();
2096 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2097 final org.apache.thrift.AsyncProcessFunction fcall = this;
2098 return new AsyncMethodCallback<Integer>() {
2099 public void onComplete(Integer o) {
2100 setEbgpMultihop_result result = new setEbgpMultihop_result();
2102 result.setSuccessIsSet(true);
2104 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2106 } catch (Exception e) {
2107 LOGGER.error("Exception writing to internal frame buffer", e);
2111 public void onError(Exception e) {
2112 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2113 org.apache.thrift.TBase msg;
2114 setEbgpMultihop_result result = new setEbgpMultihop_result();
2116 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2117 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2120 fcall.sendResponse(fb,msg,msgType,seqid);
2122 } catch (Exception ex) {
2123 LOGGER.error("Exception writing to internal frame buffer", ex);
2130 protected boolean isOneway() {
2134 public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2135 iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2139 public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2140 public unsetEbgpMultihop() {
2141 super("unsetEbgpMultihop");
2144 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2145 return new unsetEbgpMultihop_args();
2148 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2149 final org.apache.thrift.AsyncProcessFunction fcall = this;
2150 return new AsyncMethodCallback<Integer>() {
2151 public void onComplete(Integer o) {
2152 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2154 result.setSuccessIsSet(true);
2156 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2158 } catch (Exception e) {
2159 LOGGER.error("Exception writing to internal frame buffer", e);
2163 public void onError(Exception e) {
2164 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2165 org.apache.thrift.TBase msg;
2166 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2168 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2169 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2172 fcall.sendResponse(fb,msg,msgType,seqid);
2174 } catch (Exception ex) {
2175 LOGGER.error("Exception writing to internal frame buffer", ex);
2182 protected boolean isOneway() {
2186 public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2187 iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2191 public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2192 public setUpdateSource() {
2193 super("setUpdateSource");
2196 public setUpdateSource_args getEmptyArgsInstance() {
2197 return new setUpdateSource_args();
2200 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2201 final org.apache.thrift.AsyncProcessFunction fcall = this;
2202 return new AsyncMethodCallback<Integer>() {
2203 public void onComplete(Integer o) {
2204 setUpdateSource_result result = new setUpdateSource_result();
2206 result.setSuccessIsSet(true);
2208 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2210 } catch (Exception e) {
2211 LOGGER.error("Exception writing to internal frame buffer", e);
2215 public void onError(Exception e) {
2216 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2217 org.apache.thrift.TBase msg;
2218 setUpdateSource_result result = new setUpdateSource_result();
2220 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2221 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2224 fcall.sendResponse(fb,msg,msgType,seqid);
2226 } catch (Exception ex) {
2227 LOGGER.error("Exception writing to internal frame buffer", ex);
2234 protected boolean isOneway() {
2238 public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2239 iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2243 public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2244 public unsetUpdateSource() {
2245 super("unsetUpdateSource");
2248 public unsetUpdateSource_args getEmptyArgsInstance() {
2249 return new unsetUpdateSource_args();
2252 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2253 final org.apache.thrift.AsyncProcessFunction fcall = this;
2254 return new AsyncMethodCallback<Integer>() {
2255 public void onComplete(Integer o) {
2256 unsetUpdateSource_result result = new unsetUpdateSource_result();
2258 result.setSuccessIsSet(true);
2260 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2262 } catch (Exception e) {
2263 LOGGER.error("Exception writing to internal frame buffer", e);
2267 public void onError(Exception e) {
2268 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2269 org.apache.thrift.TBase msg;
2270 unsetUpdateSource_result result = new unsetUpdateSource_result();
2272 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2273 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2276 fcall.sendResponse(fb,msg,msgType,seqid);
2278 } catch (Exception ex) {
2279 LOGGER.error("Exception writing to internal frame buffer", ex);
2286 protected boolean isOneway() {
2290 public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2291 iface.unsetUpdateSource(args.peerIp,resultHandler);
2295 public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2296 public enableAddressFamily() {
2297 super("enableAddressFamily");
2300 public enableAddressFamily_args getEmptyArgsInstance() {
2301 return new enableAddressFamily_args();
2304 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2305 final org.apache.thrift.AsyncProcessFunction fcall = this;
2306 return new AsyncMethodCallback<Integer>() {
2307 public void onComplete(Integer o) {
2308 enableAddressFamily_result result = new enableAddressFamily_result();
2310 result.setSuccessIsSet(true);
2312 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2314 } catch (Exception e) {
2315 LOGGER.error("Exception writing to internal frame buffer", e);
2319 public void onError(Exception e) {
2320 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2321 org.apache.thrift.TBase msg;
2322 enableAddressFamily_result result = new enableAddressFamily_result();
2324 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2325 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2328 fcall.sendResponse(fb,msg,msgType,seqid);
2330 } catch (Exception ex) {
2331 LOGGER.error("Exception writing to internal frame buffer", ex);
2338 protected boolean isOneway() {
2342 public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2343 iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2347 public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2348 public disableAddressFamily() {
2349 super("disableAddressFamily");
2352 public disableAddressFamily_args getEmptyArgsInstance() {
2353 return new disableAddressFamily_args();
2356 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2357 final org.apache.thrift.AsyncProcessFunction fcall = this;
2358 return new AsyncMethodCallback<Integer>() {
2359 public void onComplete(Integer o) {
2360 disableAddressFamily_result result = new disableAddressFamily_result();
2362 result.setSuccessIsSet(true);
2364 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2366 } catch (Exception e) {
2367 LOGGER.error("Exception writing to internal frame buffer", e);
2371 public void onError(Exception e) {
2372 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2373 org.apache.thrift.TBase msg;
2374 disableAddressFamily_result result = new disableAddressFamily_result();
2376 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2377 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2380 fcall.sendResponse(fb,msg,msgType,seqid);
2382 } catch (Exception ex) {
2383 LOGGER.error("Exception writing to internal frame buffer", ex);
2390 protected boolean isOneway() {
2394 public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2395 iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2399 public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2400 public setLogConfig() {
2401 super("setLogConfig");
2404 public setLogConfig_args getEmptyArgsInstance() {
2405 return new setLogConfig_args();
2408 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2409 final org.apache.thrift.AsyncProcessFunction fcall = this;
2410 return new AsyncMethodCallback<Integer>() {
2411 public void onComplete(Integer o) {
2412 setLogConfig_result result = new setLogConfig_result();
2414 result.setSuccessIsSet(true);
2416 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2418 } catch (Exception e) {
2419 LOGGER.error("Exception writing to internal frame buffer", e);
2423 public void onError(Exception e) {
2424 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2425 org.apache.thrift.TBase msg;
2426 setLogConfig_result result = new setLogConfig_result();
2428 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2429 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2432 fcall.sendResponse(fb,msg,msgType,seqid);
2434 } catch (Exception ex) {
2435 LOGGER.error("Exception writing to internal frame buffer", ex);
2442 protected boolean isOneway() {
2446 public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2447 iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2451 public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2452 public enableGracefulRestart() {
2453 super("enableGracefulRestart");
2456 public enableGracefulRestart_args getEmptyArgsInstance() {
2457 return new enableGracefulRestart_args();
2460 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2461 final org.apache.thrift.AsyncProcessFunction fcall = this;
2462 return new AsyncMethodCallback<Integer>() {
2463 public void onComplete(Integer o) {
2464 enableGracefulRestart_result result = new enableGracefulRestart_result();
2466 result.setSuccessIsSet(true);
2468 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2470 } catch (Exception e) {
2471 LOGGER.error("Exception writing to internal frame buffer", e);
2475 public void onError(Exception e) {
2476 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2477 org.apache.thrift.TBase msg;
2478 enableGracefulRestart_result result = new enableGracefulRestart_result();
2480 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2481 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2484 fcall.sendResponse(fb,msg,msgType,seqid);
2486 } catch (Exception ex) {
2487 LOGGER.error("Exception writing to internal frame buffer", ex);
2494 protected boolean isOneway() {
2498 public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2499 iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2503 public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2504 public disableGracefulRestart() {
2505 super("disableGracefulRestart");
2508 public disableGracefulRestart_args getEmptyArgsInstance() {
2509 return new disableGracefulRestart_args();
2512 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2513 final org.apache.thrift.AsyncProcessFunction fcall = this;
2514 return new AsyncMethodCallback<Integer>() {
2515 public void onComplete(Integer o) {
2516 disableGracefulRestart_result result = new disableGracefulRestart_result();
2518 result.setSuccessIsSet(true);
2520 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2522 } catch (Exception e) {
2523 LOGGER.error("Exception writing to internal frame buffer", e);
2527 public void onError(Exception e) {
2528 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2529 org.apache.thrift.TBase msg;
2530 disableGracefulRestart_result result = new disableGracefulRestart_result();
2532 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2533 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2536 fcall.sendResponse(fb,msg,msgType,seqid);
2538 } catch (Exception ex) {
2539 LOGGER.error("Exception writing to internal frame buffer", ex);
2546 protected boolean isOneway() {
2550 public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2551 iface.disableGracefulRestart(resultHandler);
2555 public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
2556 public getRoutes() {
2560 public getRoutes_args getEmptyArgsInstance() {
2561 return new getRoutes_args();
2564 public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2565 final org.apache.thrift.AsyncProcessFunction fcall = this;
2566 return new AsyncMethodCallback<Routes>() {
2567 public void onComplete(Routes o) {
2568 getRoutes_result result = new getRoutes_result();
2571 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2573 } catch (Exception e) {
2574 LOGGER.error("Exception writing to internal frame buffer", e);
2578 public void onError(Exception e) {
2579 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2580 org.apache.thrift.TBase msg;
2581 getRoutes_result result = new getRoutes_result();
2583 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2584 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2587 fcall.sendResponse(fb,msg,msgType,seqid);
2589 } catch (Exception ex) {
2590 LOGGER.error("Exception writing to internal frame buffer", ex);
2597 protected boolean isOneway() {
2601 public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
2602 iface.getRoutes(args.optype, args.winSize,resultHandler);
2608 public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args> {
2609 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
2611 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);
2612 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);
2613 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);
2614 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);
2615 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);
2616 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);
2617 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);
2619 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
2621 schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
2622 schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
2625 public int asNumber; // required
2626 public String routerId; // required
2627 public int port; // required
2628 public int holdTime; // required
2629 public int keepAliveTime; // required
2630 public int stalepathTime; // required
2631 public boolean announceFbit; // required
2633 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2634 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2635 AS_NUMBER((short)1, "asNumber"),
2636 ROUTER_ID((short)2, "routerId"),
2637 PORT((short)3, "port"),
2638 HOLD_TIME((short)4, "holdTime"),
2639 KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
2640 STALEPATH_TIME((short)6, "stalepathTime"),
2641 ANNOUNCE_FBIT((short)7, "announceFbit");
2643 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2646 for (_Fields field : EnumSet.allOf(_Fields.class)) {
2647 byName.put(field.getFieldName(), field);
2652 * Find the _Fields constant that matches fieldId, or null if its not found.
2654 public static _Fields findByThriftId(int fieldId) {
2656 case 1: // AS_NUMBER
2658 case 2: // ROUTER_ID
2662 case 4: // HOLD_TIME
2664 case 5: // KEEP_ALIVE_TIME
2665 return KEEP_ALIVE_TIME;
2666 case 6: // STALEPATH_TIME
2667 return STALEPATH_TIME;
2668 case 7: // ANNOUNCE_FBIT
2669 return ANNOUNCE_FBIT;
2676 * Find the _Fields constant that matches fieldId, throwing an exception
2677 * if it is not found.
2679 public static _Fields findByThriftIdOrThrow(int fieldId) {
2680 _Fields fields = findByThriftId(fieldId);
2681 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2686 * Find the _Fields constant that matches name, or null if its not found.
2688 public static _Fields findByName(String name) {
2689 return byName.get(name);
2692 private final short _thriftId;
2693 private final String _fieldName;
2695 _Fields(short thriftId, String fieldName) {
2696 _thriftId = thriftId;
2697 _fieldName = fieldName;
2700 public short getThriftFieldId() {
2704 public String getFieldName() {
2709 // isset id assignments
2710 private static final int __ASNUMBER_ISSET_ID = 0;
2711 private static final int __PORT_ISSET_ID = 1;
2712 private static final int __HOLDTIME_ISSET_ID = 2;
2713 private static final int __KEEPALIVETIME_ISSET_ID = 3;
2714 private static final int __STALEPATHTIME_ISSET_ID = 4;
2715 private static final int __ANNOUNCEFBIT_ISSET_ID = 5;
2716 private byte __isset_bitfield = 0;
2717 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2719 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2720 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
2721 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2722 tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
2723 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2724 tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
2725 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2726 tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2727 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2728 tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2729 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2730 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
2731 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
2732 tmpMap.put(_Fields.ANNOUNCE_FBIT, new org.apache.thrift.meta_data.FieldMetaData("announceFbit", org.apache.thrift.TFieldRequirementType.DEFAULT,
2733 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
2734 metaDataMap = Collections.unmodifiableMap(tmpMap);
2735 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
2738 public startBgp_args() {
2741 public startBgp_args(
2748 boolean announceFbit)
2751 this.asNumber = asNumber;
2752 setAsNumberIsSet(true);
2753 this.routerId = routerId;
2756 this.holdTime = holdTime;
2757 setHoldTimeIsSet(true);
2758 this.keepAliveTime = keepAliveTime;
2759 setKeepAliveTimeIsSet(true);
2760 this.stalepathTime = stalepathTime;
2761 setStalepathTimeIsSet(true);
2762 this.announceFbit = announceFbit;
2763 setAnnounceFbitIsSet(true);
2767 * Performs a deep copy on <i>other</i>.
2769 public startBgp_args(startBgp_args other) {
2770 __isset_bitfield = other.__isset_bitfield;
2771 this.asNumber = other.asNumber;
2772 if (other.isSetRouterId()) {
2773 this.routerId = other.routerId;
2775 this.port = other.port;
2776 this.holdTime = other.holdTime;
2777 this.keepAliveTime = other.keepAliveTime;
2778 this.stalepathTime = other.stalepathTime;
2779 this.announceFbit = other.announceFbit;
2782 public startBgp_args deepCopy() {
2783 return new startBgp_args(this);
2787 public void clear() {
2788 setAsNumberIsSet(false);
2790 this.routerId = null;
2791 setPortIsSet(false);
2793 setHoldTimeIsSet(false);
2795 setKeepAliveTimeIsSet(false);
2796 this.keepAliveTime = 0;
2797 setStalepathTimeIsSet(false);
2798 this.stalepathTime = 0;
2799 setAnnounceFbitIsSet(false);
2800 this.announceFbit = false;
2803 public int getAsNumber() {
2804 return this.asNumber;
2807 public startBgp_args setAsNumber(int asNumber) {
2808 this.asNumber = asNumber;
2809 setAsNumberIsSet(true);
2813 public void unsetAsNumber() {
2814 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2817 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
2818 public boolean isSetAsNumber() {
2819 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
2822 public void setAsNumberIsSet(boolean value) {
2823 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
2826 public String getRouterId() {
2827 return this.routerId;
2830 public startBgp_args setRouterId(String routerId) {
2831 this.routerId = routerId;
2835 public void unsetRouterId() {
2836 this.routerId = null;
2839 /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
2840 public boolean isSetRouterId() {
2841 return this.routerId != null;
2844 public void setRouterIdIsSet(boolean value) {
2846 this.routerId = null;
2850 public int getPort() {
2854 public startBgp_args setPort(int port) {
2860 public void unsetPort() {
2861 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
2864 /** Returns true if field port is set (has been assigned a value) and false otherwise */
2865 public boolean isSetPort() {
2866 return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
2869 public void setPortIsSet(boolean value) {
2870 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
2873 public int getHoldTime() {
2874 return this.holdTime;
2877 public startBgp_args setHoldTime(int holdTime) {
2878 this.holdTime = holdTime;
2879 setHoldTimeIsSet(true);
2883 public void unsetHoldTime() {
2884 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2887 /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
2888 public boolean isSetHoldTime() {
2889 return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
2892 public void setHoldTimeIsSet(boolean value) {
2893 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
2896 public int getKeepAliveTime() {
2897 return this.keepAliveTime;
2900 public startBgp_args setKeepAliveTime(int keepAliveTime) {
2901 this.keepAliveTime = keepAliveTime;
2902 setKeepAliveTimeIsSet(true);
2906 public void unsetKeepAliveTime() {
2907 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2910 /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
2911 public boolean isSetKeepAliveTime() {
2912 return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
2915 public void setKeepAliveTimeIsSet(boolean value) {
2916 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
2919 public int getStalepathTime() {
2920 return this.stalepathTime;
2923 public startBgp_args setStalepathTime(int stalepathTime) {
2924 this.stalepathTime = stalepathTime;
2925 setStalepathTimeIsSet(true);
2929 public void unsetStalepathTime() {
2930 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2933 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
2934 public boolean isSetStalepathTime() {
2935 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
2938 public void setStalepathTimeIsSet(boolean value) {
2939 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
2942 public boolean isAnnounceFbit() {
2943 return this.announceFbit;
2946 public startBgp_args setAnnounceFbit(boolean announceFbit) {
2947 this.announceFbit = announceFbit;
2948 setAnnounceFbitIsSet(true);
2952 public void unsetAnnounceFbit() {
2953 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2956 /** Returns true if field announceFbit is set (has been assigned a value) and false otherwise */
2957 public boolean isSetAnnounceFbit() {
2958 return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID);
2961 public void setAnnounceFbitIsSet(boolean value) {
2962 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFBIT_ISSET_ID, value);
2965 public void setFieldValue(_Fields field, Object value) {
2968 if (value == null) {
2971 setAsNumber((Integer)value);
2976 if (value == null) {
2979 setRouterId((String)value);
2984 if (value == null) {
2987 setPort((Integer)value);
2992 if (value == null) {
2995 setHoldTime((Integer)value);
2999 case KEEP_ALIVE_TIME:
3000 if (value == null) {
3001 unsetKeepAliveTime();
3003 setKeepAliveTime((Integer)value);
3007 case STALEPATH_TIME:
3008 if (value == null) {
3009 unsetStalepathTime();
3011 setStalepathTime((Integer)value);
3016 if (value == null) {
3017 unsetAnnounceFbit();
3019 setAnnounceFbit((Boolean)value);
3026 public Object getFieldValue(_Fields field) {
3029 return Integer.valueOf(getAsNumber());
3032 return getRouterId();
3035 return Integer.valueOf(getPort());
3038 return Integer.valueOf(getHoldTime());
3040 case KEEP_ALIVE_TIME:
3041 return Integer.valueOf(getKeepAliveTime());
3043 case STALEPATH_TIME:
3044 return Integer.valueOf(getStalepathTime());
3047 return Boolean.valueOf(isAnnounceFbit());
3050 throw new IllegalStateException();
3053 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3054 public boolean isSet(_Fields field) {
3055 if (field == null) {
3056 throw new IllegalArgumentException();
3061 return isSetAsNumber();
3063 return isSetRouterId();
3067 return isSetHoldTime();
3068 case KEEP_ALIVE_TIME:
3069 return isSetKeepAliveTime();
3070 case STALEPATH_TIME:
3071 return isSetStalepathTime();
3073 return isSetAnnounceFbit();
3075 throw new IllegalStateException();
3079 public boolean equals(Object that) {
3082 if (that instanceof startBgp_args)
3083 return this.equals((startBgp_args)that);
3087 public boolean equals(startBgp_args that) {
3091 boolean this_present_asNumber = true;
3092 boolean that_present_asNumber = true;
3093 if (this_present_asNumber || that_present_asNumber) {
3094 if (!(this_present_asNumber && that_present_asNumber))
3096 if (this.asNumber != that.asNumber)
3100 boolean this_present_routerId = true && this.isSetRouterId();
3101 boolean that_present_routerId = true && that.isSetRouterId();
3102 if (this_present_routerId || that_present_routerId) {
3103 if (!(this_present_routerId && that_present_routerId))
3105 if (!this.routerId.equals(that.routerId))
3109 boolean this_present_port = true;
3110 boolean that_present_port = true;
3111 if (this_present_port || that_present_port) {
3112 if (!(this_present_port && that_present_port))
3114 if (this.port != that.port)
3118 boolean this_present_holdTime = true;
3119 boolean that_present_holdTime = true;
3120 if (this_present_holdTime || that_present_holdTime) {
3121 if (!(this_present_holdTime && that_present_holdTime))
3123 if (this.holdTime != that.holdTime)
3127 boolean this_present_keepAliveTime = true;
3128 boolean that_present_keepAliveTime = true;
3129 if (this_present_keepAliveTime || that_present_keepAliveTime) {
3130 if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3132 if (this.keepAliveTime != that.keepAliveTime)
3136 boolean this_present_stalepathTime = true;
3137 boolean that_present_stalepathTime = true;
3138 if (this_present_stalepathTime || that_present_stalepathTime) {
3139 if (!(this_present_stalepathTime && that_present_stalepathTime))
3141 if (this.stalepathTime != that.stalepathTime)
3145 boolean this_present_announceFbit = true;
3146 boolean that_present_announceFbit = true;
3147 if (this_present_announceFbit || that_present_announceFbit) {
3148 if (!(this_present_announceFbit && that_present_announceFbit))
3150 if (this.announceFbit != that.announceFbit)
3158 public int hashCode() {
3163 public int compareTo(startBgp_args other) {
3164 if (!getClass().equals(other.getClass())) {
3165 return getClass().getName().compareTo(other.getClass().getName());
3168 int lastComparison = 0;
3170 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3171 if (lastComparison != 0) {
3172 return lastComparison;
3174 if (isSetAsNumber()) {
3175 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3176 if (lastComparison != 0) {
3177 return lastComparison;
3180 lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3181 if (lastComparison != 0) {
3182 return lastComparison;
3184 if (isSetRouterId()) {
3185 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3186 if (lastComparison != 0) {
3187 return lastComparison;
3190 lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3191 if (lastComparison != 0) {
3192 return lastComparison;
3195 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3196 if (lastComparison != 0) {
3197 return lastComparison;
3200 lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3201 if (lastComparison != 0) {
3202 return lastComparison;
3204 if (isSetHoldTime()) {
3205 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3206 if (lastComparison != 0) {
3207 return lastComparison;
3210 lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3211 if (lastComparison != 0) {
3212 return lastComparison;
3214 if (isSetKeepAliveTime()) {
3215 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3216 if (lastComparison != 0) {
3217 return lastComparison;
3220 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3221 if (lastComparison != 0) {
3222 return lastComparison;
3224 if (isSetStalepathTime()) {
3225 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3226 if (lastComparison != 0) {
3227 return lastComparison;
3230 lastComparison = Boolean.valueOf(isSetAnnounceFbit()).compareTo(other.isSetAnnounceFbit());
3231 if (lastComparison != 0) {
3232 return lastComparison;
3234 if (isSetAnnounceFbit()) {
3235 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFbit, other.announceFbit);
3236 if (lastComparison != 0) {
3237 return lastComparison;
3243 public _Fields fieldForId(int fieldId) {
3244 return _Fields.findByThriftId(fieldId);
3247 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3248 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3251 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3252 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3256 public String toString() {
3257 StringBuilder sb = new StringBuilder("startBgp_args(");
3258 boolean first = true;
3260 sb.append("asNumber:");
3261 sb.append(this.asNumber);
3263 if (!first) sb.append(", ");
3264 sb.append("routerId:");
3265 if (this.routerId == null) {
3268 sb.append(this.routerId);
3271 if (!first) sb.append(", ");
3273 sb.append(this.port);
3275 if (!first) sb.append(", ");
3276 sb.append("holdTime:");
3277 sb.append(this.holdTime);
3279 if (!first) sb.append(", ");
3280 sb.append("keepAliveTime:");
3281 sb.append(this.keepAliveTime);
3283 if (!first) sb.append(", ");
3284 sb.append("stalepathTime:");
3285 sb.append(this.stalepathTime);
3287 if (!first) sb.append(", ");
3288 sb.append("announceFbit:");
3289 sb.append(this.announceFbit);
3292 return sb.toString();
3295 public void validate() throws org.apache.thrift.TException {
3296 // check for required fields
3297 // check for sub-struct validity
3300 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3302 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3303 } catch (org.apache.thrift.TException te) {
3304 throw new java.io.IOException(te);
3308 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3310 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3311 __isset_bitfield = 0;
3312 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3313 } catch (org.apache.thrift.TException te) {
3314 throw new java.io.IOException(te);
3318 private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3319 public startBgp_argsStandardScheme getScheme() {
3320 return new startBgp_argsStandardScheme();
3324 private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3326 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3327 org.apache.thrift.protocol.TField schemeField;
3328 iprot.readStructBegin();
3331 schemeField = iprot.readFieldBegin();
3332 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3335 switch (schemeField.id) {
3336 case 1: // AS_NUMBER
3337 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3338 struct.asNumber = iprot.readI32();
3339 struct.setAsNumberIsSet(true);
3341 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3344 case 2: // ROUTER_ID
3345 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3346 struct.routerId = iprot.readString();
3347 struct.setRouterIdIsSet(true);
3349 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3353 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3354 struct.port = iprot.readI32();
3355 struct.setPortIsSet(true);
3357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3360 case 4: // HOLD_TIME
3361 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3362 struct.holdTime = iprot.readI32();
3363 struct.setHoldTimeIsSet(true);
3365 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3368 case 5: // KEEP_ALIVE_TIME
3369 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3370 struct.keepAliveTime = iprot.readI32();
3371 struct.setKeepAliveTimeIsSet(true);
3373 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3376 case 6: // STALEPATH_TIME
3377 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3378 struct.stalepathTime = iprot.readI32();
3379 struct.setStalepathTimeIsSet(true);
3381 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3384 case 7: // ANNOUNCE_FBIT
3385 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3386 struct.announceFbit = iprot.readBool();
3387 struct.setAnnounceFbitIsSet(true);
3389 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3393 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3395 iprot.readFieldEnd();
3397 iprot.readStructEnd();
3399 // check for required fields of primitive type, which can't be checked in the validate method
3403 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
3406 oprot.writeStructBegin(STRUCT_DESC);
3407 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
3408 oprot.writeI32(struct.asNumber);
3409 oprot.writeFieldEnd();
3410 if (struct.routerId != null) {
3411 oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
3412 oprot.writeString(struct.routerId);
3413 oprot.writeFieldEnd();
3415 oprot.writeFieldBegin(PORT_FIELD_DESC);
3416 oprot.writeI32(struct.port);
3417 oprot.writeFieldEnd();
3418 oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
3419 oprot.writeI32(struct.holdTime);
3420 oprot.writeFieldEnd();
3421 oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
3422 oprot.writeI32(struct.keepAliveTime);
3423 oprot.writeFieldEnd();
3424 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
3425 oprot.writeI32(struct.stalepathTime);
3426 oprot.writeFieldEnd();
3427 oprot.writeFieldBegin(ANNOUNCE_FBIT_FIELD_DESC);
3428 oprot.writeBool(struct.announceFbit);
3429 oprot.writeFieldEnd();
3430 oprot.writeFieldStop();
3431 oprot.writeStructEnd();
3436 private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
3437 public startBgp_argsTupleScheme getScheme() {
3438 return new startBgp_argsTupleScheme();
3442 private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
3445 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3446 TTupleProtocol oprot = (TTupleProtocol) prot;
3447 BitSet optionals = new BitSet();
3448 if (struct.isSetAsNumber()) {
3451 if (struct.isSetRouterId()) {
3454 if (struct.isSetPort()) {
3457 if (struct.isSetHoldTime()) {
3460 if (struct.isSetKeepAliveTime()) {
3463 if (struct.isSetStalepathTime()) {
3466 if (struct.isSetAnnounceFbit()) {
3469 oprot.writeBitSet(optionals, 7);
3470 if (struct.isSetAsNumber()) {
3471 oprot.writeI32(struct.asNumber);
3473 if (struct.isSetRouterId()) {
3474 oprot.writeString(struct.routerId);
3476 if (struct.isSetPort()) {
3477 oprot.writeI32(struct.port);
3479 if (struct.isSetHoldTime()) {
3480 oprot.writeI32(struct.holdTime);
3482 if (struct.isSetKeepAliveTime()) {
3483 oprot.writeI32(struct.keepAliveTime);
3485 if (struct.isSetStalepathTime()) {
3486 oprot.writeI32(struct.stalepathTime);
3488 if (struct.isSetAnnounceFbit()) {
3489 oprot.writeBool(struct.announceFbit);
3494 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
3495 TTupleProtocol iprot = (TTupleProtocol) prot;
3496 BitSet incoming = iprot.readBitSet(7);
3497 if (incoming.get(0)) {
3498 struct.asNumber = iprot.readI32();
3499 struct.setAsNumberIsSet(true);
3501 if (incoming.get(1)) {
3502 struct.routerId = iprot.readString();
3503 struct.setRouterIdIsSet(true);
3505 if (incoming.get(2)) {
3506 struct.port = iprot.readI32();
3507 struct.setPortIsSet(true);
3509 if (incoming.get(3)) {
3510 struct.holdTime = iprot.readI32();
3511 struct.setHoldTimeIsSet(true);
3513 if (incoming.get(4)) {
3514 struct.keepAliveTime = iprot.readI32();
3515 struct.setKeepAliveTimeIsSet(true);
3517 if (incoming.get(5)) {
3518 struct.stalepathTime = iprot.readI32();
3519 struct.setStalepathTimeIsSet(true);
3521 if (incoming.get(6)) {
3522 struct.announceFbit = iprot.readBool();
3523 struct.setAnnounceFbitIsSet(true);
3530 public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result> {
3531 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
3533 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);
3535 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3537 schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
3538 schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
3541 public int success; // required
3543 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3544 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3545 SUCCESS((short)0, "success");
3547 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3550 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3551 byName.put(field.getFieldName(), field);
3556 * Find the _Fields constant that matches fieldId, or null if its not found.
3558 public static _Fields findByThriftId(int fieldId) {
3568 * Find the _Fields constant that matches fieldId, throwing an exception
3569 * if it is not found.
3571 public static _Fields findByThriftIdOrThrow(int fieldId) {
3572 _Fields fields = findByThriftId(fieldId);
3573 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3578 * Find the _Fields constant that matches name, or null if its not found.
3580 public static _Fields findByName(String name) {
3581 return byName.get(name);
3584 private final short _thriftId;
3585 private final String _fieldName;
3587 _Fields(short thriftId, String fieldName) {
3588 _thriftId = thriftId;
3589 _fieldName = fieldName;
3592 public short getThriftFieldId() {
3596 public String getFieldName() {
3601 // isset id assignments
3602 private static final int __SUCCESS_ISSET_ID = 0;
3603 private byte __isset_bitfield = 0;
3604 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3606 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3607 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
3608 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3609 metaDataMap = Collections.unmodifiableMap(tmpMap);
3610 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
3613 public startBgp_result() {
3616 public startBgp_result(
3620 this.success = success;
3621 setSuccessIsSet(true);
3625 * Performs a deep copy on <i>other</i>.
3627 public startBgp_result(startBgp_result other) {
3628 __isset_bitfield = other.__isset_bitfield;
3629 this.success = other.success;
3632 public startBgp_result deepCopy() {
3633 return new startBgp_result(this);
3637 public void clear() {
3638 setSuccessIsSet(false);
3642 public int getSuccess() {
3643 return this.success;
3646 public startBgp_result setSuccess(int success) {
3647 this.success = success;
3648 setSuccessIsSet(true);
3652 public void unsetSuccess() {
3653 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3656 /** Returns true if field success is set (has been assigned a value) and false otherwise */
3657 public boolean isSetSuccess() {
3658 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
3661 public void setSuccessIsSet(boolean value) {
3662 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
3665 public void setFieldValue(_Fields field, Object value) {
3668 if (value == null) {
3671 setSuccess((Integer)value);
3678 public Object getFieldValue(_Fields field) {
3681 return Integer.valueOf(getSuccess());
3684 throw new IllegalStateException();
3687 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3688 public boolean isSet(_Fields field) {
3689 if (field == null) {
3690 throw new IllegalArgumentException();
3695 return isSetSuccess();
3697 throw new IllegalStateException();
3701 public boolean equals(Object that) {
3704 if (that instanceof startBgp_result)
3705 return this.equals((startBgp_result)that);
3709 public boolean equals(startBgp_result that) {
3713 boolean this_present_success = true;
3714 boolean that_present_success = true;
3715 if (this_present_success || that_present_success) {
3716 if (!(this_present_success && that_present_success))
3718 if (this.success != that.success)
3726 public int hashCode() {
3731 public int compareTo(startBgp_result other) {
3732 if (!getClass().equals(other.getClass())) {
3733 return getClass().getName().compareTo(other.getClass().getName());
3736 int lastComparison = 0;
3738 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
3739 if (lastComparison != 0) {
3740 return lastComparison;
3742 if (isSetSuccess()) {
3743 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
3744 if (lastComparison != 0) {
3745 return lastComparison;
3751 public _Fields fieldForId(int fieldId) {
3752 return _Fields.findByThriftId(fieldId);
3755 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3756 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3759 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3760 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3764 public String toString() {
3765 StringBuilder sb = new StringBuilder("startBgp_result(");
3766 boolean first = true;
3768 sb.append("success:");
3769 sb.append(this.success);
3772 return sb.toString();
3775 public void validate() throws org.apache.thrift.TException {
3776 // check for required fields
3777 // check for sub-struct validity
3780 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3782 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3783 } catch (org.apache.thrift.TException te) {
3784 throw new java.io.IOException(te);
3788 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3790 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3791 __isset_bitfield = 0;
3792 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3793 } catch (org.apache.thrift.TException te) {
3794 throw new java.io.IOException(te);
3798 private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
3799 public startBgp_resultStandardScheme getScheme() {
3800 return new startBgp_resultStandardScheme();
3804 private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
3806 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
3807 org.apache.thrift.protocol.TField schemeField;
3808 iprot.readStructBegin();
3811 schemeField = iprot.readFieldBegin();
3812 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3815 switch (schemeField.id) {
3817 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3818 struct.success = iprot.readI32();
3819 struct.setSuccessIsSet(true);
3821 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3825 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3827 iprot.readFieldEnd();
3829 iprot.readStructEnd();
3831 // check for required fields of primitive type, which can't be checked in the validate method
3835 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
3838 oprot.writeStructBegin(STRUCT_DESC);
3839 if (struct.isSetSuccess()) {
3840 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3841 oprot.writeI32(struct.success);
3842 oprot.writeFieldEnd();
3844 oprot.writeFieldStop();
3845 oprot.writeStructEnd();
3850 private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
3851 public startBgp_resultTupleScheme getScheme() {
3852 return new startBgp_resultTupleScheme();
3856 private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
3859 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3860 TTupleProtocol oprot = (TTupleProtocol) prot;
3861 BitSet optionals = new BitSet();
3862 if (struct.isSetSuccess()) {
3865 oprot.writeBitSet(optionals, 1);
3866 if (struct.isSetSuccess()) {
3867 oprot.writeI32(struct.success);
3872 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
3873 TTupleProtocol iprot = (TTupleProtocol) prot;
3874 BitSet incoming = iprot.readBitSet(1);
3875 if (incoming.get(0)) {
3876 struct.success = iprot.readI32();
3877 struct.setSuccessIsSet(true);
3884 public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args> {
3885 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
3887 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);
3889 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3891 schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
3892 schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
3895 public int asNumber; // required
3897 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3898 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3899 AS_NUMBER((short)1, "asNumber");
3901 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3904 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3905 byName.put(field.getFieldName(), field);
3910 * Find the _Fields constant that matches fieldId, or null if its not found.
3912 public static _Fields findByThriftId(int fieldId) {
3914 case 1: // AS_NUMBER
3922 * Find the _Fields constant that matches fieldId, throwing an exception
3923 * if it is not found.
3925 public static _Fields findByThriftIdOrThrow(int fieldId) {
3926 _Fields fields = findByThriftId(fieldId);
3927 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3932 * Find the _Fields constant that matches name, or null if its not found.
3934 public static _Fields findByName(String name) {
3935 return byName.get(name);
3938 private final short _thriftId;
3939 private final String _fieldName;
3941 _Fields(short thriftId, String fieldName) {
3942 _thriftId = thriftId;
3943 _fieldName = fieldName;
3946 public short getThriftFieldId() {
3950 public String getFieldName() {
3955 // isset id assignments
3956 private static final int __ASNUMBER_ISSET_ID = 0;
3957 private byte __isset_bitfield = 0;
3958 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3960 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3961 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3962 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3963 metaDataMap = Collections.unmodifiableMap(tmpMap);
3964 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
3967 public stopBgp_args() {
3970 public stopBgp_args(
3974 this.asNumber = asNumber;
3975 setAsNumberIsSet(true);
3979 * Performs a deep copy on <i>other</i>.
3981 public stopBgp_args(stopBgp_args other) {
3982 __isset_bitfield = other.__isset_bitfield;
3983 this.asNumber = other.asNumber;
3986 public stopBgp_args deepCopy() {
3987 return new stopBgp_args(this);
3991 public void clear() {
3992 setAsNumberIsSet(false);
3996 public int getAsNumber() {
3997 return this.asNumber;
4000 public stopBgp_args setAsNumber(int asNumber) {
4001 this.asNumber = asNumber;
4002 setAsNumberIsSet(true);
4006 public void unsetAsNumber() {
4007 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4010 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4011 public boolean isSetAsNumber() {
4012 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4015 public void setAsNumberIsSet(boolean value) {
4016 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4019 public void setFieldValue(_Fields field, Object value) {
4022 if (value == null) {
4025 setAsNumber((Integer)value);
4032 public Object getFieldValue(_Fields field) {
4035 return Integer.valueOf(getAsNumber());
4038 throw new IllegalStateException();
4041 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4042 public boolean isSet(_Fields field) {
4043 if (field == null) {
4044 throw new IllegalArgumentException();
4049 return isSetAsNumber();
4051 throw new IllegalStateException();
4055 public boolean equals(Object that) {
4058 if (that instanceof stopBgp_args)
4059 return this.equals((stopBgp_args)that);
4063 public boolean equals(stopBgp_args that) {
4067 boolean this_present_asNumber = true;
4068 boolean that_present_asNumber = true;
4069 if (this_present_asNumber || that_present_asNumber) {
4070 if (!(this_present_asNumber && that_present_asNumber))
4072 if (this.asNumber != that.asNumber)
4080 public int hashCode() {
4085 public int compareTo(stopBgp_args other) {
4086 if (!getClass().equals(other.getClass())) {
4087 return getClass().getName().compareTo(other.getClass().getName());
4090 int lastComparison = 0;
4092 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4093 if (lastComparison != 0) {
4094 return lastComparison;
4096 if (isSetAsNumber()) {
4097 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4098 if (lastComparison != 0) {
4099 return lastComparison;
4105 public _Fields fieldForId(int fieldId) {
4106 return _Fields.findByThriftId(fieldId);
4109 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4110 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4113 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4114 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4118 public String toString() {
4119 StringBuilder sb = new StringBuilder("stopBgp_args(");
4120 boolean first = true;
4122 sb.append("asNumber:");
4123 sb.append(this.asNumber);
4126 return sb.toString();
4129 public void validate() throws org.apache.thrift.TException {
4130 // check for required fields
4131 // check for sub-struct validity
4134 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4136 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4137 } catch (org.apache.thrift.TException te) {
4138 throw new java.io.IOException(te);
4142 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4144 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4145 __isset_bitfield = 0;
4146 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4147 } catch (org.apache.thrift.TException te) {
4148 throw new java.io.IOException(te);
4152 private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4153 public stopBgp_argsStandardScheme getScheme() {
4154 return new stopBgp_argsStandardScheme();
4158 private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4160 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4161 org.apache.thrift.protocol.TField schemeField;
4162 iprot.readStructBegin();
4165 schemeField = iprot.readFieldBegin();
4166 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4169 switch (schemeField.id) {
4170 case 1: // AS_NUMBER
4171 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4172 struct.asNumber = iprot.readI32();
4173 struct.setAsNumberIsSet(true);
4175 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4179 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4181 iprot.readFieldEnd();
4183 iprot.readStructEnd();
4185 // check for required fields of primitive type, which can't be checked in the validate method
4189 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4192 oprot.writeStructBegin(STRUCT_DESC);
4193 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4194 oprot.writeI32(struct.asNumber);
4195 oprot.writeFieldEnd();
4196 oprot.writeFieldStop();
4197 oprot.writeStructEnd();
4202 private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4203 public stopBgp_argsTupleScheme getScheme() {
4204 return new stopBgp_argsTupleScheme();
4208 private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4211 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4212 TTupleProtocol oprot = (TTupleProtocol) prot;
4213 BitSet optionals = new BitSet();
4214 if (struct.isSetAsNumber()) {
4217 oprot.writeBitSet(optionals, 1);
4218 if (struct.isSetAsNumber()) {
4219 oprot.writeI32(struct.asNumber);
4224 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4225 TTupleProtocol iprot = (TTupleProtocol) prot;
4226 BitSet incoming = iprot.readBitSet(1);
4227 if (incoming.get(0)) {
4228 struct.asNumber = iprot.readI32();
4229 struct.setAsNumberIsSet(true);
4236 public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result> {
4237 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4239 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);
4241 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4243 schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4244 schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4247 public int success; // required
4249 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4250 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4251 SUCCESS((short)0, "success");
4253 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4256 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4257 byName.put(field.getFieldName(), field);
4262 * Find the _Fields constant that matches fieldId, or null if its not found.
4264 public static _Fields findByThriftId(int fieldId) {
4274 * Find the _Fields constant that matches fieldId, throwing an exception
4275 * if it is not found.
4277 public static _Fields findByThriftIdOrThrow(int fieldId) {
4278 _Fields fields = findByThriftId(fieldId);
4279 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4284 * Find the _Fields constant that matches name, or null if its not found.
4286 public static _Fields findByName(String name) {
4287 return byName.get(name);
4290 private final short _thriftId;
4291 private final String _fieldName;
4293 _Fields(short thriftId, String fieldName) {
4294 _thriftId = thriftId;
4295 _fieldName = fieldName;
4298 public short getThriftFieldId() {
4302 public String getFieldName() {
4307 // isset id assignments
4308 private static final int __SUCCESS_ISSET_ID = 0;
4309 private byte __isset_bitfield = 0;
4310 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4312 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4313 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4314 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4315 metaDataMap = Collections.unmodifiableMap(tmpMap);
4316 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4319 public stopBgp_result() {
4322 public stopBgp_result(
4326 this.success = success;
4327 setSuccessIsSet(true);
4331 * Performs a deep copy on <i>other</i>.
4333 public stopBgp_result(stopBgp_result other) {
4334 __isset_bitfield = other.__isset_bitfield;
4335 this.success = other.success;
4338 public stopBgp_result deepCopy() {
4339 return new stopBgp_result(this);
4343 public void clear() {
4344 setSuccessIsSet(false);
4348 public int getSuccess() {
4349 return this.success;
4352 public stopBgp_result setSuccess(int success) {
4353 this.success = success;
4354 setSuccessIsSet(true);
4358 public void unsetSuccess() {
4359 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4362 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4363 public boolean isSetSuccess() {
4364 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4367 public void setSuccessIsSet(boolean value) {
4368 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4371 public void setFieldValue(_Fields field, Object value) {
4374 if (value == null) {
4377 setSuccess((Integer)value);
4384 public Object getFieldValue(_Fields field) {
4387 return Integer.valueOf(getSuccess());
4390 throw new IllegalStateException();
4393 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4394 public boolean isSet(_Fields field) {
4395 if (field == null) {
4396 throw new IllegalArgumentException();
4401 return isSetSuccess();
4403 throw new IllegalStateException();
4407 public boolean equals(Object that) {
4410 if (that instanceof stopBgp_result)
4411 return this.equals((stopBgp_result)that);
4415 public boolean equals(stopBgp_result that) {
4419 boolean this_present_success = true;
4420 boolean that_present_success = true;
4421 if (this_present_success || that_present_success) {
4422 if (!(this_present_success && that_present_success))
4424 if (this.success != that.success)
4432 public int hashCode() {
4437 public int compareTo(stopBgp_result other) {
4438 if (!getClass().equals(other.getClass())) {
4439 return getClass().getName().compareTo(other.getClass().getName());
4442 int lastComparison = 0;
4444 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4445 if (lastComparison != 0) {
4446 return lastComparison;
4448 if (isSetSuccess()) {
4449 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4450 if (lastComparison != 0) {
4451 return lastComparison;
4457 public _Fields fieldForId(int fieldId) {
4458 return _Fields.findByThriftId(fieldId);
4461 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4462 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4465 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4466 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4470 public String toString() {
4471 StringBuilder sb = new StringBuilder("stopBgp_result(");
4472 boolean first = true;
4474 sb.append("success:");
4475 sb.append(this.success);
4478 return sb.toString();
4481 public void validate() throws org.apache.thrift.TException {
4482 // check for required fields
4483 // check for sub-struct validity
4486 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4488 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4489 } catch (org.apache.thrift.TException te) {
4490 throw new java.io.IOException(te);
4494 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4496 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4497 __isset_bitfield = 0;
4498 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4499 } catch (org.apache.thrift.TException te) {
4500 throw new java.io.IOException(te);
4504 private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
4505 public stopBgp_resultStandardScheme getScheme() {
4506 return new stopBgp_resultStandardScheme();
4510 private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
4512 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
4513 org.apache.thrift.protocol.TField schemeField;
4514 iprot.readStructBegin();
4517 schemeField = iprot.readFieldBegin();
4518 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4521 switch (schemeField.id) {
4523 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4524 struct.success = iprot.readI32();
4525 struct.setSuccessIsSet(true);
4527 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4531 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4533 iprot.readFieldEnd();
4535 iprot.readStructEnd();
4537 // check for required fields of primitive type, which can't be checked in the validate method
4541 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
4544 oprot.writeStructBegin(STRUCT_DESC);
4545 if (struct.isSetSuccess()) {
4546 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4547 oprot.writeI32(struct.success);
4548 oprot.writeFieldEnd();
4550 oprot.writeFieldStop();
4551 oprot.writeStructEnd();
4556 private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
4557 public stopBgp_resultTupleScheme getScheme() {
4558 return new stopBgp_resultTupleScheme();
4562 private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
4565 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4566 TTupleProtocol oprot = (TTupleProtocol) prot;
4567 BitSet optionals = new BitSet();
4568 if (struct.isSetSuccess()) {
4571 oprot.writeBitSet(optionals, 1);
4572 if (struct.isSetSuccess()) {
4573 oprot.writeI32(struct.success);
4578 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
4579 TTupleProtocol iprot = (TTupleProtocol) prot;
4580 BitSet incoming = iprot.readBitSet(1);
4581 if (incoming.get(0)) {
4582 struct.success = iprot.readI32();
4583 struct.setSuccessIsSet(true);
4590 public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args> {
4591 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
4593 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);
4594 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);
4596 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4598 schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
4599 schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
4602 public String ipAddress; // required
4603 public int asNumber; // required
4605 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4606 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4607 IP_ADDRESS((short)1, "ipAddress"),
4608 AS_NUMBER((short)2, "asNumber");
4610 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4613 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4614 byName.put(field.getFieldName(), field);
4619 * Find the _Fields constant that matches fieldId, or null if its not found.
4621 public static _Fields findByThriftId(int fieldId) {
4623 case 1: // IP_ADDRESS
4625 case 2: // AS_NUMBER
4633 * Find the _Fields constant that matches fieldId, throwing an exception
4634 * if it is not found.
4636 public static _Fields findByThriftIdOrThrow(int fieldId) {
4637 _Fields fields = findByThriftId(fieldId);
4638 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4643 * Find the _Fields constant that matches name, or null if its not found.
4645 public static _Fields findByName(String name) {
4646 return byName.get(name);
4649 private final short _thriftId;
4650 private final String _fieldName;
4652 _Fields(short thriftId, String fieldName) {
4653 _thriftId = thriftId;
4654 _fieldName = fieldName;
4657 public short getThriftFieldId() {
4661 public String getFieldName() {
4666 // isset id assignments
4667 private static final int __ASNUMBER_ISSET_ID = 0;
4668 private byte __isset_bitfield = 0;
4669 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4671 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4672 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
4673 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4674 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
4675 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4676 metaDataMap = Collections.unmodifiableMap(tmpMap);
4677 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
4680 public createPeer_args() {
4683 public createPeer_args(
4688 this.ipAddress = ipAddress;
4689 this.asNumber = asNumber;
4690 setAsNumberIsSet(true);
4694 * Performs a deep copy on <i>other</i>.
4696 public createPeer_args(createPeer_args other) {
4697 __isset_bitfield = other.__isset_bitfield;
4698 if (other.isSetIpAddress()) {
4699 this.ipAddress = other.ipAddress;
4701 this.asNumber = other.asNumber;
4704 public createPeer_args deepCopy() {
4705 return new createPeer_args(this);
4709 public void clear() {
4710 this.ipAddress = null;
4711 setAsNumberIsSet(false);
4715 public String getIpAddress() {
4716 return this.ipAddress;
4719 public createPeer_args setIpAddress(String ipAddress) {
4720 this.ipAddress = ipAddress;
4724 public void unsetIpAddress() {
4725 this.ipAddress = null;
4728 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
4729 public boolean isSetIpAddress() {
4730 return this.ipAddress != null;
4733 public void setIpAddressIsSet(boolean value) {
4735 this.ipAddress = null;
4739 public int getAsNumber() {
4740 return this.asNumber;
4743 public createPeer_args setAsNumber(int asNumber) {
4744 this.asNumber = asNumber;
4745 setAsNumberIsSet(true);
4749 public void unsetAsNumber() {
4750 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4753 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4754 public boolean isSetAsNumber() {
4755 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4758 public void setAsNumberIsSet(boolean value) {
4759 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4762 public void setFieldValue(_Fields field, Object value) {
4765 if (value == null) {
4768 setIpAddress((String)value);
4773 if (value == null) {
4776 setAsNumber((Integer)value);
4783 public Object getFieldValue(_Fields field) {
4786 return getIpAddress();
4789 return Integer.valueOf(getAsNumber());
4792 throw new IllegalStateException();
4795 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4796 public boolean isSet(_Fields field) {
4797 if (field == null) {
4798 throw new IllegalArgumentException();
4803 return isSetIpAddress();
4805 return isSetAsNumber();
4807 throw new IllegalStateException();
4811 public boolean equals(Object that) {
4814 if (that instanceof createPeer_args)
4815 return this.equals((createPeer_args)that);
4819 public boolean equals(createPeer_args that) {
4823 boolean this_present_ipAddress = true && this.isSetIpAddress();
4824 boolean that_present_ipAddress = true && that.isSetIpAddress();
4825 if (this_present_ipAddress || that_present_ipAddress) {
4826 if (!(this_present_ipAddress && that_present_ipAddress))
4828 if (!this.ipAddress.equals(that.ipAddress))
4832 boolean this_present_asNumber = true;
4833 boolean that_present_asNumber = true;
4834 if (this_present_asNumber || that_present_asNumber) {
4835 if (!(this_present_asNumber && that_present_asNumber))
4837 if (this.asNumber != that.asNumber)
4845 public int hashCode() {
4850 public int compareTo(createPeer_args other) {
4851 if (!getClass().equals(other.getClass())) {
4852 return getClass().getName().compareTo(other.getClass().getName());
4855 int lastComparison = 0;
4857 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
4858 if (lastComparison != 0) {
4859 return lastComparison;
4861 if (isSetIpAddress()) {
4862 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
4863 if (lastComparison != 0) {
4864 return lastComparison;
4867 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4868 if (lastComparison != 0) {
4869 return lastComparison;
4871 if (isSetAsNumber()) {
4872 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4873 if (lastComparison != 0) {
4874 return lastComparison;
4880 public _Fields fieldForId(int fieldId) {
4881 return _Fields.findByThriftId(fieldId);
4884 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4885 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4888 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4889 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4893 public String toString() {
4894 StringBuilder sb = new StringBuilder("createPeer_args(");
4895 boolean first = true;
4897 sb.append("ipAddress:");
4898 if (this.ipAddress == null) {
4901 sb.append(this.ipAddress);
4904 if (!first) sb.append(", ");
4905 sb.append("asNumber:");
4906 sb.append(this.asNumber);
4909 return sb.toString();
4912 public void validate() throws org.apache.thrift.TException {
4913 // check for required fields
4914 // check for sub-struct validity
4917 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4919 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4920 } catch (org.apache.thrift.TException te) {
4921 throw new java.io.IOException(te);
4925 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4927 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4928 __isset_bitfield = 0;
4929 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4930 } catch (org.apache.thrift.TException te) {
4931 throw new java.io.IOException(te);
4935 private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
4936 public createPeer_argsStandardScheme getScheme() {
4937 return new createPeer_argsStandardScheme();
4941 private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
4943 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
4944 org.apache.thrift.protocol.TField schemeField;
4945 iprot.readStructBegin();
4948 schemeField = iprot.readFieldBegin();
4949 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4952 switch (schemeField.id) {
4953 case 1: // IP_ADDRESS
4954 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4955 struct.ipAddress = iprot.readString();
4956 struct.setIpAddressIsSet(true);
4958 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4961 case 2: // AS_NUMBER
4962 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4963 struct.asNumber = iprot.readI32();
4964 struct.setAsNumberIsSet(true);
4966 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4970 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4972 iprot.readFieldEnd();
4974 iprot.readStructEnd();
4976 // check for required fields of primitive type, which can't be checked in the validate method
4980 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
4983 oprot.writeStructBegin(STRUCT_DESC);
4984 if (struct.ipAddress != null) {
4985 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
4986 oprot.writeString(struct.ipAddress);
4987 oprot.writeFieldEnd();
4989 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4990 oprot.writeI32(struct.asNumber);
4991 oprot.writeFieldEnd();
4992 oprot.writeFieldStop();
4993 oprot.writeStructEnd();
4998 private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
4999 public createPeer_argsTupleScheme getScheme() {
5000 return new createPeer_argsTupleScheme();
5004 private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5007 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5008 TTupleProtocol oprot = (TTupleProtocol) prot;
5009 BitSet optionals = new BitSet();
5010 if (struct.isSetIpAddress()) {
5013 if (struct.isSetAsNumber()) {
5016 oprot.writeBitSet(optionals, 2);
5017 if (struct.isSetIpAddress()) {
5018 oprot.writeString(struct.ipAddress);
5020 if (struct.isSetAsNumber()) {
5021 oprot.writeI32(struct.asNumber);
5026 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5027 TTupleProtocol iprot = (TTupleProtocol) prot;
5028 BitSet incoming = iprot.readBitSet(2);
5029 if (incoming.get(0)) {
5030 struct.ipAddress = iprot.readString();
5031 struct.setIpAddressIsSet(true);
5033 if (incoming.get(1)) {
5034 struct.asNumber = iprot.readI32();
5035 struct.setAsNumberIsSet(true);
5042 public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result> {
5043 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5045 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);
5047 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5049 schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5050 schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5053 public int success; // required
5055 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5056 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5057 SUCCESS((short)0, "success");
5059 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5062 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5063 byName.put(field.getFieldName(), field);
5068 * Find the _Fields constant that matches fieldId, or null if its not found.
5070 public static _Fields findByThriftId(int fieldId) {
5080 * Find the _Fields constant that matches fieldId, throwing an exception
5081 * if it is not found.
5083 public static _Fields findByThriftIdOrThrow(int fieldId) {
5084 _Fields fields = findByThriftId(fieldId);
5085 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5090 * Find the _Fields constant that matches name, or null if its not found.
5092 public static _Fields findByName(String name) {
5093 return byName.get(name);
5096 private final short _thriftId;
5097 private final String _fieldName;
5099 _Fields(short thriftId, String fieldName) {
5100 _thriftId = thriftId;
5101 _fieldName = fieldName;
5104 public short getThriftFieldId() {
5108 public String getFieldName() {
5113 // isset id assignments
5114 private static final int __SUCCESS_ISSET_ID = 0;
5115 private byte __isset_bitfield = 0;
5116 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5118 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5119 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5120 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5121 metaDataMap = Collections.unmodifiableMap(tmpMap);
5122 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5125 public createPeer_result() {
5128 public createPeer_result(
5132 this.success = success;
5133 setSuccessIsSet(true);
5137 * Performs a deep copy on <i>other</i>.
5139 public createPeer_result(createPeer_result other) {
5140 __isset_bitfield = other.__isset_bitfield;
5141 this.success = other.success;
5144 public createPeer_result deepCopy() {
5145 return new createPeer_result(this);
5149 public void clear() {
5150 setSuccessIsSet(false);
5154 public int getSuccess() {
5155 return this.success;
5158 public createPeer_result setSuccess(int success) {
5159 this.success = success;
5160 setSuccessIsSet(true);
5164 public void unsetSuccess() {
5165 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5168 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5169 public boolean isSetSuccess() {
5170 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5173 public void setSuccessIsSet(boolean value) {
5174 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5177 public void setFieldValue(_Fields field, Object value) {
5180 if (value == null) {
5183 setSuccess((Integer)value);
5190 public Object getFieldValue(_Fields field) {
5193 return Integer.valueOf(getSuccess());
5196 throw new IllegalStateException();
5199 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5200 public boolean isSet(_Fields field) {
5201 if (field == null) {
5202 throw new IllegalArgumentException();
5207 return isSetSuccess();
5209 throw new IllegalStateException();
5213 public boolean equals(Object that) {
5216 if (that instanceof createPeer_result)
5217 return this.equals((createPeer_result)that);
5221 public boolean equals(createPeer_result that) {
5225 boolean this_present_success = true;
5226 boolean that_present_success = true;
5227 if (this_present_success || that_present_success) {
5228 if (!(this_present_success && that_present_success))
5230 if (this.success != that.success)
5238 public int hashCode() {
5243 public int compareTo(createPeer_result other) {
5244 if (!getClass().equals(other.getClass())) {
5245 return getClass().getName().compareTo(other.getClass().getName());
5248 int lastComparison = 0;
5250 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5251 if (lastComparison != 0) {
5252 return lastComparison;
5254 if (isSetSuccess()) {
5255 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5256 if (lastComparison != 0) {
5257 return lastComparison;
5263 public _Fields fieldForId(int fieldId) {
5264 return _Fields.findByThriftId(fieldId);
5267 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5268 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5271 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5272 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5276 public String toString() {
5277 StringBuilder sb = new StringBuilder("createPeer_result(");
5278 boolean first = true;
5280 sb.append("success:");
5281 sb.append(this.success);
5284 return sb.toString();
5287 public void validate() throws org.apache.thrift.TException {
5288 // check for required fields
5289 // check for sub-struct validity
5292 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5294 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5295 } catch (org.apache.thrift.TException te) {
5296 throw new java.io.IOException(te);
5300 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5302 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5303 __isset_bitfield = 0;
5304 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5305 } catch (org.apache.thrift.TException te) {
5306 throw new java.io.IOException(te);
5310 private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5311 public createPeer_resultStandardScheme getScheme() {
5312 return new createPeer_resultStandardScheme();
5316 private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5318 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5319 org.apache.thrift.protocol.TField schemeField;
5320 iprot.readStructBegin();
5323 schemeField = iprot.readFieldBegin();
5324 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5327 switch (schemeField.id) {
5329 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5330 struct.success = iprot.readI32();
5331 struct.setSuccessIsSet(true);
5333 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5337 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5339 iprot.readFieldEnd();
5341 iprot.readStructEnd();
5343 // check for required fields of primitive type, which can't be checked in the validate method
5347 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5350 oprot.writeStructBegin(STRUCT_DESC);
5351 if (struct.isSetSuccess()) {
5352 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5353 oprot.writeI32(struct.success);
5354 oprot.writeFieldEnd();
5356 oprot.writeFieldStop();
5357 oprot.writeStructEnd();
5362 private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5363 public createPeer_resultTupleScheme getScheme() {
5364 return new createPeer_resultTupleScheme();
5368 private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5371 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5372 TTupleProtocol oprot = (TTupleProtocol) prot;
5373 BitSet optionals = new BitSet();
5374 if (struct.isSetSuccess()) {
5377 oprot.writeBitSet(optionals, 1);
5378 if (struct.isSetSuccess()) {
5379 oprot.writeI32(struct.success);
5384 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5385 TTupleProtocol iprot = (TTupleProtocol) prot;
5386 BitSet incoming = iprot.readBitSet(1);
5387 if (incoming.get(0)) {
5388 struct.success = iprot.readI32();
5389 struct.setSuccessIsSet(true);
5396 public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args> {
5397 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
5399 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);
5401 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5403 schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
5404 schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
5407 public String ipAddress; // required
5409 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5410 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5411 IP_ADDRESS((short)1, "ipAddress");
5413 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5416 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5417 byName.put(field.getFieldName(), field);
5422 * Find the _Fields constant that matches fieldId, or null if its not found.
5424 public static _Fields findByThriftId(int fieldId) {
5426 case 1: // IP_ADDRESS
5434 * Find the _Fields constant that matches fieldId, throwing an exception
5435 * if it is not found.
5437 public static _Fields findByThriftIdOrThrow(int fieldId) {
5438 _Fields fields = findByThriftId(fieldId);
5439 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5444 * Find the _Fields constant that matches name, or null if its not found.
5446 public static _Fields findByName(String name) {
5447 return byName.get(name);
5450 private final short _thriftId;
5451 private final String _fieldName;
5453 _Fields(short thriftId, String fieldName) {
5454 _thriftId = thriftId;
5455 _fieldName = fieldName;
5458 public short getThriftFieldId() {
5462 public String getFieldName() {
5467 // isset id assignments
5468 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5470 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5471 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5472 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5473 metaDataMap = Collections.unmodifiableMap(tmpMap);
5474 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
5477 public deletePeer_args() {
5480 public deletePeer_args(
5484 this.ipAddress = ipAddress;
5488 * Performs a deep copy on <i>other</i>.
5490 public deletePeer_args(deletePeer_args other) {
5491 if (other.isSetIpAddress()) {
5492 this.ipAddress = other.ipAddress;
5496 public deletePeer_args deepCopy() {
5497 return new deletePeer_args(this);
5501 public void clear() {
5502 this.ipAddress = null;
5505 public String getIpAddress() {
5506 return this.ipAddress;
5509 public deletePeer_args setIpAddress(String ipAddress) {
5510 this.ipAddress = ipAddress;
5514 public void unsetIpAddress() {
5515 this.ipAddress = null;
5518 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5519 public boolean isSetIpAddress() {
5520 return this.ipAddress != null;
5523 public void setIpAddressIsSet(boolean value) {
5525 this.ipAddress = null;
5529 public void setFieldValue(_Fields field, Object value) {
5532 if (value == null) {
5535 setIpAddress((String)value);
5542 public Object getFieldValue(_Fields field) {
5545 return getIpAddress();
5548 throw new IllegalStateException();
5551 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5552 public boolean isSet(_Fields field) {
5553 if (field == null) {
5554 throw new IllegalArgumentException();
5559 return isSetIpAddress();
5561 throw new IllegalStateException();
5565 public boolean equals(Object that) {
5568 if (that instanceof deletePeer_args)
5569 return this.equals((deletePeer_args)that);
5573 public boolean equals(deletePeer_args that) {
5577 boolean this_present_ipAddress = true && this.isSetIpAddress();
5578 boolean that_present_ipAddress = true && that.isSetIpAddress();
5579 if (this_present_ipAddress || that_present_ipAddress) {
5580 if (!(this_present_ipAddress && that_present_ipAddress))
5582 if (!this.ipAddress.equals(that.ipAddress))
5590 public int hashCode() {
5595 public int compareTo(deletePeer_args other) {
5596 if (!getClass().equals(other.getClass())) {
5597 return getClass().getName().compareTo(other.getClass().getName());
5600 int lastComparison = 0;
5602 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5603 if (lastComparison != 0) {
5604 return lastComparison;
5606 if (isSetIpAddress()) {
5607 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5608 if (lastComparison != 0) {
5609 return lastComparison;
5615 public _Fields fieldForId(int fieldId) {
5616 return _Fields.findByThriftId(fieldId);
5619 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5620 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5623 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5624 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5628 public String toString() {
5629 StringBuilder sb = new StringBuilder("deletePeer_args(");
5630 boolean first = true;
5632 sb.append("ipAddress:");
5633 if (this.ipAddress == null) {
5636 sb.append(this.ipAddress);
5640 return sb.toString();
5643 public void validate() throws org.apache.thrift.TException {
5644 // check for required fields
5645 // check for sub-struct validity
5648 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5650 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5651 } catch (org.apache.thrift.TException te) {
5652 throw new java.io.IOException(te);
5656 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5658 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5659 } catch (org.apache.thrift.TException te) {
5660 throw new java.io.IOException(te);
5664 private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
5665 public deletePeer_argsStandardScheme getScheme() {
5666 return new deletePeer_argsStandardScheme();
5670 private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
5672 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
5673 org.apache.thrift.protocol.TField schemeField;
5674 iprot.readStructBegin();
5677 schemeField = iprot.readFieldBegin();
5678 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5681 switch (schemeField.id) {
5682 case 1: // IP_ADDRESS
5683 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5684 struct.ipAddress = iprot.readString();
5685 struct.setIpAddressIsSet(true);
5687 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5691 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5693 iprot.readFieldEnd();
5695 iprot.readStructEnd();
5697 // check for required fields of primitive type, which can't be checked in the validate method
5701 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
5704 oprot.writeStructBegin(STRUCT_DESC);
5705 if (struct.ipAddress != null) {
5706 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5707 oprot.writeString(struct.ipAddress);
5708 oprot.writeFieldEnd();
5710 oprot.writeFieldStop();
5711 oprot.writeStructEnd();
5716 private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
5717 public deletePeer_argsTupleScheme getScheme() {
5718 return new deletePeer_argsTupleScheme();
5722 private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
5725 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5726 TTupleProtocol oprot = (TTupleProtocol) prot;
5727 BitSet optionals = new BitSet();
5728 if (struct.isSetIpAddress()) {
5731 oprot.writeBitSet(optionals, 1);
5732 if (struct.isSetIpAddress()) {
5733 oprot.writeString(struct.ipAddress);
5738 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
5739 TTupleProtocol iprot = (TTupleProtocol) prot;
5740 BitSet incoming = iprot.readBitSet(1);
5741 if (incoming.get(0)) {
5742 struct.ipAddress = iprot.readString();
5743 struct.setIpAddressIsSet(true);
5750 public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result> {
5751 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
5753 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);
5755 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5757 schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
5758 schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
5761 public int success; // required
5763 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5764 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5765 SUCCESS((short)0, "success");
5767 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5770 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5771 byName.put(field.getFieldName(), field);
5776 * Find the _Fields constant that matches fieldId, or null if its not found.
5778 public static _Fields findByThriftId(int fieldId) {
5788 * Find the _Fields constant that matches fieldId, throwing an exception
5789 * if it is not found.
5791 public static _Fields findByThriftIdOrThrow(int fieldId) {
5792 _Fields fields = findByThriftId(fieldId);
5793 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5798 * Find the _Fields constant that matches name, or null if its not found.
5800 public static _Fields findByName(String name) {
5801 return byName.get(name);
5804 private final short _thriftId;
5805 private final String _fieldName;
5807 _Fields(short thriftId, String fieldName) {
5808 _thriftId = thriftId;
5809 _fieldName = fieldName;
5812 public short getThriftFieldId() {
5816 public String getFieldName() {
5821 // isset id assignments
5822 private static final int __SUCCESS_ISSET_ID = 0;
5823 private byte __isset_bitfield = 0;
5824 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5826 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5827 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5828 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5829 metaDataMap = Collections.unmodifiableMap(tmpMap);
5830 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
5833 public deletePeer_result() {
5836 public deletePeer_result(
5840 this.success = success;
5841 setSuccessIsSet(true);
5845 * Performs a deep copy on <i>other</i>.
5847 public deletePeer_result(deletePeer_result other) {
5848 __isset_bitfield = other.__isset_bitfield;
5849 this.success = other.success;
5852 public deletePeer_result deepCopy() {
5853 return new deletePeer_result(this);
5857 public void clear() {
5858 setSuccessIsSet(false);
5862 public int getSuccess() {
5863 return this.success;
5866 public deletePeer_result setSuccess(int success) {
5867 this.success = success;
5868 setSuccessIsSet(true);
5872 public void unsetSuccess() {
5873 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5876 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5877 public boolean isSetSuccess() {
5878 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5881 public void setSuccessIsSet(boolean value) {
5882 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5885 public void setFieldValue(_Fields field, Object value) {
5888 if (value == null) {
5891 setSuccess((Integer)value);
5898 public Object getFieldValue(_Fields field) {
5901 return Integer.valueOf(getSuccess());
5904 throw new IllegalStateException();
5907 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5908 public boolean isSet(_Fields field) {
5909 if (field == null) {
5910 throw new IllegalArgumentException();
5915 return isSetSuccess();
5917 throw new IllegalStateException();
5921 public boolean equals(Object that) {
5924 if (that instanceof deletePeer_result)
5925 return this.equals((deletePeer_result)that);
5929 public boolean equals(deletePeer_result that) {
5933 boolean this_present_success = true;
5934 boolean that_present_success = true;
5935 if (this_present_success || that_present_success) {
5936 if (!(this_present_success && that_present_success))
5938 if (this.success != that.success)
5946 public int hashCode() {
5951 public int compareTo(deletePeer_result other) {
5952 if (!getClass().equals(other.getClass())) {
5953 return getClass().getName().compareTo(other.getClass().getName());
5956 int lastComparison = 0;
5958 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5959 if (lastComparison != 0) {
5960 return lastComparison;
5962 if (isSetSuccess()) {
5963 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5964 if (lastComparison != 0) {
5965 return lastComparison;
5971 public _Fields fieldForId(int fieldId) {
5972 return _Fields.findByThriftId(fieldId);
5975 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5976 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5979 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5980 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5984 public String toString() {
5985 StringBuilder sb = new StringBuilder("deletePeer_result(");
5986 boolean first = true;
5988 sb.append("success:");
5989 sb.append(this.success);
5992 return sb.toString();
5995 public void validate() throws org.apache.thrift.TException {
5996 // check for required fields
5997 // check for sub-struct validity
6000 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6002 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6003 } catch (org.apache.thrift.TException te) {
6004 throw new java.io.IOException(te);
6008 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6010 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6011 __isset_bitfield = 0;
6012 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6013 } catch (org.apache.thrift.TException te) {
6014 throw new java.io.IOException(te);
6018 private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
6019 public deletePeer_resultStandardScheme getScheme() {
6020 return new deletePeer_resultStandardScheme();
6024 private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
6026 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
6027 org.apache.thrift.protocol.TField schemeField;
6028 iprot.readStructBegin();
6031 schemeField = iprot.readFieldBegin();
6032 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6035 switch (schemeField.id) {
6037 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6038 struct.success = iprot.readI32();
6039 struct.setSuccessIsSet(true);
6041 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6045 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6047 iprot.readFieldEnd();
6049 iprot.readStructEnd();
6051 // check for required fields of primitive type, which can't be checked in the validate method
6055 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
6058 oprot.writeStructBegin(STRUCT_DESC);
6059 if (struct.isSetSuccess()) {
6060 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6061 oprot.writeI32(struct.success);
6062 oprot.writeFieldEnd();
6064 oprot.writeFieldStop();
6065 oprot.writeStructEnd();
6070 private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
6071 public deletePeer_resultTupleScheme getScheme() {
6072 return new deletePeer_resultTupleScheme();
6076 private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
6079 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6080 TTupleProtocol oprot = (TTupleProtocol) prot;
6081 BitSet optionals = new BitSet();
6082 if (struct.isSetSuccess()) {
6085 oprot.writeBitSet(optionals, 1);
6086 if (struct.isSetSuccess()) {
6087 oprot.writeI32(struct.success);
6092 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
6093 TTupleProtocol iprot = (TTupleProtocol) prot;
6094 BitSet incoming = iprot.readBitSet(1);
6095 if (incoming.get(0)) {
6096 struct.success = iprot.readI32();
6097 struct.setSuccessIsSet(true);
6104 public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args> {
6105 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
6107 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);
6108 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);
6109 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);
6111 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6113 schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
6114 schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
6117 public String rd; // required
6118 public List<String> irts; // required
6119 public List<String> erts; // required
6121 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6122 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6124 IRTS((short)2, "irts"),
6125 ERTS((short)3, "erts");
6127 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6130 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6131 byName.put(field.getFieldName(), field);
6136 * Find the _Fields constant that matches fieldId, or null if its not found.
6138 public static _Fields findByThriftId(int fieldId) {
6152 * Find the _Fields constant that matches fieldId, throwing an exception
6153 * if it is not found.
6155 public static _Fields findByThriftIdOrThrow(int fieldId) {
6156 _Fields fields = findByThriftId(fieldId);
6157 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6162 * Find the _Fields constant that matches name, or null if its not found.
6164 public static _Fields findByName(String name) {
6165 return byName.get(name);
6168 private final short _thriftId;
6169 private final String _fieldName;
6171 _Fields(short thriftId, String fieldName) {
6172 _thriftId = thriftId;
6173 _fieldName = fieldName;
6176 public short getThriftFieldId() {
6180 public String getFieldName() {
6185 // isset id assignments
6186 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6188 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6189 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
6190 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6191 tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
6192 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
6193 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6194 tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
6195 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
6196 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
6197 metaDataMap = Collections.unmodifiableMap(tmpMap);
6198 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
6201 public addVrf_args() {
6216 * Performs a deep copy on <i>other</i>.
6218 public addVrf_args(addVrf_args other) {
6219 if (other.isSetRd()) {
6222 if (other.isSetIrts()) {
6223 List<String> __this__irts = new ArrayList<String>(other.irts);
6224 this.irts = __this__irts;
6226 if (other.isSetErts()) {
6227 List<String> __this__erts = new ArrayList<String>(other.erts);
6228 this.erts = __this__erts;
6232 public addVrf_args deepCopy() {
6233 return new addVrf_args(this);
6237 public void clear() {
6243 public String getRd() {
6247 public addVrf_args setRd(String rd) {
6252 public void unsetRd() {
6256 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
6257 public boolean isSetRd() {
6258 return this.rd != null;
6261 public void setRdIsSet(boolean value) {
6267 public int getIrtsSize() {
6268 return (this.irts == null) ? 0 : this.irts.size();
6271 public java.util.Iterator<String> getIrtsIterator() {
6272 return (this.irts == null) ? null : this.irts.iterator();
6275 public void addToIrts(String elem) {
6276 if (this.irts == null) {
6277 this.irts = new ArrayList<String>();
6279 this.irts.add(elem);
6282 public List<String> getIrts() {
6286 public addVrf_args setIrts(List<String> irts) {
6291 public void unsetIrts() {
6295 /** Returns true if field irts is set (has been assigned a value) and false otherwise */
6296 public boolean isSetIrts() {
6297 return this.irts != null;
6300 public void setIrtsIsSet(boolean value) {
6306 public int getErtsSize() {
6307 return (this.erts == null) ? 0 : this.erts.size();
6310 public java.util.Iterator<String> getErtsIterator() {
6311 return (this.erts == null) ? null : this.erts.iterator();
6314 public void addToErts(String elem) {
6315 if (this.erts == null) {
6316 this.erts = new ArrayList<String>();
6318 this.erts.add(elem);
6321 public List<String> getErts() {
6325 public addVrf_args setErts(List<String> erts) {
6330 public void unsetErts() {
6334 /** Returns true if field erts is set (has been assigned a value) and false otherwise */
6335 public boolean isSetErts() {
6336 return this.erts != null;
6339 public void setErtsIsSet(boolean value) {
6345 public void setFieldValue(_Fields field, Object value) {
6348 if (value == null) {
6351 setRd((String)value);
6356 if (value == null) {
6359 setIrts((List<String>)value);
6364 if (value == null) {
6367 setErts((List<String>)value);
6374 public Object getFieldValue(_Fields field) {
6386 throw new IllegalStateException();
6389 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6390 public boolean isSet(_Fields field) {
6391 if (field == null) {
6392 throw new IllegalArgumentException();
6403 throw new IllegalStateException();
6407 public boolean equals(Object that) {
6410 if (that instanceof addVrf_args)
6411 return this.equals((addVrf_args)that);
6415 public boolean equals(addVrf_args that) {
6419 boolean this_present_rd = true && this.isSetRd();
6420 boolean that_present_rd = true && that.isSetRd();
6421 if (this_present_rd || that_present_rd) {
6422 if (!(this_present_rd && that_present_rd))
6424 if (!this.rd.equals(that.rd))
6428 boolean this_present_irts = true && this.isSetIrts();
6429 boolean that_present_irts = true && that.isSetIrts();
6430 if (this_present_irts || that_present_irts) {
6431 if (!(this_present_irts && that_present_irts))
6433 if (!this.irts.equals(that.irts))
6437 boolean this_present_erts = true && this.isSetErts();
6438 boolean that_present_erts = true && that.isSetErts();
6439 if (this_present_erts || that_present_erts) {
6440 if (!(this_present_erts && that_present_erts))
6442 if (!this.erts.equals(that.erts))
6450 public int hashCode() {
6455 public int compareTo(addVrf_args other) {
6456 if (!getClass().equals(other.getClass())) {
6457 return getClass().getName().compareTo(other.getClass().getName());
6460 int lastComparison = 0;
6462 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
6463 if (lastComparison != 0) {
6464 return lastComparison;
6467 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
6468 if (lastComparison != 0) {
6469 return lastComparison;
6472 lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
6473 if (lastComparison != 0) {
6474 return lastComparison;
6477 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
6478 if (lastComparison != 0) {
6479 return lastComparison;
6482 lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
6483 if (lastComparison != 0) {
6484 return lastComparison;
6487 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
6488 if (lastComparison != 0) {
6489 return lastComparison;
6495 public _Fields fieldForId(int fieldId) {
6496 return _Fields.findByThriftId(fieldId);
6499 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6500 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6503 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6504 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6508 public String toString() {
6509 StringBuilder sb = new StringBuilder("addVrf_args(");
6510 boolean first = true;
6513 if (this.rd == null) {
6519 if (!first) sb.append(", ");
6521 if (this.irts == null) {
6524 sb.append(this.irts);
6527 if (!first) sb.append(", ");
6529 if (this.erts == null) {
6532 sb.append(this.erts);
6536 return sb.toString();
6539 public void validate() throws org.apache.thrift.TException {
6540 // check for required fields
6541 // check for sub-struct validity
6544 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6546 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6547 } catch (org.apache.thrift.TException te) {
6548 throw new java.io.IOException(te);
6552 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6554 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6555 } catch (org.apache.thrift.TException te) {
6556 throw new java.io.IOException(te);
6560 private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
6561 public addVrf_argsStandardScheme getScheme() {
6562 return new addVrf_argsStandardScheme();
6566 private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
6568 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
6569 org.apache.thrift.protocol.TField schemeField;
6570 iprot.readStructBegin();
6573 schemeField = iprot.readFieldBegin();
6574 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6577 switch (schemeField.id) {
6579 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6580 struct.rd = iprot.readString();
6581 struct.setRdIsSet(true);
6583 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6587 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6589 org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
6590 struct.irts = new ArrayList<String>(_list8.size);
6591 for (int _i9 = 0; _i9 < _list8.size; ++_i9)
6594 _elem10 = iprot.readString();
6595 struct.irts.add(_elem10);
6597 iprot.readListEnd();
6599 struct.setIrtsIsSet(true);
6601 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6605 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
6607 org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
6608 struct.erts = new ArrayList<String>(_list11.size);
6609 for (int _i12 = 0; _i12 < _list11.size; ++_i12)
6612 _elem13 = iprot.readString();
6613 struct.erts.add(_elem13);
6615 iprot.readListEnd();
6617 struct.setErtsIsSet(true);
6619 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6623 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6625 iprot.readFieldEnd();
6627 iprot.readStructEnd();
6629 // check for required fields of primitive type, which can't be checked in the validate method
6633 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
6636 oprot.writeStructBegin(STRUCT_DESC);
6637 if (struct.rd != null) {
6638 oprot.writeFieldBegin(RD_FIELD_DESC);
6639 oprot.writeString(struct.rd);
6640 oprot.writeFieldEnd();
6642 if (struct.irts != null) {
6643 oprot.writeFieldBegin(IRTS_FIELD_DESC);
6645 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
6646 for (String _iter14 : struct.irts)
6648 oprot.writeString(_iter14);
6650 oprot.writeListEnd();
6652 oprot.writeFieldEnd();
6654 if (struct.erts != null) {
6655 oprot.writeFieldBegin(ERTS_FIELD_DESC);
6657 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
6658 for (String _iter15 : struct.erts)
6660 oprot.writeString(_iter15);
6662 oprot.writeListEnd();
6664 oprot.writeFieldEnd();
6666 oprot.writeFieldStop();
6667 oprot.writeStructEnd();
6672 private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
6673 public addVrf_argsTupleScheme getScheme() {
6674 return new addVrf_argsTupleScheme();
6678 private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
6681 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6682 TTupleProtocol oprot = (TTupleProtocol) prot;
6683 BitSet optionals = new BitSet();
6684 if (struct.isSetRd()) {
6687 if (struct.isSetIrts()) {
6690 if (struct.isSetErts()) {
6693 oprot.writeBitSet(optionals, 3);
6694 if (struct.isSetRd()) {
6695 oprot.writeString(struct.rd);
6697 if (struct.isSetIrts()) {
6699 oprot.writeI32(struct.irts.size());
6700 for (String _iter16 : struct.irts)
6702 oprot.writeString(_iter16);
6706 if (struct.isSetErts()) {
6708 oprot.writeI32(struct.erts.size());
6709 for (String _iter17 : struct.erts)
6711 oprot.writeString(_iter17);
6718 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
6719 TTupleProtocol iprot = (TTupleProtocol) prot;
6720 BitSet incoming = iprot.readBitSet(3);
6721 if (incoming.get(0)) {
6722 struct.rd = iprot.readString();
6723 struct.setRdIsSet(true);
6725 if (incoming.get(1)) {
6727 org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6728 struct.irts = new ArrayList<String>(_list18.size);
6729 for (int _i19 = 0; _i19 < _list18.size; ++_i19)
6732 _elem20 = iprot.readString();
6733 struct.irts.add(_elem20);
6736 struct.setIrtsIsSet(true);
6738 if (incoming.get(2)) {
6740 org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
6741 struct.erts = new ArrayList<String>(_list21.size);
6742 for (int _i22 = 0; _i22 < _list21.size; ++_i22)
6745 _elem23 = iprot.readString();
6746 struct.erts.add(_elem23);
6749 struct.setErtsIsSet(true);
6756 public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result> {
6757 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
6759 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);
6761 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6763 schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
6764 schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
6767 public int success; // required
6769 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6770 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6771 SUCCESS((short)0, "success");
6773 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6776 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6777 byName.put(field.getFieldName(), field);
6782 * Find the _Fields constant that matches fieldId, or null if its not found.
6784 public static _Fields findByThriftId(int fieldId) {
6794 * Find the _Fields constant that matches fieldId, throwing an exception
6795 * if it is not found.
6797 public static _Fields findByThriftIdOrThrow(int fieldId) {
6798 _Fields fields = findByThriftId(fieldId);
6799 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6804 * Find the _Fields constant that matches name, or null if its not found.
6806 public static _Fields findByName(String name) {
6807 return byName.get(name);
6810 private final short _thriftId;
6811 private final String _fieldName;
6813 _Fields(short thriftId, String fieldName) {
6814 _thriftId = thriftId;
6815 _fieldName = fieldName;
6818 public short getThriftFieldId() {
6822 public String getFieldName() {
6827 // isset id assignments
6828 private static final int __SUCCESS_ISSET_ID = 0;
6829 private byte __isset_bitfield = 0;
6830 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6832 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6833 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6834 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6835 metaDataMap = Collections.unmodifiableMap(tmpMap);
6836 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
6839 public addVrf_result() {
6842 public addVrf_result(
6846 this.success = success;
6847 setSuccessIsSet(true);
6851 * Performs a deep copy on <i>other</i>.
6853 public addVrf_result(addVrf_result other) {
6854 __isset_bitfield = other.__isset_bitfield;
6855 this.success = other.success;
6858 public addVrf_result deepCopy() {
6859 return new addVrf_result(this);
6863 public void clear() {
6864 setSuccessIsSet(false);
6868 public int getSuccess() {
6869 return this.success;
6872 public addVrf_result setSuccess(int success) {
6873 this.success = success;
6874 setSuccessIsSet(true);
6878 public void unsetSuccess() {
6879 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6882 /** Returns true if field success is set (has been assigned a value) and false otherwise */
6883 public boolean isSetSuccess() {
6884 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6887 public void setSuccessIsSet(boolean value) {
6888 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6891 public void setFieldValue(_Fields field, Object value) {
6894 if (value == null) {
6897 setSuccess((Integer)value);
6904 public Object getFieldValue(_Fields field) {
6907 return Integer.valueOf(getSuccess());
6910 throw new IllegalStateException();
6913 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6914 public boolean isSet(_Fields field) {
6915 if (field == null) {
6916 throw new IllegalArgumentException();
6921 return isSetSuccess();
6923 throw new IllegalStateException();
6927 public boolean equals(Object that) {
6930 if (that instanceof addVrf_result)
6931 return this.equals((addVrf_result)that);
6935 public boolean equals(addVrf_result that) {
6939 boolean this_present_success = true;
6940 boolean that_present_success = true;
6941 if (this_present_success || that_present_success) {
6942 if (!(this_present_success && that_present_success))
6944 if (this.success != that.success)
6952 public int hashCode() {
6957 public int compareTo(addVrf_result other) {
6958 if (!getClass().equals(other.getClass())) {
6959 return getClass().getName().compareTo(other.getClass().getName());
6962 int lastComparison = 0;
6964 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6965 if (lastComparison != 0) {
6966 return lastComparison;
6968 if (isSetSuccess()) {
6969 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6970 if (lastComparison != 0) {
6971 return lastComparison;
6977 public _Fields fieldForId(int fieldId) {
6978 return _Fields.findByThriftId(fieldId);
6981 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6982 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6985 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6986 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6990 public String toString() {
6991 StringBuilder sb = new StringBuilder("addVrf_result(");
6992 boolean first = true;
6994 sb.append("success:");
6995 sb.append(this.success);
6998 return sb.toString();
7001 public void validate() throws org.apache.thrift.TException {
7002 // check for required fields
7003 // check for sub-struct validity
7006 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7008 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7009 } catch (org.apache.thrift.TException te) {
7010 throw new java.io.IOException(te);
7014 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7016 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7017 __isset_bitfield = 0;
7018 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7019 } catch (org.apache.thrift.TException te) {
7020 throw new java.io.IOException(te);
7024 private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
7025 public addVrf_resultStandardScheme getScheme() {
7026 return new addVrf_resultStandardScheme();
7030 private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
7032 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
7033 org.apache.thrift.protocol.TField schemeField;
7034 iprot.readStructBegin();
7037 schemeField = iprot.readFieldBegin();
7038 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7041 switch (schemeField.id) {
7043 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7044 struct.success = iprot.readI32();
7045 struct.setSuccessIsSet(true);
7047 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7051 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7053 iprot.readFieldEnd();
7055 iprot.readStructEnd();
7057 // check for required fields of primitive type, which can't be checked in the validate method
7061 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
7064 oprot.writeStructBegin(STRUCT_DESC);
7065 if (struct.isSetSuccess()) {
7066 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7067 oprot.writeI32(struct.success);
7068 oprot.writeFieldEnd();
7070 oprot.writeFieldStop();
7071 oprot.writeStructEnd();
7076 private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
7077 public addVrf_resultTupleScheme getScheme() {
7078 return new addVrf_resultTupleScheme();
7082 private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
7085 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7086 TTupleProtocol oprot = (TTupleProtocol) prot;
7087 BitSet optionals = new BitSet();
7088 if (struct.isSetSuccess()) {
7091 oprot.writeBitSet(optionals, 1);
7092 if (struct.isSetSuccess()) {
7093 oprot.writeI32(struct.success);
7098 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
7099 TTupleProtocol iprot = (TTupleProtocol) prot;
7100 BitSet incoming = iprot.readBitSet(1);
7101 if (incoming.get(0)) {
7102 struct.success = iprot.readI32();
7103 struct.setSuccessIsSet(true);
7110 public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args> {
7111 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
7113 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);
7115 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7117 schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
7118 schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
7121 public String rd; // required
7123 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7124 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7127 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7130 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7131 byName.put(field.getFieldName(), field);
7136 * Find the _Fields constant that matches fieldId, or null if its not found.
7138 public static _Fields findByThriftId(int fieldId) {
7148 * Find the _Fields constant that matches fieldId, throwing an exception
7149 * if it is not found.
7151 public static _Fields findByThriftIdOrThrow(int fieldId) {
7152 _Fields fields = findByThriftId(fieldId);
7153 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7158 * Find the _Fields constant that matches name, or null if its not found.
7160 public static _Fields findByName(String name) {
7161 return byName.get(name);
7164 private final short _thriftId;
7165 private final String _fieldName;
7167 _Fields(short thriftId, String fieldName) {
7168 _thriftId = thriftId;
7169 _fieldName = fieldName;
7172 public short getThriftFieldId() {
7176 public String getFieldName() {
7181 // isset id assignments
7182 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7184 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7185 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
7186 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7187 metaDataMap = Collections.unmodifiableMap(tmpMap);
7188 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
7191 public delVrf_args() {
7202 * Performs a deep copy on <i>other</i>.
7204 public delVrf_args(delVrf_args other) {
7205 if (other.isSetRd()) {
7210 public delVrf_args deepCopy() {
7211 return new delVrf_args(this);
7215 public void clear() {
7219 public String getRd() {
7223 public delVrf_args setRd(String rd) {
7228 public void unsetRd() {
7232 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7233 public boolean isSetRd() {
7234 return this.rd != null;
7237 public void setRdIsSet(boolean value) {
7243 public void setFieldValue(_Fields field, Object value) {
7246 if (value == null) {
7249 setRd((String)value);
7256 public Object getFieldValue(_Fields field) {
7262 throw new IllegalStateException();
7265 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7266 public boolean isSet(_Fields field) {
7267 if (field == null) {
7268 throw new IllegalArgumentException();
7275 throw new IllegalStateException();
7279 public boolean equals(Object that) {
7282 if (that instanceof delVrf_args)
7283 return this.equals((delVrf_args)that);
7287 public boolean equals(delVrf_args that) {
7291 boolean this_present_rd = true && this.isSetRd();
7292 boolean that_present_rd = true && that.isSetRd();
7293 if (this_present_rd || that_present_rd) {
7294 if (!(this_present_rd && that_present_rd))
7296 if (!this.rd.equals(that.rd))
7304 public int hashCode() {
7309 public int compareTo(delVrf_args other) {
7310 if (!getClass().equals(other.getClass())) {
7311 return getClass().getName().compareTo(other.getClass().getName());
7314 int lastComparison = 0;
7316 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7317 if (lastComparison != 0) {
7318 return lastComparison;
7321 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7322 if (lastComparison != 0) {
7323 return lastComparison;
7329 public _Fields fieldForId(int fieldId) {
7330 return _Fields.findByThriftId(fieldId);
7333 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7334 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7337 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7338 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7342 public String toString() {
7343 StringBuilder sb = new StringBuilder("delVrf_args(");
7344 boolean first = true;
7347 if (this.rd == null) {
7354 return sb.toString();
7357 public void validate() throws org.apache.thrift.TException {
7358 // check for required fields
7359 // check for sub-struct validity
7362 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7364 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7365 } catch (org.apache.thrift.TException te) {
7366 throw new java.io.IOException(te);
7370 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7372 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7373 } catch (org.apache.thrift.TException te) {
7374 throw new java.io.IOException(te);
7378 private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
7379 public delVrf_argsStandardScheme getScheme() {
7380 return new delVrf_argsStandardScheme();
7384 private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
7386 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
7387 org.apache.thrift.protocol.TField schemeField;
7388 iprot.readStructBegin();
7391 schemeField = iprot.readFieldBegin();
7392 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7395 switch (schemeField.id) {
7397 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7398 struct.rd = iprot.readString();
7399 struct.setRdIsSet(true);
7401 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7405 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7407 iprot.readFieldEnd();
7409 iprot.readStructEnd();
7411 // check for required fields of primitive type, which can't be checked in the validate method
7415 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
7418 oprot.writeStructBegin(STRUCT_DESC);
7419 if (struct.rd != null) {
7420 oprot.writeFieldBegin(RD_FIELD_DESC);
7421 oprot.writeString(struct.rd);
7422 oprot.writeFieldEnd();
7424 oprot.writeFieldStop();
7425 oprot.writeStructEnd();
7430 private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
7431 public delVrf_argsTupleScheme getScheme() {
7432 return new delVrf_argsTupleScheme();
7436 private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
7439 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7440 TTupleProtocol oprot = (TTupleProtocol) prot;
7441 BitSet optionals = new BitSet();
7442 if (struct.isSetRd()) {
7445 oprot.writeBitSet(optionals, 1);
7446 if (struct.isSetRd()) {
7447 oprot.writeString(struct.rd);
7452 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
7453 TTupleProtocol iprot = (TTupleProtocol) prot;
7454 BitSet incoming = iprot.readBitSet(1);
7455 if (incoming.get(0)) {
7456 struct.rd = iprot.readString();
7457 struct.setRdIsSet(true);
7464 public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result> {
7465 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
7467 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);
7469 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7471 schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
7472 schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
7475 public int success; // required
7477 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7478 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7479 SUCCESS((short)0, "success");
7481 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7484 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7485 byName.put(field.getFieldName(), field);
7490 * Find the _Fields constant that matches fieldId, or null if its not found.
7492 public static _Fields findByThriftId(int fieldId) {
7502 * Find the _Fields constant that matches fieldId, throwing an exception
7503 * if it is not found.
7505 public static _Fields findByThriftIdOrThrow(int fieldId) {
7506 _Fields fields = findByThriftId(fieldId);
7507 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7512 * Find the _Fields constant that matches name, or null if its not found.
7514 public static _Fields findByName(String name) {
7515 return byName.get(name);
7518 private final short _thriftId;
7519 private final String _fieldName;
7521 _Fields(short thriftId, String fieldName) {
7522 _thriftId = thriftId;
7523 _fieldName = fieldName;
7526 public short getThriftFieldId() {
7530 public String getFieldName() {
7535 // isset id assignments
7536 private static final int __SUCCESS_ISSET_ID = 0;
7537 private byte __isset_bitfield = 0;
7538 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7540 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7541 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7542 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7543 metaDataMap = Collections.unmodifiableMap(tmpMap);
7544 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
7547 public delVrf_result() {
7550 public delVrf_result(
7554 this.success = success;
7555 setSuccessIsSet(true);
7559 * Performs a deep copy on <i>other</i>.
7561 public delVrf_result(delVrf_result other) {
7562 __isset_bitfield = other.__isset_bitfield;
7563 this.success = other.success;
7566 public delVrf_result deepCopy() {
7567 return new delVrf_result(this);
7571 public void clear() {
7572 setSuccessIsSet(false);
7576 public int getSuccess() {
7577 return this.success;
7580 public delVrf_result setSuccess(int success) {
7581 this.success = success;
7582 setSuccessIsSet(true);
7586 public void unsetSuccess() {
7587 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7590 /** Returns true if field success is set (has been assigned a value) and false otherwise */
7591 public boolean isSetSuccess() {
7592 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7595 public void setSuccessIsSet(boolean value) {
7596 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7599 public void setFieldValue(_Fields field, Object value) {
7602 if (value == null) {
7605 setSuccess((Integer)value);
7612 public Object getFieldValue(_Fields field) {
7615 return Integer.valueOf(getSuccess());
7618 throw new IllegalStateException();
7621 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7622 public boolean isSet(_Fields field) {
7623 if (field == null) {
7624 throw new IllegalArgumentException();
7629 return isSetSuccess();
7631 throw new IllegalStateException();
7635 public boolean equals(Object that) {
7638 if (that instanceof delVrf_result)
7639 return this.equals((delVrf_result)that);
7643 public boolean equals(delVrf_result that) {
7647 boolean this_present_success = true;
7648 boolean that_present_success = true;
7649 if (this_present_success || that_present_success) {
7650 if (!(this_present_success && that_present_success))
7652 if (this.success != that.success)
7660 public int hashCode() {
7665 public int compareTo(delVrf_result other) {
7666 if (!getClass().equals(other.getClass())) {
7667 return getClass().getName().compareTo(other.getClass().getName());
7670 int lastComparison = 0;
7672 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7673 if (lastComparison != 0) {
7674 return lastComparison;
7676 if (isSetSuccess()) {
7677 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7678 if (lastComparison != 0) {
7679 return lastComparison;
7685 public _Fields fieldForId(int fieldId) {
7686 return _Fields.findByThriftId(fieldId);
7689 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7690 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7693 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7694 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7698 public String toString() {
7699 StringBuilder sb = new StringBuilder("delVrf_result(");
7700 boolean first = true;
7702 sb.append("success:");
7703 sb.append(this.success);
7706 return sb.toString();
7709 public void validate() throws org.apache.thrift.TException {
7710 // check for required fields
7711 // check for sub-struct validity
7714 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7716 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7717 } catch (org.apache.thrift.TException te) {
7718 throw new java.io.IOException(te);
7722 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7724 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7725 __isset_bitfield = 0;
7726 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7727 } catch (org.apache.thrift.TException te) {
7728 throw new java.io.IOException(te);
7732 private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
7733 public delVrf_resultStandardScheme getScheme() {
7734 return new delVrf_resultStandardScheme();
7738 private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
7740 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
7741 org.apache.thrift.protocol.TField schemeField;
7742 iprot.readStructBegin();
7745 schemeField = iprot.readFieldBegin();
7746 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7749 switch (schemeField.id) {
7751 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7752 struct.success = iprot.readI32();
7753 struct.setSuccessIsSet(true);
7755 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7759 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7761 iprot.readFieldEnd();
7763 iprot.readStructEnd();
7765 // check for required fields of primitive type, which can't be checked in the validate method
7769 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
7772 oprot.writeStructBegin(STRUCT_DESC);
7773 if (struct.isSetSuccess()) {
7774 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7775 oprot.writeI32(struct.success);
7776 oprot.writeFieldEnd();
7778 oprot.writeFieldStop();
7779 oprot.writeStructEnd();
7784 private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
7785 public delVrf_resultTupleScheme getScheme() {
7786 return new delVrf_resultTupleScheme();
7790 private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
7793 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7794 TTupleProtocol oprot = (TTupleProtocol) prot;
7795 BitSet optionals = new BitSet();
7796 if (struct.isSetSuccess()) {
7799 oprot.writeBitSet(optionals, 1);
7800 if (struct.isSetSuccess()) {
7801 oprot.writeI32(struct.success);
7806 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
7807 TTupleProtocol iprot = (TTupleProtocol) prot;
7808 BitSet incoming = iprot.readBitSet(1);
7809 if (incoming.get(0)) {
7810 struct.success = iprot.readI32();
7811 struct.setSuccessIsSet(true);
7818 public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args> {
7819 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
7821 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);
7822 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);
7823 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);
7824 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);
7826 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7828 schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
7829 schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
7832 public String prefix; // required
7833 public String nexthop; // required
7834 public String rd; // required
7835 public int label; // required
7837 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7838 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7839 PREFIX((short)1, "prefix"),
7840 NEXTHOP((short)2, "nexthop"),
7842 LABEL((short)4, "label");
7844 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7847 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7848 byName.put(field.getFieldName(), field);
7853 * Find the _Fields constant that matches fieldId, or null if its not found.
7855 public static _Fields findByThriftId(int fieldId) {
7871 * Find the _Fields constant that matches fieldId, throwing an exception
7872 * if it is not found.
7874 public static _Fields findByThriftIdOrThrow(int fieldId) {
7875 _Fields fields = findByThriftId(fieldId);
7876 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7881 * Find the _Fields constant that matches name, or null if its not found.
7883 public static _Fields findByName(String name) {
7884 return byName.get(name);
7887 private final short _thriftId;
7888 private final String _fieldName;
7890 _Fields(short thriftId, String fieldName) {
7891 _thriftId = thriftId;
7892 _fieldName = fieldName;
7895 public short getThriftFieldId() {
7899 public String getFieldName() {
7904 // isset id assignments
7905 private static final int __LABEL_ISSET_ID = 0;
7906 private byte __isset_bitfield = 0;
7907 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7909 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7910 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
7911 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7912 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
7913 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7914 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
7915 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7916 tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
7917 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7918 metaDataMap = Collections.unmodifiableMap(tmpMap);
7919 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
7922 public pushRoute_args() {
7925 public pushRoute_args(
7932 this.prefix = prefix;
7933 this.nexthop = nexthop;
7936 setLabelIsSet(true);
7940 * Performs a deep copy on <i>other</i>.
7942 public pushRoute_args(pushRoute_args other) {
7943 __isset_bitfield = other.__isset_bitfield;
7944 if (other.isSetPrefix()) {
7945 this.prefix = other.prefix;
7947 if (other.isSetNexthop()) {
7948 this.nexthop = other.nexthop;
7950 if (other.isSetRd()) {
7953 this.label = other.label;
7956 public pushRoute_args deepCopy() {
7957 return new pushRoute_args(this);
7961 public void clear() {
7963 this.nexthop = null;
7965 setLabelIsSet(false);
7969 public String getPrefix() {
7973 public pushRoute_args setPrefix(String prefix) {
7974 this.prefix = prefix;
7978 public void unsetPrefix() {
7982 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
7983 public boolean isSetPrefix() {
7984 return this.prefix != null;
7987 public void setPrefixIsSet(boolean value) {
7993 public String getNexthop() {
7994 return this.nexthop;
7997 public pushRoute_args setNexthop(String nexthop) {
7998 this.nexthop = nexthop;
8002 public void unsetNexthop() {
8003 this.nexthop = null;
8006 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
8007 public boolean isSetNexthop() {
8008 return this.nexthop != null;
8011 public void setNexthopIsSet(boolean value) {
8013 this.nexthop = null;
8017 public String getRd() {
8021 public pushRoute_args setRd(String rd) {
8026 public void unsetRd() {
8030 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8031 public boolean isSetRd() {
8032 return this.rd != null;
8035 public void setRdIsSet(boolean value) {
8041 public int getLabel() {
8045 public pushRoute_args setLabel(int label) {
8047 setLabelIsSet(true);
8051 public void unsetLabel() {
8052 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
8055 /** Returns true if field label is set (has been assigned a value) and false otherwise */
8056 public boolean isSetLabel() {
8057 return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
8060 public void setLabelIsSet(boolean value) {
8061 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
8064 public void setFieldValue(_Fields field, Object value) {
8067 if (value == null) {
8070 setPrefix((String)value);
8075 if (value == null) {
8078 setNexthop((String)value);
8083 if (value == null) {
8086 setRd((String)value);
8091 if (value == null) {
8094 setLabel((Integer)value);
8101 public Object getFieldValue(_Fields field) {
8107 return getNexthop();
8113 return Integer.valueOf(getLabel());
8116 throw new IllegalStateException();
8119 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8120 public boolean isSet(_Fields field) {
8121 if (field == null) {
8122 throw new IllegalArgumentException();
8127 return isSetPrefix();
8129 return isSetNexthop();
8133 return isSetLabel();
8135 throw new IllegalStateException();
8139 public boolean equals(Object that) {
8142 if (that instanceof pushRoute_args)
8143 return this.equals((pushRoute_args)that);
8147 public boolean equals(pushRoute_args that) {
8151 boolean this_present_prefix = true && this.isSetPrefix();
8152 boolean that_present_prefix = true && that.isSetPrefix();
8153 if (this_present_prefix || that_present_prefix) {
8154 if (!(this_present_prefix && that_present_prefix))
8156 if (!this.prefix.equals(that.prefix))
8160 boolean this_present_nexthop = true && this.isSetNexthop();
8161 boolean that_present_nexthop = true && that.isSetNexthop();
8162 if (this_present_nexthop || that_present_nexthop) {
8163 if (!(this_present_nexthop && that_present_nexthop))
8165 if (!this.nexthop.equals(that.nexthop))
8169 boolean this_present_rd = true && this.isSetRd();
8170 boolean that_present_rd = true && that.isSetRd();
8171 if (this_present_rd || that_present_rd) {
8172 if (!(this_present_rd && that_present_rd))
8174 if (!this.rd.equals(that.rd))
8178 boolean this_present_label = true;
8179 boolean that_present_label = true;
8180 if (this_present_label || that_present_label) {
8181 if (!(this_present_label && that_present_label))
8183 if (this.label != that.label)
8191 public int hashCode() {
8196 public int compareTo(pushRoute_args other) {
8197 if (!getClass().equals(other.getClass())) {
8198 return getClass().getName().compareTo(other.getClass().getName());
8201 int lastComparison = 0;
8203 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
8204 if (lastComparison != 0) {
8205 return lastComparison;
8207 if (isSetPrefix()) {
8208 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
8209 if (lastComparison != 0) {
8210 return lastComparison;
8213 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
8214 if (lastComparison != 0) {
8215 return lastComparison;
8217 if (isSetNexthop()) {
8218 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
8219 if (lastComparison != 0) {
8220 return lastComparison;
8223 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8224 if (lastComparison != 0) {
8225 return lastComparison;
8228 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8229 if (lastComparison != 0) {
8230 return lastComparison;
8233 lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
8234 if (lastComparison != 0) {
8235 return lastComparison;
8238 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
8239 if (lastComparison != 0) {
8240 return lastComparison;
8246 public _Fields fieldForId(int fieldId) {
8247 return _Fields.findByThriftId(fieldId);
8250 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8251 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8254 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8255 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8259 public String toString() {
8260 StringBuilder sb = new StringBuilder("pushRoute_args(");
8261 boolean first = true;
8263 sb.append("prefix:");
8264 if (this.prefix == null) {
8267 sb.append(this.prefix);
8270 if (!first) sb.append(", ");
8271 sb.append("nexthop:");
8272 if (this.nexthop == null) {
8275 sb.append(this.nexthop);
8278 if (!first) sb.append(", ");
8280 if (this.rd == null) {
8286 if (!first) sb.append(", ");
8287 sb.append("label:");
8288 sb.append(this.label);
8291 return sb.toString();
8294 public void validate() throws org.apache.thrift.TException {
8295 // check for required fields
8296 // check for sub-struct validity
8299 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8301 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8302 } catch (org.apache.thrift.TException te) {
8303 throw new java.io.IOException(te);
8307 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8309 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8310 __isset_bitfield = 0;
8311 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8312 } catch (org.apache.thrift.TException te) {
8313 throw new java.io.IOException(te);
8317 private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
8318 public pushRoute_argsStandardScheme getScheme() {
8319 return new pushRoute_argsStandardScheme();
8323 private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
8325 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
8326 org.apache.thrift.protocol.TField schemeField;
8327 iprot.readStructBegin();
8330 schemeField = iprot.readFieldBegin();
8331 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8334 switch (schemeField.id) {
8336 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8337 struct.prefix = iprot.readString();
8338 struct.setPrefixIsSet(true);
8340 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8344 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8345 struct.nexthop = iprot.readString();
8346 struct.setNexthopIsSet(true);
8348 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8352 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8353 struct.rd = iprot.readString();
8354 struct.setRdIsSet(true);
8356 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8360 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8361 struct.label = iprot.readI32();
8362 struct.setLabelIsSet(true);
8364 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8368 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8370 iprot.readFieldEnd();
8372 iprot.readStructEnd();
8374 // check for required fields of primitive type, which can't be checked in the validate method
8378 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
8381 oprot.writeStructBegin(STRUCT_DESC);
8382 if (struct.prefix != null) {
8383 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
8384 oprot.writeString(struct.prefix);
8385 oprot.writeFieldEnd();
8387 if (struct.nexthop != null) {
8388 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
8389 oprot.writeString(struct.nexthop);
8390 oprot.writeFieldEnd();
8392 if (struct.rd != null) {
8393 oprot.writeFieldBegin(RD_FIELD_DESC);
8394 oprot.writeString(struct.rd);
8395 oprot.writeFieldEnd();
8397 oprot.writeFieldBegin(LABEL_FIELD_DESC);
8398 oprot.writeI32(struct.label);
8399 oprot.writeFieldEnd();
8400 oprot.writeFieldStop();
8401 oprot.writeStructEnd();
8406 private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
8407 public pushRoute_argsTupleScheme getScheme() {
8408 return new pushRoute_argsTupleScheme();
8412 private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
8415 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8416 TTupleProtocol oprot = (TTupleProtocol) prot;
8417 BitSet optionals = new BitSet();
8418 if (struct.isSetPrefix()) {
8421 if (struct.isSetNexthop()) {
8424 if (struct.isSetRd()) {
8427 if (struct.isSetLabel()) {
8430 oprot.writeBitSet(optionals, 4);
8431 if (struct.isSetPrefix()) {
8432 oprot.writeString(struct.prefix);
8434 if (struct.isSetNexthop()) {
8435 oprot.writeString(struct.nexthop);
8437 if (struct.isSetRd()) {
8438 oprot.writeString(struct.rd);
8440 if (struct.isSetLabel()) {
8441 oprot.writeI32(struct.label);
8446 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
8447 TTupleProtocol iprot = (TTupleProtocol) prot;
8448 BitSet incoming = iprot.readBitSet(4);
8449 if (incoming.get(0)) {
8450 struct.prefix = iprot.readString();
8451 struct.setPrefixIsSet(true);
8453 if (incoming.get(1)) {
8454 struct.nexthop = iprot.readString();
8455 struct.setNexthopIsSet(true);
8457 if (incoming.get(2)) {
8458 struct.rd = iprot.readString();
8459 struct.setRdIsSet(true);
8461 if (incoming.get(3)) {
8462 struct.label = iprot.readI32();
8463 struct.setLabelIsSet(true);
8470 public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result> {
8471 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
8473 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);
8475 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8477 schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
8478 schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
8481 public int success; // required
8483 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8484 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8485 SUCCESS((short)0, "success");
8487 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8490 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8491 byName.put(field.getFieldName(), field);
8496 * Find the _Fields constant that matches fieldId, or null if its not found.
8498 public static _Fields findByThriftId(int fieldId) {
8508 * Find the _Fields constant that matches fieldId, throwing an exception
8509 * if it is not found.
8511 public static _Fields findByThriftIdOrThrow(int fieldId) {
8512 _Fields fields = findByThriftId(fieldId);
8513 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8518 * Find the _Fields constant that matches name, or null if its not found.
8520 public static _Fields findByName(String name) {
8521 return byName.get(name);
8524 private final short _thriftId;
8525 private final String _fieldName;
8527 _Fields(short thriftId, String fieldName) {
8528 _thriftId = thriftId;
8529 _fieldName = fieldName;
8532 public short getThriftFieldId() {
8536 public String getFieldName() {
8541 // isset id assignments
8542 private static final int __SUCCESS_ISSET_ID = 0;
8543 private byte __isset_bitfield = 0;
8544 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8546 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8547 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8548 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8549 metaDataMap = Collections.unmodifiableMap(tmpMap);
8550 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
8553 public pushRoute_result() {
8556 public pushRoute_result(
8560 this.success = success;
8561 setSuccessIsSet(true);
8565 * Performs a deep copy on <i>other</i>.
8567 public pushRoute_result(pushRoute_result other) {
8568 __isset_bitfield = other.__isset_bitfield;
8569 this.success = other.success;
8572 public pushRoute_result deepCopy() {
8573 return new pushRoute_result(this);
8577 public void clear() {
8578 setSuccessIsSet(false);
8582 public int getSuccess() {
8583 return this.success;
8586 public pushRoute_result setSuccess(int success) {
8587 this.success = success;
8588 setSuccessIsSet(true);
8592 public void unsetSuccess() {
8593 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8596 /** Returns true if field success is set (has been assigned a value) and false otherwise */
8597 public boolean isSetSuccess() {
8598 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8601 public void setSuccessIsSet(boolean value) {
8602 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8605 public void setFieldValue(_Fields field, Object value) {
8608 if (value == null) {
8611 setSuccess((Integer)value);
8618 public Object getFieldValue(_Fields field) {
8621 return Integer.valueOf(getSuccess());
8624 throw new IllegalStateException();
8627 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8628 public boolean isSet(_Fields field) {
8629 if (field == null) {
8630 throw new IllegalArgumentException();
8635 return isSetSuccess();
8637 throw new IllegalStateException();
8641 public boolean equals(Object that) {
8644 if (that instanceof pushRoute_result)
8645 return this.equals((pushRoute_result)that);
8649 public boolean equals(pushRoute_result that) {
8653 boolean this_present_success = true;
8654 boolean that_present_success = true;
8655 if (this_present_success || that_present_success) {
8656 if (!(this_present_success && that_present_success))
8658 if (this.success != that.success)
8666 public int hashCode() {
8671 public int compareTo(pushRoute_result other) {
8672 if (!getClass().equals(other.getClass())) {
8673 return getClass().getName().compareTo(other.getClass().getName());
8676 int lastComparison = 0;
8678 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8679 if (lastComparison != 0) {
8680 return lastComparison;
8682 if (isSetSuccess()) {
8683 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8684 if (lastComparison != 0) {
8685 return lastComparison;
8691 public _Fields fieldForId(int fieldId) {
8692 return _Fields.findByThriftId(fieldId);
8695 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8696 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8699 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8700 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8704 public String toString() {
8705 StringBuilder sb = new StringBuilder("pushRoute_result(");
8706 boolean first = true;
8708 sb.append("success:");
8709 sb.append(this.success);
8712 return sb.toString();
8715 public void validate() throws org.apache.thrift.TException {
8716 // check for required fields
8717 // check for sub-struct validity
8720 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8722 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8723 } catch (org.apache.thrift.TException te) {
8724 throw new java.io.IOException(te);
8728 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8730 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8731 __isset_bitfield = 0;
8732 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8733 } catch (org.apache.thrift.TException te) {
8734 throw new java.io.IOException(te);
8738 private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
8739 public pushRoute_resultStandardScheme getScheme() {
8740 return new pushRoute_resultStandardScheme();
8744 private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
8746 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
8747 org.apache.thrift.protocol.TField schemeField;
8748 iprot.readStructBegin();
8751 schemeField = iprot.readFieldBegin();
8752 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8755 switch (schemeField.id) {
8757 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8758 struct.success = iprot.readI32();
8759 struct.setSuccessIsSet(true);
8761 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8765 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8767 iprot.readFieldEnd();
8769 iprot.readStructEnd();
8771 // check for required fields of primitive type, which can't be checked in the validate method
8775 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
8778 oprot.writeStructBegin(STRUCT_DESC);
8779 if (struct.isSetSuccess()) {
8780 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8781 oprot.writeI32(struct.success);
8782 oprot.writeFieldEnd();
8784 oprot.writeFieldStop();
8785 oprot.writeStructEnd();
8790 private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
8791 public pushRoute_resultTupleScheme getScheme() {
8792 return new pushRoute_resultTupleScheme();
8796 private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
8799 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8800 TTupleProtocol oprot = (TTupleProtocol) prot;
8801 BitSet optionals = new BitSet();
8802 if (struct.isSetSuccess()) {
8805 oprot.writeBitSet(optionals, 1);
8806 if (struct.isSetSuccess()) {
8807 oprot.writeI32(struct.success);
8812 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
8813 TTupleProtocol iprot = (TTupleProtocol) prot;
8814 BitSet incoming = iprot.readBitSet(1);
8815 if (incoming.get(0)) {
8816 struct.success = iprot.readI32();
8817 struct.setSuccessIsSet(true);
8824 public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args> {
8825 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
8827 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);
8828 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);
8830 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8832 schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
8833 schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
8836 public String prefix; // required
8837 public String rd; // required
8839 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8840 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8841 PREFIX((short)1, "prefix"),
8844 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8847 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8848 byName.put(field.getFieldName(), field);
8853 * Find the _Fields constant that matches fieldId, or null if its not found.
8855 public static _Fields findByThriftId(int fieldId) {
8867 * Find the _Fields constant that matches fieldId, throwing an exception
8868 * if it is not found.
8870 public static _Fields findByThriftIdOrThrow(int fieldId) {
8871 _Fields fields = findByThriftId(fieldId);
8872 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8877 * Find the _Fields constant that matches name, or null if its not found.
8879 public static _Fields findByName(String name) {
8880 return byName.get(name);
8883 private final short _thriftId;
8884 private final String _fieldName;
8886 _Fields(short thriftId, String fieldName) {
8887 _thriftId = thriftId;
8888 _fieldName = fieldName;
8891 public short getThriftFieldId() {
8895 public String getFieldName() {
8900 // isset id assignments
8901 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8903 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8904 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
8905 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8906 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8907 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8908 metaDataMap = Collections.unmodifiableMap(tmpMap);
8909 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
8912 public withdrawRoute_args() {
8915 public withdrawRoute_args(
8920 this.prefix = prefix;
8925 * Performs a deep copy on <i>other</i>.
8927 public withdrawRoute_args(withdrawRoute_args other) {
8928 if (other.isSetPrefix()) {
8929 this.prefix = other.prefix;
8931 if (other.isSetRd()) {
8936 public withdrawRoute_args deepCopy() {
8937 return new withdrawRoute_args(this);
8941 public void clear() {
8946 public String getPrefix() {
8950 public withdrawRoute_args setPrefix(String prefix) {
8951 this.prefix = prefix;
8955 public void unsetPrefix() {
8959 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
8960 public boolean isSetPrefix() {
8961 return this.prefix != null;
8964 public void setPrefixIsSet(boolean value) {
8970 public String getRd() {
8974 public withdrawRoute_args setRd(String rd) {
8979 public void unsetRd() {
8983 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8984 public boolean isSetRd() {
8985 return this.rd != null;
8988 public void setRdIsSet(boolean value) {
8994 public void setFieldValue(_Fields field, Object value) {
8997 if (value == null) {
9000 setPrefix((String)value);
9005 if (value == null) {
9008 setRd((String)value);
9015 public Object getFieldValue(_Fields field) {
9024 throw new IllegalStateException();
9027 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9028 public boolean isSet(_Fields field) {
9029 if (field == null) {
9030 throw new IllegalArgumentException();
9035 return isSetPrefix();
9039 throw new IllegalStateException();
9043 public boolean equals(Object that) {
9046 if (that instanceof withdrawRoute_args)
9047 return this.equals((withdrawRoute_args)that);
9051 public boolean equals(withdrawRoute_args that) {
9055 boolean this_present_prefix = true && this.isSetPrefix();
9056 boolean that_present_prefix = true && that.isSetPrefix();
9057 if (this_present_prefix || that_present_prefix) {
9058 if (!(this_present_prefix && that_present_prefix))
9060 if (!this.prefix.equals(that.prefix))
9064 boolean this_present_rd = true && this.isSetRd();
9065 boolean that_present_rd = true && that.isSetRd();
9066 if (this_present_rd || that_present_rd) {
9067 if (!(this_present_rd && that_present_rd))
9069 if (!this.rd.equals(that.rd))
9077 public int hashCode() {
9082 public int compareTo(withdrawRoute_args other) {
9083 if (!getClass().equals(other.getClass())) {
9084 return getClass().getName().compareTo(other.getClass().getName());
9087 int lastComparison = 0;
9089 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
9090 if (lastComparison != 0) {
9091 return lastComparison;
9093 if (isSetPrefix()) {
9094 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
9095 if (lastComparison != 0) {
9096 return lastComparison;
9099 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9100 if (lastComparison != 0) {
9101 return lastComparison;
9104 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9105 if (lastComparison != 0) {
9106 return lastComparison;
9112 public _Fields fieldForId(int fieldId) {
9113 return _Fields.findByThriftId(fieldId);
9116 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9117 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9120 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9121 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9125 public String toString() {
9126 StringBuilder sb = new StringBuilder("withdrawRoute_args(");
9127 boolean first = true;
9129 sb.append("prefix:");
9130 if (this.prefix == null) {
9133 sb.append(this.prefix);
9136 if (!first) sb.append(", ");
9138 if (this.rd == null) {
9145 return sb.toString();
9148 public void validate() throws org.apache.thrift.TException {
9149 // check for required fields
9150 // check for sub-struct validity
9153 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9155 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9156 } catch (org.apache.thrift.TException te) {
9157 throw new java.io.IOException(te);
9161 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9163 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9164 } catch (org.apache.thrift.TException te) {
9165 throw new java.io.IOException(te);
9169 private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
9170 public withdrawRoute_argsStandardScheme getScheme() {
9171 return new withdrawRoute_argsStandardScheme();
9175 private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
9177 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9178 org.apache.thrift.protocol.TField schemeField;
9179 iprot.readStructBegin();
9182 schemeField = iprot.readFieldBegin();
9183 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9186 switch (schemeField.id) {
9188 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9189 struct.prefix = iprot.readString();
9190 struct.setPrefixIsSet(true);
9192 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9196 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9197 struct.rd = iprot.readString();
9198 struct.setRdIsSet(true);
9200 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9204 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9206 iprot.readFieldEnd();
9208 iprot.readStructEnd();
9210 // check for required fields of primitive type, which can't be checked in the validate method
9214 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9217 oprot.writeStructBegin(STRUCT_DESC);
9218 if (struct.prefix != null) {
9219 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
9220 oprot.writeString(struct.prefix);
9221 oprot.writeFieldEnd();
9223 if (struct.rd != null) {
9224 oprot.writeFieldBegin(RD_FIELD_DESC);
9225 oprot.writeString(struct.rd);
9226 oprot.writeFieldEnd();
9228 oprot.writeFieldStop();
9229 oprot.writeStructEnd();
9234 private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
9235 public withdrawRoute_argsTupleScheme getScheme() {
9236 return new withdrawRoute_argsTupleScheme();
9240 private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
9243 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9244 TTupleProtocol oprot = (TTupleProtocol) prot;
9245 BitSet optionals = new BitSet();
9246 if (struct.isSetPrefix()) {
9249 if (struct.isSetRd()) {
9252 oprot.writeBitSet(optionals, 2);
9253 if (struct.isSetPrefix()) {
9254 oprot.writeString(struct.prefix);
9256 if (struct.isSetRd()) {
9257 oprot.writeString(struct.rd);
9262 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
9263 TTupleProtocol iprot = (TTupleProtocol) prot;
9264 BitSet incoming = iprot.readBitSet(2);
9265 if (incoming.get(0)) {
9266 struct.prefix = iprot.readString();
9267 struct.setPrefixIsSet(true);
9269 if (incoming.get(1)) {
9270 struct.rd = iprot.readString();
9271 struct.setRdIsSet(true);
9278 public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result> {
9279 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
9281 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);
9283 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9285 schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
9286 schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
9289 public int success; // required
9291 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9292 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9293 SUCCESS((short)0, "success");
9295 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9298 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9299 byName.put(field.getFieldName(), field);
9304 * Find the _Fields constant that matches fieldId, or null if its not found.
9306 public static _Fields findByThriftId(int fieldId) {
9316 * Find the _Fields constant that matches fieldId, throwing an exception
9317 * if it is not found.
9319 public static _Fields findByThriftIdOrThrow(int fieldId) {
9320 _Fields fields = findByThriftId(fieldId);
9321 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9326 * Find the _Fields constant that matches name, or null if its not found.
9328 public static _Fields findByName(String name) {
9329 return byName.get(name);
9332 private final short _thriftId;
9333 private final String _fieldName;
9335 _Fields(short thriftId, String fieldName) {
9336 _thriftId = thriftId;
9337 _fieldName = fieldName;
9340 public short getThriftFieldId() {
9344 public String getFieldName() {
9349 // isset id assignments
9350 private static final int __SUCCESS_ISSET_ID = 0;
9351 private byte __isset_bitfield = 0;
9352 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9354 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9355 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9356 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9357 metaDataMap = Collections.unmodifiableMap(tmpMap);
9358 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
9361 public withdrawRoute_result() {
9364 public withdrawRoute_result(
9368 this.success = success;
9369 setSuccessIsSet(true);
9373 * Performs a deep copy on <i>other</i>.
9375 public withdrawRoute_result(withdrawRoute_result other) {
9376 __isset_bitfield = other.__isset_bitfield;
9377 this.success = other.success;
9380 public withdrawRoute_result deepCopy() {
9381 return new withdrawRoute_result(this);
9385 public void clear() {
9386 setSuccessIsSet(false);
9390 public int getSuccess() {
9391 return this.success;
9394 public withdrawRoute_result setSuccess(int success) {
9395 this.success = success;
9396 setSuccessIsSet(true);
9400 public void unsetSuccess() {
9401 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9404 /** Returns true if field success is set (has been assigned a value) and false otherwise */
9405 public boolean isSetSuccess() {
9406 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9409 public void setSuccessIsSet(boolean value) {
9410 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9413 public void setFieldValue(_Fields field, Object value) {
9416 if (value == null) {
9419 setSuccess((Integer)value);
9426 public Object getFieldValue(_Fields field) {
9429 return Integer.valueOf(getSuccess());
9432 throw new IllegalStateException();
9435 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9436 public boolean isSet(_Fields field) {
9437 if (field == null) {
9438 throw new IllegalArgumentException();
9443 return isSetSuccess();
9445 throw new IllegalStateException();
9449 public boolean equals(Object that) {
9452 if (that instanceof withdrawRoute_result)
9453 return this.equals((withdrawRoute_result)that);
9457 public boolean equals(withdrawRoute_result that) {
9461 boolean this_present_success = true;
9462 boolean that_present_success = true;
9463 if (this_present_success || that_present_success) {
9464 if (!(this_present_success && that_present_success))
9466 if (this.success != that.success)
9474 public int hashCode() {
9479 public int compareTo(withdrawRoute_result other) {
9480 if (!getClass().equals(other.getClass())) {
9481 return getClass().getName().compareTo(other.getClass().getName());
9484 int lastComparison = 0;
9486 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9487 if (lastComparison != 0) {
9488 return lastComparison;
9490 if (isSetSuccess()) {
9491 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9492 if (lastComparison != 0) {
9493 return lastComparison;
9499 public _Fields fieldForId(int fieldId) {
9500 return _Fields.findByThriftId(fieldId);
9503 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9504 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9507 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9508 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9512 public String toString() {
9513 StringBuilder sb = new StringBuilder("withdrawRoute_result(");
9514 boolean first = true;
9516 sb.append("success:");
9517 sb.append(this.success);
9520 return sb.toString();
9523 public void validate() throws org.apache.thrift.TException {
9524 // check for required fields
9525 // check for sub-struct validity
9528 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9530 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9531 } catch (org.apache.thrift.TException te) {
9532 throw new java.io.IOException(te);
9536 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9538 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9539 __isset_bitfield = 0;
9540 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9541 } catch (org.apache.thrift.TException te) {
9542 throw new java.io.IOException(te);
9546 private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
9547 public withdrawRoute_resultStandardScheme getScheme() {
9548 return new withdrawRoute_resultStandardScheme();
9552 private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
9554 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9555 org.apache.thrift.protocol.TField schemeField;
9556 iprot.readStructBegin();
9559 schemeField = iprot.readFieldBegin();
9560 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9563 switch (schemeField.id) {
9565 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9566 struct.success = iprot.readI32();
9567 struct.setSuccessIsSet(true);
9569 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9573 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9575 iprot.readFieldEnd();
9577 iprot.readStructEnd();
9579 // check for required fields of primitive type, which can't be checked in the validate method
9583 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9586 oprot.writeStructBegin(STRUCT_DESC);
9587 if (struct.isSetSuccess()) {
9588 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9589 oprot.writeI32(struct.success);
9590 oprot.writeFieldEnd();
9592 oprot.writeFieldStop();
9593 oprot.writeStructEnd();
9598 private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
9599 public withdrawRoute_resultTupleScheme getScheme() {
9600 return new withdrawRoute_resultTupleScheme();
9604 private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
9607 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9608 TTupleProtocol oprot = (TTupleProtocol) prot;
9609 BitSet optionals = new BitSet();
9610 if (struct.isSetSuccess()) {
9613 oprot.writeBitSet(optionals, 1);
9614 if (struct.isSetSuccess()) {
9615 oprot.writeI32(struct.success);
9620 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
9621 TTupleProtocol iprot = (TTupleProtocol) prot;
9622 BitSet incoming = iprot.readBitSet(1);
9623 if (incoming.get(0)) {
9624 struct.success = iprot.readI32();
9625 struct.setSuccessIsSet(true);
9632 public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args> {
9633 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
9635 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);
9636 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);
9638 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9640 schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
9641 schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
9644 public String peerIp; // required
9645 public int nHops; // required
9647 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9648 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9649 PEER_IP((short)1, "peerIp"),
9650 N_HOPS((short)2, "nHops");
9652 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9655 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9656 byName.put(field.getFieldName(), field);
9661 * Find the _Fields constant that matches fieldId, or null if its not found.
9663 public static _Fields findByThriftId(int fieldId) {
9675 * Find the _Fields constant that matches fieldId, throwing an exception
9676 * if it is not found.
9678 public static _Fields findByThriftIdOrThrow(int fieldId) {
9679 _Fields fields = findByThriftId(fieldId);
9680 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9685 * Find the _Fields constant that matches name, or null if its not found.
9687 public static _Fields findByName(String name) {
9688 return byName.get(name);
9691 private final short _thriftId;
9692 private final String _fieldName;
9694 _Fields(short thriftId, String fieldName) {
9695 _thriftId = thriftId;
9696 _fieldName = fieldName;
9699 public short getThriftFieldId() {
9703 public String getFieldName() {
9708 // isset id assignments
9709 private static final int __NHOPS_ISSET_ID = 0;
9710 private byte __isset_bitfield = 0;
9711 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9713 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9714 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
9715 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9716 tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
9717 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9718 metaDataMap = Collections.unmodifiableMap(tmpMap);
9719 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
9722 public setEbgpMultihop_args() {
9725 public setEbgpMultihop_args(
9730 this.peerIp = peerIp;
9732 setNHopsIsSet(true);
9736 * Performs a deep copy on <i>other</i>.
9738 public setEbgpMultihop_args(setEbgpMultihop_args other) {
9739 __isset_bitfield = other.__isset_bitfield;
9740 if (other.isSetPeerIp()) {
9741 this.peerIp = other.peerIp;
9743 this.nHops = other.nHops;
9746 public setEbgpMultihop_args deepCopy() {
9747 return new setEbgpMultihop_args(this);
9751 public void clear() {
9753 setNHopsIsSet(false);
9757 public String getPeerIp() {
9761 public setEbgpMultihop_args setPeerIp(String peerIp) {
9762 this.peerIp = peerIp;
9766 public void unsetPeerIp() {
9770 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
9771 public boolean isSetPeerIp() {
9772 return this.peerIp != null;
9775 public void setPeerIpIsSet(boolean value) {
9781 public int getNHops() {
9785 public setEbgpMultihop_args setNHops(int nHops) {
9787 setNHopsIsSet(true);
9791 public void unsetNHops() {
9792 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
9795 /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
9796 public boolean isSetNHops() {
9797 return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
9800 public void setNHopsIsSet(boolean value) {
9801 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
9804 public void setFieldValue(_Fields field, Object value) {
9807 if (value == null) {
9810 setPeerIp((String)value);
9815 if (value == null) {
9818 setNHops((Integer)value);
9825 public Object getFieldValue(_Fields field) {
9831 return Integer.valueOf(getNHops());
9834 throw new IllegalStateException();
9837 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9838 public boolean isSet(_Fields field) {
9839 if (field == null) {
9840 throw new IllegalArgumentException();
9845 return isSetPeerIp();
9847 return isSetNHops();
9849 throw new IllegalStateException();
9853 public boolean equals(Object that) {
9856 if (that instanceof setEbgpMultihop_args)
9857 return this.equals((setEbgpMultihop_args)that);
9861 public boolean equals(setEbgpMultihop_args that) {
9865 boolean this_present_peerIp = true && this.isSetPeerIp();
9866 boolean that_present_peerIp = true && that.isSetPeerIp();
9867 if (this_present_peerIp || that_present_peerIp) {
9868 if (!(this_present_peerIp && that_present_peerIp))
9870 if (!this.peerIp.equals(that.peerIp))
9874 boolean this_present_nHops = true;
9875 boolean that_present_nHops = true;
9876 if (this_present_nHops || that_present_nHops) {
9877 if (!(this_present_nHops && that_present_nHops))
9879 if (this.nHops != that.nHops)
9887 public int hashCode() {
9892 public int compareTo(setEbgpMultihop_args other) {
9893 if (!getClass().equals(other.getClass())) {
9894 return getClass().getName().compareTo(other.getClass().getName());
9897 int lastComparison = 0;
9899 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
9900 if (lastComparison != 0) {
9901 return lastComparison;
9903 if (isSetPeerIp()) {
9904 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
9905 if (lastComparison != 0) {
9906 return lastComparison;
9909 lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
9910 if (lastComparison != 0) {
9911 return lastComparison;
9914 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
9915 if (lastComparison != 0) {
9916 return lastComparison;
9922 public _Fields fieldForId(int fieldId) {
9923 return _Fields.findByThriftId(fieldId);
9926 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9927 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9930 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9931 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9935 public String toString() {
9936 StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
9937 boolean first = true;
9939 sb.append("peerIp:");
9940 if (this.peerIp == null) {
9943 sb.append(this.peerIp);
9946 if (!first) sb.append(", ");
9947 sb.append("nHops:");
9948 sb.append(this.nHops);
9951 return sb.toString();
9954 public void validate() throws org.apache.thrift.TException {
9955 // check for required fields
9956 // check for sub-struct validity
9959 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9961 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9962 } catch (org.apache.thrift.TException te) {
9963 throw new java.io.IOException(te);
9967 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9969 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9970 __isset_bitfield = 0;
9971 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9972 } catch (org.apache.thrift.TException te) {
9973 throw new java.io.IOException(te);
9977 private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
9978 public setEbgpMultihop_argsStandardScheme getScheme() {
9979 return new setEbgpMultihop_argsStandardScheme();
9983 private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
9985 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
9986 org.apache.thrift.protocol.TField schemeField;
9987 iprot.readStructBegin();
9990 schemeField = iprot.readFieldBegin();
9991 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9994 switch (schemeField.id) {
9996 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9997 struct.peerIp = iprot.readString();
9998 struct.setPeerIpIsSet(true);
10000 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10004 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10005 struct.nHops = iprot.readI32();
10006 struct.setNHopsIsSet(true);
10008 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10012 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10014 iprot.readFieldEnd();
10016 iprot.readStructEnd();
10018 // check for required fields of primitive type, which can't be checked in the validate method
10022 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10025 oprot.writeStructBegin(STRUCT_DESC);
10026 if (struct.peerIp != null) {
10027 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10028 oprot.writeString(struct.peerIp);
10029 oprot.writeFieldEnd();
10031 oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
10032 oprot.writeI32(struct.nHops);
10033 oprot.writeFieldEnd();
10034 oprot.writeFieldStop();
10035 oprot.writeStructEnd();
10040 private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10041 public setEbgpMultihop_argsTupleScheme getScheme() {
10042 return new setEbgpMultihop_argsTupleScheme();
10046 private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
10049 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10050 TTupleProtocol oprot = (TTupleProtocol) prot;
10051 BitSet optionals = new BitSet();
10052 if (struct.isSetPeerIp()) {
10055 if (struct.isSetNHops()) {
10058 oprot.writeBitSet(optionals, 2);
10059 if (struct.isSetPeerIp()) {
10060 oprot.writeString(struct.peerIp);
10062 if (struct.isSetNHops()) {
10063 oprot.writeI32(struct.nHops);
10068 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
10069 TTupleProtocol iprot = (TTupleProtocol) prot;
10070 BitSet incoming = iprot.readBitSet(2);
10071 if (incoming.get(0)) {
10072 struct.peerIp = iprot.readString();
10073 struct.setPeerIpIsSet(true);
10075 if (incoming.get(1)) {
10076 struct.nHops = iprot.readI32();
10077 struct.setNHopsIsSet(true);
10084 public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result> {
10085 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
10087 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);
10089 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10091 schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
10092 schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
10095 public int success; // required
10097 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10098 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10099 SUCCESS((short)0, "success");
10101 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10104 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10105 byName.put(field.getFieldName(), field);
10110 * Find the _Fields constant that matches fieldId, or null if its not found.
10112 public static _Fields findByThriftId(int fieldId) {
10122 * Find the _Fields constant that matches fieldId, throwing an exception
10123 * if it is not found.
10125 public static _Fields findByThriftIdOrThrow(int fieldId) {
10126 _Fields fields = findByThriftId(fieldId);
10127 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10132 * Find the _Fields constant that matches name, or null if its not found.
10134 public static _Fields findByName(String name) {
10135 return byName.get(name);
10138 private final short _thriftId;
10139 private final String _fieldName;
10141 _Fields(short thriftId, String fieldName) {
10142 _thriftId = thriftId;
10143 _fieldName = fieldName;
10146 public short getThriftFieldId() {
10150 public String getFieldName() {
10155 // isset id assignments
10156 private static final int __SUCCESS_ISSET_ID = 0;
10157 private byte __isset_bitfield = 0;
10158 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10160 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10161 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10162 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10163 metaDataMap = Collections.unmodifiableMap(tmpMap);
10164 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
10167 public setEbgpMultihop_result() {
10170 public setEbgpMultihop_result(
10174 this.success = success;
10175 setSuccessIsSet(true);
10179 * Performs a deep copy on <i>other</i>.
10181 public setEbgpMultihop_result(setEbgpMultihop_result other) {
10182 __isset_bitfield = other.__isset_bitfield;
10183 this.success = other.success;
10186 public setEbgpMultihop_result deepCopy() {
10187 return new setEbgpMultihop_result(this);
10191 public void clear() {
10192 setSuccessIsSet(false);
10196 public int getSuccess() {
10197 return this.success;
10200 public setEbgpMultihop_result setSuccess(int success) {
10201 this.success = success;
10202 setSuccessIsSet(true);
10206 public void unsetSuccess() {
10207 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10210 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10211 public boolean isSetSuccess() {
10212 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10215 public void setSuccessIsSet(boolean value) {
10216 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10219 public void setFieldValue(_Fields field, Object value) {
10222 if (value == null) {
10225 setSuccess((Integer)value);
10232 public Object getFieldValue(_Fields field) {
10235 return Integer.valueOf(getSuccess());
10238 throw new IllegalStateException();
10241 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10242 public boolean isSet(_Fields field) {
10243 if (field == null) {
10244 throw new IllegalArgumentException();
10249 return isSetSuccess();
10251 throw new IllegalStateException();
10255 public boolean equals(Object that) {
10258 if (that instanceof setEbgpMultihop_result)
10259 return this.equals((setEbgpMultihop_result)that);
10263 public boolean equals(setEbgpMultihop_result that) {
10267 boolean this_present_success = true;
10268 boolean that_present_success = true;
10269 if (this_present_success || that_present_success) {
10270 if (!(this_present_success && that_present_success))
10272 if (this.success != that.success)
10280 public int hashCode() {
10285 public int compareTo(setEbgpMultihop_result other) {
10286 if (!getClass().equals(other.getClass())) {
10287 return getClass().getName().compareTo(other.getClass().getName());
10290 int lastComparison = 0;
10292 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10293 if (lastComparison != 0) {
10294 return lastComparison;
10296 if (isSetSuccess()) {
10297 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10298 if (lastComparison != 0) {
10299 return lastComparison;
10305 public _Fields fieldForId(int fieldId) {
10306 return _Fields.findByThriftId(fieldId);
10309 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10310 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10313 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10314 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10318 public String toString() {
10319 StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
10320 boolean first = true;
10322 sb.append("success:");
10323 sb.append(this.success);
10326 return sb.toString();
10329 public void validate() throws org.apache.thrift.TException {
10330 // check for required fields
10331 // check for sub-struct validity
10334 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10336 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10337 } catch (org.apache.thrift.TException te) {
10338 throw new java.io.IOException(te);
10342 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10344 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10345 __isset_bitfield = 0;
10346 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10347 } catch (org.apache.thrift.TException te) {
10348 throw new java.io.IOException(te);
10352 private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
10353 public setEbgpMultihop_resultStandardScheme getScheme() {
10354 return new setEbgpMultihop_resultStandardScheme();
10358 private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
10360 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10361 org.apache.thrift.protocol.TField schemeField;
10362 iprot.readStructBegin();
10365 schemeField = iprot.readFieldBegin();
10366 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10369 switch (schemeField.id) {
10371 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10372 struct.success = iprot.readI32();
10373 struct.setSuccessIsSet(true);
10375 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10379 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10381 iprot.readFieldEnd();
10383 iprot.readStructEnd();
10385 // check for required fields of primitive type, which can't be checked in the validate method
10389 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10392 oprot.writeStructBegin(STRUCT_DESC);
10393 if (struct.isSetSuccess()) {
10394 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10395 oprot.writeI32(struct.success);
10396 oprot.writeFieldEnd();
10398 oprot.writeFieldStop();
10399 oprot.writeStructEnd();
10404 private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
10405 public setEbgpMultihop_resultTupleScheme getScheme() {
10406 return new setEbgpMultihop_resultTupleScheme();
10410 private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
10413 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10414 TTupleProtocol oprot = (TTupleProtocol) prot;
10415 BitSet optionals = new BitSet();
10416 if (struct.isSetSuccess()) {
10419 oprot.writeBitSet(optionals, 1);
10420 if (struct.isSetSuccess()) {
10421 oprot.writeI32(struct.success);
10426 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
10427 TTupleProtocol iprot = (TTupleProtocol) prot;
10428 BitSet incoming = iprot.readBitSet(1);
10429 if (incoming.get(0)) {
10430 struct.success = iprot.readI32();
10431 struct.setSuccessIsSet(true);
10438 public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args> {
10439 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
10441 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);
10443 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10445 schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
10446 schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
10449 public String peerIp; // required
10451 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10452 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10453 PEER_IP((short)1, "peerIp");
10455 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10458 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10459 byName.put(field.getFieldName(), field);
10464 * Find the _Fields constant that matches fieldId, or null if its not found.
10466 public static _Fields findByThriftId(int fieldId) {
10476 * Find the _Fields constant that matches fieldId, throwing an exception
10477 * if it is not found.
10479 public static _Fields findByThriftIdOrThrow(int fieldId) {
10480 _Fields fields = findByThriftId(fieldId);
10481 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10486 * Find the _Fields constant that matches name, or null if its not found.
10488 public static _Fields findByName(String name) {
10489 return byName.get(name);
10492 private final short _thriftId;
10493 private final String _fieldName;
10495 _Fields(short thriftId, String fieldName) {
10496 _thriftId = thriftId;
10497 _fieldName = fieldName;
10500 public short getThriftFieldId() {
10504 public String getFieldName() {
10509 // isset id assignments
10510 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10512 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10513 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
10514 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10515 metaDataMap = Collections.unmodifiableMap(tmpMap);
10516 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
10519 public unsetEbgpMultihop_args() {
10522 public unsetEbgpMultihop_args(
10526 this.peerIp = peerIp;
10530 * Performs a deep copy on <i>other</i>.
10532 public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
10533 if (other.isSetPeerIp()) {
10534 this.peerIp = other.peerIp;
10538 public unsetEbgpMultihop_args deepCopy() {
10539 return new unsetEbgpMultihop_args(this);
10543 public void clear() {
10544 this.peerIp = null;
10547 public String getPeerIp() {
10548 return this.peerIp;
10551 public unsetEbgpMultihop_args setPeerIp(String peerIp) {
10552 this.peerIp = peerIp;
10556 public void unsetPeerIp() {
10557 this.peerIp = null;
10560 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
10561 public boolean isSetPeerIp() {
10562 return this.peerIp != null;
10565 public void setPeerIpIsSet(boolean value) {
10567 this.peerIp = null;
10571 public void setFieldValue(_Fields field, Object value) {
10574 if (value == null) {
10577 setPeerIp((String)value);
10584 public Object getFieldValue(_Fields field) {
10587 return getPeerIp();
10590 throw new IllegalStateException();
10593 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10594 public boolean isSet(_Fields field) {
10595 if (field == null) {
10596 throw new IllegalArgumentException();
10601 return isSetPeerIp();
10603 throw new IllegalStateException();
10607 public boolean equals(Object that) {
10610 if (that instanceof unsetEbgpMultihop_args)
10611 return this.equals((unsetEbgpMultihop_args)that);
10615 public boolean equals(unsetEbgpMultihop_args that) {
10619 boolean this_present_peerIp = true && this.isSetPeerIp();
10620 boolean that_present_peerIp = true && that.isSetPeerIp();
10621 if (this_present_peerIp || that_present_peerIp) {
10622 if (!(this_present_peerIp && that_present_peerIp))
10624 if (!this.peerIp.equals(that.peerIp))
10632 public int hashCode() {
10637 public int compareTo(unsetEbgpMultihop_args other) {
10638 if (!getClass().equals(other.getClass())) {
10639 return getClass().getName().compareTo(other.getClass().getName());
10642 int lastComparison = 0;
10644 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
10645 if (lastComparison != 0) {
10646 return lastComparison;
10648 if (isSetPeerIp()) {
10649 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
10650 if (lastComparison != 0) {
10651 return lastComparison;
10657 public _Fields fieldForId(int fieldId) {
10658 return _Fields.findByThriftId(fieldId);
10661 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10662 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10665 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10666 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10670 public String toString() {
10671 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
10672 boolean first = true;
10674 sb.append("peerIp:");
10675 if (this.peerIp == null) {
10678 sb.append(this.peerIp);
10682 return sb.toString();
10685 public void validate() throws org.apache.thrift.TException {
10686 // check for required fields
10687 // check for sub-struct validity
10690 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10692 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10693 } catch (org.apache.thrift.TException te) {
10694 throw new java.io.IOException(te);
10698 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10700 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10701 } catch (org.apache.thrift.TException te) {
10702 throw new java.io.IOException(te);
10706 private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
10707 public unsetEbgpMultihop_argsStandardScheme getScheme() {
10708 return new unsetEbgpMultihop_argsStandardScheme();
10712 private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
10714 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10715 org.apache.thrift.protocol.TField schemeField;
10716 iprot.readStructBegin();
10719 schemeField = iprot.readFieldBegin();
10720 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10723 switch (schemeField.id) {
10725 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10726 struct.peerIp = iprot.readString();
10727 struct.setPeerIpIsSet(true);
10729 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10733 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10735 iprot.readFieldEnd();
10737 iprot.readStructEnd();
10739 // check for required fields of primitive type, which can't be checked in the validate method
10743 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10746 oprot.writeStructBegin(STRUCT_DESC);
10747 if (struct.peerIp != null) {
10748 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
10749 oprot.writeString(struct.peerIp);
10750 oprot.writeFieldEnd();
10752 oprot.writeFieldStop();
10753 oprot.writeStructEnd();
10758 private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
10759 public unsetEbgpMultihop_argsTupleScheme getScheme() {
10760 return new unsetEbgpMultihop_argsTupleScheme();
10764 private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
10767 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10768 TTupleProtocol oprot = (TTupleProtocol) prot;
10769 BitSet optionals = new BitSet();
10770 if (struct.isSetPeerIp()) {
10773 oprot.writeBitSet(optionals, 1);
10774 if (struct.isSetPeerIp()) {
10775 oprot.writeString(struct.peerIp);
10780 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
10781 TTupleProtocol iprot = (TTupleProtocol) prot;
10782 BitSet incoming = iprot.readBitSet(1);
10783 if (incoming.get(0)) {
10784 struct.peerIp = iprot.readString();
10785 struct.setPeerIpIsSet(true);
10792 public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result> {
10793 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
10795 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);
10797 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10799 schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
10800 schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
10803 public int success; // required
10805 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10806 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10807 SUCCESS((short)0, "success");
10809 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10812 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10813 byName.put(field.getFieldName(), field);
10818 * Find the _Fields constant that matches fieldId, or null if its not found.
10820 public static _Fields findByThriftId(int fieldId) {
10830 * Find the _Fields constant that matches fieldId, throwing an exception
10831 * if it is not found.
10833 public static _Fields findByThriftIdOrThrow(int fieldId) {
10834 _Fields fields = findByThriftId(fieldId);
10835 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10840 * Find the _Fields constant that matches name, or null if its not found.
10842 public static _Fields findByName(String name) {
10843 return byName.get(name);
10846 private final short _thriftId;
10847 private final String _fieldName;
10849 _Fields(short thriftId, String fieldName) {
10850 _thriftId = thriftId;
10851 _fieldName = fieldName;
10854 public short getThriftFieldId() {
10858 public String getFieldName() {
10863 // isset id assignments
10864 private static final int __SUCCESS_ISSET_ID = 0;
10865 private byte __isset_bitfield = 0;
10866 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10868 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10869 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10870 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10871 metaDataMap = Collections.unmodifiableMap(tmpMap);
10872 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
10875 public unsetEbgpMultihop_result() {
10878 public unsetEbgpMultihop_result(
10882 this.success = success;
10883 setSuccessIsSet(true);
10887 * Performs a deep copy on <i>other</i>.
10889 public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
10890 __isset_bitfield = other.__isset_bitfield;
10891 this.success = other.success;
10894 public unsetEbgpMultihop_result deepCopy() {
10895 return new unsetEbgpMultihop_result(this);
10899 public void clear() {
10900 setSuccessIsSet(false);
10904 public int getSuccess() {
10905 return this.success;
10908 public unsetEbgpMultihop_result setSuccess(int success) {
10909 this.success = success;
10910 setSuccessIsSet(true);
10914 public void unsetSuccess() {
10915 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10918 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10919 public boolean isSetSuccess() {
10920 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10923 public void setSuccessIsSet(boolean value) {
10924 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10927 public void setFieldValue(_Fields field, Object value) {
10930 if (value == null) {
10933 setSuccess((Integer)value);
10940 public Object getFieldValue(_Fields field) {
10943 return Integer.valueOf(getSuccess());
10946 throw new IllegalStateException();
10949 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10950 public boolean isSet(_Fields field) {
10951 if (field == null) {
10952 throw new IllegalArgumentException();
10957 return isSetSuccess();
10959 throw new IllegalStateException();
10963 public boolean equals(Object that) {
10966 if (that instanceof unsetEbgpMultihop_result)
10967 return this.equals((unsetEbgpMultihop_result)that);
10971 public boolean equals(unsetEbgpMultihop_result that) {
10975 boolean this_present_success = true;
10976 boolean that_present_success = true;
10977 if (this_present_success || that_present_success) {
10978 if (!(this_present_success && that_present_success))
10980 if (this.success != that.success)
10988 public int hashCode() {
10993 public int compareTo(unsetEbgpMultihop_result other) {
10994 if (!getClass().equals(other.getClass())) {
10995 return getClass().getName().compareTo(other.getClass().getName());
10998 int lastComparison = 0;
11000 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11001 if (lastComparison != 0) {
11002 return lastComparison;
11004 if (isSetSuccess()) {
11005 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11006 if (lastComparison != 0) {
11007 return lastComparison;
11013 public _Fields fieldForId(int fieldId) {
11014 return _Fields.findByThriftId(fieldId);
11017 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11018 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11021 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11022 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11026 public String toString() {
11027 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
11028 boolean first = true;
11030 sb.append("success:");
11031 sb.append(this.success);
11034 return sb.toString();
11037 public void validate() throws org.apache.thrift.TException {
11038 // check for required fields
11039 // check for sub-struct validity
11042 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11044 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11045 } catch (org.apache.thrift.TException te) {
11046 throw new java.io.IOException(te);
11050 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11052 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11053 __isset_bitfield = 0;
11054 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11055 } catch (org.apache.thrift.TException te) {
11056 throw new java.io.IOException(te);
11060 private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
11061 public unsetEbgpMultihop_resultStandardScheme getScheme() {
11062 return new unsetEbgpMultihop_resultStandardScheme();
11066 private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
11068 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11069 org.apache.thrift.protocol.TField schemeField;
11070 iprot.readStructBegin();
11073 schemeField = iprot.readFieldBegin();
11074 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11077 switch (schemeField.id) {
11079 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11080 struct.success = iprot.readI32();
11081 struct.setSuccessIsSet(true);
11083 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11089 iprot.readFieldEnd();
11091 iprot.readStructEnd();
11093 // check for required fields of primitive type, which can't be checked in the validate method
11097 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11100 oprot.writeStructBegin(STRUCT_DESC);
11101 if (struct.isSetSuccess()) {
11102 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11103 oprot.writeI32(struct.success);
11104 oprot.writeFieldEnd();
11106 oprot.writeFieldStop();
11107 oprot.writeStructEnd();
11112 private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
11113 public unsetEbgpMultihop_resultTupleScheme getScheme() {
11114 return new unsetEbgpMultihop_resultTupleScheme();
11118 private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
11121 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11122 TTupleProtocol oprot = (TTupleProtocol) prot;
11123 BitSet optionals = new BitSet();
11124 if (struct.isSetSuccess()) {
11127 oprot.writeBitSet(optionals, 1);
11128 if (struct.isSetSuccess()) {
11129 oprot.writeI32(struct.success);
11134 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
11135 TTupleProtocol iprot = (TTupleProtocol) prot;
11136 BitSet incoming = iprot.readBitSet(1);
11137 if (incoming.get(0)) {
11138 struct.success = iprot.readI32();
11139 struct.setSuccessIsSet(true);
11146 public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args> {
11147 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
11149 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);
11150 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);
11152 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11154 schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
11155 schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
11158 public String peerIp; // required
11159 public String srcIp; // required
11161 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11162 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11163 PEER_IP((short)1, "peerIp"),
11164 SRC_IP((short)2, "srcIp");
11166 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11169 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11170 byName.put(field.getFieldName(), field);
11175 * Find the _Fields constant that matches fieldId, or null if its not found.
11177 public static _Fields findByThriftId(int fieldId) {
11189 * Find the _Fields constant that matches fieldId, throwing an exception
11190 * if it is not found.
11192 public static _Fields findByThriftIdOrThrow(int fieldId) {
11193 _Fields fields = findByThriftId(fieldId);
11194 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11199 * Find the _Fields constant that matches name, or null if its not found.
11201 public static _Fields findByName(String name) {
11202 return byName.get(name);
11205 private final short _thriftId;
11206 private final String _fieldName;
11208 _Fields(short thriftId, String fieldName) {
11209 _thriftId = thriftId;
11210 _fieldName = fieldName;
11213 public short getThriftFieldId() {
11217 public String getFieldName() {
11222 // isset id assignments
11223 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11225 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11226 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
11227 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11228 tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
11229 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11230 metaDataMap = Collections.unmodifiableMap(tmpMap);
11231 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
11234 public setUpdateSource_args() {
11237 public setUpdateSource_args(
11242 this.peerIp = peerIp;
11243 this.srcIp = srcIp;
11247 * Performs a deep copy on <i>other</i>.
11249 public setUpdateSource_args(setUpdateSource_args other) {
11250 if (other.isSetPeerIp()) {
11251 this.peerIp = other.peerIp;
11253 if (other.isSetSrcIp()) {
11254 this.srcIp = other.srcIp;
11258 public setUpdateSource_args deepCopy() {
11259 return new setUpdateSource_args(this);
11263 public void clear() {
11264 this.peerIp = null;
11268 public String getPeerIp() {
11269 return this.peerIp;
11272 public setUpdateSource_args setPeerIp(String peerIp) {
11273 this.peerIp = peerIp;
11277 public void unsetPeerIp() {
11278 this.peerIp = null;
11281 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
11282 public boolean isSetPeerIp() {
11283 return this.peerIp != null;
11286 public void setPeerIpIsSet(boolean value) {
11288 this.peerIp = null;
11292 public String getSrcIp() {
11296 public setUpdateSource_args setSrcIp(String srcIp) {
11297 this.srcIp = srcIp;
11301 public void unsetSrcIp() {
11305 /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
11306 public boolean isSetSrcIp() {
11307 return this.srcIp != null;
11310 public void setSrcIpIsSet(boolean value) {
11316 public void setFieldValue(_Fields field, Object value) {
11319 if (value == null) {
11322 setPeerIp((String)value);
11327 if (value == null) {
11330 setSrcIp((String)value);
11337 public Object getFieldValue(_Fields field) {
11340 return getPeerIp();
11346 throw new IllegalStateException();
11349 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11350 public boolean isSet(_Fields field) {
11351 if (field == null) {
11352 throw new IllegalArgumentException();
11357 return isSetPeerIp();
11359 return isSetSrcIp();
11361 throw new IllegalStateException();
11365 public boolean equals(Object that) {
11368 if (that instanceof setUpdateSource_args)
11369 return this.equals((setUpdateSource_args)that);
11373 public boolean equals(setUpdateSource_args that) {
11377 boolean this_present_peerIp = true && this.isSetPeerIp();
11378 boolean that_present_peerIp = true && that.isSetPeerIp();
11379 if (this_present_peerIp || that_present_peerIp) {
11380 if (!(this_present_peerIp && that_present_peerIp))
11382 if (!this.peerIp.equals(that.peerIp))
11386 boolean this_present_srcIp = true && this.isSetSrcIp();
11387 boolean that_present_srcIp = true && that.isSetSrcIp();
11388 if (this_present_srcIp || that_present_srcIp) {
11389 if (!(this_present_srcIp && that_present_srcIp))
11391 if (!this.srcIp.equals(that.srcIp))
11399 public int hashCode() {
11404 public int compareTo(setUpdateSource_args other) {
11405 if (!getClass().equals(other.getClass())) {
11406 return getClass().getName().compareTo(other.getClass().getName());
11409 int lastComparison = 0;
11411 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
11412 if (lastComparison != 0) {
11413 return lastComparison;
11415 if (isSetPeerIp()) {
11416 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
11417 if (lastComparison != 0) {
11418 return lastComparison;
11421 lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
11422 if (lastComparison != 0) {
11423 return lastComparison;
11425 if (isSetSrcIp()) {
11426 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
11427 if (lastComparison != 0) {
11428 return lastComparison;
11434 public _Fields fieldForId(int fieldId) {
11435 return _Fields.findByThriftId(fieldId);
11438 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11439 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11442 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11443 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11447 public String toString() {
11448 StringBuilder sb = new StringBuilder("setUpdateSource_args(");
11449 boolean first = true;
11451 sb.append("peerIp:");
11452 if (this.peerIp == null) {
11455 sb.append(this.peerIp);
11458 if (!first) sb.append(", ");
11459 sb.append("srcIp:");
11460 if (this.srcIp == null) {
11463 sb.append(this.srcIp);
11467 return sb.toString();
11470 public void validate() throws org.apache.thrift.TException {
11471 // check for required fields
11472 // check for sub-struct validity
11475 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11477 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11478 } catch (org.apache.thrift.TException te) {
11479 throw new java.io.IOException(te);
11483 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11485 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11486 } catch (org.apache.thrift.TException te) {
11487 throw new java.io.IOException(te);
11491 private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
11492 public setUpdateSource_argsStandardScheme getScheme() {
11493 return new setUpdateSource_argsStandardScheme();
11497 private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
11499 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11500 org.apache.thrift.protocol.TField schemeField;
11501 iprot.readStructBegin();
11504 schemeField = iprot.readFieldBegin();
11505 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11508 switch (schemeField.id) {
11510 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11511 struct.peerIp = iprot.readString();
11512 struct.setPeerIpIsSet(true);
11514 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11518 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11519 struct.srcIp = iprot.readString();
11520 struct.setSrcIpIsSet(true);
11522 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11526 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11528 iprot.readFieldEnd();
11530 iprot.readStructEnd();
11532 // check for required fields of primitive type, which can't be checked in the validate method
11536 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11539 oprot.writeStructBegin(STRUCT_DESC);
11540 if (struct.peerIp != null) {
11541 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
11542 oprot.writeString(struct.peerIp);
11543 oprot.writeFieldEnd();
11545 if (struct.srcIp != null) {
11546 oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
11547 oprot.writeString(struct.srcIp);
11548 oprot.writeFieldEnd();
11550 oprot.writeFieldStop();
11551 oprot.writeStructEnd();
11556 private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
11557 public setUpdateSource_argsTupleScheme getScheme() {
11558 return new setUpdateSource_argsTupleScheme();
11562 private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
11565 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11566 TTupleProtocol oprot = (TTupleProtocol) prot;
11567 BitSet optionals = new BitSet();
11568 if (struct.isSetPeerIp()) {
11571 if (struct.isSetSrcIp()) {
11574 oprot.writeBitSet(optionals, 2);
11575 if (struct.isSetPeerIp()) {
11576 oprot.writeString(struct.peerIp);
11578 if (struct.isSetSrcIp()) {
11579 oprot.writeString(struct.srcIp);
11584 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
11585 TTupleProtocol iprot = (TTupleProtocol) prot;
11586 BitSet incoming = iprot.readBitSet(2);
11587 if (incoming.get(0)) {
11588 struct.peerIp = iprot.readString();
11589 struct.setPeerIpIsSet(true);
11591 if (incoming.get(1)) {
11592 struct.srcIp = iprot.readString();
11593 struct.setSrcIpIsSet(true);
11600 public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result> {
11601 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
11603 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);
11605 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11607 schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
11608 schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
11611 public int success; // required
11613 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11614 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11615 SUCCESS((short)0, "success");
11617 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11620 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11621 byName.put(field.getFieldName(), field);
11626 * Find the _Fields constant that matches fieldId, or null if its not found.
11628 public static _Fields findByThriftId(int fieldId) {
11638 * Find the _Fields constant that matches fieldId, throwing an exception
11639 * if it is not found.
11641 public static _Fields findByThriftIdOrThrow(int fieldId) {
11642 _Fields fields = findByThriftId(fieldId);
11643 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11648 * Find the _Fields constant that matches name, or null if its not found.
11650 public static _Fields findByName(String name) {
11651 return byName.get(name);
11654 private final short _thriftId;
11655 private final String _fieldName;
11657 _Fields(short thriftId, String fieldName) {
11658 _thriftId = thriftId;
11659 _fieldName = fieldName;
11662 public short getThriftFieldId() {
11666 public String getFieldName() {
11671 // isset id assignments
11672 private static final int __SUCCESS_ISSET_ID = 0;
11673 private byte __isset_bitfield = 0;
11674 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11676 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11677 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
11678 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11679 metaDataMap = Collections.unmodifiableMap(tmpMap);
11680 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
11683 public setUpdateSource_result() {
11686 public setUpdateSource_result(
11690 this.success = success;
11691 setSuccessIsSet(true);
11695 * Performs a deep copy on <i>other</i>.
11697 public setUpdateSource_result(setUpdateSource_result other) {
11698 __isset_bitfield = other.__isset_bitfield;
11699 this.success = other.success;
11702 public setUpdateSource_result deepCopy() {
11703 return new setUpdateSource_result(this);
11707 public void clear() {
11708 setSuccessIsSet(false);
11712 public int getSuccess() {
11713 return this.success;
11716 public setUpdateSource_result setSuccess(int success) {
11717 this.success = success;
11718 setSuccessIsSet(true);
11722 public void unsetSuccess() {
11723 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11726 /** Returns true if field success is set (has been assigned a value) and false otherwise */
11727 public boolean isSetSuccess() {
11728 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
11731 public void setSuccessIsSet(boolean value) {
11732 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
11735 public void setFieldValue(_Fields field, Object value) {
11738 if (value == null) {
11741 setSuccess((Integer)value);
11748 public Object getFieldValue(_Fields field) {
11751 return Integer.valueOf(getSuccess());
11754 throw new IllegalStateException();
11757 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11758 public boolean isSet(_Fields field) {
11759 if (field == null) {
11760 throw new IllegalArgumentException();
11765 return isSetSuccess();
11767 throw new IllegalStateException();
11771 public boolean equals(Object that) {
11774 if (that instanceof setUpdateSource_result)
11775 return this.equals((setUpdateSource_result)that);
11779 public boolean equals(setUpdateSource_result that) {
11783 boolean this_present_success = true;
11784 boolean that_present_success = true;
11785 if (this_present_success || that_present_success) {
11786 if (!(this_present_success && that_present_success))
11788 if (this.success != that.success)
11796 public int hashCode() {
11801 public int compareTo(setUpdateSource_result other) {
11802 if (!getClass().equals(other.getClass())) {
11803 return getClass().getName().compareTo(other.getClass().getName());
11806 int lastComparison = 0;
11808 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
11809 if (lastComparison != 0) {
11810 return lastComparison;
11812 if (isSetSuccess()) {
11813 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
11814 if (lastComparison != 0) {
11815 return lastComparison;
11821 public _Fields fieldForId(int fieldId) {
11822 return _Fields.findByThriftId(fieldId);
11825 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11826 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11829 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11830 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11834 public String toString() {
11835 StringBuilder sb = new StringBuilder("setUpdateSource_result(");
11836 boolean first = true;
11838 sb.append("success:");
11839 sb.append(this.success);
11842 return sb.toString();
11845 public void validate() throws org.apache.thrift.TException {
11846 // check for required fields
11847 // check for sub-struct validity
11850 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11852 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11853 } catch (org.apache.thrift.TException te) {
11854 throw new java.io.IOException(te);
11858 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11860 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11861 __isset_bitfield = 0;
11862 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11863 } catch (org.apache.thrift.TException te) {
11864 throw new java.io.IOException(te);
11868 private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
11869 public setUpdateSource_resultStandardScheme getScheme() {
11870 return new setUpdateSource_resultStandardScheme();
11874 private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
11876 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11877 org.apache.thrift.protocol.TField schemeField;
11878 iprot.readStructBegin();
11881 schemeField = iprot.readFieldBegin();
11882 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11885 switch (schemeField.id) {
11887 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11888 struct.success = iprot.readI32();
11889 struct.setSuccessIsSet(true);
11891 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11895 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11897 iprot.readFieldEnd();
11899 iprot.readStructEnd();
11901 // check for required fields of primitive type, which can't be checked in the validate method
11905 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11908 oprot.writeStructBegin(STRUCT_DESC);
11909 if (struct.isSetSuccess()) {
11910 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11911 oprot.writeI32(struct.success);
11912 oprot.writeFieldEnd();
11914 oprot.writeFieldStop();
11915 oprot.writeStructEnd();
11920 private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
11921 public setUpdateSource_resultTupleScheme getScheme() {
11922 return new setUpdateSource_resultTupleScheme();
11926 private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
11929 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11930 TTupleProtocol oprot = (TTupleProtocol) prot;
11931 BitSet optionals = new BitSet();
11932 if (struct.isSetSuccess()) {
11935 oprot.writeBitSet(optionals, 1);
11936 if (struct.isSetSuccess()) {
11937 oprot.writeI32(struct.success);
11942 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
11943 TTupleProtocol iprot = (TTupleProtocol) prot;
11944 BitSet incoming = iprot.readBitSet(1);
11945 if (incoming.get(0)) {
11946 struct.success = iprot.readI32();
11947 struct.setSuccessIsSet(true);
11954 public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args> {
11955 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
11957 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);
11959 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11961 schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
11962 schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
11965 public String peerIp; // required
11967 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11968 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11969 PEER_IP((short)1, "peerIp");
11971 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11974 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11975 byName.put(field.getFieldName(), field);
11980 * Find the _Fields constant that matches fieldId, or null if its not found.
11982 public static _Fields findByThriftId(int fieldId) {
11992 * Find the _Fields constant that matches fieldId, throwing an exception
11993 * if it is not found.
11995 public static _Fields findByThriftIdOrThrow(int fieldId) {
11996 _Fields fields = findByThriftId(fieldId);
11997 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12002 * Find the _Fields constant that matches name, or null if its not found.
12004 public static _Fields findByName(String name) {
12005 return byName.get(name);
12008 private final short _thriftId;
12009 private final String _fieldName;
12011 _Fields(short thriftId, String fieldName) {
12012 _thriftId = thriftId;
12013 _fieldName = fieldName;
12016 public short getThriftFieldId() {
12020 public String getFieldName() {
12025 // isset id assignments
12026 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12028 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12029 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
12030 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12031 metaDataMap = Collections.unmodifiableMap(tmpMap);
12032 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
12035 public unsetUpdateSource_args() {
12038 public unsetUpdateSource_args(
12042 this.peerIp = peerIp;
12046 * Performs a deep copy on <i>other</i>.
12048 public unsetUpdateSource_args(unsetUpdateSource_args other) {
12049 if (other.isSetPeerIp()) {
12050 this.peerIp = other.peerIp;
12054 public unsetUpdateSource_args deepCopy() {
12055 return new unsetUpdateSource_args(this);
12059 public void clear() {
12060 this.peerIp = null;
12063 public String getPeerIp() {
12064 return this.peerIp;
12067 public unsetUpdateSource_args setPeerIp(String peerIp) {
12068 this.peerIp = peerIp;
12072 public void unsetPeerIp() {
12073 this.peerIp = null;
12076 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12077 public boolean isSetPeerIp() {
12078 return this.peerIp != null;
12081 public void setPeerIpIsSet(boolean value) {
12083 this.peerIp = null;
12087 public void setFieldValue(_Fields field, Object value) {
12090 if (value == null) {
12093 setPeerIp((String)value);
12100 public Object getFieldValue(_Fields field) {
12103 return getPeerIp();
12106 throw new IllegalStateException();
12109 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12110 public boolean isSet(_Fields field) {
12111 if (field == null) {
12112 throw new IllegalArgumentException();
12117 return isSetPeerIp();
12119 throw new IllegalStateException();
12123 public boolean equals(Object that) {
12126 if (that instanceof unsetUpdateSource_args)
12127 return this.equals((unsetUpdateSource_args)that);
12131 public boolean equals(unsetUpdateSource_args that) {
12135 boolean this_present_peerIp = true && this.isSetPeerIp();
12136 boolean that_present_peerIp = true && that.isSetPeerIp();
12137 if (this_present_peerIp || that_present_peerIp) {
12138 if (!(this_present_peerIp && that_present_peerIp))
12140 if (!this.peerIp.equals(that.peerIp))
12148 public int hashCode() {
12153 public int compareTo(unsetUpdateSource_args other) {
12154 if (!getClass().equals(other.getClass())) {
12155 return getClass().getName().compareTo(other.getClass().getName());
12158 int lastComparison = 0;
12160 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12161 if (lastComparison != 0) {
12162 return lastComparison;
12164 if (isSetPeerIp()) {
12165 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12166 if (lastComparison != 0) {
12167 return lastComparison;
12173 public _Fields fieldForId(int fieldId) {
12174 return _Fields.findByThriftId(fieldId);
12177 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12178 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12181 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12182 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12186 public String toString() {
12187 StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
12188 boolean first = true;
12190 sb.append("peerIp:");
12191 if (this.peerIp == null) {
12194 sb.append(this.peerIp);
12198 return sb.toString();
12201 public void validate() throws org.apache.thrift.TException {
12202 // check for required fields
12203 // check for sub-struct validity
12206 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12208 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12209 } catch (org.apache.thrift.TException te) {
12210 throw new java.io.IOException(te);
12214 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12216 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12217 } catch (org.apache.thrift.TException te) {
12218 throw new java.io.IOException(te);
12222 private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
12223 public unsetUpdateSource_argsStandardScheme getScheme() {
12224 return new unsetUpdateSource_argsStandardScheme();
12228 private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
12230 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12231 org.apache.thrift.protocol.TField schemeField;
12232 iprot.readStructBegin();
12235 schemeField = iprot.readFieldBegin();
12236 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12239 switch (schemeField.id) {
12241 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12242 struct.peerIp = iprot.readString();
12243 struct.setPeerIpIsSet(true);
12245 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12249 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12251 iprot.readFieldEnd();
12253 iprot.readStructEnd();
12255 // check for required fields of primitive type, which can't be checked in the validate method
12259 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12262 oprot.writeStructBegin(STRUCT_DESC);
12263 if (struct.peerIp != null) {
12264 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12265 oprot.writeString(struct.peerIp);
12266 oprot.writeFieldEnd();
12268 oprot.writeFieldStop();
12269 oprot.writeStructEnd();
12274 private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
12275 public unsetUpdateSource_argsTupleScheme getScheme() {
12276 return new unsetUpdateSource_argsTupleScheme();
12280 private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
12283 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12284 TTupleProtocol oprot = (TTupleProtocol) prot;
12285 BitSet optionals = new BitSet();
12286 if (struct.isSetPeerIp()) {
12289 oprot.writeBitSet(optionals, 1);
12290 if (struct.isSetPeerIp()) {
12291 oprot.writeString(struct.peerIp);
12296 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
12297 TTupleProtocol iprot = (TTupleProtocol) prot;
12298 BitSet incoming = iprot.readBitSet(1);
12299 if (incoming.get(0)) {
12300 struct.peerIp = iprot.readString();
12301 struct.setPeerIpIsSet(true);
12308 public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result> {
12309 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
12311 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);
12313 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12315 schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
12316 schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
12319 public int success; // required
12321 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12322 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12323 SUCCESS((short)0, "success");
12325 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12328 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12329 byName.put(field.getFieldName(), field);
12334 * Find the _Fields constant that matches fieldId, or null if its not found.
12336 public static _Fields findByThriftId(int fieldId) {
12346 * Find the _Fields constant that matches fieldId, throwing an exception
12347 * if it is not found.
12349 public static _Fields findByThriftIdOrThrow(int fieldId) {
12350 _Fields fields = findByThriftId(fieldId);
12351 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12356 * Find the _Fields constant that matches name, or null if its not found.
12358 public static _Fields findByName(String name) {
12359 return byName.get(name);
12362 private final short _thriftId;
12363 private final String _fieldName;
12365 _Fields(short thriftId, String fieldName) {
12366 _thriftId = thriftId;
12367 _fieldName = fieldName;
12370 public short getThriftFieldId() {
12374 public String getFieldName() {
12379 // isset id assignments
12380 private static final int __SUCCESS_ISSET_ID = 0;
12381 private byte __isset_bitfield = 0;
12382 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12384 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12385 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12386 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12387 metaDataMap = Collections.unmodifiableMap(tmpMap);
12388 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
12391 public unsetUpdateSource_result() {
12394 public unsetUpdateSource_result(
12398 this.success = success;
12399 setSuccessIsSet(true);
12403 * Performs a deep copy on <i>other</i>.
12405 public unsetUpdateSource_result(unsetUpdateSource_result other) {
12406 __isset_bitfield = other.__isset_bitfield;
12407 this.success = other.success;
12410 public unsetUpdateSource_result deepCopy() {
12411 return new unsetUpdateSource_result(this);
12415 public void clear() {
12416 setSuccessIsSet(false);
12420 public int getSuccess() {
12421 return this.success;
12424 public unsetUpdateSource_result setSuccess(int success) {
12425 this.success = success;
12426 setSuccessIsSet(true);
12430 public void unsetSuccess() {
12431 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12434 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12435 public boolean isSetSuccess() {
12436 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12439 public void setSuccessIsSet(boolean value) {
12440 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12443 public void setFieldValue(_Fields field, Object value) {
12446 if (value == null) {
12449 setSuccess((Integer)value);
12456 public Object getFieldValue(_Fields field) {
12459 return Integer.valueOf(getSuccess());
12462 throw new IllegalStateException();
12465 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12466 public boolean isSet(_Fields field) {
12467 if (field == null) {
12468 throw new IllegalArgumentException();
12473 return isSetSuccess();
12475 throw new IllegalStateException();
12479 public boolean equals(Object that) {
12482 if (that instanceof unsetUpdateSource_result)
12483 return this.equals((unsetUpdateSource_result)that);
12487 public boolean equals(unsetUpdateSource_result that) {
12491 boolean this_present_success = true;
12492 boolean that_present_success = true;
12493 if (this_present_success || that_present_success) {
12494 if (!(this_present_success && that_present_success))
12496 if (this.success != that.success)
12504 public int hashCode() {
12509 public int compareTo(unsetUpdateSource_result other) {
12510 if (!getClass().equals(other.getClass())) {
12511 return getClass().getName().compareTo(other.getClass().getName());
12514 int lastComparison = 0;
12516 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12517 if (lastComparison != 0) {
12518 return lastComparison;
12520 if (isSetSuccess()) {
12521 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12522 if (lastComparison != 0) {
12523 return lastComparison;
12529 public _Fields fieldForId(int fieldId) {
12530 return _Fields.findByThriftId(fieldId);
12533 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12534 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12537 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12538 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12542 public String toString() {
12543 StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
12544 boolean first = true;
12546 sb.append("success:");
12547 sb.append(this.success);
12550 return sb.toString();
12553 public void validate() throws org.apache.thrift.TException {
12554 // check for required fields
12555 // check for sub-struct validity
12558 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12560 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12561 } catch (org.apache.thrift.TException te) {
12562 throw new java.io.IOException(te);
12566 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12568 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12569 __isset_bitfield = 0;
12570 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12571 } catch (org.apache.thrift.TException te) {
12572 throw new java.io.IOException(te);
12576 private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
12577 public unsetUpdateSource_resultStandardScheme getScheme() {
12578 return new unsetUpdateSource_resultStandardScheme();
12582 private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
12584 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12585 org.apache.thrift.protocol.TField schemeField;
12586 iprot.readStructBegin();
12589 schemeField = iprot.readFieldBegin();
12590 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12593 switch (schemeField.id) {
12595 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12596 struct.success = iprot.readI32();
12597 struct.setSuccessIsSet(true);
12599 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12603 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12605 iprot.readFieldEnd();
12607 iprot.readStructEnd();
12609 // check for required fields of primitive type, which can't be checked in the validate method
12613 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12616 oprot.writeStructBegin(STRUCT_DESC);
12617 if (struct.isSetSuccess()) {
12618 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12619 oprot.writeI32(struct.success);
12620 oprot.writeFieldEnd();
12622 oprot.writeFieldStop();
12623 oprot.writeStructEnd();
12628 private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
12629 public unsetUpdateSource_resultTupleScheme getScheme() {
12630 return new unsetUpdateSource_resultTupleScheme();
12634 private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
12637 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12638 TTupleProtocol oprot = (TTupleProtocol) prot;
12639 BitSet optionals = new BitSet();
12640 if (struct.isSetSuccess()) {
12643 oprot.writeBitSet(optionals, 1);
12644 if (struct.isSetSuccess()) {
12645 oprot.writeI32(struct.success);
12650 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
12651 TTupleProtocol iprot = (TTupleProtocol) prot;
12652 BitSet incoming = iprot.readBitSet(1);
12653 if (incoming.get(0)) {
12654 struct.success = iprot.readI32();
12655 struct.setSuccessIsSet(true);
12662 public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args> {
12663 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
12665 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);
12666 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);
12667 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);
12669 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12671 schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
12672 schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
12675 public String peerIp; // required
12680 public af_afi afi; // required
12685 public af_safi safi; // required
12687 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12688 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12689 PEER_IP((short)1, "peerIp"),
12694 AFI((short)2, "afi"),
12699 SAFI((short)3, "safi");
12701 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12704 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12705 byName.put(field.getFieldName(), field);
12710 * Find the _Fields constant that matches fieldId, or null if its not found.
12712 public static _Fields findByThriftId(int fieldId) {
12726 * Find the _Fields constant that matches fieldId, throwing an exception
12727 * if it is not found.
12729 public static _Fields findByThriftIdOrThrow(int fieldId) {
12730 _Fields fields = findByThriftId(fieldId);
12731 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12736 * Find the _Fields constant that matches name, or null if its not found.
12738 public static _Fields findByName(String name) {
12739 return byName.get(name);
12742 private final short _thriftId;
12743 private final String _fieldName;
12745 _Fields(short thriftId, String fieldName) {
12746 _thriftId = thriftId;
12747 _fieldName = fieldName;
12750 public short getThriftFieldId() {
12754 public String getFieldName() {
12759 // isset id assignments
12760 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12762 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12763 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
12764 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12765 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12766 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12767 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12768 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
12769 metaDataMap = Collections.unmodifiableMap(tmpMap);
12770 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
12773 public enableAddressFamily_args() {
12776 public enableAddressFamily_args(
12782 this.peerIp = peerIp;
12788 * Performs a deep copy on <i>other</i>.
12790 public enableAddressFamily_args(enableAddressFamily_args other) {
12791 if (other.isSetPeerIp()) {
12792 this.peerIp = other.peerIp;
12794 if (other.isSetAfi()) {
12795 this.afi = other.afi;
12797 if (other.isSetSafi()) {
12798 this.safi = other.safi;
12802 public enableAddressFamily_args deepCopy() {
12803 return new enableAddressFamily_args(this);
12807 public void clear() {
12808 this.peerIp = null;
12813 public String getPeerIp() {
12814 return this.peerIp;
12817 public enableAddressFamily_args setPeerIp(String peerIp) {
12818 this.peerIp = peerIp;
12822 public void unsetPeerIp() {
12823 this.peerIp = null;
12826 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12827 public boolean isSetPeerIp() {
12828 return this.peerIp != null;
12831 public void setPeerIpIsSet(boolean value) {
12833 this.peerIp = null;
12841 public af_afi getAfi() {
12849 public enableAddressFamily_args setAfi(af_afi afi) {
12854 public void unsetAfi() {
12858 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12859 public boolean isSetAfi() {
12860 return this.afi != null;
12863 public void setAfiIsSet(boolean value) {
12873 public af_safi getSafi() {
12881 public enableAddressFamily_args setSafi(af_safi safi) {
12886 public void unsetSafi() {
12890 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
12891 public boolean isSetSafi() {
12892 return this.safi != null;
12895 public void setSafiIsSet(boolean value) {
12901 public void setFieldValue(_Fields field, Object value) {
12904 if (value == null) {
12907 setPeerIp((String)value);
12912 if (value == null) {
12915 setAfi((af_afi)value);
12920 if (value == null) {
12923 setSafi((af_safi)value);
12930 public Object getFieldValue(_Fields field) {
12933 return getPeerIp();
12942 throw new IllegalStateException();
12945 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12946 public boolean isSet(_Fields field) {
12947 if (field == null) {
12948 throw new IllegalArgumentException();
12953 return isSetPeerIp();
12957 return isSetSafi();
12959 throw new IllegalStateException();
12963 public boolean equals(Object that) {
12966 if (that instanceof enableAddressFamily_args)
12967 return this.equals((enableAddressFamily_args)that);
12971 public boolean equals(enableAddressFamily_args that) {
12975 boolean this_present_peerIp = true && this.isSetPeerIp();
12976 boolean that_present_peerIp = true && that.isSetPeerIp();
12977 if (this_present_peerIp || that_present_peerIp) {
12978 if (!(this_present_peerIp && that_present_peerIp))
12980 if (!this.peerIp.equals(that.peerIp))
12984 boolean this_present_afi = true && this.isSetAfi();
12985 boolean that_present_afi = true && that.isSetAfi();
12986 if (this_present_afi || that_present_afi) {
12987 if (!(this_present_afi && that_present_afi))
12989 if (!this.afi.equals(that.afi))
12993 boolean this_present_safi = true && this.isSetSafi();
12994 boolean that_present_safi = true && that.isSetSafi();
12995 if (this_present_safi || that_present_safi) {
12996 if (!(this_present_safi && that_present_safi))
12998 if (!this.safi.equals(that.safi))
13006 public int hashCode() {
13011 public int compareTo(enableAddressFamily_args other) {
13012 if (!getClass().equals(other.getClass())) {
13013 return getClass().getName().compareTo(other.getClass().getName());
13016 int lastComparison = 0;
13018 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13019 if (lastComparison != 0) {
13020 return lastComparison;
13022 if (isSetPeerIp()) {
13023 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13024 if (lastComparison != 0) {
13025 return lastComparison;
13028 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13029 if (lastComparison != 0) {
13030 return lastComparison;
13033 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13034 if (lastComparison != 0) {
13035 return lastComparison;
13038 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13039 if (lastComparison != 0) {
13040 return lastComparison;
13043 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13044 if (lastComparison != 0) {
13045 return lastComparison;
13051 public _Fields fieldForId(int fieldId) {
13052 return _Fields.findByThriftId(fieldId);
13055 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13056 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13059 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13060 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13064 public String toString() {
13065 StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
13066 boolean first = true;
13068 sb.append("peerIp:");
13069 if (this.peerIp == null) {
13072 sb.append(this.peerIp);
13075 if (!first) sb.append(", ");
13077 if (this.afi == null) {
13080 sb.append(this.afi);
13083 if (!first) sb.append(", ");
13084 sb.append("safi:");
13085 if (this.safi == null) {
13088 sb.append(this.safi);
13092 return sb.toString();
13095 public void validate() throws org.apache.thrift.TException {
13096 // check for required fields
13097 // check for sub-struct validity
13100 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13102 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13103 } catch (org.apache.thrift.TException te) {
13104 throw new java.io.IOException(te);
13108 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13110 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13111 } catch (org.apache.thrift.TException te) {
13112 throw new java.io.IOException(te);
13116 private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
13117 public enableAddressFamily_argsStandardScheme getScheme() {
13118 return new enableAddressFamily_argsStandardScheme();
13122 private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
13124 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13125 org.apache.thrift.protocol.TField schemeField;
13126 iprot.readStructBegin();
13129 schemeField = iprot.readFieldBegin();
13130 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13133 switch (schemeField.id) {
13135 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13136 struct.peerIp = iprot.readString();
13137 struct.setPeerIpIsSet(true);
13139 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13143 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13144 struct.afi = af_afi.findByValue(iprot.readI32());
13145 struct.setAfiIsSet(true);
13147 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13151 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13152 struct.safi = af_safi.findByValue(iprot.readI32());
13153 struct.setSafiIsSet(true);
13155 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13159 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13161 iprot.readFieldEnd();
13163 iprot.readStructEnd();
13165 // check for required fields of primitive type, which can't be checked in the validate method
13169 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13172 oprot.writeStructBegin(STRUCT_DESC);
13173 if (struct.peerIp != null) {
13174 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13175 oprot.writeString(struct.peerIp);
13176 oprot.writeFieldEnd();
13178 if (struct.afi != null) {
13179 oprot.writeFieldBegin(AFI_FIELD_DESC);
13180 oprot.writeI32(struct.afi.getValue());
13181 oprot.writeFieldEnd();
13183 if (struct.safi != null) {
13184 oprot.writeFieldBegin(SAFI_FIELD_DESC);
13185 oprot.writeI32(struct.safi.getValue());
13186 oprot.writeFieldEnd();
13188 oprot.writeFieldStop();
13189 oprot.writeStructEnd();
13194 private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
13195 public enableAddressFamily_argsTupleScheme getScheme() {
13196 return new enableAddressFamily_argsTupleScheme();
13200 private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
13203 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13204 TTupleProtocol oprot = (TTupleProtocol) prot;
13205 BitSet optionals = new BitSet();
13206 if (struct.isSetPeerIp()) {
13209 if (struct.isSetAfi()) {
13212 if (struct.isSetSafi()) {
13215 oprot.writeBitSet(optionals, 3);
13216 if (struct.isSetPeerIp()) {
13217 oprot.writeString(struct.peerIp);
13219 if (struct.isSetAfi()) {
13220 oprot.writeI32(struct.afi.getValue());
13222 if (struct.isSetSafi()) {
13223 oprot.writeI32(struct.safi.getValue());
13228 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
13229 TTupleProtocol iprot = (TTupleProtocol) prot;
13230 BitSet incoming = iprot.readBitSet(3);
13231 if (incoming.get(0)) {
13232 struct.peerIp = iprot.readString();
13233 struct.setPeerIpIsSet(true);
13235 if (incoming.get(1)) {
13236 struct.afi = af_afi.findByValue(iprot.readI32());
13237 struct.setAfiIsSet(true);
13239 if (incoming.get(2)) {
13240 struct.safi = af_safi.findByValue(iprot.readI32());
13241 struct.setSafiIsSet(true);
13248 public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result> {
13249 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
13251 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);
13253 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13255 schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
13256 schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
13259 public int success; // required
13261 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13262 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13263 SUCCESS((short)0, "success");
13265 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13268 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13269 byName.put(field.getFieldName(), field);
13274 * Find the _Fields constant that matches fieldId, or null if its not found.
13276 public static _Fields findByThriftId(int fieldId) {
13286 * Find the _Fields constant that matches fieldId, throwing an exception
13287 * if it is not found.
13289 public static _Fields findByThriftIdOrThrow(int fieldId) {
13290 _Fields fields = findByThriftId(fieldId);
13291 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13296 * Find the _Fields constant that matches name, or null if its not found.
13298 public static _Fields findByName(String name) {
13299 return byName.get(name);
13302 private final short _thriftId;
13303 private final String _fieldName;
13305 _Fields(short thriftId, String fieldName) {
13306 _thriftId = thriftId;
13307 _fieldName = fieldName;
13310 public short getThriftFieldId() {
13314 public String getFieldName() {
13319 // isset id assignments
13320 private static final int __SUCCESS_ISSET_ID = 0;
13321 private byte __isset_bitfield = 0;
13322 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13324 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13325 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13326 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13327 metaDataMap = Collections.unmodifiableMap(tmpMap);
13328 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
13331 public enableAddressFamily_result() {
13334 public enableAddressFamily_result(
13338 this.success = success;
13339 setSuccessIsSet(true);
13343 * Performs a deep copy on <i>other</i>.
13345 public enableAddressFamily_result(enableAddressFamily_result other) {
13346 __isset_bitfield = other.__isset_bitfield;
13347 this.success = other.success;
13350 public enableAddressFamily_result deepCopy() {
13351 return new enableAddressFamily_result(this);
13355 public void clear() {
13356 setSuccessIsSet(false);
13360 public int getSuccess() {
13361 return this.success;
13364 public enableAddressFamily_result setSuccess(int success) {
13365 this.success = success;
13366 setSuccessIsSet(true);
13370 public void unsetSuccess() {
13371 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13374 /** Returns true if field success is set (has been assigned a value) and false otherwise */
13375 public boolean isSetSuccess() {
13376 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13379 public void setSuccessIsSet(boolean value) {
13380 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13383 public void setFieldValue(_Fields field, Object value) {
13386 if (value == null) {
13389 setSuccess((Integer)value);
13396 public Object getFieldValue(_Fields field) {
13399 return Integer.valueOf(getSuccess());
13402 throw new IllegalStateException();
13405 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13406 public boolean isSet(_Fields field) {
13407 if (field == null) {
13408 throw new IllegalArgumentException();
13413 return isSetSuccess();
13415 throw new IllegalStateException();
13419 public boolean equals(Object that) {
13422 if (that instanceof enableAddressFamily_result)
13423 return this.equals((enableAddressFamily_result)that);
13427 public boolean equals(enableAddressFamily_result that) {
13431 boolean this_present_success = true;
13432 boolean that_present_success = true;
13433 if (this_present_success || that_present_success) {
13434 if (!(this_present_success && that_present_success))
13436 if (this.success != that.success)
13444 public int hashCode() {
13449 public int compareTo(enableAddressFamily_result other) {
13450 if (!getClass().equals(other.getClass())) {
13451 return getClass().getName().compareTo(other.getClass().getName());
13454 int lastComparison = 0;
13456 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13457 if (lastComparison != 0) {
13458 return lastComparison;
13460 if (isSetSuccess()) {
13461 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13462 if (lastComparison != 0) {
13463 return lastComparison;
13469 public _Fields fieldForId(int fieldId) {
13470 return _Fields.findByThriftId(fieldId);
13473 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13474 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13477 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13478 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13482 public String toString() {
13483 StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
13484 boolean first = true;
13486 sb.append("success:");
13487 sb.append(this.success);
13490 return sb.toString();
13493 public void validate() throws org.apache.thrift.TException {
13494 // check for required fields
13495 // check for sub-struct validity
13498 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13500 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13501 } catch (org.apache.thrift.TException te) {
13502 throw new java.io.IOException(te);
13506 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13508 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13509 __isset_bitfield = 0;
13510 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13511 } catch (org.apache.thrift.TException te) {
13512 throw new java.io.IOException(te);
13516 private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
13517 public enableAddressFamily_resultStandardScheme getScheme() {
13518 return new enableAddressFamily_resultStandardScheme();
13522 private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
13524 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13525 org.apache.thrift.protocol.TField schemeField;
13526 iprot.readStructBegin();
13529 schemeField = iprot.readFieldBegin();
13530 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13533 switch (schemeField.id) {
13535 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13536 struct.success = iprot.readI32();
13537 struct.setSuccessIsSet(true);
13539 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13543 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13545 iprot.readFieldEnd();
13547 iprot.readStructEnd();
13549 // check for required fields of primitive type, which can't be checked in the validate method
13553 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13556 oprot.writeStructBegin(STRUCT_DESC);
13557 if (struct.isSetSuccess()) {
13558 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13559 oprot.writeI32(struct.success);
13560 oprot.writeFieldEnd();
13562 oprot.writeFieldStop();
13563 oprot.writeStructEnd();
13568 private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
13569 public enableAddressFamily_resultTupleScheme getScheme() {
13570 return new enableAddressFamily_resultTupleScheme();
13574 private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
13577 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13578 TTupleProtocol oprot = (TTupleProtocol) prot;
13579 BitSet optionals = new BitSet();
13580 if (struct.isSetSuccess()) {
13583 oprot.writeBitSet(optionals, 1);
13584 if (struct.isSetSuccess()) {
13585 oprot.writeI32(struct.success);
13590 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
13591 TTupleProtocol iprot = (TTupleProtocol) prot;
13592 BitSet incoming = iprot.readBitSet(1);
13593 if (incoming.get(0)) {
13594 struct.success = iprot.readI32();
13595 struct.setSuccessIsSet(true);
13602 public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args> {
13603 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
13605 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);
13606 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);
13607 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);
13609 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13611 schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
13612 schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
13615 public String peerIp; // required
13620 public af_afi afi; // required
13625 public af_safi safi; // required
13627 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13628 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13629 PEER_IP((short)1, "peerIp"),
13634 AFI((short)2, "afi"),
13639 SAFI((short)3, "safi");
13641 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13644 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13645 byName.put(field.getFieldName(), field);
13650 * Find the _Fields constant that matches fieldId, or null if its not found.
13652 public static _Fields findByThriftId(int fieldId) {
13666 * Find the _Fields constant that matches fieldId, throwing an exception
13667 * if it is not found.
13669 public static _Fields findByThriftIdOrThrow(int fieldId) {
13670 _Fields fields = findByThriftId(fieldId);
13671 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13676 * Find the _Fields constant that matches name, or null if its not found.
13678 public static _Fields findByName(String name) {
13679 return byName.get(name);
13682 private final short _thriftId;
13683 private final String _fieldName;
13685 _Fields(short thriftId, String fieldName) {
13686 _thriftId = thriftId;
13687 _fieldName = fieldName;
13690 public short getThriftFieldId() {
13694 public String getFieldName() {
13699 // isset id assignments
13700 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13702 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13703 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13704 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13705 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
13706 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
13707 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
13708 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
13709 metaDataMap = Collections.unmodifiableMap(tmpMap);
13710 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
13713 public disableAddressFamily_args() {
13716 public disableAddressFamily_args(
13722 this.peerIp = peerIp;
13728 * Performs a deep copy on <i>other</i>.
13730 public disableAddressFamily_args(disableAddressFamily_args other) {
13731 if (other.isSetPeerIp()) {
13732 this.peerIp = other.peerIp;
13734 if (other.isSetAfi()) {
13735 this.afi = other.afi;
13737 if (other.isSetSafi()) {
13738 this.safi = other.safi;
13742 public disableAddressFamily_args deepCopy() {
13743 return new disableAddressFamily_args(this);
13747 public void clear() {
13748 this.peerIp = null;
13753 public String getPeerIp() {
13754 return this.peerIp;
13757 public disableAddressFamily_args setPeerIp(String peerIp) {
13758 this.peerIp = peerIp;
13762 public void unsetPeerIp() {
13763 this.peerIp = null;
13766 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13767 public boolean isSetPeerIp() {
13768 return this.peerIp != null;
13771 public void setPeerIpIsSet(boolean value) {
13773 this.peerIp = null;
13781 public af_afi getAfi() {
13789 public disableAddressFamily_args setAfi(af_afi afi) {
13794 public void unsetAfi() {
13798 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13799 public boolean isSetAfi() {
13800 return this.afi != null;
13803 public void setAfiIsSet(boolean value) {
13813 public af_safi getSafi() {
13821 public disableAddressFamily_args setSafi(af_safi safi) {
13826 public void unsetSafi() {
13830 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
13831 public boolean isSetSafi() {
13832 return this.safi != null;
13835 public void setSafiIsSet(boolean value) {
13841 public void setFieldValue(_Fields field, Object value) {
13844 if (value == null) {
13847 setPeerIp((String)value);
13852 if (value == null) {
13855 setAfi((af_afi)value);
13860 if (value == null) {
13863 setSafi((af_safi)value);
13870 public Object getFieldValue(_Fields field) {
13873 return getPeerIp();
13882 throw new IllegalStateException();
13885 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13886 public boolean isSet(_Fields field) {
13887 if (field == null) {
13888 throw new IllegalArgumentException();
13893 return isSetPeerIp();
13897 return isSetSafi();
13899 throw new IllegalStateException();
13903 public boolean equals(Object that) {
13906 if (that instanceof disableAddressFamily_args)
13907 return this.equals((disableAddressFamily_args)that);
13911 public boolean equals(disableAddressFamily_args that) {
13915 boolean this_present_peerIp = true && this.isSetPeerIp();
13916 boolean that_present_peerIp = true && that.isSetPeerIp();
13917 if (this_present_peerIp || that_present_peerIp) {
13918 if (!(this_present_peerIp && that_present_peerIp))
13920 if (!this.peerIp.equals(that.peerIp))
13924 boolean this_present_afi = true && this.isSetAfi();
13925 boolean that_present_afi = true && that.isSetAfi();
13926 if (this_present_afi || that_present_afi) {
13927 if (!(this_present_afi && that_present_afi))
13929 if (!this.afi.equals(that.afi))
13933 boolean this_present_safi = true && this.isSetSafi();
13934 boolean that_present_safi = true && that.isSetSafi();
13935 if (this_present_safi || that_present_safi) {
13936 if (!(this_present_safi && that_present_safi))
13938 if (!this.safi.equals(that.safi))
13946 public int hashCode() {
13951 public int compareTo(disableAddressFamily_args other) {
13952 if (!getClass().equals(other.getClass())) {
13953 return getClass().getName().compareTo(other.getClass().getName());
13956 int lastComparison = 0;
13958 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13959 if (lastComparison != 0) {
13960 return lastComparison;
13962 if (isSetPeerIp()) {
13963 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13964 if (lastComparison != 0) {
13965 return lastComparison;
13968 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13969 if (lastComparison != 0) {
13970 return lastComparison;
13973 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13974 if (lastComparison != 0) {
13975 return lastComparison;
13978 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
13979 if (lastComparison != 0) {
13980 return lastComparison;
13983 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
13984 if (lastComparison != 0) {
13985 return lastComparison;
13991 public _Fields fieldForId(int fieldId) {
13992 return _Fields.findByThriftId(fieldId);
13995 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13996 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13999 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14000 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14004 public String toString() {
14005 StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
14006 boolean first = true;
14008 sb.append("peerIp:");
14009 if (this.peerIp == null) {
14012 sb.append(this.peerIp);
14015 if (!first) sb.append(", ");
14017 if (this.afi == null) {
14020 sb.append(this.afi);
14023 if (!first) sb.append(", ");
14024 sb.append("safi:");
14025 if (this.safi == null) {
14028 sb.append(this.safi);
14032 return sb.toString();
14035 public void validate() throws org.apache.thrift.TException {
14036 // check for required fields
14037 // check for sub-struct validity
14040 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14042 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14043 } catch (org.apache.thrift.TException te) {
14044 throw new java.io.IOException(te);
14048 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14050 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14051 } catch (org.apache.thrift.TException te) {
14052 throw new java.io.IOException(te);
14056 private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
14057 public disableAddressFamily_argsStandardScheme getScheme() {
14058 return new disableAddressFamily_argsStandardScheme();
14062 private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
14064 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14065 org.apache.thrift.protocol.TField schemeField;
14066 iprot.readStructBegin();
14069 schemeField = iprot.readFieldBegin();
14070 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14073 switch (schemeField.id) {
14075 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14076 struct.peerIp = iprot.readString();
14077 struct.setPeerIpIsSet(true);
14079 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14083 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14084 struct.afi = af_afi.findByValue(iprot.readI32());
14085 struct.setAfiIsSet(true);
14087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14091 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14092 struct.safi = af_safi.findByValue(iprot.readI32());
14093 struct.setSafiIsSet(true);
14095 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14101 iprot.readFieldEnd();
14103 iprot.readStructEnd();
14105 // check for required fields of primitive type, which can't be checked in the validate method
14109 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14112 oprot.writeStructBegin(STRUCT_DESC);
14113 if (struct.peerIp != null) {
14114 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14115 oprot.writeString(struct.peerIp);
14116 oprot.writeFieldEnd();
14118 if (struct.afi != null) {
14119 oprot.writeFieldBegin(AFI_FIELD_DESC);
14120 oprot.writeI32(struct.afi.getValue());
14121 oprot.writeFieldEnd();
14123 if (struct.safi != null) {
14124 oprot.writeFieldBegin(SAFI_FIELD_DESC);
14125 oprot.writeI32(struct.safi.getValue());
14126 oprot.writeFieldEnd();
14128 oprot.writeFieldStop();
14129 oprot.writeStructEnd();
14134 private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
14135 public disableAddressFamily_argsTupleScheme getScheme() {
14136 return new disableAddressFamily_argsTupleScheme();
14140 private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
14143 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14144 TTupleProtocol oprot = (TTupleProtocol) prot;
14145 BitSet optionals = new BitSet();
14146 if (struct.isSetPeerIp()) {
14149 if (struct.isSetAfi()) {
14152 if (struct.isSetSafi()) {
14155 oprot.writeBitSet(optionals, 3);
14156 if (struct.isSetPeerIp()) {
14157 oprot.writeString(struct.peerIp);
14159 if (struct.isSetAfi()) {
14160 oprot.writeI32(struct.afi.getValue());
14162 if (struct.isSetSafi()) {
14163 oprot.writeI32(struct.safi.getValue());
14168 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
14169 TTupleProtocol iprot = (TTupleProtocol) prot;
14170 BitSet incoming = iprot.readBitSet(3);
14171 if (incoming.get(0)) {
14172 struct.peerIp = iprot.readString();
14173 struct.setPeerIpIsSet(true);
14175 if (incoming.get(1)) {
14176 struct.afi = af_afi.findByValue(iprot.readI32());
14177 struct.setAfiIsSet(true);
14179 if (incoming.get(2)) {
14180 struct.safi = af_safi.findByValue(iprot.readI32());
14181 struct.setSafiIsSet(true);
14188 public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result> {
14189 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
14191 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);
14193 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14195 schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
14196 schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
14199 public int success; // required
14201 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14202 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14203 SUCCESS((short)0, "success");
14205 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14208 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14209 byName.put(field.getFieldName(), field);
14214 * Find the _Fields constant that matches fieldId, or null if its not found.
14216 public static _Fields findByThriftId(int fieldId) {
14226 * Find the _Fields constant that matches fieldId, throwing an exception
14227 * if it is not found.
14229 public static _Fields findByThriftIdOrThrow(int fieldId) {
14230 _Fields fields = findByThriftId(fieldId);
14231 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14236 * Find the _Fields constant that matches name, or null if its not found.
14238 public static _Fields findByName(String name) {
14239 return byName.get(name);
14242 private final short _thriftId;
14243 private final String _fieldName;
14245 _Fields(short thriftId, String fieldName) {
14246 _thriftId = thriftId;
14247 _fieldName = fieldName;
14250 public short getThriftFieldId() {
14254 public String getFieldName() {
14259 // isset id assignments
14260 private static final int __SUCCESS_ISSET_ID = 0;
14261 private byte __isset_bitfield = 0;
14262 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14264 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14265 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14266 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14267 metaDataMap = Collections.unmodifiableMap(tmpMap);
14268 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
14271 public disableAddressFamily_result() {
14274 public disableAddressFamily_result(
14278 this.success = success;
14279 setSuccessIsSet(true);
14283 * Performs a deep copy on <i>other</i>.
14285 public disableAddressFamily_result(disableAddressFamily_result other) {
14286 __isset_bitfield = other.__isset_bitfield;
14287 this.success = other.success;
14290 public disableAddressFamily_result deepCopy() {
14291 return new disableAddressFamily_result(this);
14295 public void clear() {
14296 setSuccessIsSet(false);
14300 public int getSuccess() {
14301 return this.success;
14304 public disableAddressFamily_result setSuccess(int success) {
14305 this.success = success;
14306 setSuccessIsSet(true);
14310 public void unsetSuccess() {
14311 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14314 /** Returns true if field success is set (has been assigned a value) and false otherwise */
14315 public boolean isSetSuccess() {
14316 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14319 public void setSuccessIsSet(boolean value) {
14320 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14323 public void setFieldValue(_Fields field, Object value) {
14326 if (value == null) {
14329 setSuccess((Integer)value);
14336 public Object getFieldValue(_Fields field) {
14339 return Integer.valueOf(getSuccess());
14342 throw new IllegalStateException();
14345 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14346 public boolean isSet(_Fields field) {
14347 if (field == null) {
14348 throw new IllegalArgumentException();
14353 return isSetSuccess();
14355 throw new IllegalStateException();
14359 public boolean equals(Object that) {
14362 if (that instanceof disableAddressFamily_result)
14363 return this.equals((disableAddressFamily_result)that);
14367 public boolean equals(disableAddressFamily_result that) {
14371 boolean this_present_success = true;
14372 boolean that_present_success = true;
14373 if (this_present_success || that_present_success) {
14374 if (!(this_present_success && that_present_success))
14376 if (this.success != that.success)
14384 public int hashCode() {
14389 public int compareTo(disableAddressFamily_result other) {
14390 if (!getClass().equals(other.getClass())) {
14391 return getClass().getName().compareTo(other.getClass().getName());
14394 int lastComparison = 0;
14396 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14397 if (lastComparison != 0) {
14398 return lastComparison;
14400 if (isSetSuccess()) {
14401 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14402 if (lastComparison != 0) {
14403 return lastComparison;
14409 public _Fields fieldForId(int fieldId) {
14410 return _Fields.findByThriftId(fieldId);
14413 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14414 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14417 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14418 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14422 public String toString() {
14423 StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
14424 boolean first = true;
14426 sb.append("success:");
14427 sb.append(this.success);
14430 return sb.toString();
14433 public void validate() throws org.apache.thrift.TException {
14434 // check for required fields
14435 // check for sub-struct validity
14438 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14440 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14441 } catch (org.apache.thrift.TException te) {
14442 throw new java.io.IOException(te);
14446 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14448 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14449 __isset_bitfield = 0;
14450 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14451 } catch (org.apache.thrift.TException te) {
14452 throw new java.io.IOException(te);
14456 private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
14457 public disableAddressFamily_resultStandardScheme getScheme() {
14458 return new disableAddressFamily_resultStandardScheme();
14462 private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
14464 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14465 org.apache.thrift.protocol.TField schemeField;
14466 iprot.readStructBegin();
14469 schemeField = iprot.readFieldBegin();
14470 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14473 switch (schemeField.id) {
14475 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14476 struct.success = iprot.readI32();
14477 struct.setSuccessIsSet(true);
14479 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14483 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14485 iprot.readFieldEnd();
14487 iprot.readStructEnd();
14489 // check for required fields of primitive type, which can't be checked in the validate method
14493 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14496 oprot.writeStructBegin(STRUCT_DESC);
14497 if (struct.isSetSuccess()) {
14498 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14499 oprot.writeI32(struct.success);
14500 oprot.writeFieldEnd();
14502 oprot.writeFieldStop();
14503 oprot.writeStructEnd();
14508 private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
14509 public disableAddressFamily_resultTupleScheme getScheme() {
14510 return new disableAddressFamily_resultTupleScheme();
14514 private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
14517 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14518 TTupleProtocol oprot = (TTupleProtocol) prot;
14519 BitSet optionals = new BitSet();
14520 if (struct.isSetSuccess()) {
14523 oprot.writeBitSet(optionals, 1);
14524 if (struct.isSetSuccess()) {
14525 oprot.writeI32(struct.success);
14530 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
14531 TTupleProtocol iprot = (TTupleProtocol) prot;
14532 BitSet incoming = iprot.readBitSet(1);
14533 if (incoming.get(0)) {
14534 struct.success = iprot.readI32();
14535 struct.setSuccessIsSet(true);
14542 public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args> {
14543 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
14545 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);
14546 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);
14548 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14550 schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
14551 schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
14554 public String logFileName; // required
14555 public String logLevel; // required
14557 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14558 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14559 LOG_FILE_NAME((short)1, "logFileName"),
14560 LOG_LEVEL((short)2, "logLevel");
14562 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14565 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14566 byName.put(field.getFieldName(), field);
14571 * Find the _Fields constant that matches fieldId, or null if its not found.
14573 public static _Fields findByThriftId(int fieldId) {
14575 case 1: // LOG_FILE_NAME
14576 return LOG_FILE_NAME;
14577 case 2: // LOG_LEVEL
14585 * Find the _Fields constant that matches fieldId, throwing an exception
14586 * if it is not found.
14588 public static _Fields findByThriftIdOrThrow(int fieldId) {
14589 _Fields fields = findByThriftId(fieldId);
14590 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14595 * Find the _Fields constant that matches name, or null if its not found.
14597 public static _Fields findByName(String name) {
14598 return byName.get(name);
14601 private final short _thriftId;
14602 private final String _fieldName;
14604 _Fields(short thriftId, String fieldName) {
14605 _thriftId = thriftId;
14606 _fieldName = fieldName;
14609 public short getThriftFieldId() {
14613 public String getFieldName() {
14618 // isset id assignments
14619 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14621 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14622 tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
14623 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14624 tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
14625 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14626 metaDataMap = Collections.unmodifiableMap(tmpMap);
14627 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
14630 public setLogConfig_args() {
14633 public setLogConfig_args(
14634 String logFileName,
14638 this.logFileName = logFileName;
14639 this.logLevel = logLevel;
14643 * Performs a deep copy on <i>other</i>.
14645 public setLogConfig_args(setLogConfig_args other) {
14646 if (other.isSetLogFileName()) {
14647 this.logFileName = other.logFileName;
14649 if (other.isSetLogLevel()) {
14650 this.logLevel = other.logLevel;
14654 public setLogConfig_args deepCopy() {
14655 return new setLogConfig_args(this);
14659 public void clear() {
14660 this.logFileName = null;
14661 this.logLevel = null;
14664 public String getLogFileName() {
14665 return this.logFileName;
14668 public setLogConfig_args setLogFileName(String logFileName) {
14669 this.logFileName = logFileName;
14673 public void unsetLogFileName() {
14674 this.logFileName = null;
14677 /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
14678 public boolean isSetLogFileName() {
14679 return this.logFileName != null;
14682 public void setLogFileNameIsSet(boolean value) {
14684 this.logFileName = null;
14688 public String getLogLevel() {
14689 return this.logLevel;
14692 public setLogConfig_args setLogLevel(String logLevel) {
14693 this.logLevel = logLevel;
14697 public void unsetLogLevel() {
14698 this.logLevel = null;
14701 /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
14702 public boolean isSetLogLevel() {
14703 return this.logLevel != null;
14706 public void setLogLevelIsSet(boolean value) {
14708 this.logLevel = null;
14712 public void setFieldValue(_Fields field, Object value) {
14714 case LOG_FILE_NAME:
14715 if (value == null) {
14716 unsetLogFileName();
14718 setLogFileName((String)value);
14723 if (value == null) {
14726 setLogLevel((String)value);
14733 public Object getFieldValue(_Fields field) {
14735 case LOG_FILE_NAME:
14736 return getLogFileName();
14739 return getLogLevel();
14742 throw new IllegalStateException();
14745 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14746 public boolean isSet(_Fields field) {
14747 if (field == null) {
14748 throw new IllegalArgumentException();
14752 case LOG_FILE_NAME:
14753 return isSetLogFileName();
14755 return isSetLogLevel();
14757 throw new IllegalStateException();
14761 public boolean equals(Object that) {
14764 if (that instanceof setLogConfig_args)
14765 return this.equals((setLogConfig_args)that);
14769 public boolean equals(setLogConfig_args that) {
14773 boolean this_present_logFileName = true && this.isSetLogFileName();
14774 boolean that_present_logFileName = true && that.isSetLogFileName();
14775 if (this_present_logFileName || that_present_logFileName) {
14776 if (!(this_present_logFileName && that_present_logFileName))
14778 if (!this.logFileName.equals(that.logFileName))
14782 boolean this_present_logLevel = true && this.isSetLogLevel();
14783 boolean that_present_logLevel = true && that.isSetLogLevel();
14784 if (this_present_logLevel || that_present_logLevel) {
14785 if (!(this_present_logLevel && that_present_logLevel))
14787 if (!this.logLevel.equals(that.logLevel))
14795 public int hashCode() {
14800 public int compareTo(setLogConfig_args other) {
14801 if (!getClass().equals(other.getClass())) {
14802 return getClass().getName().compareTo(other.getClass().getName());
14805 int lastComparison = 0;
14807 lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
14808 if (lastComparison != 0) {
14809 return lastComparison;
14811 if (isSetLogFileName()) {
14812 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
14813 if (lastComparison != 0) {
14814 return lastComparison;
14817 lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
14818 if (lastComparison != 0) {
14819 return lastComparison;
14821 if (isSetLogLevel()) {
14822 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
14823 if (lastComparison != 0) {
14824 return lastComparison;
14830 public _Fields fieldForId(int fieldId) {
14831 return _Fields.findByThriftId(fieldId);
14834 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14835 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14838 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14839 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14843 public String toString() {
14844 StringBuilder sb = new StringBuilder("setLogConfig_args(");
14845 boolean first = true;
14847 sb.append("logFileName:");
14848 if (this.logFileName == null) {
14851 sb.append(this.logFileName);
14854 if (!first) sb.append(", ");
14855 sb.append("logLevel:");
14856 if (this.logLevel == null) {
14859 sb.append(this.logLevel);
14863 return sb.toString();
14866 public void validate() throws org.apache.thrift.TException {
14867 // check for required fields
14868 // check for sub-struct validity
14871 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14873 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14874 } catch (org.apache.thrift.TException te) {
14875 throw new java.io.IOException(te);
14879 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14881 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14882 } catch (org.apache.thrift.TException te) {
14883 throw new java.io.IOException(te);
14887 private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
14888 public setLogConfig_argsStandardScheme getScheme() {
14889 return new setLogConfig_argsStandardScheme();
14893 private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
14895 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14896 org.apache.thrift.protocol.TField schemeField;
14897 iprot.readStructBegin();
14900 schemeField = iprot.readFieldBegin();
14901 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14904 switch (schemeField.id) {
14905 case 1: // LOG_FILE_NAME
14906 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14907 struct.logFileName = iprot.readString();
14908 struct.setLogFileNameIsSet(true);
14910 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14913 case 2: // LOG_LEVEL
14914 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14915 struct.logLevel = iprot.readString();
14916 struct.setLogLevelIsSet(true);
14918 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14922 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14924 iprot.readFieldEnd();
14926 iprot.readStructEnd();
14928 // check for required fields of primitive type, which can't be checked in the validate method
14932 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
14935 oprot.writeStructBegin(STRUCT_DESC);
14936 if (struct.logFileName != null) {
14937 oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
14938 oprot.writeString(struct.logFileName);
14939 oprot.writeFieldEnd();
14941 if (struct.logLevel != null) {
14942 oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
14943 oprot.writeString(struct.logLevel);
14944 oprot.writeFieldEnd();
14946 oprot.writeFieldStop();
14947 oprot.writeStructEnd();
14952 private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
14953 public setLogConfig_argsTupleScheme getScheme() {
14954 return new setLogConfig_argsTupleScheme();
14958 private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
14961 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14962 TTupleProtocol oprot = (TTupleProtocol) prot;
14963 BitSet optionals = new BitSet();
14964 if (struct.isSetLogFileName()) {
14967 if (struct.isSetLogLevel()) {
14970 oprot.writeBitSet(optionals, 2);
14971 if (struct.isSetLogFileName()) {
14972 oprot.writeString(struct.logFileName);
14974 if (struct.isSetLogLevel()) {
14975 oprot.writeString(struct.logLevel);
14980 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
14981 TTupleProtocol iprot = (TTupleProtocol) prot;
14982 BitSet incoming = iprot.readBitSet(2);
14983 if (incoming.get(0)) {
14984 struct.logFileName = iprot.readString();
14985 struct.setLogFileNameIsSet(true);
14987 if (incoming.get(1)) {
14988 struct.logLevel = iprot.readString();
14989 struct.setLogLevelIsSet(true);
14996 public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result> {
14997 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
14999 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);
15001 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15003 schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
15004 schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
15007 public int success; // required
15009 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15010 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15011 SUCCESS((short)0, "success");
15013 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15016 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15017 byName.put(field.getFieldName(), field);
15022 * Find the _Fields constant that matches fieldId, or null if its not found.
15024 public static _Fields findByThriftId(int fieldId) {
15034 * Find the _Fields constant that matches fieldId, throwing an exception
15035 * if it is not found.
15037 public static _Fields findByThriftIdOrThrow(int fieldId) {
15038 _Fields fields = findByThriftId(fieldId);
15039 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15044 * Find the _Fields constant that matches name, or null if its not found.
15046 public static _Fields findByName(String name) {
15047 return byName.get(name);
15050 private final short _thriftId;
15051 private final String _fieldName;
15053 _Fields(short thriftId, String fieldName) {
15054 _thriftId = thriftId;
15055 _fieldName = fieldName;
15058 public short getThriftFieldId() {
15062 public String getFieldName() {
15067 // isset id assignments
15068 private static final int __SUCCESS_ISSET_ID = 0;
15069 private byte __isset_bitfield = 0;
15070 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15072 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15073 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15074 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15075 metaDataMap = Collections.unmodifiableMap(tmpMap);
15076 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
15079 public setLogConfig_result() {
15082 public setLogConfig_result(
15086 this.success = success;
15087 setSuccessIsSet(true);
15091 * Performs a deep copy on <i>other</i>.
15093 public setLogConfig_result(setLogConfig_result other) {
15094 __isset_bitfield = other.__isset_bitfield;
15095 this.success = other.success;
15098 public setLogConfig_result deepCopy() {
15099 return new setLogConfig_result(this);
15103 public void clear() {
15104 setSuccessIsSet(false);
15108 public int getSuccess() {
15109 return this.success;
15112 public setLogConfig_result setSuccess(int success) {
15113 this.success = success;
15114 setSuccessIsSet(true);
15118 public void unsetSuccess() {
15119 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15122 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15123 public boolean isSetSuccess() {
15124 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15127 public void setSuccessIsSet(boolean value) {
15128 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15131 public void setFieldValue(_Fields field, Object value) {
15134 if (value == null) {
15137 setSuccess((Integer)value);
15144 public Object getFieldValue(_Fields field) {
15147 return Integer.valueOf(getSuccess());
15150 throw new IllegalStateException();
15153 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15154 public boolean isSet(_Fields field) {
15155 if (field == null) {
15156 throw new IllegalArgumentException();
15161 return isSetSuccess();
15163 throw new IllegalStateException();
15167 public boolean equals(Object that) {
15170 if (that instanceof setLogConfig_result)
15171 return this.equals((setLogConfig_result)that);
15175 public boolean equals(setLogConfig_result that) {
15179 boolean this_present_success = true;
15180 boolean that_present_success = true;
15181 if (this_present_success || that_present_success) {
15182 if (!(this_present_success && that_present_success))
15184 if (this.success != that.success)
15192 public int hashCode() {
15197 public int compareTo(setLogConfig_result other) {
15198 if (!getClass().equals(other.getClass())) {
15199 return getClass().getName().compareTo(other.getClass().getName());
15202 int lastComparison = 0;
15204 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15205 if (lastComparison != 0) {
15206 return lastComparison;
15208 if (isSetSuccess()) {
15209 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15210 if (lastComparison != 0) {
15211 return lastComparison;
15217 public _Fields fieldForId(int fieldId) {
15218 return _Fields.findByThriftId(fieldId);
15221 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15222 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15225 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15226 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15230 public String toString() {
15231 StringBuilder sb = new StringBuilder("setLogConfig_result(");
15232 boolean first = true;
15234 sb.append("success:");
15235 sb.append(this.success);
15238 return sb.toString();
15241 public void validate() throws org.apache.thrift.TException {
15242 // check for required fields
15243 // check for sub-struct validity
15246 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15248 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15249 } catch (org.apache.thrift.TException te) {
15250 throw new java.io.IOException(te);
15254 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15256 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15257 __isset_bitfield = 0;
15258 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15259 } catch (org.apache.thrift.TException te) {
15260 throw new java.io.IOException(te);
15264 private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
15265 public setLogConfig_resultStandardScheme getScheme() {
15266 return new setLogConfig_resultStandardScheme();
15270 private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
15272 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15273 org.apache.thrift.protocol.TField schemeField;
15274 iprot.readStructBegin();
15277 schemeField = iprot.readFieldBegin();
15278 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15281 switch (schemeField.id) {
15283 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15284 struct.success = iprot.readI32();
15285 struct.setSuccessIsSet(true);
15287 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15291 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15293 iprot.readFieldEnd();
15295 iprot.readStructEnd();
15297 // check for required fields of primitive type, which can't be checked in the validate method
15301 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
15304 oprot.writeStructBegin(STRUCT_DESC);
15305 if (struct.isSetSuccess()) {
15306 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15307 oprot.writeI32(struct.success);
15308 oprot.writeFieldEnd();
15310 oprot.writeFieldStop();
15311 oprot.writeStructEnd();
15316 private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
15317 public setLogConfig_resultTupleScheme getScheme() {
15318 return new setLogConfig_resultTupleScheme();
15322 private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
15325 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15326 TTupleProtocol oprot = (TTupleProtocol) prot;
15327 BitSet optionals = new BitSet();
15328 if (struct.isSetSuccess()) {
15331 oprot.writeBitSet(optionals, 1);
15332 if (struct.isSetSuccess()) {
15333 oprot.writeI32(struct.success);
15338 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
15339 TTupleProtocol iprot = (TTupleProtocol) prot;
15340 BitSet incoming = iprot.readBitSet(1);
15341 if (incoming.get(0)) {
15342 struct.success = iprot.readI32();
15343 struct.setSuccessIsSet(true);
15350 public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args> {
15351 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
15353 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);
15355 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15357 schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
15358 schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
15361 public int stalepathTime; // required
15363 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15364 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15365 STALEPATH_TIME((short)1, "stalepathTime");
15367 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15370 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15371 byName.put(field.getFieldName(), field);
15376 * Find the _Fields constant that matches fieldId, or null if its not found.
15378 public static _Fields findByThriftId(int fieldId) {
15380 case 1: // STALEPATH_TIME
15381 return STALEPATH_TIME;
15388 * Find the _Fields constant that matches fieldId, throwing an exception
15389 * if it is not found.
15391 public static _Fields findByThriftIdOrThrow(int fieldId) {
15392 _Fields fields = findByThriftId(fieldId);
15393 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15398 * Find the _Fields constant that matches name, or null if its not found.
15400 public static _Fields findByName(String name) {
15401 return byName.get(name);
15404 private final short _thriftId;
15405 private final String _fieldName;
15407 _Fields(short thriftId, String fieldName) {
15408 _thriftId = thriftId;
15409 _fieldName = fieldName;
15412 public short getThriftFieldId() {
15416 public String getFieldName() {
15421 // isset id assignments
15422 private static final int __STALEPATHTIME_ISSET_ID = 0;
15423 private byte __isset_bitfield = 0;
15424 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15426 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15427 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
15428 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15429 metaDataMap = Collections.unmodifiableMap(tmpMap);
15430 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
15433 public enableGracefulRestart_args() {
15436 public enableGracefulRestart_args(
15440 this.stalepathTime = stalepathTime;
15441 setStalepathTimeIsSet(true);
15445 * Performs a deep copy on <i>other</i>.
15447 public enableGracefulRestart_args(enableGracefulRestart_args other) {
15448 __isset_bitfield = other.__isset_bitfield;
15449 this.stalepathTime = other.stalepathTime;
15452 public enableGracefulRestart_args deepCopy() {
15453 return new enableGracefulRestart_args(this);
15457 public void clear() {
15458 setStalepathTimeIsSet(false);
15459 this.stalepathTime = 0;
15462 public int getStalepathTime() {
15463 return this.stalepathTime;
15466 public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
15467 this.stalepathTime = stalepathTime;
15468 setStalepathTimeIsSet(true);
15472 public void unsetStalepathTime() {
15473 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15476 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
15477 public boolean isSetStalepathTime() {
15478 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
15481 public void setStalepathTimeIsSet(boolean value) {
15482 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
15485 public void setFieldValue(_Fields field, Object value) {
15487 case STALEPATH_TIME:
15488 if (value == null) {
15489 unsetStalepathTime();
15491 setStalepathTime((Integer)value);
15498 public Object getFieldValue(_Fields field) {
15500 case STALEPATH_TIME:
15501 return Integer.valueOf(getStalepathTime());
15504 throw new IllegalStateException();
15507 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15508 public boolean isSet(_Fields field) {
15509 if (field == null) {
15510 throw new IllegalArgumentException();
15514 case STALEPATH_TIME:
15515 return isSetStalepathTime();
15517 throw new IllegalStateException();
15521 public boolean equals(Object that) {
15524 if (that instanceof enableGracefulRestart_args)
15525 return this.equals((enableGracefulRestart_args)that);
15529 public boolean equals(enableGracefulRestart_args that) {
15533 boolean this_present_stalepathTime = true;
15534 boolean that_present_stalepathTime = true;
15535 if (this_present_stalepathTime || that_present_stalepathTime) {
15536 if (!(this_present_stalepathTime && that_present_stalepathTime))
15538 if (this.stalepathTime != that.stalepathTime)
15546 public int hashCode() {
15551 public int compareTo(enableGracefulRestart_args other) {
15552 if (!getClass().equals(other.getClass())) {
15553 return getClass().getName().compareTo(other.getClass().getName());
15556 int lastComparison = 0;
15558 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
15559 if (lastComparison != 0) {
15560 return lastComparison;
15562 if (isSetStalepathTime()) {
15563 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
15564 if (lastComparison != 0) {
15565 return lastComparison;
15571 public _Fields fieldForId(int fieldId) {
15572 return _Fields.findByThriftId(fieldId);
15575 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15576 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15579 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15580 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15584 public String toString() {
15585 StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
15586 boolean first = true;
15588 sb.append("stalepathTime:");
15589 sb.append(this.stalepathTime);
15592 return sb.toString();
15595 public void validate() throws org.apache.thrift.TException {
15596 // check for required fields
15597 // check for sub-struct validity
15600 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15602 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15603 } catch (org.apache.thrift.TException te) {
15604 throw new java.io.IOException(te);
15608 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15610 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15611 __isset_bitfield = 0;
15612 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15613 } catch (org.apache.thrift.TException te) {
15614 throw new java.io.IOException(te);
15618 private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
15619 public enableGracefulRestart_argsStandardScheme getScheme() {
15620 return new enableGracefulRestart_argsStandardScheme();
15624 private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
15626 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15627 org.apache.thrift.protocol.TField schemeField;
15628 iprot.readStructBegin();
15631 schemeField = iprot.readFieldBegin();
15632 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15635 switch (schemeField.id) {
15636 case 1: // STALEPATH_TIME
15637 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15638 struct.stalepathTime = iprot.readI32();
15639 struct.setStalepathTimeIsSet(true);
15641 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15645 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15647 iprot.readFieldEnd();
15649 iprot.readStructEnd();
15651 // check for required fields of primitive type, which can't be checked in the validate method
15655 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15658 oprot.writeStructBegin(STRUCT_DESC);
15659 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
15660 oprot.writeI32(struct.stalepathTime);
15661 oprot.writeFieldEnd();
15662 oprot.writeFieldStop();
15663 oprot.writeStructEnd();
15668 private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
15669 public enableGracefulRestart_argsTupleScheme getScheme() {
15670 return new enableGracefulRestart_argsTupleScheme();
15674 private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
15677 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15678 TTupleProtocol oprot = (TTupleProtocol) prot;
15679 BitSet optionals = new BitSet();
15680 if (struct.isSetStalepathTime()) {
15683 oprot.writeBitSet(optionals, 1);
15684 if (struct.isSetStalepathTime()) {
15685 oprot.writeI32(struct.stalepathTime);
15690 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
15691 TTupleProtocol iprot = (TTupleProtocol) prot;
15692 BitSet incoming = iprot.readBitSet(1);
15693 if (incoming.get(0)) {
15694 struct.stalepathTime = iprot.readI32();
15695 struct.setStalepathTimeIsSet(true);
15702 public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result> {
15703 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
15705 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);
15707 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15709 schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
15710 schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
15713 public int success; // required
15715 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15716 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15717 SUCCESS((short)0, "success");
15719 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15722 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15723 byName.put(field.getFieldName(), field);
15728 * Find the _Fields constant that matches fieldId, or null if its not found.
15730 public static _Fields findByThriftId(int fieldId) {
15740 * Find the _Fields constant that matches fieldId, throwing an exception
15741 * if it is not found.
15743 public static _Fields findByThriftIdOrThrow(int fieldId) {
15744 _Fields fields = findByThriftId(fieldId);
15745 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15750 * Find the _Fields constant that matches name, or null if its not found.
15752 public static _Fields findByName(String name) {
15753 return byName.get(name);
15756 private final short _thriftId;
15757 private final String _fieldName;
15759 _Fields(short thriftId, String fieldName) {
15760 _thriftId = thriftId;
15761 _fieldName = fieldName;
15764 public short getThriftFieldId() {
15768 public String getFieldName() {
15773 // isset id assignments
15774 private static final int __SUCCESS_ISSET_ID = 0;
15775 private byte __isset_bitfield = 0;
15776 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15778 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15779 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15780 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15781 metaDataMap = Collections.unmodifiableMap(tmpMap);
15782 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
15785 public enableGracefulRestart_result() {
15788 public enableGracefulRestart_result(
15792 this.success = success;
15793 setSuccessIsSet(true);
15797 * Performs a deep copy on <i>other</i>.
15799 public enableGracefulRestart_result(enableGracefulRestart_result other) {
15800 __isset_bitfield = other.__isset_bitfield;
15801 this.success = other.success;
15804 public enableGracefulRestart_result deepCopy() {
15805 return new enableGracefulRestart_result(this);
15809 public void clear() {
15810 setSuccessIsSet(false);
15814 public int getSuccess() {
15815 return this.success;
15818 public enableGracefulRestart_result setSuccess(int success) {
15819 this.success = success;
15820 setSuccessIsSet(true);
15824 public void unsetSuccess() {
15825 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15828 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15829 public boolean isSetSuccess() {
15830 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15833 public void setSuccessIsSet(boolean value) {
15834 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15837 public void setFieldValue(_Fields field, Object value) {
15840 if (value == null) {
15843 setSuccess((Integer)value);
15850 public Object getFieldValue(_Fields field) {
15853 return Integer.valueOf(getSuccess());
15856 throw new IllegalStateException();
15859 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15860 public boolean isSet(_Fields field) {
15861 if (field == null) {
15862 throw new IllegalArgumentException();
15867 return isSetSuccess();
15869 throw new IllegalStateException();
15873 public boolean equals(Object that) {
15876 if (that instanceof enableGracefulRestart_result)
15877 return this.equals((enableGracefulRestart_result)that);
15881 public boolean equals(enableGracefulRestart_result that) {
15885 boolean this_present_success = true;
15886 boolean that_present_success = true;
15887 if (this_present_success || that_present_success) {
15888 if (!(this_present_success && that_present_success))
15890 if (this.success != that.success)
15898 public int hashCode() {
15903 public int compareTo(enableGracefulRestart_result other) {
15904 if (!getClass().equals(other.getClass())) {
15905 return getClass().getName().compareTo(other.getClass().getName());
15908 int lastComparison = 0;
15910 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15911 if (lastComparison != 0) {
15912 return lastComparison;
15914 if (isSetSuccess()) {
15915 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15916 if (lastComparison != 0) {
15917 return lastComparison;
15923 public _Fields fieldForId(int fieldId) {
15924 return _Fields.findByThriftId(fieldId);
15927 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15928 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15931 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15932 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15936 public String toString() {
15937 StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
15938 boolean first = true;
15940 sb.append("success:");
15941 sb.append(this.success);
15944 return sb.toString();
15947 public void validate() throws org.apache.thrift.TException {
15948 // check for required fields
15949 // check for sub-struct validity
15952 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15954 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15955 } catch (org.apache.thrift.TException te) {
15956 throw new java.io.IOException(te);
15960 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15962 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15963 __isset_bitfield = 0;
15964 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15965 } catch (org.apache.thrift.TException te) {
15966 throw new java.io.IOException(te);
15970 private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
15971 public enableGracefulRestart_resultStandardScheme getScheme() {
15972 return new enableGracefulRestart_resultStandardScheme();
15976 private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
15978 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
15979 org.apache.thrift.protocol.TField schemeField;
15980 iprot.readStructBegin();
15983 schemeField = iprot.readFieldBegin();
15984 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15987 switch (schemeField.id) {
15989 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15990 struct.success = iprot.readI32();
15991 struct.setSuccessIsSet(true);
15993 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15997 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15999 iprot.readFieldEnd();
16001 iprot.readStructEnd();
16003 // check for required fields of primitive type, which can't be checked in the validate method
16007 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16010 oprot.writeStructBegin(STRUCT_DESC);
16011 if (struct.isSetSuccess()) {
16012 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16013 oprot.writeI32(struct.success);
16014 oprot.writeFieldEnd();
16016 oprot.writeFieldStop();
16017 oprot.writeStructEnd();
16022 private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16023 public enableGracefulRestart_resultTupleScheme getScheme() {
16024 return new enableGracefulRestart_resultTupleScheme();
16028 private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
16031 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16032 TTupleProtocol oprot = (TTupleProtocol) prot;
16033 BitSet optionals = new BitSet();
16034 if (struct.isSetSuccess()) {
16037 oprot.writeBitSet(optionals, 1);
16038 if (struct.isSetSuccess()) {
16039 oprot.writeI32(struct.success);
16044 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
16045 TTupleProtocol iprot = (TTupleProtocol) prot;
16046 BitSet incoming = iprot.readBitSet(1);
16047 if (incoming.get(0)) {
16048 struct.success = iprot.readI32();
16049 struct.setSuccessIsSet(true);
16056 public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args> {
16057 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
16060 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16062 schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
16063 schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
16067 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16068 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16071 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16074 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16075 byName.put(field.getFieldName(), field);
16080 * Find the _Fields constant that matches fieldId, or null if its not found.
16082 public static _Fields findByThriftId(int fieldId) {
16090 * Find the _Fields constant that matches fieldId, throwing an exception
16091 * if it is not found.
16093 public static _Fields findByThriftIdOrThrow(int fieldId) {
16094 _Fields fields = findByThriftId(fieldId);
16095 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16100 * Find the _Fields constant that matches name, or null if its not found.
16102 public static _Fields findByName(String name) {
16103 return byName.get(name);
16106 private final short _thriftId;
16107 private final String _fieldName;
16109 _Fields(short thriftId, String fieldName) {
16110 _thriftId = thriftId;
16111 _fieldName = fieldName;
16114 public short getThriftFieldId() {
16118 public String getFieldName() {
16122 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16124 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16125 metaDataMap = Collections.unmodifiableMap(tmpMap);
16126 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
16129 public disableGracefulRestart_args() {
16133 * Performs a deep copy on <i>other</i>.
16135 public disableGracefulRestart_args(disableGracefulRestart_args other) {
16138 public disableGracefulRestart_args deepCopy() {
16139 return new disableGracefulRestart_args(this);
16143 public void clear() {
16146 public void setFieldValue(_Fields field, Object value) {
16151 public Object getFieldValue(_Fields field) {
16154 throw new IllegalStateException();
16157 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16158 public boolean isSet(_Fields field) {
16159 if (field == null) {
16160 throw new IllegalArgumentException();
16165 throw new IllegalStateException();
16169 public boolean equals(Object that) {
16172 if (that instanceof disableGracefulRestart_args)
16173 return this.equals((disableGracefulRestart_args)that);
16177 public boolean equals(disableGracefulRestart_args that) {
16185 public int hashCode() {
16190 public int compareTo(disableGracefulRestart_args other) {
16191 if (!getClass().equals(other.getClass())) {
16192 return getClass().getName().compareTo(other.getClass().getName());
16195 int lastComparison = 0;
16200 public _Fields fieldForId(int fieldId) {
16201 return _Fields.findByThriftId(fieldId);
16204 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16205 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16208 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16209 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16213 public String toString() {
16214 StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
16215 boolean first = true;
16218 return sb.toString();
16221 public void validate() throws org.apache.thrift.TException {
16222 // check for required fields
16223 // check for sub-struct validity
16226 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16228 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16229 } catch (org.apache.thrift.TException te) {
16230 throw new java.io.IOException(te);
16234 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16236 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16237 } catch (org.apache.thrift.TException te) {
16238 throw new java.io.IOException(te);
16242 private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
16243 public disableGracefulRestart_argsStandardScheme getScheme() {
16244 return new disableGracefulRestart_argsStandardScheme();
16248 private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
16250 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16251 org.apache.thrift.protocol.TField schemeField;
16252 iprot.readStructBegin();
16255 schemeField = iprot.readFieldBegin();
16256 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16259 switch (schemeField.id) {
16261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16263 iprot.readFieldEnd();
16265 iprot.readStructEnd();
16267 // check for required fields of primitive type, which can't be checked in the validate method
16271 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16274 oprot.writeStructBegin(STRUCT_DESC);
16275 oprot.writeFieldStop();
16276 oprot.writeStructEnd();
16281 private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
16282 public disableGracefulRestart_argsTupleScheme getScheme() {
16283 return new disableGracefulRestart_argsTupleScheme();
16287 private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
16290 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16291 TTupleProtocol oprot = (TTupleProtocol) prot;
16295 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
16296 TTupleProtocol iprot = (TTupleProtocol) prot;
16302 public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result> {
16303 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
16305 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);
16307 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16309 schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
16310 schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
16313 public int success; // required
16315 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16316 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16317 SUCCESS((short)0, "success");
16319 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16322 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16323 byName.put(field.getFieldName(), field);
16328 * Find the _Fields constant that matches fieldId, or null if its not found.
16330 public static _Fields findByThriftId(int fieldId) {
16340 * Find the _Fields constant that matches fieldId, throwing an exception
16341 * if it is not found.
16343 public static _Fields findByThriftIdOrThrow(int fieldId) {
16344 _Fields fields = findByThriftId(fieldId);
16345 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16350 * Find the _Fields constant that matches name, or null if its not found.
16352 public static _Fields findByName(String name) {
16353 return byName.get(name);
16356 private final short _thriftId;
16357 private final String _fieldName;
16359 _Fields(short thriftId, String fieldName) {
16360 _thriftId = thriftId;
16361 _fieldName = fieldName;
16364 public short getThriftFieldId() {
16368 public String getFieldName() {
16373 // isset id assignments
16374 private static final int __SUCCESS_ISSET_ID = 0;
16375 private byte __isset_bitfield = 0;
16376 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16378 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16379 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16380 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16381 metaDataMap = Collections.unmodifiableMap(tmpMap);
16382 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
16385 public disableGracefulRestart_result() {
16388 public disableGracefulRestart_result(
16392 this.success = success;
16393 setSuccessIsSet(true);
16397 * Performs a deep copy on <i>other</i>.
16399 public disableGracefulRestart_result(disableGracefulRestart_result other) {
16400 __isset_bitfield = other.__isset_bitfield;
16401 this.success = other.success;
16404 public disableGracefulRestart_result deepCopy() {
16405 return new disableGracefulRestart_result(this);
16409 public void clear() {
16410 setSuccessIsSet(false);
16414 public int getSuccess() {
16415 return this.success;
16418 public disableGracefulRestart_result setSuccess(int success) {
16419 this.success = success;
16420 setSuccessIsSet(true);
16424 public void unsetSuccess() {
16425 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16428 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16429 public boolean isSetSuccess() {
16430 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16433 public void setSuccessIsSet(boolean value) {
16434 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16437 public void setFieldValue(_Fields field, Object value) {
16440 if (value == null) {
16443 setSuccess((Integer)value);
16450 public Object getFieldValue(_Fields field) {
16453 return Integer.valueOf(getSuccess());
16456 throw new IllegalStateException();
16459 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16460 public boolean isSet(_Fields field) {
16461 if (field == null) {
16462 throw new IllegalArgumentException();
16467 return isSetSuccess();
16469 throw new IllegalStateException();
16473 public boolean equals(Object that) {
16476 if (that instanceof disableGracefulRestart_result)
16477 return this.equals((disableGracefulRestart_result)that);
16481 public boolean equals(disableGracefulRestart_result that) {
16485 boolean this_present_success = true;
16486 boolean that_present_success = true;
16487 if (this_present_success || that_present_success) {
16488 if (!(this_present_success && that_present_success))
16490 if (this.success != that.success)
16498 public int hashCode() {
16503 public int compareTo(disableGracefulRestart_result other) {
16504 if (!getClass().equals(other.getClass())) {
16505 return getClass().getName().compareTo(other.getClass().getName());
16508 int lastComparison = 0;
16510 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16511 if (lastComparison != 0) {
16512 return lastComparison;
16514 if (isSetSuccess()) {
16515 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16516 if (lastComparison != 0) {
16517 return lastComparison;
16523 public _Fields fieldForId(int fieldId) {
16524 return _Fields.findByThriftId(fieldId);
16527 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16528 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16531 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16532 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16536 public String toString() {
16537 StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
16538 boolean first = true;
16540 sb.append("success:");
16541 sb.append(this.success);
16544 return sb.toString();
16547 public void validate() throws org.apache.thrift.TException {
16548 // check for required fields
16549 // check for sub-struct validity
16552 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16554 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16555 } catch (org.apache.thrift.TException te) {
16556 throw new java.io.IOException(te);
16560 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16562 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16563 __isset_bitfield = 0;
16564 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16565 } catch (org.apache.thrift.TException te) {
16566 throw new java.io.IOException(te);
16570 private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
16571 public disableGracefulRestart_resultStandardScheme getScheme() {
16572 return new disableGracefulRestart_resultStandardScheme();
16576 private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
16578 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16579 org.apache.thrift.protocol.TField schemeField;
16580 iprot.readStructBegin();
16583 schemeField = iprot.readFieldBegin();
16584 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16587 switch (schemeField.id) {
16589 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16590 struct.success = iprot.readI32();
16591 struct.setSuccessIsSet(true);
16593 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16597 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16599 iprot.readFieldEnd();
16601 iprot.readStructEnd();
16603 // check for required fields of primitive type, which can't be checked in the validate method
16607 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16610 oprot.writeStructBegin(STRUCT_DESC);
16611 if (struct.isSetSuccess()) {
16612 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16613 oprot.writeI32(struct.success);
16614 oprot.writeFieldEnd();
16616 oprot.writeFieldStop();
16617 oprot.writeStructEnd();
16622 private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
16623 public disableGracefulRestart_resultTupleScheme getScheme() {
16624 return new disableGracefulRestart_resultTupleScheme();
16628 private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
16631 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16632 TTupleProtocol oprot = (TTupleProtocol) prot;
16633 BitSet optionals = new BitSet();
16634 if (struct.isSetSuccess()) {
16637 oprot.writeBitSet(optionals, 1);
16638 if (struct.isSetSuccess()) {
16639 oprot.writeI32(struct.success);
16644 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
16645 TTupleProtocol iprot = (TTupleProtocol) prot;
16646 BitSet incoming = iprot.readBitSet(1);
16647 if (incoming.get(0)) {
16648 struct.success = iprot.readI32();
16649 struct.setSuccessIsSet(true);
16656 public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args> {
16657 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
16659 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);
16660 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);
16662 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16664 schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
16665 schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
16668 public int optype; // required
16669 public int winSize; // required
16671 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16672 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16673 OPTYPE((short)1, "optype"),
16674 WIN_SIZE((short)2, "winSize");
16676 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16679 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16680 byName.put(field.getFieldName(), field);
16685 * Find the _Fields constant that matches fieldId, or null if its not found.
16687 public static _Fields findByThriftId(int fieldId) {
16691 case 2: // WIN_SIZE
16699 * Find the _Fields constant that matches fieldId, throwing an exception
16700 * if it is not found.
16702 public static _Fields findByThriftIdOrThrow(int fieldId) {
16703 _Fields fields = findByThriftId(fieldId);
16704 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16709 * Find the _Fields constant that matches name, or null if its not found.
16711 public static _Fields findByName(String name) {
16712 return byName.get(name);
16715 private final short _thriftId;
16716 private final String _fieldName;
16718 _Fields(short thriftId, String fieldName) {
16719 _thriftId = thriftId;
16720 _fieldName = fieldName;
16723 public short getThriftFieldId() {
16727 public String getFieldName() {
16732 // isset id assignments
16733 private static final int __OPTYPE_ISSET_ID = 0;
16734 private static final int __WINSIZE_ISSET_ID = 1;
16735 private byte __isset_bitfield = 0;
16736 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16738 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16739 tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
16740 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16741 tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
16742 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16743 metaDataMap = Collections.unmodifiableMap(tmpMap);
16744 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
16747 public getRoutes_args() {
16750 public getRoutes_args(
16755 this.optype = optype;
16756 setOptypeIsSet(true);
16757 this.winSize = winSize;
16758 setWinSizeIsSet(true);
16762 * Performs a deep copy on <i>other</i>.
16764 public getRoutes_args(getRoutes_args other) {
16765 __isset_bitfield = other.__isset_bitfield;
16766 this.optype = other.optype;
16767 this.winSize = other.winSize;
16770 public getRoutes_args deepCopy() {
16771 return new getRoutes_args(this);
16775 public void clear() {
16776 setOptypeIsSet(false);
16778 setWinSizeIsSet(false);
16782 public int getOptype() {
16783 return this.optype;
16786 public getRoutes_args setOptype(int optype) {
16787 this.optype = optype;
16788 setOptypeIsSet(true);
16792 public void unsetOptype() {
16793 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16796 /** Returns true if field optype is set (has been assigned a value) and false otherwise */
16797 public boolean isSetOptype() {
16798 return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
16801 public void setOptypeIsSet(boolean value) {
16802 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
16805 public int getWinSize() {
16806 return this.winSize;
16809 public getRoutes_args setWinSize(int winSize) {
16810 this.winSize = winSize;
16811 setWinSizeIsSet(true);
16815 public void unsetWinSize() {
16816 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16819 /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
16820 public boolean isSetWinSize() {
16821 return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
16824 public void setWinSizeIsSet(boolean value) {
16825 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
16828 public void setFieldValue(_Fields field, Object value) {
16831 if (value == null) {
16834 setOptype((Integer)value);
16839 if (value == null) {
16842 setWinSize((Integer)value);
16849 public Object getFieldValue(_Fields field) {
16852 return Integer.valueOf(getOptype());
16855 return Integer.valueOf(getWinSize());
16858 throw new IllegalStateException();
16861 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16862 public boolean isSet(_Fields field) {
16863 if (field == null) {
16864 throw new IllegalArgumentException();
16869 return isSetOptype();
16871 return isSetWinSize();
16873 throw new IllegalStateException();
16877 public boolean equals(Object that) {
16880 if (that instanceof getRoutes_args)
16881 return this.equals((getRoutes_args)that);
16885 public boolean equals(getRoutes_args that) {
16889 boolean this_present_optype = true;
16890 boolean that_present_optype = true;
16891 if (this_present_optype || that_present_optype) {
16892 if (!(this_present_optype && that_present_optype))
16894 if (this.optype != that.optype)
16898 boolean this_present_winSize = true;
16899 boolean that_present_winSize = true;
16900 if (this_present_winSize || that_present_winSize) {
16901 if (!(this_present_winSize && that_present_winSize))
16903 if (this.winSize != that.winSize)
16911 public int hashCode() {
16916 public int compareTo(getRoutes_args other) {
16917 if (!getClass().equals(other.getClass())) {
16918 return getClass().getName().compareTo(other.getClass().getName());
16921 int lastComparison = 0;
16923 lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
16924 if (lastComparison != 0) {
16925 return lastComparison;
16927 if (isSetOptype()) {
16928 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
16929 if (lastComparison != 0) {
16930 return lastComparison;
16933 lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
16934 if (lastComparison != 0) {
16935 return lastComparison;
16937 if (isSetWinSize()) {
16938 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
16939 if (lastComparison != 0) {
16940 return lastComparison;
16946 public _Fields fieldForId(int fieldId) {
16947 return _Fields.findByThriftId(fieldId);
16950 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16951 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16954 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16955 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16959 public String toString() {
16960 StringBuilder sb = new StringBuilder("getRoutes_args(");
16961 boolean first = true;
16963 sb.append("optype:");
16964 sb.append(this.optype);
16966 if (!first) sb.append(", ");
16967 sb.append("winSize:");
16968 sb.append(this.winSize);
16971 return sb.toString();
16974 public void validate() throws org.apache.thrift.TException {
16975 // check for required fields
16976 // check for sub-struct validity
16979 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16981 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16982 } catch (org.apache.thrift.TException te) {
16983 throw new java.io.IOException(te);
16987 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16989 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16990 __isset_bitfield = 0;
16991 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16992 } catch (org.apache.thrift.TException te) {
16993 throw new java.io.IOException(te);
16997 private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
16998 public getRoutes_argsStandardScheme getScheme() {
16999 return new getRoutes_argsStandardScheme();
17003 private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
17005 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
17006 org.apache.thrift.protocol.TField schemeField;
17007 iprot.readStructBegin();
17010 schemeField = iprot.readFieldBegin();
17011 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17014 switch (schemeField.id) {
17016 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17017 struct.optype = iprot.readI32();
17018 struct.setOptypeIsSet(true);
17020 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17023 case 2: // WIN_SIZE
17024 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17025 struct.winSize = iprot.readI32();
17026 struct.setWinSizeIsSet(true);
17028 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17032 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17034 iprot.readFieldEnd();
17036 iprot.readStructEnd();
17038 // check for required fields of primitive type, which can't be checked in the validate method
17042 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
17045 oprot.writeStructBegin(STRUCT_DESC);
17046 oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
17047 oprot.writeI32(struct.optype);
17048 oprot.writeFieldEnd();
17049 oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
17050 oprot.writeI32(struct.winSize);
17051 oprot.writeFieldEnd();
17052 oprot.writeFieldStop();
17053 oprot.writeStructEnd();
17058 private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
17059 public getRoutes_argsTupleScheme getScheme() {
17060 return new getRoutes_argsTupleScheme();
17064 private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
17067 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17068 TTupleProtocol oprot = (TTupleProtocol) prot;
17069 BitSet optionals = new BitSet();
17070 if (struct.isSetOptype()) {
17073 if (struct.isSetWinSize()) {
17076 oprot.writeBitSet(optionals, 2);
17077 if (struct.isSetOptype()) {
17078 oprot.writeI32(struct.optype);
17080 if (struct.isSetWinSize()) {
17081 oprot.writeI32(struct.winSize);
17086 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
17087 TTupleProtocol iprot = (TTupleProtocol) prot;
17088 BitSet incoming = iprot.readBitSet(2);
17089 if (incoming.get(0)) {
17090 struct.optype = iprot.readI32();
17091 struct.setOptypeIsSet(true);
17093 if (incoming.get(1)) {
17094 struct.winSize = iprot.readI32();
17095 struct.setWinSizeIsSet(true);
17102 public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result> {
17103 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
17105 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);
17107 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17109 schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
17110 schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
17113 public Routes success; // required
17115 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17116 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17117 SUCCESS((short)0, "success");
17119 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17122 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17123 byName.put(field.getFieldName(), field);
17128 * Find the _Fields constant that matches fieldId, or null if its not found.
17130 public static _Fields findByThriftId(int fieldId) {
17140 * Find the _Fields constant that matches fieldId, throwing an exception
17141 * if it is not found.
17143 public static _Fields findByThriftIdOrThrow(int fieldId) {
17144 _Fields fields = findByThriftId(fieldId);
17145 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17150 * Find the _Fields constant that matches name, or null if its not found.
17152 public static _Fields findByName(String name) {
17153 return byName.get(name);
17156 private final short _thriftId;
17157 private final String _fieldName;
17159 _Fields(short thriftId, String fieldName) {
17160 _thriftId = thriftId;
17161 _fieldName = fieldName;
17164 public short getThriftFieldId() {
17168 public String getFieldName() {
17173 // isset id assignments
17174 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17176 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17177 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17178 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
17179 metaDataMap = Collections.unmodifiableMap(tmpMap);
17180 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
17183 public getRoutes_result() {
17186 public getRoutes_result(
17190 this.success = success;
17194 * Performs a deep copy on <i>other</i>.
17196 public getRoutes_result(getRoutes_result other) {
17197 if (other.isSetSuccess()) {
17198 this.success = new Routes(other.success);
17202 public getRoutes_result deepCopy() {
17203 return new getRoutes_result(this);
17207 public void clear() {
17208 this.success = null;
17211 public Routes getSuccess() {
17212 return this.success;
17215 public getRoutes_result setSuccess(Routes success) {
17216 this.success = success;
17220 public void unsetSuccess() {
17221 this.success = null;
17224 /** Returns true if field success is set (has been assigned a value) and false otherwise */
17225 public boolean isSetSuccess() {
17226 return this.success != null;
17229 public void setSuccessIsSet(boolean value) {
17231 this.success = null;
17235 public void setFieldValue(_Fields field, Object value) {
17238 if (value == null) {
17241 setSuccess((Routes)value);
17248 public Object getFieldValue(_Fields field) {
17251 return getSuccess();
17254 throw new IllegalStateException();
17257 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17258 public boolean isSet(_Fields field) {
17259 if (field == null) {
17260 throw new IllegalArgumentException();
17265 return isSetSuccess();
17267 throw new IllegalStateException();
17271 public boolean equals(Object that) {
17274 if (that instanceof getRoutes_result)
17275 return this.equals((getRoutes_result)that);
17279 public boolean equals(getRoutes_result that) {
17283 boolean this_present_success = true && this.isSetSuccess();
17284 boolean that_present_success = true && that.isSetSuccess();
17285 if (this_present_success || that_present_success) {
17286 if (!(this_present_success && that_present_success))
17288 if (!this.success.equals(that.success))
17296 public int hashCode() {
17301 public int compareTo(getRoutes_result other) {
17302 if (!getClass().equals(other.getClass())) {
17303 return getClass().getName().compareTo(other.getClass().getName());
17306 int lastComparison = 0;
17308 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17309 if (lastComparison != 0) {
17310 return lastComparison;
17312 if (isSetSuccess()) {
17313 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17314 if (lastComparison != 0) {
17315 return lastComparison;
17321 public _Fields fieldForId(int fieldId) {
17322 return _Fields.findByThriftId(fieldId);
17325 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17326 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17329 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17330 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17334 public String toString() {
17335 StringBuilder sb = new StringBuilder("getRoutes_result(");
17336 boolean first = true;
17338 sb.append("success:");
17339 if (this.success == null) {
17342 sb.append(this.success);
17346 return sb.toString();
17349 public void validate() throws org.apache.thrift.TException {
17350 // check for required fields
17351 // check for sub-struct validity
17352 if (success != null) {
17353 success.validate();
17357 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17359 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17360 } catch (org.apache.thrift.TException te) {
17361 throw new java.io.IOException(te);
17365 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17367 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17368 } catch (org.apache.thrift.TException te) {
17369 throw new java.io.IOException(te);
17373 private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
17374 public getRoutes_resultStandardScheme getScheme() {
17375 return new getRoutes_resultStandardScheme();
17379 private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
17381 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
17382 org.apache.thrift.protocol.TField schemeField;
17383 iprot.readStructBegin();
17386 schemeField = iprot.readFieldBegin();
17387 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17390 switch (schemeField.id) {
17392 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
17393 struct.success = new Routes();
17394 struct.success.read(iprot);
17395 struct.setSuccessIsSet(true);
17397 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17401 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17403 iprot.readFieldEnd();
17405 iprot.readStructEnd();
17407 // check for required fields of primitive type, which can't be checked in the validate method
17411 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
17414 oprot.writeStructBegin(STRUCT_DESC);
17415 if (struct.success != null) {
17416 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17417 struct.success.write(oprot);
17418 oprot.writeFieldEnd();
17420 oprot.writeFieldStop();
17421 oprot.writeStructEnd();
17426 private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
17427 public getRoutes_resultTupleScheme getScheme() {
17428 return new getRoutes_resultTupleScheme();
17432 private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
17435 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17436 TTupleProtocol oprot = (TTupleProtocol) prot;
17437 BitSet optionals = new BitSet();
17438 if (struct.isSetSuccess()) {
17441 oprot.writeBitSet(optionals, 1);
17442 if (struct.isSetSuccess()) {
17443 struct.success.write(oprot);
17448 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
17449 TTupleProtocol iprot = (TTupleProtocol) prot;
17450 BitSet incoming = iprot.readBitSet(1);
17451 if (incoming.get(0)) {
17452 struct.success = new Routes();
17453 struct.success.read(iprot);
17454 struct.setSuccessIsSet(true);