2 * Autogenerated by Thrift Compiler (0.9.1)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.protocol.TProtocolException;
17 import org.apache.thrift.EncodingUtils;
18 import org.apache.thrift.TException;
19 import org.apache.thrift.async.AsyncMethodCallback;
20 import org.apache.thrift.server.AbstractNonblockingServer.*;
21 import java.util.List;
22 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.EnumMap;
27 import java.util.HashSet;
28 import java.util.EnumSet;
29 import java.util.Collections;
30 import java.util.BitSet;
31 import java.nio.ByteBuffer;
32 import java.util.Arrays;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
36 public class BgpConfigurator {
38 public interface Iface {
40 public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException;
42 public int stopBgp(long asNumber) throws org.apache.thrift.TException;
44 public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException;
46 public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException;
48 public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
50 public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
52 public int delVrf(String rd) throws org.apache.thrift.TException;
54 public int pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException;
56 public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException;
58 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
60 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
62 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
64 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
66 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
68 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
70 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
72 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
74 public int disableGracefulRestart() throws org.apache.thrift.TException;
76 public Routes getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException;
78 public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
80 public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
82 public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException;
86 public interface AsyncIface {
88 public void startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
90 public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
92 public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
94 public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
96 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
98 public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
100 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
102 public void pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
104 public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
106 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
108 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
110 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
112 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
114 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
116 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
118 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
120 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
122 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
124 public void getRoutes(protocol_type p_type, int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
126 public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
128 public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
130 public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
134 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
135 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
137 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
138 return new Client(prot);
140 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
141 return new Client(iprot, oprot);
145 public Client(org.apache.thrift.protocol.TProtocol prot)
150 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
154 public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
156 send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush);
157 return recv_startBgp();
160 public void send_startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
162 startBgp_args args = new startBgp_args();
163 args.setAsNumber(asNumber);
164 args.setRouterId(routerId);
166 args.setHoldTime(holdTime);
167 args.setKeepAliveTime(keepAliveTime);
168 args.setStalepathTime(stalepathTime);
169 args.setAnnounceFlush(announceFlush);
170 sendBase("startBgp", args);
173 public int recv_startBgp() throws org.apache.thrift.TException
175 startBgp_result result = new startBgp_result();
176 receiveBase(result, "startBgp");
177 if (result.isSetSuccess()) {
178 return result.success;
180 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
183 public int stopBgp(long asNumber) throws org.apache.thrift.TException
185 send_stopBgp(asNumber);
186 return recv_stopBgp();
189 public void send_stopBgp(long asNumber) throws org.apache.thrift.TException
191 stopBgp_args args = new stopBgp_args();
192 args.setAsNumber(asNumber);
193 sendBase("stopBgp", args);
196 public int recv_stopBgp() throws org.apache.thrift.TException
198 stopBgp_result result = new stopBgp_result();
199 receiveBase(result, "stopBgp");
200 if (result.isSetSuccess()) {
201 return result.success;
203 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
206 public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
208 send_createPeer(ipAddress, asNumber);
209 return recv_createPeer();
212 public void send_createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
214 createPeer_args args = new createPeer_args();
215 args.setIpAddress(ipAddress);
216 args.setAsNumber(asNumber);
217 sendBase("createPeer", args);
220 public int recv_createPeer() throws org.apache.thrift.TException
222 createPeer_result result = new createPeer_result();
223 receiveBase(result, "createPeer");
224 if (result.isSetSuccess()) {
225 return result.success;
227 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
230 public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
232 send_setPeerSecret(ipAddress, rfc2385_sharedSecret);
233 return recv_setPeerSecret();
236 public void send_setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
238 setPeerSecret_args args = new setPeerSecret_args();
239 args.setIpAddress(ipAddress);
240 args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
241 sendBase("setPeerSecret", args);
244 public int recv_setPeerSecret() throws org.apache.thrift.TException
246 setPeerSecret_result result = new setPeerSecret_result();
247 receiveBase(result, "setPeerSecret");
248 if (result.isSetSuccess()) {
249 return result.success;
251 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setPeerSecret failed: unknown result");
254 public int deletePeer(String ipAddress) throws org.apache.thrift.TException
256 send_deletePeer(ipAddress);
257 return recv_deletePeer();
260 public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
262 deletePeer_args args = new deletePeer_args();
263 args.setIpAddress(ipAddress);
264 sendBase("deletePeer", args);
267 public int recv_deletePeer() throws org.apache.thrift.TException
269 deletePeer_result result = new deletePeer_result();
270 receiveBase(result, "deletePeer");
271 if (result.isSetSuccess()) {
272 return result.success;
274 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
277 public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
279 send_addVrf(l_type, rd, irts, erts);
280 return recv_addVrf();
283 public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
285 addVrf_args args = new addVrf_args();
286 args.setL_type(l_type);
290 sendBase("addVrf", args);
293 public int recv_addVrf() throws org.apache.thrift.TException
295 addVrf_result result = new addVrf_result();
296 receiveBase(result, "addVrf");
297 if (result.isSetSuccess()) {
298 return result.success;
300 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
303 public int delVrf(String rd) throws org.apache.thrift.TException
306 return recv_delVrf();
309 public void send_delVrf(String rd) throws org.apache.thrift.TException
311 delVrf_args args = new delVrf_args();
313 sendBase("delVrf", args);
316 public int recv_delVrf() throws org.apache.thrift.TException
318 delVrf_result result = new delVrf_result();
319 receiveBase(result, "delVrf");
320 if (result.isSetSuccess()) {
321 return result.success;
323 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
326 public int pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException
328 send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac);
329 return recv_pushRoute();
332 public void send_pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac) throws org.apache.thrift.TException
334 pushRoute_args args = new pushRoute_args();
335 args.setP_type(p_type);
336 args.setPrefix(prefix);
337 args.setNexthop(nexthop);
339 args.setEthtag(ethtag);
341 args.setMacaddress(macaddress);
342 args.setL3label(l3label);
343 args.setL2label(l2label);
344 args.setEnc_type(enc_type);
345 args.setRoutermac(routermac);
346 sendBase("pushRoute", args);
349 public int recv_pushRoute() throws org.apache.thrift.TException
351 pushRoute_result result = new pushRoute_result();
352 receiveBase(result, "pushRoute");
353 if (result.isSetSuccess()) {
354 return result.success;
356 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
359 public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException
361 send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress);
362 return recv_withdrawRoute();
365 public void send_withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress) throws org.apache.thrift.TException
367 withdrawRoute_args args = new withdrawRoute_args();
368 args.setP_type(p_type);
369 args.setPrefix(prefix);
371 args.setEthtag(ethtag);
373 args.setMacaddress(macaddress);
374 sendBase("withdrawRoute", args);
377 public int recv_withdrawRoute() throws org.apache.thrift.TException
379 withdrawRoute_result result = new withdrawRoute_result();
380 receiveBase(result, "withdrawRoute");
381 if (result.isSetSuccess()) {
382 return result.success;
384 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
387 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
389 send_setEbgpMultihop(peerIp, nHops);
390 return recv_setEbgpMultihop();
393 public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
395 setEbgpMultihop_args args = new setEbgpMultihop_args();
396 args.setPeerIp(peerIp);
397 args.setNHops(nHops);
398 sendBase("setEbgpMultihop", args);
401 public int recv_setEbgpMultihop() throws org.apache.thrift.TException
403 setEbgpMultihop_result result = new setEbgpMultihop_result();
404 receiveBase(result, "setEbgpMultihop");
405 if (result.isSetSuccess()) {
406 return result.success;
408 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
411 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
413 send_unsetEbgpMultihop(peerIp);
414 return recv_unsetEbgpMultihop();
417 public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
419 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
420 args.setPeerIp(peerIp);
421 sendBase("unsetEbgpMultihop", args);
424 public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
426 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
427 receiveBase(result, "unsetEbgpMultihop");
428 if (result.isSetSuccess()) {
429 return result.success;
431 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
434 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
436 send_setUpdateSource(peerIp, srcIp);
437 return recv_setUpdateSource();
440 public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
442 setUpdateSource_args args = new setUpdateSource_args();
443 args.setPeerIp(peerIp);
444 args.setSrcIp(srcIp);
445 sendBase("setUpdateSource", args);
448 public int recv_setUpdateSource() throws org.apache.thrift.TException
450 setUpdateSource_result result = new setUpdateSource_result();
451 receiveBase(result, "setUpdateSource");
452 if (result.isSetSuccess()) {
453 return result.success;
455 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
458 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
460 send_unsetUpdateSource(peerIp);
461 return recv_unsetUpdateSource();
464 public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
466 unsetUpdateSource_args args = new unsetUpdateSource_args();
467 args.setPeerIp(peerIp);
468 sendBase("unsetUpdateSource", args);
471 public int recv_unsetUpdateSource() throws org.apache.thrift.TException
473 unsetUpdateSource_result result = new unsetUpdateSource_result();
474 receiveBase(result, "unsetUpdateSource");
475 if (result.isSetSuccess()) {
476 return result.success;
478 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
481 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
483 send_enableAddressFamily(peerIp, afi, safi);
484 return recv_enableAddressFamily();
487 public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
489 enableAddressFamily_args args = new enableAddressFamily_args();
490 args.setPeerIp(peerIp);
493 sendBase("enableAddressFamily", args);
496 public int recv_enableAddressFamily() throws org.apache.thrift.TException
498 enableAddressFamily_result result = new enableAddressFamily_result();
499 receiveBase(result, "enableAddressFamily");
500 if (result.isSetSuccess()) {
501 return result.success;
503 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
506 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
508 send_disableAddressFamily(peerIp, afi, safi);
509 return recv_disableAddressFamily();
512 public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
514 disableAddressFamily_args args = new disableAddressFamily_args();
515 args.setPeerIp(peerIp);
518 sendBase("disableAddressFamily", args);
521 public int recv_disableAddressFamily() throws org.apache.thrift.TException
523 disableAddressFamily_result result = new disableAddressFamily_result();
524 receiveBase(result, "disableAddressFamily");
525 if (result.isSetSuccess()) {
526 return result.success;
528 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
531 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
533 send_setLogConfig(logFileName, logLevel);
534 return recv_setLogConfig();
537 public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
539 setLogConfig_args args = new setLogConfig_args();
540 args.setLogFileName(logFileName);
541 args.setLogLevel(logLevel);
542 sendBase("setLogConfig", args);
545 public int recv_setLogConfig() throws org.apache.thrift.TException
547 setLogConfig_result result = new setLogConfig_result();
548 receiveBase(result, "setLogConfig");
549 if (result.isSetSuccess()) {
550 return result.success;
552 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
555 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
557 send_enableGracefulRestart(stalepathTime);
558 return recv_enableGracefulRestart();
561 public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
563 enableGracefulRestart_args args = new enableGracefulRestart_args();
564 args.setStalepathTime(stalepathTime);
565 sendBase("enableGracefulRestart", args);
568 public int recv_enableGracefulRestart() throws org.apache.thrift.TException
570 enableGracefulRestart_result result = new enableGracefulRestart_result();
571 receiveBase(result, "enableGracefulRestart");
572 if (result.isSetSuccess()) {
573 return result.success;
575 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
578 public int disableGracefulRestart() throws org.apache.thrift.TException
580 send_disableGracefulRestart();
581 return recv_disableGracefulRestart();
584 public void send_disableGracefulRestart() throws org.apache.thrift.TException
586 disableGracefulRestart_args args = new disableGracefulRestart_args();
587 sendBase("disableGracefulRestart", args);
590 public int recv_disableGracefulRestart() throws org.apache.thrift.TException
592 disableGracefulRestart_result result = new disableGracefulRestart_result();
593 receiveBase(result, "disableGracefulRestart");
594 if (result.isSetSuccess()) {
595 return result.success;
597 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
600 public Routes getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException
602 send_getRoutes(p_type, optype, winSize);
603 return recv_getRoutes();
606 public void send_getRoutes(protocol_type p_type, int optype, int winSize) throws org.apache.thrift.TException
608 getRoutes_args args = new getRoutes_args();
609 args.setP_type(p_type);
610 args.setOptype(optype);
611 args.setWinSize(winSize);
612 sendBase("getRoutes", args);
615 public Routes recv_getRoutes() throws org.apache.thrift.TException
617 getRoutes_result result = new getRoutes_result();
618 receiveBase(result, "getRoutes");
619 if (result.isSetSuccess()) {
620 return result.success;
622 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
625 public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
627 send_enableMultipath(afi, safi);
628 return recv_enableMultipath();
631 public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
633 enableMultipath_args args = new enableMultipath_args();
636 sendBase("enableMultipath", args);
639 public int recv_enableMultipath() throws org.apache.thrift.TException
641 enableMultipath_result result = new enableMultipath_result();
642 receiveBase(result, "enableMultipath");
643 if (result.isSetSuccess()) {
644 return result.success;
646 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
649 public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
651 send_disableMultipath(afi, safi);
652 return recv_disableMultipath();
655 public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
657 disableMultipath_args args = new disableMultipath_args();
660 sendBase("disableMultipath", args);
663 public int recv_disableMultipath() throws org.apache.thrift.TException
665 disableMultipath_result result = new disableMultipath_result();
666 receiveBase(result, "disableMultipath");
667 if (result.isSetSuccess()) {
668 return result.success;
670 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
673 public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
675 send_multipaths(rd, maxPath);
676 return recv_multipaths();
679 public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
681 multipaths_args args = new multipaths_args();
683 args.setMaxPath(maxPath);
684 sendBase("multipaths", args);
687 public int recv_multipaths() throws org.apache.thrift.TException
689 multipaths_result result = new multipaths_result();
690 receiveBase(result, "multipaths");
691 if (result.isSetSuccess()) {
692 return result.success;
694 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
698 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
699 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
700 private org.apache.thrift.async.TAsyncClientManager clientManager;
701 private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
702 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
703 this.clientManager = clientManager;
704 this.protocolFactory = protocolFactory;
706 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
707 return new AsyncClient(protocolFactory, clientManager, transport);
711 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
712 super(protocolFactory, clientManager, transport);
715 public void startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
717 startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
718 this.___currentMethod = method_call;
719 ___manager.call(method_call);
722 public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
723 private long asNumber;
724 private String routerId;
726 private int holdTime;
727 private int keepAliveTime;
728 private int stalepathTime;
729 private boolean announceFlush;
730 public startBgp_call(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush, 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 {
731 super(client, protocolFactory, transport, resultHandler, false);
732 this.asNumber = asNumber;
733 this.routerId = routerId;
735 this.holdTime = holdTime;
736 this.keepAliveTime = keepAliveTime;
737 this.stalepathTime = stalepathTime;
738 this.announceFlush = announceFlush;
741 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
742 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
743 startBgp_args args = new startBgp_args();
744 args.setAsNumber(asNumber);
745 args.setRouterId(routerId);
747 args.setHoldTime(holdTime);
748 args.setKeepAliveTime(keepAliveTime);
749 args.setStalepathTime(stalepathTime);
750 args.setAnnounceFlush(announceFlush);
752 prot.writeMessageEnd();
755 public int getResult() throws org.apache.thrift.TException {
756 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
757 throw new IllegalStateException("Method call not finished!");
759 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
760 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
761 return (new Client(prot)).recv_startBgp();
765 public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
767 stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
768 this.___currentMethod = method_call;
769 ___manager.call(method_call);
772 public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
773 private long asNumber;
774 public stopBgp_call(long 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 {
775 super(client, protocolFactory, transport, resultHandler, false);
776 this.asNumber = asNumber;
779 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
780 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
781 stopBgp_args args = new stopBgp_args();
782 args.setAsNumber(asNumber);
784 prot.writeMessageEnd();
787 public int getResult() throws org.apache.thrift.TException {
788 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
789 throw new IllegalStateException("Method call not finished!");
791 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
792 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
793 return (new Client(prot)).recv_stopBgp();
797 public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
799 createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
800 this.___currentMethod = method_call;
801 ___manager.call(method_call);
804 public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
805 private String ipAddress;
806 private long asNumber;
807 public createPeer_call(String ipAddress, long 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 {
808 super(client, protocolFactory, transport, resultHandler, false);
809 this.ipAddress = ipAddress;
810 this.asNumber = asNumber;
813 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
814 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
815 createPeer_args args = new createPeer_args();
816 args.setIpAddress(ipAddress);
817 args.setAsNumber(asNumber);
819 prot.writeMessageEnd();
822 public int getResult() throws org.apache.thrift.TException {
823 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
824 throw new IllegalStateException("Method call not finished!");
826 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
827 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
828 return (new Client(prot)).recv_createPeer();
832 public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
834 setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
835 this.___currentMethod = method_call;
836 ___manager.call(method_call);
839 public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
840 private String ipAddress;
841 private String rfc2385_sharedSecret;
842 public setPeerSecret_call(String ipAddress, String rfc2385_sharedSecret, 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 {
843 super(client, protocolFactory, transport, resultHandler, false);
844 this.ipAddress = ipAddress;
845 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
848 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
849 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
850 setPeerSecret_args args = new setPeerSecret_args();
851 args.setIpAddress(ipAddress);
852 args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
854 prot.writeMessageEnd();
857 public int getResult() throws org.apache.thrift.TException {
858 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
859 throw new IllegalStateException("Method call not finished!");
861 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
862 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
863 return (new Client(prot)).recv_setPeerSecret();
867 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
869 deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
870 this.___currentMethod = method_call;
871 ___manager.call(method_call);
874 public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
875 private String ipAddress;
876 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 {
877 super(client, protocolFactory, transport, resultHandler, false);
878 this.ipAddress = ipAddress;
881 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
882 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
883 deletePeer_args args = new deletePeer_args();
884 args.setIpAddress(ipAddress);
886 prot.writeMessageEnd();
889 public int getResult() throws org.apache.thrift.TException {
890 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
891 throw new IllegalStateException("Method call not finished!");
893 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
894 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
895 return (new Client(prot)).recv_deletePeer();
899 public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
901 addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
902 this.___currentMethod = method_call;
903 ___manager.call(method_call);
906 public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
907 private layer_type l_type;
909 private List<String> irts;
910 private List<String> erts;
911 public addVrf_call(layer_type l_type, 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 {
912 super(client, protocolFactory, transport, resultHandler, false);
913 this.l_type = l_type;
919 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
920 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
921 addVrf_args args = new addVrf_args();
922 args.setL_type(l_type);
927 prot.writeMessageEnd();
930 public int getResult() throws org.apache.thrift.TException {
931 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
932 throw new IllegalStateException("Method call not finished!");
934 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
935 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
936 return (new Client(prot)).recv_addVrf();
940 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
942 delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
943 this.___currentMethod = method_call;
944 ___manager.call(method_call);
947 public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
949 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 {
950 super(client, protocolFactory, transport, resultHandler, false);
954 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
955 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
956 delVrf_args args = new delVrf_args();
959 prot.writeMessageEnd();
962 public int getResult() throws org.apache.thrift.TException {
963 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
964 throw new IllegalStateException("Method call not finished!");
966 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
967 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
968 return (new Client(prot)).recv_delVrf();
972 public void pushRoute(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
974 pushRoute_call method_call = new pushRoute_call(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, resultHandler, this, ___protocolFactory, ___transport);
975 this.___currentMethod = method_call;
976 ___manager.call(method_call);
979 public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
980 private protocol_type p_type;
981 private String prefix;
982 private String nexthop;
986 private String macaddress;
989 private encap_type enc_type;
990 private String routermac;
991 public pushRoute_call(protocol_type p_type, String prefix, String nexthop, String rd, int ethtag, String esi, String macaddress, int l3label, int l2label, encap_type enc_type, String routermac, 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 {
992 super(client, protocolFactory, transport, resultHandler, false);
993 this.p_type = p_type;
994 this.prefix = prefix;
995 this.nexthop = nexthop;
997 this.ethtag = ethtag;
999 this.macaddress = macaddress;
1000 this.l3label = l3label;
1001 this.l2label = l2label;
1002 this.enc_type = enc_type;
1003 this.routermac = routermac;
1006 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1007 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1008 pushRoute_args args = new pushRoute_args();
1009 args.setP_type(p_type);
1010 args.setPrefix(prefix);
1011 args.setNexthop(nexthop);
1013 args.setEthtag(ethtag);
1015 args.setMacaddress(macaddress);
1016 args.setL3label(l3label);
1017 args.setL2label(l2label);
1018 args.setEnc_type(enc_type);
1019 args.setRoutermac(routermac);
1021 prot.writeMessageEnd();
1024 public int getResult() throws org.apache.thrift.TException {
1025 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1026 throw new IllegalStateException("Method call not finished!");
1028 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1029 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1030 return (new Client(prot)).recv_pushRoute();
1034 public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1036 withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, resultHandler, this, ___protocolFactory, ___transport);
1037 this.___currentMethod = method_call;
1038 ___manager.call(method_call);
1041 public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1042 private protocol_type p_type;
1043 private String prefix;
1047 private String macaddress;
1048 public withdrawRoute_call(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, 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 {
1049 super(client, protocolFactory, transport, resultHandler, false);
1050 this.p_type = p_type;
1051 this.prefix = prefix;
1053 this.ethtag = ethtag;
1055 this.macaddress = macaddress;
1058 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1059 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1060 withdrawRoute_args args = new withdrawRoute_args();
1061 args.setP_type(p_type);
1062 args.setPrefix(prefix);
1064 args.setEthtag(ethtag);
1066 args.setMacaddress(macaddress);
1068 prot.writeMessageEnd();
1071 public int getResult() throws org.apache.thrift.TException {
1072 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1073 throw new IllegalStateException("Method call not finished!");
1075 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1076 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1077 return (new Client(prot)).recv_withdrawRoute();
1081 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1083 setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1084 this.___currentMethod = method_call;
1085 ___manager.call(method_call);
1088 public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1089 private String peerIp;
1091 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 {
1092 super(client, protocolFactory, transport, resultHandler, false);
1093 this.peerIp = peerIp;
1097 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1098 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1099 setEbgpMultihop_args args = new setEbgpMultihop_args();
1100 args.setPeerIp(peerIp);
1101 args.setNHops(nHops);
1103 prot.writeMessageEnd();
1106 public int getResult() throws org.apache.thrift.TException {
1107 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1108 throw new IllegalStateException("Method call not finished!");
1110 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1111 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1112 return (new Client(prot)).recv_setEbgpMultihop();
1116 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1118 unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1119 this.___currentMethod = method_call;
1120 ___manager.call(method_call);
1123 public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1124 private String peerIp;
1125 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 {
1126 super(client, protocolFactory, transport, resultHandler, false);
1127 this.peerIp = peerIp;
1130 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1131 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1132 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1133 args.setPeerIp(peerIp);
1135 prot.writeMessageEnd();
1138 public int getResult() throws org.apache.thrift.TException {
1139 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1140 throw new IllegalStateException("Method call not finished!");
1142 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1143 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1144 return (new Client(prot)).recv_unsetEbgpMultihop();
1148 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1150 setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1151 this.___currentMethod = method_call;
1152 ___manager.call(method_call);
1155 public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1156 private String peerIp;
1157 private String srcIp;
1158 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 {
1159 super(client, protocolFactory, transport, resultHandler, false);
1160 this.peerIp = peerIp;
1164 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1165 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1166 setUpdateSource_args args = new setUpdateSource_args();
1167 args.setPeerIp(peerIp);
1168 args.setSrcIp(srcIp);
1170 prot.writeMessageEnd();
1173 public int getResult() throws org.apache.thrift.TException {
1174 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1175 throw new IllegalStateException("Method call not finished!");
1177 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1178 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1179 return (new Client(prot)).recv_setUpdateSource();
1183 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1185 unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1186 this.___currentMethod = method_call;
1187 ___manager.call(method_call);
1190 public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1191 private String peerIp;
1192 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 {
1193 super(client, protocolFactory, transport, resultHandler, false);
1194 this.peerIp = peerIp;
1197 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1198 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1199 unsetUpdateSource_args args = new unsetUpdateSource_args();
1200 args.setPeerIp(peerIp);
1202 prot.writeMessageEnd();
1205 public int getResult() throws org.apache.thrift.TException {
1206 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1207 throw new IllegalStateException("Method call not finished!");
1209 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1210 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1211 return (new Client(prot)).recv_unsetUpdateSource();
1215 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1217 enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1218 this.___currentMethod = method_call;
1219 ___manager.call(method_call);
1222 public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1223 private String peerIp;
1225 private af_safi safi;
1226 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 {
1227 super(client, protocolFactory, transport, resultHandler, false);
1228 this.peerIp = peerIp;
1233 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1234 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1235 enableAddressFamily_args args = new enableAddressFamily_args();
1236 args.setPeerIp(peerIp);
1240 prot.writeMessageEnd();
1243 public int getResult() throws org.apache.thrift.TException {
1244 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1245 throw new IllegalStateException("Method call not finished!");
1247 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1248 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1249 return (new Client(prot)).recv_enableAddressFamily();
1253 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1255 disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1256 this.___currentMethod = method_call;
1257 ___manager.call(method_call);
1260 public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1261 private String peerIp;
1263 private af_safi safi;
1264 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 {
1265 super(client, protocolFactory, transport, resultHandler, false);
1266 this.peerIp = peerIp;
1271 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1272 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1273 disableAddressFamily_args args = new disableAddressFamily_args();
1274 args.setPeerIp(peerIp);
1278 prot.writeMessageEnd();
1281 public int getResult() throws org.apache.thrift.TException {
1282 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1283 throw new IllegalStateException("Method call not finished!");
1285 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1286 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1287 return (new Client(prot)).recv_disableAddressFamily();
1291 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1293 setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1294 this.___currentMethod = method_call;
1295 ___manager.call(method_call);
1298 public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1299 private String logFileName;
1300 private String logLevel;
1301 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 {
1302 super(client, protocolFactory, transport, resultHandler, false);
1303 this.logFileName = logFileName;
1304 this.logLevel = logLevel;
1307 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309 setLogConfig_args args = new setLogConfig_args();
1310 args.setLogFileName(logFileName);
1311 args.setLogLevel(logLevel);
1313 prot.writeMessageEnd();
1316 public int getResult() throws org.apache.thrift.TException {
1317 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1318 throw new IllegalStateException("Method call not finished!");
1320 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1321 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1322 return (new Client(prot)).recv_setLogConfig();
1326 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1328 enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1329 this.___currentMethod = method_call;
1330 ___manager.call(method_call);
1333 public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1334 private int stalepathTime;
1335 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 {
1336 super(client, protocolFactory, transport, resultHandler, false);
1337 this.stalepathTime = stalepathTime;
1340 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1341 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1342 enableGracefulRestart_args args = new enableGracefulRestart_args();
1343 args.setStalepathTime(stalepathTime);
1345 prot.writeMessageEnd();
1348 public int getResult() throws org.apache.thrift.TException {
1349 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1350 throw new IllegalStateException("Method call not finished!");
1352 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1353 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1354 return (new Client(prot)).recv_enableGracefulRestart();
1358 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1360 disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1361 this.___currentMethod = method_call;
1362 ___manager.call(method_call);
1365 public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1366 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 {
1367 super(client, protocolFactory, transport, resultHandler, false);
1370 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1371 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1372 disableGracefulRestart_args args = new disableGracefulRestart_args();
1374 prot.writeMessageEnd();
1377 public int getResult() throws org.apache.thrift.TException {
1378 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1379 throw new IllegalStateException("Method call not finished!");
1381 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1382 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1383 return (new Client(prot)).recv_disableGracefulRestart();
1387 public void getRoutes(protocol_type p_type, int optype, int winSize, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1389 getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, resultHandler, this, ___protocolFactory, ___transport);
1390 this.___currentMethod = method_call;
1391 ___manager.call(method_call);
1394 public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1395 private protocol_type p_type;
1397 private int winSize;
1398 public getRoutes_call(protocol_type p_type, 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 {
1399 super(client, protocolFactory, transport, resultHandler, false);
1400 this.p_type = p_type;
1401 this.optype = optype;
1402 this.winSize = winSize;
1405 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1406 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1407 getRoutes_args args = new getRoutes_args();
1408 args.setP_type(p_type);
1409 args.setOptype(optype);
1410 args.setWinSize(winSize);
1412 prot.writeMessageEnd();
1415 public Routes getResult() throws org.apache.thrift.TException {
1416 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1417 throw new IllegalStateException("Method call not finished!");
1419 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1420 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1421 return (new Client(prot)).recv_getRoutes();
1425 public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1427 enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1428 this.___currentMethod = method_call;
1429 ___manager.call(method_call);
1432 public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1434 private af_safi safi;
1435 public enableMultipath_call(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 {
1436 super(client, protocolFactory, transport, resultHandler, false);
1441 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1442 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1443 enableMultipath_args args = new enableMultipath_args();
1447 prot.writeMessageEnd();
1450 public int getResult() throws org.apache.thrift.TException {
1451 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1452 throw new IllegalStateException("Method call not finished!");
1454 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1455 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1456 return (new Client(prot)).recv_enableMultipath();
1460 public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1462 disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1463 this.___currentMethod = method_call;
1464 ___manager.call(method_call);
1467 public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1469 private af_safi safi;
1470 public disableMultipath_call(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 {
1471 super(client, protocolFactory, transport, resultHandler, false);
1476 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1477 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1478 disableMultipath_args args = new disableMultipath_args();
1482 prot.writeMessageEnd();
1485 public int getResult() throws org.apache.thrift.TException {
1486 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1487 throw new IllegalStateException("Method call not finished!");
1489 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1490 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1491 return (new Client(prot)).recv_disableMultipath();
1495 public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1497 multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1498 this.___currentMethod = method_call;
1499 ___manager.call(method_call);
1502 public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1504 private int maxPath;
1505 public multipaths_call(String rd, int maxPath, 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 {
1506 super(client, protocolFactory, transport, resultHandler, false);
1508 this.maxPath = maxPath;
1511 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1512 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1513 multipaths_args args = new multipaths_args();
1515 args.setMaxPath(maxPath);
1517 prot.writeMessageEnd();
1520 public int getResult() throws org.apache.thrift.TException {
1521 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1522 throw new IllegalStateException("Method call not finished!");
1524 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1525 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1526 return (new Client(prot)).recv_multipaths();
1532 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1533 private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1534 public Processor(I iface) {
1535 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1538 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1539 super(iface, getProcessMap(processMap));
1542 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) {
1543 processMap.put("startBgp", new startBgp());
1544 processMap.put("stopBgp", new stopBgp());
1545 processMap.put("createPeer", new createPeer());
1546 processMap.put("setPeerSecret", new setPeerSecret());
1547 processMap.put("deletePeer", new deletePeer());
1548 processMap.put("addVrf", new addVrf());
1549 processMap.put("delVrf", new delVrf());
1550 processMap.put("pushRoute", new pushRoute());
1551 processMap.put("withdrawRoute", new withdrawRoute());
1552 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1553 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1554 processMap.put("setUpdateSource", new setUpdateSource());
1555 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1556 processMap.put("enableAddressFamily", new enableAddressFamily());
1557 processMap.put("disableAddressFamily", new disableAddressFamily());
1558 processMap.put("setLogConfig", new setLogConfig());
1559 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1560 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1561 processMap.put("getRoutes", new getRoutes());
1562 processMap.put("enableMultipath", new enableMultipath());
1563 processMap.put("disableMultipath", new disableMultipath());
1564 processMap.put("multipaths", new multipaths());
1568 public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1573 public startBgp_args getEmptyArgsInstance() {
1574 return new startBgp_args();
1577 protected boolean isOneway() {
1581 public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1582 startBgp_result result = new startBgp_result();
1583 result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1584 result.setSuccessIsSet(true);
1589 public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1594 public stopBgp_args getEmptyArgsInstance() {
1595 return new stopBgp_args();
1598 protected boolean isOneway() {
1602 public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1603 stopBgp_result result = new stopBgp_result();
1604 result.success = iface.stopBgp(args.asNumber);
1605 result.setSuccessIsSet(true);
1610 public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1611 public createPeer() {
1612 super("createPeer");
1615 public createPeer_args getEmptyArgsInstance() {
1616 return new createPeer_args();
1619 protected boolean isOneway() {
1623 public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1624 createPeer_result result = new createPeer_result();
1625 result.success = iface.createPeer(args.ipAddress, args.asNumber);
1626 result.setSuccessIsSet(true);
1631 public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1632 public setPeerSecret() {
1633 super("setPeerSecret");
1636 public setPeerSecret_args getEmptyArgsInstance() {
1637 return new setPeerSecret_args();
1640 protected boolean isOneway() {
1644 public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1645 setPeerSecret_result result = new setPeerSecret_result();
1646 result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1647 result.setSuccessIsSet(true);
1652 public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1653 public deletePeer() {
1654 super("deletePeer");
1657 public deletePeer_args getEmptyArgsInstance() {
1658 return new deletePeer_args();
1661 protected boolean isOneway() {
1665 public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1666 deletePeer_result result = new deletePeer_result();
1667 result.success = iface.deletePeer(args.ipAddress);
1668 result.setSuccessIsSet(true);
1673 public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1678 public addVrf_args getEmptyArgsInstance() {
1679 return new addVrf_args();
1682 protected boolean isOneway() {
1686 public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1687 addVrf_result result = new addVrf_result();
1688 result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts);
1689 result.setSuccessIsSet(true);
1694 public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1699 public delVrf_args getEmptyArgsInstance() {
1700 return new delVrf_args();
1703 protected boolean isOneway() {
1707 public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1708 delVrf_result result = new delVrf_result();
1709 result.success = iface.delVrf(args.rd);
1710 result.setSuccessIsSet(true);
1715 public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1716 public pushRoute() {
1720 public pushRoute_args getEmptyArgsInstance() {
1721 return new pushRoute_args();
1724 protected boolean isOneway() {
1728 public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1729 pushRoute_result result = new pushRoute_result();
1730 result.success = iface.pushRoute(args.p_type, args.prefix, args.nexthop, args.rd, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.enc_type, args.routermac);
1731 result.setSuccessIsSet(true);
1736 public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1737 public withdrawRoute() {
1738 super("withdrawRoute");
1741 public withdrawRoute_args getEmptyArgsInstance() {
1742 return new withdrawRoute_args();
1745 protected boolean isOneway() {
1749 public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1750 withdrawRoute_result result = new withdrawRoute_result();
1751 result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress);
1752 result.setSuccessIsSet(true);
1757 public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1758 public setEbgpMultihop() {
1759 super("setEbgpMultihop");
1762 public setEbgpMultihop_args getEmptyArgsInstance() {
1763 return new setEbgpMultihop_args();
1766 protected boolean isOneway() {
1770 public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1771 setEbgpMultihop_result result = new setEbgpMultihop_result();
1772 result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
1773 result.setSuccessIsSet(true);
1778 public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
1779 public unsetEbgpMultihop() {
1780 super("unsetEbgpMultihop");
1783 public unsetEbgpMultihop_args getEmptyArgsInstance() {
1784 return new unsetEbgpMultihop_args();
1787 protected boolean isOneway() {
1791 public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
1792 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
1793 result.success = iface.unsetEbgpMultihop(args.peerIp);
1794 result.setSuccessIsSet(true);
1799 public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
1800 public setUpdateSource() {
1801 super("setUpdateSource");
1804 public setUpdateSource_args getEmptyArgsInstance() {
1805 return new setUpdateSource_args();
1808 protected boolean isOneway() {
1812 public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
1813 setUpdateSource_result result = new setUpdateSource_result();
1814 result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
1815 result.setSuccessIsSet(true);
1820 public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
1821 public unsetUpdateSource() {
1822 super("unsetUpdateSource");
1825 public unsetUpdateSource_args getEmptyArgsInstance() {
1826 return new unsetUpdateSource_args();
1829 protected boolean isOneway() {
1833 public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
1834 unsetUpdateSource_result result = new unsetUpdateSource_result();
1835 result.success = iface.unsetUpdateSource(args.peerIp);
1836 result.setSuccessIsSet(true);
1841 public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
1842 public enableAddressFamily() {
1843 super("enableAddressFamily");
1846 public enableAddressFamily_args getEmptyArgsInstance() {
1847 return new enableAddressFamily_args();
1850 protected boolean isOneway() {
1854 public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
1855 enableAddressFamily_result result = new enableAddressFamily_result();
1856 result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
1857 result.setSuccessIsSet(true);
1862 public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
1863 public disableAddressFamily() {
1864 super("disableAddressFamily");
1867 public disableAddressFamily_args getEmptyArgsInstance() {
1868 return new disableAddressFamily_args();
1871 protected boolean isOneway() {
1875 public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
1876 disableAddressFamily_result result = new disableAddressFamily_result();
1877 result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
1878 result.setSuccessIsSet(true);
1883 public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
1884 public setLogConfig() {
1885 super("setLogConfig");
1888 public setLogConfig_args getEmptyArgsInstance() {
1889 return new setLogConfig_args();
1892 protected boolean isOneway() {
1896 public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
1897 setLogConfig_result result = new setLogConfig_result();
1898 result.success = iface.setLogConfig(args.logFileName, args.logLevel);
1899 result.setSuccessIsSet(true);
1904 public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
1905 public enableGracefulRestart() {
1906 super("enableGracefulRestart");
1909 public enableGracefulRestart_args getEmptyArgsInstance() {
1910 return new enableGracefulRestart_args();
1913 protected boolean isOneway() {
1917 public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
1918 enableGracefulRestart_result result = new enableGracefulRestart_result();
1919 result.success = iface.enableGracefulRestart(args.stalepathTime);
1920 result.setSuccessIsSet(true);
1925 public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
1926 public disableGracefulRestart() {
1927 super("disableGracefulRestart");
1930 public disableGracefulRestart_args getEmptyArgsInstance() {
1931 return new disableGracefulRestart_args();
1934 protected boolean isOneway() {
1938 public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
1939 disableGracefulRestart_result result = new disableGracefulRestart_result();
1940 result.success = iface.disableGracefulRestart();
1941 result.setSuccessIsSet(true);
1946 public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
1947 public getRoutes() {
1951 public getRoutes_args getEmptyArgsInstance() {
1952 return new getRoutes_args();
1955 protected boolean isOneway() {
1959 public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
1960 getRoutes_result result = new getRoutes_result();
1961 result.success = iface.getRoutes(args.p_type, args.optype, args.winSize);
1966 public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
1967 public enableMultipath() {
1968 super("enableMultipath");
1971 public enableMultipath_args getEmptyArgsInstance() {
1972 return new enableMultipath_args();
1975 protected boolean isOneway() {
1979 public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
1980 enableMultipath_result result = new enableMultipath_result();
1981 result.success = iface.enableMultipath(args.afi, args.safi);
1982 result.setSuccessIsSet(true);
1987 public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
1988 public disableMultipath() {
1989 super("disableMultipath");
1992 public disableMultipath_args getEmptyArgsInstance() {
1993 return new disableMultipath_args();
1996 protected boolean isOneway() {
2000 public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2001 disableMultipath_result result = new disableMultipath_result();
2002 result.success = iface.disableMultipath(args.afi, args.safi);
2003 result.setSuccessIsSet(true);
2008 public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2009 public multipaths() {
2010 super("multipaths");
2013 public multipaths_args getEmptyArgsInstance() {
2014 return new multipaths_args();
2017 protected boolean isOneway() {
2021 public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2022 multipaths_result result = new multipaths_result();
2023 result.success = iface.multipaths(args.rd, args.maxPath);
2024 result.setSuccessIsSet(true);
2031 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2032 private static final Logger LOGGER = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2033 public AsyncProcessor(I iface) {
2034 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2037 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
2038 super(iface, getProcessMap(processMap));
2041 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) {
2042 processMap.put("startBgp", new startBgp());
2043 processMap.put("stopBgp", new stopBgp());
2044 processMap.put("createPeer", new createPeer());
2045 processMap.put("setPeerSecret", new setPeerSecret());
2046 processMap.put("deletePeer", new deletePeer());
2047 processMap.put("addVrf", new addVrf());
2048 processMap.put("delVrf", new delVrf());
2049 processMap.put("pushRoute", new pushRoute());
2050 processMap.put("withdrawRoute", new withdrawRoute());
2051 processMap.put("setEbgpMultihop", new setEbgpMultihop());
2052 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2053 processMap.put("setUpdateSource", new setUpdateSource());
2054 processMap.put("unsetUpdateSource", new unsetUpdateSource());
2055 processMap.put("enableAddressFamily", new enableAddressFamily());
2056 processMap.put("disableAddressFamily", new disableAddressFamily());
2057 processMap.put("setLogConfig", new setLogConfig());
2058 processMap.put("enableGracefulRestart", new enableGracefulRestart());
2059 processMap.put("disableGracefulRestart", new disableGracefulRestart());
2060 processMap.put("getRoutes", new getRoutes());
2061 processMap.put("enableMultipath", new enableMultipath());
2062 processMap.put("disableMultipath", new disableMultipath());
2063 processMap.put("multipaths", new multipaths());
2067 public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2072 public startBgp_args getEmptyArgsInstance() {
2073 return new startBgp_args();
2076 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2077 final org.apache.thrift.AsyncProcessFunction fcall = this;
2078 return new AsyncMethodCallback<Integer>() {
2079 public void onComplete(Integer o) {
2080 startBgp_result result = new startBgp_result();
2082 result.setSuccessIsSet(true);
2084 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2086 } catch (Exception e) {
2087 LOGGER.error("Exception writing to internal frame buffer", e);
2091 public void onError(Exception e) {
2092 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2093 org.apache.thrift.TBase msg;
2094 startBgp_result result = new startBgp_result();
2096 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2097 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2100 fcall.sendResponse(fb,msg,msgType,seqid);
2102 } catch (Exception ex) {
2103 LOGGER.error("Exception writing to internal frame buffer", ex);
2110 protected boolean isOneway() {
2114 public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2115 iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2119 public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2124 public stopBgp_args getEmptyArgsInstance() {
2125 return new stopBgp_args();
2128 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2129 final org.apache.thrift.AsyncProcessFunction fcall = this;
2130 return new AsyncMethodCallback<Integer>() {
2131 public void onComplete(Integer o) {
2132 stopBgp_result result = new stopBgp_result();
2134 result.setSuccessIsSet(true);
2136 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2138 } catch (Exception e) {
2139 LOGGER.error("Exception writing to internal frame buffer", e);
2143 public void onError(Exception e) {
2144 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2145 org.apache.thrift.TBase msg;
2146 stopBgp_result result = new stopBgp_result();
2148 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2149 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2152 fcall.sendResponse(fb,msg,msgType,seqid);
2154 } catch (Exception ex) {
2155 LOGGER.error("Exception writing to internal frame buffer", ex);
2162 protected boolean isOneway() {
2166 public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2167 iface.stopBgp(args.asNumber,resultHandler);
2171 public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2172 public createPeer() {
2173 super("createPeer");
2176 public createPeer_args getEmptyArgsInstance() {
2177 return new createPeer_args();
2180 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2181 final org.apache.thrift.AsyncProcessFunction fcall = this;
2182 return new AsyncMethodCallback<Integer>() {
2183 public void onComplete(Integer o) {
2184 createPeer_result result = new createPeer_result();
2186 result.setSuccessIsSet(true);
2188 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2190 } catch (Exception e) {
2191 LOGGER.error("Exception writing to internal frame buffer", e);
2195 public void onError(Exception e) {
2196 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2197 org.apache.thrift.TBase msg;
2198 createPeer_result result = new createPeer_result();
2200 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2201 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2204 fcall.sendResponse(fb,msg,msgType,seqid);
2206 } catch (Exception ex) {
2207 LOGGER.error("Exception writing to internal frame buffer", ex);
2214 protected boolean isOneway() {
2218 public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2219 iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2223 public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2224 public setPeerSecret() {
2225 super("setPeerSecret");
2228 public setPeerSecret_args getEmptyArgsInstance() {
2229 return new setPeerSecret_args();
2232 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2233 final org.apache.thrift.AsyncProcessFunction fcall = this;
2234 return new AsyncMethodCallback<Integer>() {
2235 public void onComplete(Integer o) {
2236 setPeerSecret_result result = new setPeerSecret_result();
2238 result.setSuccessIsSet(true);
2240 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2242 } catch (Exception e) {
2243 LOGGER.error("Exception writing to internal frame buffer", e);
2247 public void onError(Exception e) {
2248 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2249 org.apache.thrift.TBase msg;
2250 setPeerSecret_result result = new setPeerSecret_result();
2252 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2253 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2256 fcall.sendResponse(fb,msg,msgType,seqid);
2258 } catch (Exception ex) {
2259 LOGGER.error("Exception writing to internal frame buffer", ex);
2266 protected boolean isOneway() {
2270 public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2271 iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2275 public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2276 public deletePeer() {
2277 super("deletePeer");
2280 public deletePeer_args getEmptyArgsInstance() {
2281 return new deletePeer_args();
2284 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2285 final org.apache.thrift.AsyncProcessFunction fcall = this;
2286 return new AsyncMethodCallback<Integer>() {
2287 public void onComplete(Integer o) {
2288 deletePeer_result result = new deletePeer_result();
2290 result.setSuccessIsSet(true);
2292 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2294 } catch (Exception e) {
2295 LOGGER.error("Exception writing to internal frame buffer", e);
2299 public void onError(Exception e) {
2300 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2301 org.apache.thrift.TBase msg;
2302 deletePeer_result result = new deletePeer_result();
2304 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2305 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2308 fcall.sendResponse(fb,msg,msgType,seqid);
2310 } catch (Exception ex) {
2311 LOGGER.error("Exception writing to internal frame buffer", ex);
2318 protected boolean isOneway() {
2322 public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2323 iface.deletePeer(args.ipAddress,resultHandler);
2327 public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2332 public addVrf_args getEmptyArgsInstance() {
2333 return new addVrf_args();
2336 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2337 final org.apache.thrift.AsyncProcessFunction fcall = this;
2338 return new AsyncMethodCallback<Integer>() {
2339 public void onComplete(Integer o) {
2340 addVrf_result result = new addVrf_result();
2342 result.setSuccessIsSet(true);
2344 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2346 } catch (Exception e) {
2347 LOGGER.error("Exception writing to internal frame buffer", e);
2351 public void onError(Exception e) {
2352 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2353 org.apache.thrift.TBase msg;
2354 addVrf_result result = new addVrf_result();
2356 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2357 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2360 fcall.sendResponse(fb,msg,msgType,seqid);
2362 } catch (Exception ex) {
2363 LOGGER.error("Exception writing to internal frame buffer", ex);
2370 protected boolean isOneway() {
2374 public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2375 iface.addVrf(args.l_type, args.rd, args.irts, args.erts,resultHandler);
2379 public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2384 public delVrf_args getEmptyArgsInstance() {
2385 return new delVrf_args();
2388 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2389 final org.apache.thrift.AsyncProcessFunction fcall = this;
2390 return new AsyncMethodCallback<Integer>() {
2391 public void onComplete(Integer o) {
2392 delVrf_result result = new delVrf_result();
2394 result.setSuccessIsSet(true);
2396 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2398 } catch (Exception e) {
2399 LOGGER.error("Exception writing to internal frame buffer", e);
2403 public void onError(Exception e) {
2404 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2405 org.apache.thrift.TBase msg;
2406 delVrf_result result = new delVrf_result();
2408 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2409 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2412 fcall.sendResponse(fb,msg,msgType,seqid);
2414 } catch (Exception ex) {
2415 LOGGER.error("Exception writing to internal frame buffer", ex);
2422 protected boolean isOneway() {
2426 public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2427 iface.delVrf(args.rd,resultHandler);
2431 public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2432 public pushRoute() {
2436 public pushRoute_args getEmptyArgsInstance() {
2437 return new pushRoute_args();
2440 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2441 final org.apache.thrift.AsyncProcessFunction fcall = this;
2442 return new AsyncMethodCallback<Integer>() {
2443 public void onComplete(Integer o) {
2444 pushRoute_result result = new pushRoute_result();
2446 result.setSuccessIsSet(true);
2448 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2450 } catch (Exception e) {
2451 LOGGER.error("Exception writing to internal frame buffer", e);
2455 public void onError(Exception e) {
2456 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2457 org.apache.thrift.TBase msg;
2458 pushRoute_result result = new pushRoute_result();
2460 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2461 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2464 fcall.sendResponse(fb,msg,msgType,seqid);
2466 } catch (Exception ex) {
2467 LOGGER.error("Exception writing to internal frame buffer", ex);
2474 protected boolean isOneway() {
2478 public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2479 iface.pushRoute(args.p_type, args.prefix, args.nexthop, args.rd, args.ethtag, args.esi, args.macaddress, args.l3label, args.l2label, args.enc_type, args.routermac,resultHandler);
2483 public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2484 public withdrawRoute() {
2485 super("withdrawRoute");
2488 public withdrawRoute_args getEmptyArgsInstance() {
2489 return new withdrawRoute_args();
2492 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2493 final org.apache.thrift.AsyncProcessFunction fcall = this;
2494 return new AsyncMethodCallback<Integer>() {
2495 public void onComplete(Integer o) {
2496 withdrawRoute_result result = new withdrawRoute_result();
2498 result.setSuccessIsSet(true);
2500 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2502 } catch (Exception e) {
2503 LOGGER.error("Exception writing to internal frame buffer", e);
2507 public void onError(Exception e) {
2508 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2509 org.apache.thrift.TBase msg;
2510 withdrawRoute_result result = new withdrawRoute_result();
2512 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2513 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2516 fcall.sendResponse(fb,msg,msgType,seqid);
2518 } catch (Exception ex) {
2519 LOGGER.error("Exception writing to internal frame buffer", ex);
2526 protected boolean isOneway() {
2530 public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2531 iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress,resultHandler);
2535 public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2536 public setEbgpMultihop() {
2537 super("setEbgpMultihop");
2540 public setEbgpMultihop_args getEmptyArgsInstance() {
2541 return new setEbgpMultihop_args();
2544 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2545 final org.apache.thrift.AsyncProcessFunction fcall = this;
2546 return new AsyncMethodCallback<Integer>() {
2547 public void onComplete(Integer o) {
2548 setEbgpMultihop_result result = new setEbgpMultihop_result();
2550 result.setSuccessIsSet(true);
2552 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2554 } catch (Exception e) {
2555 LOGGER.error("Exception writing to internal frame buffer", e);
2559 public void onError(Exception e) {
2560 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2561 org.apache.thrift.TBase msg;
2562 setEbgpMultihop_result result = new setEbgpMultihop_result();
2564 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2565 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2568 fcall.sendResponse(fb,msg,msgType,seqid);
2570 } catch (Exception ex) {
2571 LOGGER.error("Exception writing to internal frame buffer", ex);
2578 protected boolean isOneway() {
2582 public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2583 iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2587 public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2588 public unsetEbgpMultihop() {
2589 super("unsetEbgpMultihop");
2592 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2593 return new unsetEbgpMultihop_args();
2596 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2597 final org.apache.thrift.AsyncProcessFunction fcall = this;
2598 return new AsyncMethodCallback<Integer>() {
2599 public void onComplete(Integer o) {
2600 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2602 result.setSuccessIsSet(true);
2604 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2606 } catch (Exception e) {
2607 LOGGER.error("Exception writing to internal frame buffer", e);
2611 public void onError(Exception e) {
2612 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2613 org.apache.thrift.TBase msg;
2614 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2616 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2617 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2620 fcall.sendResponse(fb,msg,msgType,seqid);
2622 } catch (Exception ex) {
2623 LOGGER.error("Exception writing to internal frame buffer", ex);
2630 protected boolean isOneway() {
2634 public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2635 iface.unsetEbgpMultihop(args.peerIp,resultHandler);
2639 public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
2640 public setUpdateSource() {
2641 super("setUpdateSource");
2644 public setUpdateSource_args getEmptyArgsInstance() {
2645 return new setUpdateSource_args();
2648 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2649 final org.apache.thrift.AsyncProcessFunction fcall = this;
2650 return new AsyncMethodCallback<Integer>() {
2651 public void onComplete(Integer o) {
2652 setUpdateSource_result result = new setUpdateSource_result();
2654 result.setSuccessIsSet(true);
2656 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2658 } catch (Exception e) {
2659 LOGGER.error("Exception writing to internal frame buffer", e);
2663 public void onError(Exception e) {
2664 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2665 org.apache.thrift.TBase msg;
2666 setUpdateSource_result result = new setUpdateSource_result();
2668 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2669 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2672 fcall.sendResponse(fb,msg,msgType,seqid);
2674 } catch (Exception ex) {
2675 LOGGER.error("Exception writing to internal frame buffer", ex);
2682 protected boolean isOneway() {
2686 public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2687 iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
2691 public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
2692 public unsetUpdateSource() {
2693 super("unsetUpdateSource");
2696 public unsetUpdateSource_args getEmptyArgsInstance() {
2697 return new unsetUpdateSource_args();
2700 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2701 final org.apache.thrift.AsyncProcessFunction fcall = this;
2702 return new AsyncMethodCallback<Integer>() {
2703 public void onComplete(Integer o) {
2704 unsetUpdateSource_result result = new unsetUpdateSource_result();
2706 result.setSuccessIsSet(true);
2708 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2710 } catch (Exception e) {
2711 LOGGER.error("Exception writing to internal frame buffer", e);
2715 public void onError(Exception e) {
2716 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2717 org.apache.thrift.TBase msg;
2718 unsetUpdateSource_result result = new unsetUpdateSource_result();
2720 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2721 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2724 fcall.sendResponse(fb,msg,msgType,seqid);
2726 } catch (Exception ex) {
2727 LOGGER.error("Exception writing to internal frame buffer", ex);
2734 protected boolean isOneway() {
2738 public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2739 iface.unsetUpdateSource(args.peerIp,resultHandler);
2743 public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
2744 public enableAddressFamily() {
2745 super("enableAddressFamily");
2748 public enableAddressFamily_args getEmptyArgsInstance() {
2749 return new enableAddressFamily_args();
2752 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2753 final org.apache.thrift.AsyncProcessFunction fcall = this;
2754 return new AsyncMethodCallback<Integer>() {
2755 public void onComplete(Integer o) {
2756 enableAddressFamily_result result = new enableAddressFamily_result();
2758 result.setSuccessIsSet(true);
2760 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2762 } catch (Exception e) {
2763 LOGGER.error("Exception writing to internal frame buffer", e);
2767 public void onError(Exception e) {
2768 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2769 org.apache.thrift.TBase msg;
2770 enableAddressFamily_result result = new enableAddressFamily_result();
2772 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2773 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2776 fcall.sendResponse(fb,msg,msgType,seqid);
2778 } catch (Exception ex) {
2779 LOGGER.error("Exception writing to internal frame buffer", ex);
2786 protected boolean isOneway() {
2790 public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2791 iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2795 public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
2796 public disableAddressFamily() {
2797 super("disableAddressFamily");
2800 public disableAddressFamily_args getEmptyArgsInstance() {
2801 return new disableAddressFamily_args();
2804 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2805 final org.apache.thrift.AsyncProcessFunction fcall = this;
2806 return new AsyncMethodCallback<Integer>() {
2807 public void onComplete(Integer o) {
2808 disableAddressFamily_result result = new disableAddressFamily_result();
2810 result.setSuccessIsSet(true);
2812 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2814 } catch (Exception e) {
2815 LOGGER.error("Exception writing to internal frame buffer", e);
2819 public void onError(Exception e) {
2820 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2821 org.apache.thrift.TBase msg;
2822 disableAddressFamily_result result = new disableAddressFamily_result();
2824 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2825 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2828 fcall.sendResponse(fb,msg,msgType,seqid);
2830 } catch (Exception ex) {
2831 LOGGER.error("Exception writing to internal frame buffer", ex);
2838 protected boolean isOneway() {
2842 public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2843 iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
2847 public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
2848 public setLogConfig() {
2849 super("setLogConfig");
2852 public setLogConfig_args getEmptyArgsInstance() {
2853 return new setLogConfig_args();
2856 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2857 final org.apache.thrift.AsyncProcessFunction fcall = this;
2858 return new AsyncMethodCallback<Integer>() {
2859 public void onComplete(Integer o) {
2860 setLogConfig_result result = new setLogConfig_result();
2862 result.setSuccessIsSet(true);
2864 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2866 } catch (Exception e) {
2867 LOGGER.error("Exception writing to internal frame buffer", e);
2871 public void onError(Exception e) {
2872 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2873 org.apache.thrift.TBase msg;
2874 setLogConfig_result result = new setLogConfig_result();
2876 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2877 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2880 fcall.sendResponse(fb,msg,msgType,seqid);
2882 } catch (Exception ex) {
2883 LOGGER.error("Exception writing to internal frame buffer", ex);
2890 protected boolean isOneway() {
2894 public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2895 iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
2899 public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
2900 public enableGracefulRestart() {
2901 super("enableGracefulRestart");
2904 public enableGracefulRestart_args getEmptyArgsInstance() {
2905 return new enableGracefulRestart_args();
2908 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2909 final org.apache.thrift.AsyncProcessFunction fcall = this;
2910 return new AsyncMethodCallback<Integer>() {
2911 public void onComplete(Integer o) {
2912 enableGracefulRestart_result result = new enableGracefulRestart_result();
2914 result.setSuccessIsSet(true);
2916 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2918 } catch (Exception e) {
2919 LOGGER.error("Exception writing to internal frame buffer", e);
2923 public void onError(Exception e) {
2924 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2925 org.apache.thrift.TBase msg;
2926 enableGracefulRestart_result result = new enableGracefulRestart_result();
2928 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2929 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2932 fcall.sendResponse(fb,msg,msgType,seqid);
2934 } catch (Exception ex) {
2935 LOGGER.error("Exception writing to internal frame buffer", ex);
2942 protected boolean isOneway() {
2946 public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2947 iface.enableGracefulRestart(args.stalepathTime,resultHandler);
2951 public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
2952 public disableGracefulRestart() {
2953 super("disableGracefulRestart");
2956 public disableGracefulRestart_args getEmptyArgsInstance() {
2957 return new disableGracefulRestart_args();
2960 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2961 final org.apache.thrift.AsyncProcessFunction fcall = this;
2962 return new AsyncMethodCallback<Integer>() {
2963 public void onComplete(Integer o) {
2964 disableGracefulRestart_result result = new disableGracefulRestart_result();
2966 result.setSuccessIsSet(true);
2968 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2970 } catch (Exception e) {
2971 LOGGER.error("Exception writing to internal frame buffer", e);
2975 public void onError(Exception e) {
2976 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2977 org.apache.thrift.TBase msg;
2978 disableGracefulRestart_result result = new disableGracefulRestart_result();
2980 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2981 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2984 fcall.sendResponse(fb,msg,msgType,seqid);
2986 } catch (Exception ex) {
2987 LOGGER.error("Exception writing to internal frame buffer", ex);
2994 protected boolean isOneway() {
2998 public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2999 iface.disableGracefulRestart(resultHandler);
3003 public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3004 public getRoutes() {
3008 public getRoutes_args getEmptyArgsInstance() {
3009 return new getRoutes_args();
3012 public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3013 final org.apache.thrift.AsyncProcessFunction fcall = this;
3014 return new AsyncMethodCallback<Routes>() {
3015 public void onComplete(Routes o) {
3016 getRoutes_result result = new getRoutes_result();
3019 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3021 } catch (Exception e) {
3022 LOGGER.error("Exception writing to internal frame buffer", e);
3026 public void onError(Exception e) {
3027 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3028 org.apache.thrift.TBase msg;
3029 getRoutes_result result = new getRoutes_result();
3031 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3032 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3035 fcall.sendResponse(fb,msg,msgType,seqid);
3037 } catch (Exception ex) {
3038 LOGGER.error("Exception writing to internal frame buffer", ex);
3045 protected boolean isOneway() {
3049 public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3050 iface.getRoutes(args.p_type, args.optype, args.winSize,resultHandler);
3054 public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3055 public enableMultipath() {
3056 super("enableMultipath");
3059 public enableMultipath_args getEmptyArgsInstance() {
3060 return new enableMultipath_args();
3063 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3064 final org.apache.thrift.AsyncProcessFunction fcall = this;
3065 return new AsyncMethodCallback<Integer>() {
3066 public void onComplete(Integer o) {
3067 enableMultipath_result result = new enableMultipath_result();
3069 result.setSuccessIsSet(true);
3071 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3073 } catch (Exception e) {
3074 LOGGER.error("Exception writing to internal frame buffer", e);
3078 public void onError(Exception e) {
3079 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3080 org.apache.thrift.TBase msg;
3081 enableMultipath_result result = new enableMultipath_result();
3083 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3084 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3087 fcall.sendResponse(fb,msg,msgType,seqid);
3089 } catch (Exception ex) {
3090 LOGGER.error("Exception writing to internal frame buffer", ex);
3097 protected boolean isOneway() {
3101 public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3102 iface.enableMultipath(args.afi, args.safi,resultHandler);
3106 public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3107 public disableMultipath() {
3108 super("disableMultipath");
3111 public disableMultipath_args getEmptyArgsInstance() {
3112 return new disableMultipath_args();
3115 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3116 final org.apache.thrift.AsyncProcessFunction fcall = this;
3117 return new AsyncMethodCallback<Integer>() {
3118 public void onComplete(Integer o) {
3119 disableMultipath_result result = new disableMultipath_result();
3121 result.setSuccessIsSet(true);
3123 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3125 } catch (Exception e) {
3126 LOGGER.error("Exception writing to internal frame buffer", e);
3130 public void onError(Exception e) {
3131 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3132 org.apache.thrift.TBase msg;
3133 disableMultipath_result result = new disableMultipath_result();
3135 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3136 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3139 fcall.sendResponse(fb,msg,msgType,seqid);
3141 } catch (Exception ex) {
3142 LOGGER.error("Exception writing to internal frame buffer", ex);
3149 protected boolean isOneway() {
3153 public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3154 iface.disableMultipath(args.afi, args.safi,resultHandler);
3158 public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3159 public multipaths() {
3160 super("multipaths");
3163 public multipaths_args getEmptyArgsInstance() {
3164 return new multipaths_args();
3167 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3168 final org.apache.thrift.AsyncProcessFunction fcall = this;
3169 return new AsyncMethodCallback<Integer>() {
3170 public void onComplete(Integer o) {
3171 multipaths_result result = new multipaths_result();
3173 result.setSuccessIsSet(true);
3175 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3177 } catch (Exception e) {
3178 LOGGER.error("Exception writing to internal frame buffer", e);
3182 public void onError(Exception e) {
3183 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3184 org.apache.thrift.TBase msg;
3185 multipaths_result result = new multipaths_result();
3187 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3188 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3191 fcall.sendResponse(fb,msg,msgType,seqid);
3193 } catch (Exception ex) {
3194 LOGGER.error("Exception writing to internal frame buffer", ex);
3201 protected boolean isOneway() {
3205 public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3206 iface.multipaths(args.rd, args.maxPath,resultHandler);
3212 public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args> {
3213 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3215 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)1);
3216 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);
3217 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);
3218 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);
3219 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);
3220 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);
3221 private static final org.apache.thrift.protocol.TField ANNOUNCE_FLUSH_FIELD_DESC = new org.apache.thrift.protocol.TField("announceFlush", org.apache.thrift.protocol.TType.BOOL, (short)7);
3223 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3225 schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3226 schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3229 public long asNumber; // required
3230 public String routerId; // required
3231 public int port; // required
3232 public int holdTime; // required
3233 public int keepAliveTime; // required
3234 public int stalepathTime; // required
3235 public boolean announceFlush; // required
3237 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3238 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3239 AS_NUMBER((short)1, "asNumber"),
3240 ROUTER_ID((short)2, "routerId"),
3241 PORT((short)3, "port"),
3242 HOLD_TIME((short)4, "holdTime"),
3243 KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3244 STALEPATH_TIME((short)6, "stalepathTime"),
3245 ANNOUNCE_FLUSH((short)7, "announceFlush");
3247 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3250 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3251 byName.put(field.getFieldName(), field);
3256 * Find the _Fields constant that matches fieldId, or null if its not found.
3258 public static _Fields findByThriftId(int fieldId) {
3260 case 1: // AS_NUMBER
3262 case 2: // ROUTER_ID
3266 case 4: // HOLD_TIME
3268 case 5: // KEEP_ALIVE_TIME
3269 return KEEP_ALIVE_TIME;
3270 case 6: // STALEPATH_TIME
3271 return STALEPATH_TIME;
3272 case 7: // ANNOUNCE_FLUSH
3273 return ANNOUNCE_FLUSH;
3280 * Find the _Fields constant that matches fieldId, throwing an exception
3281 * if it is not found.
3283 public static _Fields findByThriftIdOrThrow(int fieldId) {
3284 _Fields fields = findByThriftId(fieldId);
3285 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3290 * Find the _Fields constant that matches name, or null if its not found.
3292 public static _Fields findByName(String name) {
3293 return byName.get(name);
3296 private final short _thriftId;
3297 private final String _fieldName;
3299 _Fields(short thriftId, String fieldName) {
3300 _thriftId = thriftId;
3301 _fieldName = fieldName;
3304 public short getThriftFieldId() {
3308 public String getFieldName() {
3313 // isset id assignments
3314 private static final int __ASNUMBER_ISSET_ID = 0;
3315 private static final int __PORT_ISSET_ID = 1;
3316 private static final int __HOLDTIME_ISSET_ID = 2;
3317 private static final int __KEEPALIVETIME_ISSET_ID = 3;
3318 private static final int __STALEPATHTIME_ISSET_ID = 4;
3319 private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3320 private byte __isset_bitfield = 0;
3321 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3323 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3324 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3325 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3326 tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
3327 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3328 tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
3329 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3330 tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3331 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3332 tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3333 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3334 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3335 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3336 tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT,
3337 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3338 metaDataMap = Collections.unmodifiableMap(tmpMap);
3339 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3342 public startBgp_args() {
3345 public startBgp_args(
3352 boolean announceFlush)
3355 this.asNumber = asNumber;
3356 setAsNumberIsSet(true);
3357 this.routerId = routerId;
3360 this.holdTime = holdTime;
3361 setHoldTimeIsSet(true);
3362 this.keepAliveTime = keepAliveTime;
3363 setKeepAliveTimeIsSet(true);
3364 this.stalepathTime = stalepathTime;
3365 setStalepathTimeIsSet(true);
3366 this.announceFlush = announceFlush;
3367 setAnnounceFlushIsSet(true);
3371 * Performs a deep copy on <i>other</i>.
3373 public startBgp_args(startBgp_args other) {
3374 __isset_bitfield = other.__isset_bitfield;
3375 this.asNumber = other.asNumber;
3376 if (other.isSetRouterId()) {
3377 this.routerId = other.routerId;
3379 this.port = other.port;
3380 this.holdTime = other.holdTime;
3381 this.keepAliveTime = other.keepAliveTime;
3382 this.stalepathTime = other.stalepathTime;
3383 this.announceFlush = other.announceFlush;
3386 public startBgp_args deepCopy() {
3387 return new startBgp_args(this);
3391 public void clear() {
3392 setAsNumberIsSet(false);
3394 this.routerId = null;
3395 setPortIsSet(false);
3397 setHoldTimeIsSet(false);
3399 setKeepAliveTimeIsSet(false);
3400 this.keepAliveTime = 0;
3401 setStalepathTimeIsSet(false);
3402 this.stalepathTime = 0;
3403 setAnnounceFlushIsSet(false);
3404 this.announceFlush = false;
3407 public long getAsNumber() {
3408 return this.asNumber;
3411 public startBgp_args setAsNumber(long asNumber) {
3412 this.asNumber = asNumber;
3413 setAsNumberIsSet(true);
3417 public void unsetAsNumber() {
3418 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3421 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3422 public boolean isSetAsNumber() {
3423 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3426 public void setAsNumberIsSet(boolean value) {
3427 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3430 public String getRouterId() {
3431 return this.routerId;
3434 public startBgp_args setRouterId(String routerId) {
3435 this.routerId = routerId;
3439 public void unsetRouterId() {
3440 this.routerId = null;
3443 /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
3444 public boolean isSetRouterId() {
3445 return this.routerId != null;
3448 public void setRouterIdIsSet(boolean value) {
3450 this.routerId = null;
3454 public int getPort() {
3458 public startBgp_args setPort(int port) {
3464 public void unsetPort() {
3465 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
3468 /** Returns true if field port is set (has been assigned a value) and false otherwise */
3469 public boolean isSetPort() {
3470 return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
3473 public void setPortIsSet(boolean value) {
3474 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
3477 public int getHoldTime() {
3478 return this.holdTime;
3481 public startBgp_args setHoldTime(int holdTime) {
3482 this.holdTime = holdTime;
3483 setHoldTimeIsSet(true);
3487 public void unsetHoldTime() {
3488 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
3491 /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
3492 public boolean isSetHoldTime() {
3493 return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
3496 public void setHoldTimeIsSet(boolean value) {
3497 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
3500 public int getKeepAliveTime() {
3501 return this.keepAliveTime;
3504 public startBgp_args setKeepAliveTime(int keepAliveTime) {
3505 this.keepAliveTime = keepAliveTime;
3506 setKeepAliveTimeIsSet(true);
3510 public void unsetKeepAliveTime() {
3511 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
3514 /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
3515 public boolean isSetKeepAliveTime() {
3516 return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
3519 public void setKeepAliveTimeIsSet(boolean value) {
3520 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
3523 public int getStalepathTime() {
3524 return this.stalepathTime;
3527 public startBgp_args setStalepathTime(int stalepathTime) {
3528 this.stalepathTime = stalepathTime;
3529 setStalepathTimeIsSet(true);
3533 public void unsetStalepathTime() {
3534 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
3537 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
3538 public boolean isSetStalepathTime() {
3539 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
3542 public void setStalepathTimeIsSet(boolean value) {
3543 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
3546 public boolean isAnnounceFlush() {
3547 return this.announceFlush;
3550 public startBgp_args setAnnounceFlush(boolean announceFlush) {
3551 this.announceFlush = announceFlush;
3552 setAnnounceFlushIsSet(true);
3556 public void unsetAnnounceFlush() {
3557 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
3560 /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
3561 public boolean isSetAnnounceFlush() {
3562 return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
3565 public void setAnnounceFlushIsSet(boolean value) {
3566 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
3569 public void setFieldValue(_Fields field, Object value) {
3572 if (value == null) {
3575 setAsNumber((Long)value);
3580 if (value == null) {
3583 setRouterId((String)value);
3588 if (value == null) {
3591 setPort((Integer)value);
3596 if (value == null) {
3599 setHoldTime((Integer)value);
3603 case KEEP_ALIVE_TIME:
3604 if (value == null) {
3605 unsetKeepAliveTime();
3607 setKeepAliveTime((Integer)value);
3611 case STALEPATH_TIME:
3612 if (value == null) {
3613 unsetStalepathTime();
3615 setStalepathTime((Integer)value);
3619 case ANNOUNCE_FLUSH:
3620 if (value == null) {
3621 unsetAnnounceFlush();
3623 setAnnounceFlush((Boolean)value);
3630 public Object getFieldValue(_Fields field) {
3633 return Long.valueOf(getAsNumber());
3636 return getRouterId();
3639 return Integer.valueOf(getPort());
3642 return Integer.valueOf(getHoldTime());
3644 case KEEP_ALIVE_TIME:
3645 return Integer.valueOf(getKeepAliveTime());
3647 case STALEPATH_TIME:
3648 return Integer.valueOf(getStalepathTime());
3650 case ANNOUNCE_FLUSH:
3651 return Boolean.valueOf(isAnnounceFlush());
3654 throw new IllegalStateException();
3657 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3658 public boolean isSet(_Fields field) {
3659 if (field == null) {
3660 throw new IllegalArgumentException();
3665 return isSetAsNumber();
3667 return isSetRouterId();
3671 return isSetHoldTime();
3672 case KEEP_ALIVE_TIME:
3673 return isSetKeepAliveTime();
3674 case STALEPATH_TIME:
3675 return isSetStalepathTime();
3676 case ANNOUNCE_FLUSH:
3677 return isSetAnnounceFlush();
3679 throw new IllegalStateException();
3683 public boolean equals(Object that) {
3686 if (that instanceof startBgp_args)
3687 return this.equals((startBgp_args)that);
3691 public boolean equals(startBgp_args that) {
3695 boolean this_present_asNumber = true;
3696 boolean that_present_asNumber = true;
3697 if (this_present_asNumber || that_present_asNumber) {
3698 if (!(this_present_asNumber && that_present_asNumber))
3700 if (this.asNumber != that.asNumber)
3704 boolean this_present_routerId = true && this.isSetRouterId();
3705 boolean that_present_routerId = true && that.isSetRouterId();
3706 if (this_present_routerId || that_present_routerId) {
3707 if (!(this_present_routerId && that_present_routerId))
3709 if (!this.routerId.equals(that.routerId))
3713 boolean this_present_port = true;
3714 boolean that_present_port = true;
3715 if (this_present_port || that_present_port) {
3716 if (!(this_present_port && that_present_port))
3718 if (this.port != that.port)
3722 boolean this_present_holdTime = true;
3723 boolean that_present_holdTime = true;
3724 if (this_present_holdTime || that_present_holdTime) {
3725 if (!(this_present_holdTime && that_present_holdTime))
3727 if (this.holdTime != that.holdTime)
3731 boolean this_present_keepAliveTime = true;
3732 boolean that_present_keepAliveTime = true;
3733 if (this_present_keepAliveTime || that_present_keepAliveTime) {
3734 if (!(this_present_keepAliveTime && that_present_keepAliveTime))
3736 if (this.keepAliveTime != that.keepAliveTime)
3740 boolean this_present_stalepathTime = true;
3741 boolean that_present_stalepathTime = true;
3742 if (this_present_stalepathTime || that_present_stalepathTime) {
3743 if (!(this_present_stalepathTime && that_present_stalepathTime))
3745 if (this.stalepathTime != that.stalepathTime)
3749 boolean this_present_announceFlush = true;
3750 boolean that_present_announceFlush = true;
3751 if (this_present_announceFlush || that_present_announceFlush) {
3752 if (!(this_present_announceFlush && that_present_announceFlush))
3754 if (this.announceFlush != that.announceFlush)
3762 public int hashCode() {
3767 public int compareTo(startBgp_args other) {
3768 if (!getClass().equals(other.getClass())) {
3769 return getClass().getName().compareTo(other.getClass().getName());
3772 int lastComparison = 0;
3774 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
3775 if (lastComparison != 0) {
3776 return lastComparison;
3778 if (isSetAsNumber()) {
3779 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
3780 if (lastComparison != 0) {
3781 return lastComparison;
3784 lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
3785 if (lastComparison != 0) {
3786 return lastComparison;
3788 if (isSetRouterId()) {
3789 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
3790 if (lastComparison != 0) {
3791 return lastComparison;
3794 lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
3795 if (lastComparison != 0) {
3796 return lastComparison;
3799 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
3800 if (lastComparison != 0) {
3801 return lastComparison;
3804 lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
3805 if (lastComparison != 0) {
3806 return lastComparison;
3808 if (isSetHoldTime()) {
3809 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
3810 if (lastComparison != 0) {
3811 return lastComparison;
3814 lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
3815 if (lastComparison != 0) {
3816 return lastComparison;
3818 if (isSetKeepAliveTime()) {
3819 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
3820 if (lastComparison != 0) {
3821 return lastComparison;
3824 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
3825 if (lastComparison != 0) {
3826 return lastComparison;
3828 if (isSetStalepathTime()) {
3829 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
3830 if (lastComparison != 0) {
3831 return lastComparison;
3834 lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
3835 if (lastComparison != 0) {
3836 return lastComparison;
3838 if (isSetAnnounceFlush()) {
3839 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
3840 if (lastComparison != 0) {
3841 return lastComparison;
3847 public _Fields fieldForId(int fieldId) {
3848 return _Fields.findByThriftId(fieldId);
3851 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3852 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
3855 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3856 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
3860 public String toString() {
3861 StringBuilder sb = new StringBuilder("startBgp_args(");
3862 boolean first = true;
3864 sb.append("asNumber:");
3865 sb.append(this.asNumber);
3867 if (!first) sb.append(", ");
3868 sb.append("routerId:");
3869 if (this.routerId == null) {
3872 sb.append(this.routerId);
3875 if (!first) sb.append(", ");
3877 sb.append(this.port);
3879 if (!first) sb.append(", ");
3880 sb.append("holdTime:");
3881 sb.append(this.holdTime);
3883 if (!first) sb.append(", ");
3884 sb.append("keepAliveTime:");
3885 sb.append(this.keepAliveTime);
3887 if (!first) sb.append(", ");
3888 sb.append("stalepathTime:");
3889 sb.append(this.stalepathTime);
3891 if (!first) sb.append(", ");
3892 sb.append("announceFlush:");
3893 sb.append(this.announceFlush);
3896 return sb.toString();
3899 public void validate() throws org.apache.thrift.TException {
3900 // check for required fields
3901 // check for sub-struct validity
3904 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3906 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3907 } catch (org.apache.thrift.TException te) {
3908 throw new java.io.IOException(te);
3912 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3914 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3915 __isset_bitfield = 0;
3916 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3917 } catch (org.apache.thrift.TException te) {
3918 throw new java.io.IOException(te);
3922 private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
3923 public startBgp_argsStandardScheme getScheme() {
3924 return new startBgp_argsStandardScheme();
3928 private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
3930 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
3931 org.apache.thrift.protocol.TField schemeField;
3932 iprot.readStructBegin();
3935 schemeField = iprot.readFieldBegin();
3936 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
3939 switch (schemeField.id) {
3940 case 1: // AS_NUMBER
3941 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
3942 struct.asNumber = iprot.readI64();
3943 struct.setAsNumberIsSet(true);
3945 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3948 case 2: // ROUTER_ID
3949 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
3950 struct.routerId = iprot.readString();
3951 struct.setRouterIdIsSet(true);
3953 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3957 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3958 struct.port = iprot.readI32();
3959 struct.setPortIsSet(true);
3961 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3964 case 4: // HOLD_TIME
3965 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3966 struct.holdTime = iprot.readI32();
3967 struct.setHoldTimeIsSet(true);
3969 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3972 case 5: // KEEP_ALIVE_TIME
3973 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3974 struct.keepAliveTime = iprot.readI32();
3975 struct.setKeepAliveTimeIsSet(true);
3977 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3980 case 6: // STALEPATH_TIME
3981 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
3982 struct.stalepathTime = iprot.readI32();
3983 struct.setStalepathTimeIsSet(true);
3985 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3988 case 7: // ANNOUNCE_FLUSH
3989 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
3990 struct.announceFlush = iprot.readBool();
3991 struct.setAnnounceFlushIsSet(true);
3993 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3997 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
3999 iprot.readFieldEnd();
4001 iprot.readStructEnd();
4003 // check for required fields of primitive type, which can't be checked in the validate method
4007 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4010 oprot.writeStructBegin(STRUCT_DESC);
4011 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4012 oprot.writeI64(struct.asNumber);
4013 oprot.writeFieldEnd();
4014 if (struct.routerId != null) {
4015 oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4016 oprot.writeString(struct.routerId);
4017 oprot.writeFieldEnd();
4019 oprot.writeFieldBegin(PORT_FIELD_DESC);
4020 oprot.writeI32(struct.port);
4021 oprot.writeFieldEnd();
4022 oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4023 oprot.writeI32(struct.holdTime);
4024 oprot.writeFieldEnd();
4025 oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4026 oprot.writeI32(struct.keepAliveTime);
4027 oprot.writeFieldEnd();
4028 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4029 oprot.writeI32(struct.stalepathTime);
4030 oprot.writeFieldEnd();
4031 oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4032 oprot.writeBool(struct.announceFlush);
4033 oprot.writeFieldEnd();
4034 oprot.writeFieldStop();
4035 oprot.writeStructEnd();
4040 private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4041 public startBgp_argsTupleScheme getScheme() {
4042 return new startBgp_argsTupleScheme();
4046 private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4049 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4050 TTupleProtocol oprot = (TTupleProtocol) prot;
4051 BitSet optionals = new BitSet();
4052 if (struct.isSetAsNumber()) {
4055 if (struct.isSetRouterId()) {
4058 if (struct.isSetPort()) {
4061 if (struct.isSetHoldTime()) {
4064 if (struct.isSetKeepAliveTime()) {
4067 if (struct.isSetStalepathTime()) {
4070 if (struct.isSetAnnounceFlush()) {
4073 oprot.writeBitSet(optionals, 7);
4074 if (struct.isSetAsNumber()) {
4075 oprot.writeI64(struct.asNumber);
4077 if (struct.isSetRouterId()) {
4078 oprot.writeString(struct.routerId);
4080 if (struct.isSetPort()) {
4081 oprot.writeI32(struct.port);
4083 if (struct.isSetHoldTime()) {
4084 oprot.writeI32(struct.holdTime);
4086 if (struct.isSetKeepAliveTime()) {
4087 oprot.writeI32(struct.keepAliveTime);
4089 if (struct.isSetStalepathTime()) {
4090 oprot.writeI32(struct.stalepathTime);
4092 if (struct.isSetAnnounceFlush()) {
4093 oprot.writeBool(struct.announceFlush);
4098 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4099 TTupleProtocol iprot = (TTupleProtocol) prot;
4100 BitSet incoming = iprot.readBitSet(7);
4101 if (incoming.get(0)) {
4102 struct.asNumber = iprot.readI64();
4103 struct.setAsNumberIsSet(true);
4105 if (incoming.get(1)) {
4106 struct.routerId = iprot.readString();
4107 struct.setRouterIdIsSet(true);
4109 if (incoming.get(2)) {
4110 struct.port = iprot.readI32();
4111 struct.setPortIsSet(true);
4113 if (incoming.get(3)) {
4114 struct.holdTime = iprot.readI32();
4115 struct.setHoldTimeIsSet(true);
4117 if (incoming.get(4)) {
4118 struct.keepAliveTime = iprot.readI32();
4119 struct.setKeepAliveTimeIsSet(true);
4121 if (incoming.get(5)) {
4122 struct.stalepathTime = iprot.readI32();
4123 struct.setStalepathTimeIsSet(true);
4125 if (incoming.get(6)) {
4126 struct.announceFlush = iprot.readBool();
4127 struct.setAnnounceFlushIsSet(true);
4134 public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result> {
4135 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4137 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);
4139 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4141 schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4142 schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4145 public int success; // required
4147 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4148 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4149 SUCCESS((short)0, "success");
4151 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4154 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4155 byName.put(field.getFieldName(), field);
4160 * Find the _Fields constant that matches fieldId, or null if its not found.
4162 public static _Fields findByThriftId(int fieldId) {
4172 * Find the _Fields constant that matches fieldId, throwing an exception
4173 * if it is not found.
4175 public static _Fields findByThriftIdOrThrow(int fieldId) {
4176 _Fields fields = findByThriftId(fieldId);
4177 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4182 * Find the _Fields constant that matches name, or null if its not found.
4184 public static _Fields findByName(String name) {
4185 return byName.get(name);
4188 private final short _thriftId;
4189 private final String _fieldName;
4191 _Fields(short thriftId, String fieldName) {
4192 _thriftId = thriftId;
4193 _fieldName = fieldName;
4196 public short getThriftFieldId() {
4200 public String getFieldName() {
4205 // isset id assignments
4206 private static final int __SUCCESS_ISSET_ID = 0;
4207 private byte __isset_bitfield = 0;
4208 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4210 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4211 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4212 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4213 metaDataMap = Collections.unmodifiableMap(tmpMap);
4214 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4217 public startBgp_result() {
4220 public startBgp_result(
4224 this.success = success;
4225 setSuccessIsSet(true);
4229 * Performs a deep copy on <i>other</i>.
4231 public startBgp_result(startBgp_result other) {
4232 __isset_bitfield = other.__isset_bitfield;
4233 this.success = other.success;
4236 public startBgp_result deepCopy() {
4237 return new startBgp_result(this);
4241 public void clear() {
4242 setSuccessIsSet(false);
4246 public int getSuccess() {
4247 return this.success;
4250 public startBgp_result setSuccess(int success) {
4251 this.success = success;
4252 setSuccessIsSet(true);
4256 public void unsetSuccess() {
4257 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4260 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4261 public boolean isSetSuccess() {
4262 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4265 public void setSuccessIsSet(boolean value) {
4266 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4269 public void setFieldValue(_Fields field, Object value) {
4272 if (value == null) {
4275 setSuccess((Integer)value);
4282 public Object getFieldValue(_Fields field) {
4285 return Integer.valueOf(getSuccess());
4288 throw new IllegalStateException();
4291 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4292 public boolean isSet(_Fields field) {
4293 if (field == null) {
4294 throw new IllegalArgumentException();
4299 return isSetSuccess();
4301 throw new IllegalStateException();
4305 public boolean equals(Object that) {
4308 if (that instanceof startBgp_result)
4309 return this.equals((startBgp_result)that);
4313 public boolean equals(startBgp_result that) {
4317 boolean this_present_success = true;
4318 boolean that_present_success = true;
4319 if (this_present_success || that_present_success) {
4320 if (!(this_present_success && that_present_success))
4322 if (this.success != that.success)
4330 public int hashCode() {
4335 public int compareTo(startBgp_result other) {
4336 if (!getClass().equals(other.getClass())) {
4337 return getClass().getName().compareTo(other.getClass().getName());
4340 int lastComparison = 0;
4342 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4343 if (lastComparison != 0) {
4344 return lastComparison;
4346 if (isSetSuccess()) {
4347 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4348 if (lastComparison != 0) {
4349 return lastComparison;
4355 public _Fields fieldForId(int fieldId) {
4356 return _Fields.findByThriftId(fieldId);
4359 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4360 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4363 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4364 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4368 public String toString() {
4369 StringBuilder sb = new StringBuilder("startBgp_result(");
4370 boolean first = true;
4372 sb.append("success:");
4373 sb.append(this.success);
4376 return sb.toString();
4379 public void validate() throws org.apache.thrift.TException {
4380 // check for required fields
4381 // check for sub-struct validity
4384 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4386 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4387 } catch (org.apache.thrift.TException te) {
4388 throw new java.io.IOException(te);
4392 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4394 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4395 __isset_bitfield = 0;
4396 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4397 } catch (org.apache.thrift.TException te) {
4398 throw new java.io.IOException(te);
4402 private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
4403 public startBgp_resultStandardScheme getScheme() {
4404 return new startBgp_resultStandardScheme();
4408 private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
4410 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
4411 org.apache.thrift.protocol.TField schemeField;
4412 iprot.readStructBegin();
4415 schemeField = iprot.readFieldBegin();
4416 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4419 switch (schemeField.id) {
4421 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4422 struct.success = iprot.readI32();
4423 struct.setSuccessIsSet(true);
4425 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4429 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4431 iprot.readFieldEnd();
4433 iprot.readStructEnd();
4435 // check for required fields of primitive type, which can't be checked in the validate method
4439 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
4442 oprot.writeStructBegin(STRUCT_DESC);
4443 if (struct.isSetSuccess()) {
4444 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4445 oprot.writeI32(struct.success);
4446 oprot.writeFieldEnd();
4448 oprot.writeFieldStop();
4449 oprot.writeStructEnd();
4454 private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
4455 public startBgp_resultTupleScheme getScheme() {
4456 return new startBgp_resultTupleScheme();
4460 private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
4463 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
4464 TTupleProtocol oprot = (TTupleProtocol) prot;
4465 BitSet optionals = new BitSet();
4466 if (struct.isSetSuccess()) {
4469 oprot.writeBitSet(optionals, 1);
4470 if (struct.isSetSuccess()) {
4471 oprot.writeI32(struct.success);
4476 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
4477 TTupleProtocol iprot = (TTupleProtocol) prot;
4478 BitSet incoming = iprot.readBitSet(1);
4479 if (incoming.get(0)) {
4480 struct.success = iprot.readI32();
4481 struct.setSuccessIsSet(true);
4488 public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args> {
4489 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
4491 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)1);
4493 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4495 schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
4496 schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
4499 public long asNumber; // required
4501 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4502 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4503 AS_NUMBER((short)1, "asNumber");
4505 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4508 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4509 byName.put(field.getFieldName(), field);
4514 * Find the _Fields constant that matches fieldId, or null if its not found.
4516 public static _Fields findByThriftId(int fieldId) {
4518 case 1: // AS_NUMBER
4526 * Find the _Fields constant that matches fieldId, throwing an exception
4527 * if it is not found.
4529 public static _Fields findByThriftIdOrThrow(int fieldId) {
4530 _Fields fields = findByThriftId(fieldId);
4531 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4536 * Find the _Fields constant that matches name, or null if its not found.
4538 public static _Fields findByName(String name) {
4539 return byName.get(name);
4542 private final short _thriftId;
4543 private final String _fieldName;
4545 _Fields(short thriftId, String fieldName) {
4546 _thriftId = thriftId;
4547 _fieldName = fieldName;
4550 public short getThriftFieldId() {
4554 public String getFieldName() {
4559 // isset id assignments
4560 private static final int __ASNUMBER_ISSET_ID = 0;
4561 private byte __isset_bitfield = 0;
4562 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4564 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4565 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
4566 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4567 metaDataMap = Collections.unmodifiableMap(tmpMap);
4568 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
4571 public stopBgp_args() {
4574 public stopBgp_args(
4578 this.asNumber = asNumber;
4579 setAsNumberIsSet(true);
4583 * Performs a deep copy on <i>other</i>.
4585 public stopBgp_args(stopBgp_args other) {
4586 __isset_bitfield = other.__isset_bitfield;
4587 this.asNumber = other.asNumber;
4590 public stopBgp_args deepCopy() {
4591 return new stopBgp_args(this);
4595 public void clear() {
4596 setAsNumberIsSet(false);
4600 public long getAsNumber() {
4601 return this.asNumber;
4604 public stopBgp_args setAsNumber(long asNumber) {
4605 this.asNumber = asNumber;
4606 setAsNumberIsSet(true);
4610 public void unsetAsNumber() {
4611 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4614 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
4615 public boolean isSetAsNumber() {
4616 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
4619 public void setAsNumberIsSet(boolean value) {
4620 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
4623 public void setFieldValue(_Fields field, Object value) {
4626 if (value == null) {
4629 setAsNumber((Long)value);
4636 public Object getFieldValue(_Fields field) {
4639 return Long.valueOf(getAsNumber());
4642 throw new IllegalStateException();
4645 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4646 public boolean isSet(_Fields field) {
4647 if (field == null) {
4648 throw new IllegalArgumentException();
4653 return isSetAsNumber();
4655 throw new IllegalStateException();
4659 public boolean equals(Object that) {
4662 if (that instanceof stopBgp_args)
4663 return this.equals((stopBgp_args)that);
4667 public boolean equals(stopBgp_args that) {
4671 boolean this_present_asNumber = true;
4672 boolean that_present_asNumber = true;
4673 if (this_present_asNumber || that_present_asNumber) {
4674 if (!(this_present_asNumber && that_present_asNumber))
4676 if (this.asNumber != that.asNumber)
4684 public int hashCode() {
4689 public int compareTo(stopBgp_args other) {
4690 if (!getClass().equals(other.getClass())) {
4691 return getClass().getName().compareTo(other.getClass().getName());
4694 int lastComparison = 0;
4696 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4697 if (lastComparison != 0) {
4698 return lastComparison;
4700 if (isSetAsNumber()) {
4701 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4702 if (lastComparison != 0) {
4703 return lastComparison;
4709 public _Fields fieldForId(int fieldId) {
4710 return _Fields.findByThriftId(fieldId);
4713 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4714 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4717 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4718 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4722 public String toString() {
4723 StringBuilder sb = new StringBuilder("stopBgp_args(");
4724 boolean first = true;
4726 sb.append("asNumber:");
4727 sb.append(this.asNumber);
4730 return sb.toString();
4733 public void validate() throws org.apache.thrift.TException {
4734 // check for required fields
4735 // check for sub-struct validity
4738 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4740 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4741 } catch (org.apache.thrift.TException te) {
4742 throw new java.io.IOException(te);
4746 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4748 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4749 __isset_bitfield = 0;
4750 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4751 } catch (org.apache.thrift.TException te) {
4752 throw new java.io.IOException(te);
4756 private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
4757 public stopBgp_argsStandardScheme getScheme() {
4758 return new stopBgp_argsStandardScheme();
4762 private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
4764 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
4765 org.apache.thrift.protocol.TField schemeField;
4766 iprot.readStructBegin();
4769 schemeField = iprot.readFieldBegin();
4770 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4773 switch (schemeField.id) {
4774 case 1: // AS_NUMBER
4775 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4776 struct.asNumber = iprot.readI64();
4777 struct.setAsNumberIsSet(true);
4779 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4783 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4785 iprot.readFieldEnd();
4787 iprot.readStructEnd();
4789 // check for required fields of primitive type, which can't be checked in the validate method
4793 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
4796 oprot.writeStructBegin(STRUCT_DESC);
4797 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4798 oprot.writeI64(struct.asNumber);
4799 oprot.writeFieldEnd();
4800 oprot.writeFieldStop();
4801 oprot.writeStructEnd();
4806 private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
4807 public stopBgp_argsTupleScheme getScheme() {
4808 return new stopBgp_argsTupleScheme();
4812 private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
4815 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4816 TTupleProtocol oprot = (TTupleProtocol) prot;
4817 BitSet optionals = new BitSet();
4818 if (struct.isSetAsNumber()) {
4821 oprot.writeBitSet(optionals, 1);
4822 if (struct.isSetAsNumber()) {
4823 oprot.writeI64(struct.asNumber);
4828 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
4829 TTupleProtocol iprot = (TTupleProtocol) prot;
4830 BitSet incoming = iprot.readBitSet(1);
4831 if (incoming.get(0)) {
4832 struct.asNumber = iprot.readI64();
4833 struct.setAsNumberIsSet(true);
4840 public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result> {
4841 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
4843 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);
4845 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4847 schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
4848 schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
4851 public int success; // required
4853 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4854 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4855 SUCCESS((short)0, "success");
4857 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4860 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4861 byName.put(field.getFieldName(), field);
4866 * Find the _Fields constant that matches fieldId, or null if its not found.
4868 public static _Fields findByThriftId(int fieldId) {
4878 * Find the _Fields constant that matches fieldId, throwing an exception
4879 * if it is not found.
4881 public static _Fields findByThriftIdOrThrow(int fieldId) {
4882 _Fields fields = findByThriftId(fieldId);
4883 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4888 * Find the _Fields constant that matches name, or null if its not found.
4890 public static _Fields findByName(String name) {
4891 return byName.get(name);
4894 private final short _thriftId;
4895 private final String _fieldName;
4897 _Fields(short thriftId, String fieldName) {
4898 _thriftId = thriftId;
4899 _fieldName = fieldName;
4902 public short getThriftFieldId() {
4906 public String getFieldName() {
4911 // isset id assignments
4912 private static final int __SUCCESS_ISSET_ID = 0;
4913 private byte __isset_bitfield = 0;
4914 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4916 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4917 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4918 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4919 metaDataMap = Collections.unmodifiableMap(tmpMap);
4920 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
4923 public stopBgp_result() {
4926 public stopBgp_result(
4930 this.success = success;
4931 setSuccessIsSet(true);
4935 * Performs a deep copy on <i>other</i>.
4937 public stopBgp_result(stopBgp_result other) {
4938 __isset_bitfield = other.__isset_bitfield;
4939 this.success = other.success;
4942 public stopBgp_result deepCopy() {
4943 return new stopBgp_result(this);
4947 public void clear() {
4948 setSuccessIsSet(false);
4952 public int getSuccess() {
4953 return this.success;
4956 public stopBgp_result setSuccess(int success) {
4957 this.success = success;
4958 setSuccessIsSet(true);
4962 public void unsetSuccess() {
4963 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4966 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4967 public boolean isSetSuccess() {
4968 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4971 public void setSuccessIsSet(boolean value) {
4972 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4975 public void setFieldValue(_Fields field, Object value) {
4978 if (value == null) {
4981 setSuccess((Integer)value);
4988 public Object getFieldValue(_Fields field) {
4991 return Integer.valueOf(getSuccess());
4994 throw new IllegalStateException();
4997 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4998 public boolean isSet(_Fields field) {
4999 if (field == null) {
5000 throw new IllegalArgumentException();
5005 return isSetSuccess();
5007 throw new IllegalStateException();
5011 public boolean equals(Object that) {
5014 if (that instanceof stopBgp_result)
5015 return this.equals((stopBgp_result)that);
5019 public boolean equals(stopBgp_result that) {
5023 boolean this_present_success = true;
5024 boolean that_present_success = true;
5025 if (this_present_success || that_present_success) {
5026 if (!(this_present_success && that_present_success))
5028 if (this.success != that.success)
5036 public int hashCode() {
5041 public int compareTo(stopBgp_result other) {
5042 if (!getClass().equals(other.getClass())) {
5043 return getClass().getName().compareTo(other.getClass().getName());
5046 int lastComparison = 0;
5048 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5049 if (lastComparison != 0) {
5050 return lastComparison;
5052 if (isSetSuccess()) {
5053 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5054 if (lastComparison != 0) {
5055 return lastComparison;
5061 public _Fields fieldForId(int fieldId) {
5062 return _Fields.findByThriftId(fieldId);
5065 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5066 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5069 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5070 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5074 public String toString() {
5075 StringBuilder sb = new StringBuilder("stopBgp_result(");
5076 boolean first = true;
5078 sb.append("success:");
5079 sb.append(this.success);
5082 return sb.toString();
5085 public void validate() throws org.apache.thrift.TException {
5086 // check for required fields
5087 // check for sub-struct validity
5090 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5092 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5093 } catch (org.apache.thrift.TException te) {
5094 throw new java.io.IOException(te);
5098 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5100 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5101 __isset_bitfield = 0;
5102 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5103 } catch (org.apache.thrift.TException te) {
5104 throw new java.io.IOException(te);
5108 private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5109 public stopBgp_resultStandardScheme getScheme() {
5110 return new stopBgp_resultStandardScheme();
5114 private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5116 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5117 org.apache.thrift.protocol.TField schemeField;
5118 iprot.readStructBegin();
5121 schemeField = iprot.readFieldBegin();
5122 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5125 switch (schemeField.id) {
5127 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5128 struct.success = iprot.readI32();
5129 struct.setSuccessIsSet(true);
5131 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5135 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5137 iprot.readFieldEnd();
5139 iprot.readStructEnd();
5141 // check for required fields of primitive type, which can't be checked in the validate method
5145 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5148 oprot.writeStructBegin(STRUCT_DESC);
5149 if (struct.isSetSuccess()) {
5150 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5151 oprot.writeI32(struct.success);
5152 oprot.writeFieldEnd();
5154 oprot.writeFieldStop();
5155 oprot.writeStructEnd();
5160 private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5161 public stopBgp_resultTupleScheme getScheme() {
5162 return new stopBgp_resultTupleScheme();
5166 private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5169 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5170 TTupleProtocol oprot = (TTupleProtocol) prot;
5171 BitSet optionals = new BitSet();
5172 if (struct.isSetSuccess()) {
5175 oprot.writeBitSet(optionals, 1);
5176 if (struct.isSetSuccess()) {
5177 oprot.writeI32(struct.success);
5182 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5183 TTupleProtocol iprot = (TTupleProtocol) prot;
5184 BitSet incoming = iprot.readBitSet(1);
5185 if (incoming.get(0)) {
5186 struct.success = iprot.readI32();
5187 struct.setSuccessIsSet(true);
5194 public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args> {
5195 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5197 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);
5198 private static final org.apache.thrift.protocol.TField AS_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("asNumber", org.apache.thrift.protocol.TType.I64, (short)2);
5200 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5202 schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5203 schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5206 public String ipAddress; // required
5207 public long asNumber; // required
5209 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5210 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5211 IP_ADDRESS((short)1, "ipAddress"),
5212 AS_NUMBER((short)2, "asNumber");
5214 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5217 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5218 byName.put(field.getFieldName(), field);
5223 * Find the _Fields constant that matches fieldId, or null if its not found.
5225 public static _Fields findByThriftId(int fieldId) {
5227 case 1: // IP_ADDRESS
5229 case 2: // AS_NUMBER
5237 * Find the _Fields constant that matches fieldId, throwing an exception
5238 * if it is not found.
5240 public static _Fields findByThriftIdOrThrow(int fieldId) {
5241 _Fields fields = findByThriftId(fieldId);
5242 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5247 * Find the _Fields constant that matches name, or null if its not found.
5249 public static _Fields findByName(String name) {
5250 return byName.get(name);
5253 private final short _thriftId;
5254 private final String _fieldName;
5256 _Fields(short thriftId, String fieldName) {
5257 _thriftId = thriftId;
5258 _fieldName = fieldName;
5261 public short getThriftFieldId() {
5265 public String getFieldName() {
5270 // isset id assignments
5271 private static final int __ASNUMBER_ISSET_ID = 0;
5272 private byte __isset_bitfield = 0;
5273 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5275 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5276 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5277 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5278 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5279 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5280 metaDataMap = Collections.unmodifiableMap(tmpMap);
5281 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
5284 public createPeer_args() {
5287 public createPeer_args(
5292 this.ipAddress = ipAddress;
5293 this.asNumber = asNumber;
5294 setAsNumberIsSet(true);
5298 * Performs a deep copy on <i>other</i>.
5300 public createPeer_args(createPeer_args other) {
5301 __isset_bitfield = other.__isset_bitfield;
5302 if (other.isSetIpAddress()) {
5303 this.ipAddress = other.ipAddress;
5305 this.asNumber = other.asNumber;
5308 public createPeer_args deepCopy() {
5309 return new createPeer_args(this);
5313 public void clear() {
5314 this.ipAddress = null;
5315 setAsNumberIsSet(false);
5319 public String getIpAddress() {
5320 return this.ipAddress;
5323 public createPeer_args setIpAddress(String ipAddress) {
5324 this.ipAddress = ipAddress;
5328 public void unsetIpAddress() {
5329 this.ipAddress = null;
5332 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
5333 public boolean isSetIpAddress() {
5334 return this.ipAddress != null;
5337 public void setIpAddressIsSet(boolean value) {
5339 this.ipAddress = null;
5343 public long getAsNumber() {
5344 return this.asNumber;
5347 public createPeer_args setAsNumber(long asNumber) {
5348 this.asNumber = asNumber;
5349 setAsNumberIsSet(true);
5353 public void unsetAsNumber() {
5354 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5357 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5358 public boolean isSetAsNumber() {
5359 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5362 public void setAsNumberIsSet(boolean value) {
5363 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5366 public void setFieldValue(_Fields field, Object value) {
5369 if (value == null) {
5372 setIpAddress((String)value);
5377 if (value == null) {
5380 setAsNumber((Long)value);
5387 public Object getFieldValue(_Fields field) {
5390 return getIpAddress();
5393 return Long.valueOf(getAsNumber());
5396 throw new IllegalStateException();
5399 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5400 public boolean isSet(_Fields field) {
5401 if (field == null) {
5402 throw new IllegalArgumentException();
5407 return isSetIpAddress();
5409 return isSetAsNumber();
5411 throw new IllegalStateException();
5415 public boolean equals(Object that) {
5418 if (that instanceof createPeer_args)
5419 return this.equals((createPeer_args)that);
5423 public boolean equals(createPeer_args that) {
5427 boolean this_present_ipAddress = true && this.isSetIpAddress();
5428 boolean that_present_ipAddress = true && that.isSetIpAddress();
5429 if (this_present_ipAddress || that_present_ipAddress) {
5430 if (!(this_present_ipAddress && that_present_ipAddress))
5432 if (!this.ipAddress.equals(that.ipAddress))
5436 boolean this_present_asNumber = true;
5437 boolean that_present_asNumber = true;
5438 if (this_present_asNumber || that_present_asNumber) {
5439 if (!(this_present_asNumber && that_present_asNumber))
5441 if (this.asNumber != that.asNumber)
5449 public int hashCode() {
5454 public int compareTo(createPeer_args other) {
5455 if (!getClass().equals(other.getClass())) {
5456 return getClass().getName().compareTo(other.getClass().getName());
5459 int lastComparison = 0;
5461 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
5462 if (lastComparison != 0) {
5463 return lastComparison;
5465 if (isSetIpAddress()) {
5466 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
5467 if (lastComparison != 0) {
5468 return lastComparison;
5471 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5472 if (lastComparison != 0) {
5473 return lastComparison;
5475 if (isSetAsNumber()) {
5476 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5477 if (lastComparison != 0) {
5478 return lastComparison;
5484 public _Fields fieldForId(int fieldId) {
5485 return _Fields.findByThriftId(fieldId);
5488 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5489 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5492 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5493 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5497 public String toString() {
5498 StringBuilder sb = new StringBuilder("createPeer_args(");
5499 boolean first = true;
5501 sb.append("ipAddress:");
5502 if (this.ipAddress == null) {
5505 sb.append(this.ipAddress);
5508 if (!first) sb.append(", ");
5509 sb.append("asNumber:");
5510 sb.append(this.asNumber);
5513 return sb.toString();
5516 public void validate() throws org.apache.thrift.TException {
5517 // check for required fields
5518 // check for sub-struct validity
5521 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5523 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5524 } catch (org.apache.thrift.TException te) {
5525 throw new java.io.IOException(te);
5529 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5531 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5532 __isset_bitfield = 0;
5533 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5534 } catch (org.apache.thrift.TException te) {
5535 throw new java.io.IOException(te);
5539 private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
5540 public createPeer_argsStandardScheme getScheme() {
5541 return new createPeer_argsStandardScheme();
5545 private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
5547 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
5548 org.apache.thrift.protocol.TField schemeField;
5549 iprot.readStructBegin();
5552 schemeField = iprot.readFieldBegin();
5553 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5556 switch (schemeField.id) {
5557 case 1: // IP_ADDRESS
5558 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
5559 struct.ipAddress = iprot.readString();
5560 struct.setIpAddressIsSet(true);
5562 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5565 case 2: // AS_NUMBER
5566 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5567 struct.asNumber = iprot.readI64();
5568 struct.setAsNumberIsSet(true);
5570 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5574 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5576 iprot.readFieldEnd();
5578 iprot.readStructEnd();
5580 // check for required fields of primitive type, which can't be checked in the validate method
5584 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
5587 oprot.writeStructBegin(STRUCT_DESC);
5588 if (struct.ipAddress != null) {
5589 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
5590 oprot.writeString(struct.ipAddress);
5591 oprot.writeFieldEnd();
5593 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5594 oprot.writeI64(struct.asNumber);
5595 oprot.writeFieldEnd();
5596 oprot.writeFieldStop();
5597 oprot.writeStructEnd();
5602 private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
5603 public createPeer_argsTupleScheme getScheme() {
5604 return new createPeer_argsTupleScheme();
5608 private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
5611 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5612 TTupleProtocol oprot = (TTupleProtocol) prot;
5613 BitSet optionals = new BitSet();
5614 if (struct.isSetIpAddress()) {
5617 if (struct.isSetAsNumber()) {
5620 oprot.writeBitSet(optionals, 2);
5621 if (struct.isSetIpAddress()) {
5622 oprot.writeString(struct.ipAddress);
5624 if (struct.isSetAsNumber()) {
5625 oprot.writeI64(struct.asNumber);
5630 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
5631 TTupleProtocol iprot = (TTupleProtocol) prot;
5632 BitSet incoming = iprot.readBitSet(2);
5633 if (incoming.get(0)) {
5634 struct.ipAddress = iprot.readString();
5635 struct.setIpAddressIsSet(true);
5637 if (incoming.get(1)) {
5638 struct.asNumber = iprot.readI64();
5639 struct.setAsNumberIsSet(true);
5646 public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result> {
5647 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
5649 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);
5651 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5653 schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
5654 schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
5657 public int success; // required
5659 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5660 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5661 SUCCESS((short)0, "success");
5663 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5666 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5667 byName.put(field.getFieldName(), field);
5672 * Find the _Fields constant that matches fieldId, or null if its not found.
5674 public static _Fields findByThriftId(int fieldId) {
5684 * Find the _Fields constant that matches fieldId, throwing an exception
5685 * if it is not found.
5687 public static _Fields findByThriftIdOrThrow(int fieldId) {
5688 _Fields fields = findByThriftId(fieldId);
5689 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5694 * Find the _Fields constant that matches name, or null if its not found.
5696 public static _Fields findByName(String name) {
5697 return byName.get(name);
5700 private final short _thriftId;
5701 private final String _fieldName;
5703 _Fields(short thriftId, String fieldName) {
5704 _thriftId = thriftId;
5705 _fieldName = fieldName;
5708 public short getThriftFieldId() {
5712 public String getFieldName() {
5717 // isset id assignments
5718 private static final int __SUCCESS_ISSET_ID = 0;
5719 private byte __isset_bitfield = 0;
5720 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5722 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5723 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5724 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5725 metaDataMap = Collections.unmodifiableMap(tmpMap);
5726 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
5729 public createPeer_result() {
5732 public createPeer_result(
5736 this.success = success;
5737 setSuccessIsSet(true);
5741 * Performs a deep copy on <i>other</i>.
5743 public createPeer_result(createPeer_result other) {
5744 __isset_bitfield = other.__isset_bitfield;
5745 this.success = other.success;
5748 public createPeer_result deepCopy() {
5749 return new createPeer_result(this);
5753 public void clear() {
5754 setSuccessIsSet(false);
5758 public int getSuccess() {
5759 return this.success;
5762 public createPeer_result setSuccess(int success) {
5763 this.success = success;
5764 setSuccessIsSet(true);
5768 public void unsetSuccess() {
5769 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5772 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5773 public boolean isSetSuccess() {
5774 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5777 public void setSuccessIsSet(boolean value) {
5778 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5781 public void setFieldValue(_Fields field, Object value) {
5784 if (value == null) {
5787 setSuccess((Integer)value);
5794 public Object getFieldValue(_Fields field) {
5797 return Integer.valueOf(getSuccess());
5800 throw new IllegalStateException();
5803 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5804 public boolean isSet(_Fields field) {
5805 if (field == null) {
5806 throw new IllegalArgumentException();
5811 return isSetSuccess();
5813 throw new IllegalStateException();
5817 public boolean equals(Object that) {
5820 if (that instanceof createPeer_result)
5821 return this.equals((createPeer_result)that);
5825 public boolean equals(createPeer_result that) {
5829 boolean this_present_success = true;
5830 boolean that_present_success = true;
5831 if (this_present_success || that_present_success) {
5832 if (!(this_present_success && that_present_success))
5834 if (this.success != that.success)
5842 public int hashCode() {
5847 public int compareTo(createPeer_result other) {
5848 if (!getClass().equals(other.getClass())) {
5849 return getClass().getName().compareTo(other.getClass().getName());
5852 int lastComparison = 0;
5854 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5855 if (lastComparison != 0) {
5856 return lastComparison;
5858 if (isSetSuccess()) {
5859 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5860 if (lastComparison != 0) {
5861 return lastComparison;
5867 public _Fields fieldForId(int fieldId) {
5868 return _Fields.findByThriftId(fieldId);
5871 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5872 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5875 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5876 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5880 public String toString() {
5881 StringBuilder sb = new StringBuilder("createPeer_result(");
5882 boolean first = true;
5884 sb.append("success:");
5885 sb.append(this.success);
5888 return sb.toString();
5891 public void validate() throws org.apache.thrift.TException {
5892 // check for required fields
5893 // check for sub-struct validity
5896 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5898 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5899 } catch (org.apache.thrift.TException te) {
5900 throw new java.io.IOException(te);
5904 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5906 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5907 __isset_bitfield = 0;
5908 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5909 } catch (org.apache.thrift.TException te) {
5910 throw new java.io.IOException(te);
5914 private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
5915 public createPeer_resultStandardScheme getScheme() {
5916 return new createPeer_resultStandardScheme();
5920 private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
5922 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
5923 org.apache.thrift.protocol.TField schemeField;
5924 iprot.readStructBegin();
5927 schemeField = iprot.readFieldBegin();
5928 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5931 switch (schemeField.id) {
5933 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5934 struct.success = iprot.readI32();
5935 struct.setSuccessIsSet(true);
5937 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5941 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5943 iprot.readFieldEnd();
5945 iprot.readStructEnd();
5947 // check for required fields of primitive type, which can't be checked in the validate method
5951 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
5954 oprot.writeStructBegin(STRUCT_DESC);
5955 if (struct.isSetSuccess()) {
5956 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5957 oprot.writeI32(struct.success);
5958 oprot.writeFieldEnd();
5960 oprot.writeFieldStop();
5961 oprot.writeStructEnd();
5966 private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
5967 public createPeer_resultTupleScheme getScheme() {
5968 return new createPeer_resultTupleScheme();
5972 private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
5975 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5976 TTupleProtocol oprot = (TTupleProtocol) prot;
5977 BitSet optionals = new BitSet();
5978 if (struct.isSetSuccess()) {
5981 oprot.writeBitSet(optionals, 1);
5982 if (struct.isSetSuccess()) {
5983 oprot.writeI32(struct.success);
5988 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
5989 TTupleProtocol iprot = (TTupleProtocol) prot;
5990 BitSet incoming = iprot.readBitSet(1);
5991 if (incoming.get(0)) {
5992 struct.success = iprot.readI32();
5993 struct.setSuccessIsSet(true);
6000 public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args> {
6001 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6003 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);
6004 private static final org.apache.thrift.protocol.TField RFC2385_SHARED_SECRET_FIELD_DESC = new org.apache.thrift.protocol.TField("rfc2385_sharedSecret", org.apache.thrift.protocol.TType.STRING, (short)2);
6006 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6008 schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6009 schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6012 public String ipAddress; // required
6013 public String rfc2385_sharedSecret; // required
6015 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6016 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6017 IP_ADDRESS((short)1, "ipAddress"),
6018 RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6020 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6023 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6024 byName.put(field.getFieldName(), field);
6029 * Find the _Fields constant that matches fieldId, or null if its not found.
6031 public static _Fields findByThriftId(int fieldId) {
6033 case 1: // IP_ADDRESS
6035 case 2: // RFC2385_SHARED_SECRET
6036 return RFC2385_SHARED_SECRET;
6043 * Find the _Fields constant that matches fieldId, throwing an exception
6044 * if it is not found.
6046 public static _Fields findByThriftIdOrThrow(int fieldId) {
6047 _Fields fields = findByThriftId(fieldId);
6048 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6053 * Find the _Fields constant that matches name, or null if its not found.
6055 public static _Fields findByName(String name) {
6056 return byName.get(name);
6059 private final short _thriftId;
6060 private final String _fieldName;
6062 _Fields(short thriftId, String fieldName) {
6063 _thriftId = thriftId;
6064 _fieldName = fieldName;
6067 public short getThriftFieldId() {
6071 public String getFieldName() {
6076 // isset id assignments
6077 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6079 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6080 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6081 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6082 tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6083 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6084 metaDataMap = Collections.unmodifiableMap(tmpMap);
6085 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6088 public setPeerSecret_args() {
6091 public setPeerSecret_args(
6093 String rfc2385_sharedSecret)
6096 this.ipAddress = ipAddress;
6097 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6101 * Performs a deep copy on <i>other</i>.
6103 public setPeerSecret_args(setPeerSecret_args other) {
6104 if (other.isSetIpAddress()) {
6105 this.ipAddress = other.ipAddress;
6107 if (other.isSetRfc2385_sharedSecret()) {
6108 this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6112 public setPeerSecret_args deepCopy() {
6113 return new setPeerSecret_args(this);
6117 public void clear() {
6118 this.ipAddress = null;
6119 this.rfc2385_sharedSecret = null;
6122 public String getIpAddress() {
6123 return this.ipAddress;
6126 public setPeerSecret_args setIpAddress(String ipAddress) {
6127 this.ipAddress = ipAddress;
6131 public void unsetIpAddress() {
6132 this.ipAddress = null;
6135 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6136 public boolean isSetIpAddress() {
6137 return this.ipAddress != null;
6140 public void setIpAddressIsSet(boolean value) {
6142 this.ipAddress = null;
6146 public String getRfc2385_sharedSecret() {
6147 return this.rfc2385_sharedSecret;
6150 public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6151 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6155 public void unsetRfc2385_sharedSecret() {
6156 this.rfc2385_sharedSecret = null;
6159 /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6160 public boolean isSetRfc2385_sharedSecret() {
6161 return this.rfc2385_sharedSecret != null;
6164 public void setRfc2385_sharedSecretIsSet(boolean value) {
6166 this.rfc2385_sharedSecret = null;
6170 public void setFieldValue(_Fields field, Object value) {
6173 if (value == null) {
6176 setIpAddress((String)value);
6180 case RFC2385_SHARED_SECRET:
6181 if (value == null) {
6182 unsetRfc2385_sharedSecret();
6184 setRfc2385_sharedSecret((String)value);
6191 public Object getFieldValue(_Fields field) {
6194 return getIpAddress();
6196 case RFC2385_SHARED_SECRET:
6197 return getRfc2385_sharedSecret();
6200 throw new IllegalStateException();
6203 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6204 public boolean isSet(_Fields field) {
6205 if (field == null) {
6206 throw new IllegalArgumentException();
6211 return isSetIpAddress();
6212 case RFC2385_SHARED_SECRET:
6213 return isSetRfc2385_sharedSecret();
6215 throw new IllegalStateException();
6219 public boolean equals(Object that) {
6222 if (that instanceof setPeerSecret_args)
6223 return this.equals((setPeerSecret_args)that);
6227 public boolean equals(setPeerSecret_args that) {
6231 boolean this_present_ipAddress = true && this.isSetIpAddress();
6232 boolean that_present_ipAddress = true && that.isSetIpAddress();
6233 if (this_present_ipAddress || that_present_ipAddress) {
6234 if (!(this_present_ipAddress && that_present_ipAddress))
6236 if (!this.ipAddress.equals(that.ipAddress))
6240 boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
6241 boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
6242 if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
6243 if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret))
6245 if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret))
6253 public int hashCode() {
6258 public int compareTo(setPeerSecret_args other) {
6259 if (!getClass().equals(other.getClass())) {
6260 return getClass().getName().compareTo(other.getClass().getName());
6263 int lastComparison = 0;
6265 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6266 if (lastComparison != 0) {
6267 return lastComparison;
6269 if (isSetIpAddress()) {
6270 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6271 if (lastComparison != 0) {
6272 return lastComparison;
6275 lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
6276 if (lastComparison != 0) {
6277 return lastComparison;
6279 if (isSetRfc2385_sharedSecret()) {
6280 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
6281 if (lastComparison != 0) {
6282 return lastComparison;
6288 public _Fields fieldForId(int fieldId) {
6289 return _Fields.findByThriftId(fieldId);
6292 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6293 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6296 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6297 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6301 public String toString() {
6302 StringBuilder sb = new StringBuilder("setPeerSecret_args(");
6303 boolean first = true;
6305 sb.append("ipAddress:");
6306 if (this.ipAddress == null) {
6309 sb.append(this.ipAddress);
6312 if (!first) sb.append(", ");
6313 sb.append("rfc2385_sharedSecret:");
6314 if (this.rfc2385_sharedSecret == null) {
6317 sb.append(this.rfc2385_sharedSecret);
6321 return sb.toString();
6324 public void validate() throws org.apache.thrift.TException {
6325 // check for required fields
6326 // check for sub-struct validity
6329 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6331 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6332 } catch (org.apache.thrift.TException te) {
6333 throw new java.io.IOException(te);
6337 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6339 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6340 } catch (org.apache.thrift.TException te) {
6341 throw new java.io.IOException(te);
6345 private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
6346 public setPeerSecret_argsStandardScheme getScheme() {
6347 return new setPeerSecret_argsStandardScheme();
6351 private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
6353 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6354 org.apache.thrift.protocol.TField schemeField;
6355 iprot.readStructBegin();
6358 schemeField = iprot.readFieldBegin();
6359 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6362 switch (schemeField.id) {
6363 case 1: // IP_ADDRESS
6364 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6365 struct.ipAddress = iprot.readString();
6366 struct.setIpAddressIsSet(true);
6368 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6371 case 2: // RFC2385_SHARED_SECRET
6372 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6373 struct.rfc2385_sharedSecret = iprot.readString();
6374 struct.setRfc2385_sharedSecretIsSet(true);
6376 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6380 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6382 iprot.readFieldEnd();
6384 iprot.readStructEnd();
6386 // check for required fields of primitive type, which can't be checked in the validate method
6390 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6393 oprot.writeStructBegin(STRUCT_DESC);
6394 if (struct.ipAddress != null) {
6395 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6396 oprot.writeString(struct.ipAddress);
6397 oprot.writeFieldEnd();
6399 if (struct.rfc2385_sharedSecret != null) {
6400 oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
6401 oprot.writeString(struct.rfc2385_sharedSecret);
6402 oprot.writeFieldEnd();
6404 oprot.writeFieldStop();
6405 oprot.writeStructEnd();
6410 private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
6411 public setPeerSecret_argsTupleScheme getScheme() {
6412 return new setPeerSecret_argsTupleScheme();
6416 private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
6419 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6420 TTupleProtocol oprot = (TTupleProtocol) prot;
6421 BitSet optionals = new BitSet();
6422 if (struct.isSetIpAddress()) {
6425 if (struct.isSetRfc2385_sharedSecret()) {
6428 oprot.writeBitSet(optionals, 2);
6429 if (struct.isSetIpAddress()) {
6430 oprot.writeString(struct.ipAddress);
6432 if (struct.isSetRfc2385_sharedSecret()) {
6433 oprot.writeString(struct.rfc2385_sharedSecret);
6438 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
6439 TTupleProtocol iprot = (TTupleProtocol) prot;
6440 BitSet incoming = iprot.readBitSet(2);
6441 if (incoming.get(0)) {
6442 struct.ipAddress = iprot.readString();
6443 struct.setIpAddressIsSet(true);
6445 if (incoming.get(1)) {
6446 struct.rfc2385_sharedSecret = iprot.readString();
6447 struct.setRfc2385_sharedSecretIsSet(true);
6454 public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result> {
6455 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
6457 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);
6459 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6461 schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
6462 schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
6465 public int success; // required
6467 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6468 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6469 SUCCESS((short)0, "success");
6471 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6474 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6475 byName.put(field.getFieldName(), field);
6480 * Find the _Fields constant that matches fieldId, or null if its not found.
6482 public static _Fields findByThriftId(int fieldId) {
6492 * Find the _Fields constant that matches fieldId, throwing an exception
6493 * if it is not found.
6495 public static _Fields findByThriftIdOrThrow(int fieldId) {
6496 _Fields fields = findByThriftId(fieldId);
6497 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6502 * Find the _Fields constant that matches name, or null if its not found.
6504 public static _Fields findByName(String name) {
6505 return byName.get(name);
6508 private final short _thriftId;
6509 private final String _fieldName;
6511 _Fields(short thriftId, String fieldName) {
6512 _thriftId = thriftId;
6513 _fieldName = fieldName;
6516 public short getThriftFieldId() {
6520 public String getFieldName() {
6525 // isset id assignments
6526 private static final int __SUCCESS_ISSET_ID = 0;
6527 private byte __isset_bitfield = 0;
6528 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6530 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6531 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6532 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6533 metaDataMap = Collections.unmodifiableMap(tmpMap);
6534 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
6537 public setPeerSecret_result() {
6540 public setPeerSecret_result(
6544 this.success = success;
6545 setSuccessIsSet(true);
6549 * Performs a deep copy on <i>other</i>.
6551 public setPeerSecret_result(setPeerSecret_result other) {
6552 __isset_bitfield = other.__isset_bitfield;
6553 this.success = other.success;
6556 public setPeerSecret_result deepCopy() {
6557 return new setPeerSecret_result(this);
6561 public void clear() {
6562 setSuccessIsSet(false);
6566 public int getSuccess() {
6567 return this.success;
6570 public setPeerSecret_result setSuccess(int success) {
6571 this.success = success;
6572 setSuccessIsSet(true);
6576 public void unsetSuccess() {
6577 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6580 /** Returns true if field success is set (has been assigned a value) and false otherwise */
6581 public boolean isSetSuccess() {
6582 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6585 public void setSuccessIsSet(boolean value) {
6586 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6589 public void setFieldValue(_Fields field, Object value) {
6592 if (value == null) {
6595 setSuccess((Integer)value);
6602 public Object getFieldValue(_Fields field) {
6605 return Integer.valueOf(getSuccess());
6608 throw new IllegalStateException();
6611 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6612 public boolean isSet(_Fields field) {
6613 if (field == null) {
6614 throw new IllegalArgumentException();
6619 return isSetSuccess();
6621 throw new IllegalStateException();
6625 public boolean equals(Object that) {
6628 if (that instanceof setPeerSecret_result)
6629 return this.equals((setPeerSecret_result)that);
6633 public boolean equals(setPeerSecret_result that) {
6637 boolean this_present_success = true;
6638 boolean that_present_success = true;
6639 if (this_present_success || that_present_success) {
6640 if (!(this_present_success && that_present_success))
6642 if (this.success != that.success)
6650 public int hashCode() {
6655 public int compareTo(setPeerSecret_result other) {
6656 if (!getClass().equals(other.getClass())) {
6657 return getClass().getName().compareTo(other.getClass().getName());
6660 int lastComparison = 0;
6662 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6663 if (lastComparison != 0) {
6664 return lastComparison;
6666 if (isSetSuccess()) {
6667 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6668 if (lastComparison != 0) {
6669 return lastComparison;
6675 public _Fields fieldForId(int fieldId) {
6676 return _Fields.findByThriftId(fieldId);
6679 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6680 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6683 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6684 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6688 public String toString() {
6689 StringBuilder sb = new StringBuilder("setPeerSecret_result(");
6690 boolean first = true;
6692 sb.append("success:");
6693 sb.append(this.success);
6696 return sb.toString();
6699 public void validate() throws org.apache.thrift.TException {
6700 // check for required fields
6701 // check for sub-struct validity
6704 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6706 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6707 } catch (org.apache.thrift.TException te) {
6708 throw new java.io.IOException(te);
6712 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6714 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6715 __isset_bitfield = 0;
6716 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6717 } catch (org.apache.thrift.TException te) {
6718 throw new java.io.IOException(te);
6722 private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
6723 public setPeerSecret_resultStandardScheme getScheme() {
6724 return new setPeerSecret_resultStandardScheme();
6728 private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
6730 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6731 org.apache.thrift.protocol.TField schemeField;
6732 iprot.readStructBegin();
6735 schemeField = iprot.readFieldBegin();
6736 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6739 switch (schemeField.id) {
6741 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6742 struct.success = iprot.readI32();
6743 struct.setSuccessIsSet(true);
6745 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6749 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6751 iprot.readFieldEnd();
6753 iprot.readStructEnd();
6755 // check for required fields of primitive type, which can't be checked in the validate method
6759 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6762 oprot.writeStructBegin(STRUCT_DESC);
6763 if (struct.isSetSuccess()) {
6764 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6765 oprot.writeI32(struct.success);
6766 oprot.writeFieldEnd();
6768 oprot.writeFieldStop();
6769 oprot.writeStructEnd();
6774 private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
6775 public setPeerSecret_resultTupleScheme getScheme() {
6776 return new setPeerSecret_resultTupleScheme();
6780 private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
6783 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6784 TTupleProtocol oprot = (TTupleProtocol) prot;
6785 BitSet optionals = new BitSet();
6786 if (struct.isSetSuccess()) {
6789 oprot.writeBitSet(optionals, 1);
6790 if (struct.isSetSuccess()) {
6791 oprot.writeI32(struct.success);
6796 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
6797 TTupleProtocol iprot = (TTupleProtocol) prot;
6798 BitSet incoming = iprot.readBitSet(1);
6799 if (incoming.get(0)) {
6800 struct.success = iprot.readI32();
6801 struct.setSuccessIsSet(true);
6808 public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args> {
6809 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
6811 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);
6813 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6815 schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
6816 schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
6819 public String ipAddress; // required
6821 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6822 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6823 IP_ADDRESS((short)1, "ipAddress");
6825 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6828 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6829 byName.put(field.getFieldName(), field);
6834 * Find the _Fields constant that matches fieldId, or null if its not found.
6836 public static _Fields findByThriftId(int fieldId) {
6838 case 1: // IP_ADDRESS
6846 * Find the _Fields constant that matches fieldId, throwing an exception
6847 * if it is not found.
6849 public static _Fields findByThriftIdOrThrow(int fieldId) {
6850 _Fields fields = findByThriftId(fieldId);
6851 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6856 * Find the _Fields constant that matches name, or null if its not found.
6858 public static _Fields findByName(String name) {
6859 return byName.get(name);
6862 private final short _thriftId;
6863 private final String _fieldName;
6865 _Fields(short thriftId, String fieldName) {
6866 _thriftId = thriftId;
6867 _fieldName = fieldName;
6870 public short getThriftFieldId() {
6874 public String getFieldName() {
6879 // isset id assignments
6880 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6882 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6883 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6884 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6885 metaDataMap = Collections.unmodifiableMap(tmpMap);
6886 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
6889 public deletePeer_args() {
6892 public deletePeer_args(
6896 this.ipAddress = ipAddress;
6900 * Performs a deep copy on <i>other</i>.
6902 public deletePeer_args(deletePeer_args other) {
6903 if (other.isSetIpAddress()) {
6904 this.ipAddress = other.ipAddress;
6908 public deletePeer_args deepCopy() {
6909 return new deletePeer_args(this);
6913 public void clear() {
6914 this.ipAddress = null;
6917 public String getIpAddress() {
6918 return this.ipAddress;
6921 public deletePeer_args setIpAddress(String ipAddress) {
6922 this.ipAddress = ipAddress;
6926 public void unsetIpAddress() {
6927 this.ipAddress = null;
6930 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6931 public boolean isSetIpAddress() {
6932 return this.ipAddress != null;
6935 public void setIpAddressIsSet(boolean value) {
6937 this.ipAddress = null;
6941 public void setFieldValue(_Fields field, Object value) {
6944 if (value == null) {
6947 setIpAddress((String)value);
6954 public Object getFieldValue(_Fields field) {
6957 return getIpAddress();
6960 throw new IllegalStateException();
6963 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6964 public boolean isSet(_Fields field) {
6965 if (field == null) {
6966 throw new IllegalArgumentException();
6971 return isSetIpAddress();
6973 throw new IllegalStateException();
6977 public boolean equals(Object that) {
6980 if (that instanceof deletePeer_args)
6981 return this.equals((deletePeer_args)that);
6985 public boolean equals(deletePeer_args that) {
6989 boolean this_present_ipAddress = true && this.isSetIpAddress();
6990 boolean that_present_ipAddress = true && that.isSetIpAddress();
6991 if (this_present_ipAddress || that_present_ipAddress) {
6992 if (!(this_present_ipAddress && that_present_ipAddress))
6994 if (!this.ipAddress.equals(that.ipAddress))
7002 public int hashCode() {
7007 public int compareTo(deletePeer_args other) {
7008 if (!getClass().equals(other.getClass())) {
7009 return getClass().getName().compareTo(other.getClass().getName());
7012 int lastComparison = 0;
7014 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7015 if (lastComparison != 0) {
7016 return lastComparison;
7018 if (isSetIpAddress()) {
7019 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7020 if (lastComparison != 0) {
7021 return lastComparison;
7027 public _Fields fieldForId(int fieldId) {
7028 return _Fields.findByThriftId(fieldId);
7031 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7032 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7035 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7036 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7040 public String toString() {
7041 StringBuilder sb = new StringBuilder("deletePeer_args(");
7042 boolean first = true;
7044 sb.append("ipAddress:");
7045 if (this.ipAddress == null) {
7048 sb.append(this.ipAddress);
7052 return sb.toString();
7055 public void validate() throws org.apache.thrift.TException {
7056 // check for required fields
7057 // check for sub-struct validity
7060 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7062 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7063 } catch (org.apache.thrift.TException te) {
7064 throw new java.io.IOException(te);
7068 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7070 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7071 } catch (org.apache.thrift.TException te) {
7072 throw new java.io.IOException(te);
7076 private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7077 public deletePeer_argsStandardScheme getScheme() {
7078 return new deletePeer_argsStandardScheme();
7082 private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7084 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7085 org.apache.thrift.protocol.TField schemeField;
7086 iprot.readStructBegin();
7089 schemeField = iprot.readFieldBegin();
7090 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7093 switch (schemeField.id) {
7094 case 1: // IP_ADDRESS
7095 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7096 struct.ipAddress = iprot.readString();
7097 struct.setIpAddressIsSet(true);
7099 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7103 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7105 iprot.readFieldEnd();
7107 iprot.readStructEnd();
7109 // check for required fields of primitive type, which can't be checked in the validate method
7113 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7116 oprot.writeStructBegin(STRUCT_DESC);
7117 if (struct.ipAddress != null) {
7118 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7119 oprot.writeString(struct.ipAddress);
7120 oprot.writeFieldEnd();
7122 oprot.writeFieldStop();
7123 oprot.writeStructEnd();
7128 private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7129 public deletePeer_argsTupleScheme getScheme() {
7130 return new deletePeer_argsTupleScheme();
7134 private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7137 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7138 TTupleProtocol oprot = (TTupleProtocol) prot;
7139 BitSet optionals = new BitSet();
7140 if (struct.isSetIpAddress()) {
7143 oprot.writeBitSet(optionals, 1);
7144 if (struct.isSetIpAddress()) {
7145 oprot.writeString(struct.ipAddress);
7150 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7151 TTupleProtocol iprot = (TTupleProtocol) prot;
7152 BitSet incoming = iprot.readBitSet(1);
7153 if (incoming.get(0)) {
7154 struct.ipAddress = iprot.readString();
7155 struct.setIpAddressIsSet(true);
7162 public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result> {
7163 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
7165 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);
7167 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7169 schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
7170 schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
7173 public int success; // required
7175 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7176 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7177 SUCCESS((short)0, "success");
7179 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7182 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7183 byName.put(field.getFieldName(), field);
7188 * Find the _Fields constant that matches fieldId, or null if its not found.
7190 public static _Fields findByThriftId(int fieldId) {
7200 * Find the _Fields constant that matches fieldId, throwing an exception
7201 * if it is not found.
7203 public static _Fields findByThriftIdOrThrow(int fieldId) {
7204 _Fields fields = findByThriftId(fieldId);
7205 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7210 * Find the _Fields constant that matches name, or null if its not found.
7212 public static _Fields findByName(String name) {
7213 return byName.get(name);
7216 private final short _thriftId;
7217 private final String _fieldName;
7219 _Fields(short thriftId, String fieldName) {
7220 _thriftId = thriftId;
7221 _fieldName = fieldName;
7224 public short getThriftFieldId() {
7228 public String getFieldName() {
7233 // isset id assignments
7234 private static final int __SUCCESS_ISSET_ID = 0;
7235 private byte __isset_bitfield = 0;
7236 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7238 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7239 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7240 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7241 metaDataMap = Collections.unmodifiableMap(tmpMap);
7242 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
7245 public deletePeer_result() {
7248 public deletePeer_result(
7252 this.success = success;
7253 setSuccessIsSet(true);
7257 * Performs a deep copy on <i>other</i>.
7259 public deletePeer_result(deletePeer_result other) {
7260 __isset_bitfield = other.__isset_bitfield;
7261 this.success = other.success;
7264 public deletePeer_result deepCopy() {
7265 return new deletePeer_result(this);
7269 public void clear() {
7270 setSuccessIsSet(false);
7274 public int getSuccess() {
7275 return this.success;
7278 public deletePeer_result setSuccess(int success) {
7279 this.success = success;
7280 setSuccessIsSet(true);
7284 public void unsetSuccess() {
7285 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7288 /** Returns true if field success is set (has been assigned a value) and false otherwise */
7289 public boolean isSetSuccess() {
7290 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7293 public void setSuccessIsSet(boolean value) {
7294 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7297 public void setFieldValue(_Fields field, Object value) {
7300 if (value == null) {
7303 setSuccess((Integer)value);
7310 public Object getFieldValue(_Fields field) {
7313 return Integer.valueOf(getSuccess());
7316 throw new IllegalStateException();
7319 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7320 public boolean isSet(_Fields field) {
7321 if (field == null) {
7322 throw new IllegalArgumentException();
7327 return isSetSuccess();
7329 throw new IllegalStateException();
7333 public boolean equals(Object that) {
7336 if (that instanceof deletePeer_result)
7337 return this.equals((deletePeer_result)that);
7341 public boolean equals(deletePeer_result that) {
7345 boolean this_present_success = true;
7346 boolean that_present_success = true;
7347 if (this_present_success || that_present_success) {
7348 if (!(this_present_success && that_present_success))
7350 if (this.success != that.success)
7358 public int hashCode() {
7363 public int compareTo(deletePeer_result other) {
7364 if (!getClass().equals(other.getClass())) {
7365 return getClass().getName().compareTo(other.getClass().getName());
7368 int lastComparison = 0;
7370 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7371 if (lastComparison != 0) {
7372 return lastComparison;
7374 if (isSetSuccess()) {
7375 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7376 if (lastComparison != 0) {
7377 return lastComparison;
7383 public _Fields fieldForId(int fieldId) {
7384 return _Fields.findByThriftId(fieldId);
7387 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7388 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7391 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7392 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7396 public String toString() {
7397 StringBuilder sb = new StringBuilder("deletePeer_result(");
7398 boolean first = true;
7400 sb.append("success:");
7401 sb.append(this.success);
7404 return sb.toString();
7407 public void validate() throws org.apache.thrift.TException {
7408 // check for required fields
7409 // check for sub-struct validity
7412 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7414 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7415 } catch (org.apache.thrift.TException te) {
7416 throw new java.io.IOException(te);
7420 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7422 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7423 __isset_bitfield = 0;
7424 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7425 } catch (org.apache.thrift.TException te) {
7426 throw new java.io.IOException(te);
7430 private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
7431 public deletePeer_resultStandardScheme getScheme() {
7432 return new deletePeer_resultStandardScheme();
7436 private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
7438 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
7439 org.apache.thrift.protocol.TField schemeField;
7440 iprot.readStructBegin();
7443 schemeField = iprot.readFieldBegin();
7444 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7447 switch (schemeField.id) {
7449 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7450 struct.success = iprot.readI32();
7451 struct.setSuccessIsSet(true);
7453 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7457 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7459 iprot.readFieldEnd();
7461 iprot.readStructEnd();
7463 // check for required fields of primitive type, which can't be checked in the validate method
7467 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
7470 oprot.writeStructBegin(STRUCT_DESC);
7471 if (struct.isSetSuccess()) {
7472 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7473 oprot.writeI32(struct.success);
7474 oprot.writeFieldEnd();
7476 oprot.writeFieldStop();
7477 oprot.writeStructEnd();
7482 private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
7483 public deletePeer_resultTupleScheme getScheme() {
7484 return new deletePeer_resultTupleScheme();
7488 private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
7491 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
7492 TTupleProtocol oprot = (TTupleProtocol) prot;
7493 BitSet optionals = new BitSet();
7494 if (struct.isSetSuccess()) {
7497 oprot.writeBitSet(optionals, 1);
7498 if (struct.isSetSuccess()) {
7499 oprot.writeI32(struct.success);
7504 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
7505 TTupleProtocol iprot = (TTupleProtocol) prot;
7506 BitSet incoming = iprot.readBitSet(1);
7507 if (incoming.get(0)) {
7508 struct.success = iprot.readI32();
7509 struct.setSuccessIsSet(true);
7516 public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args> {
7517 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
7519 private static final org.apache.thrift.protocol.TField L_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("l_type", org.apache.thrift.protocol.TType.I32, (short)1);
7520 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);
7521 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)3);
7522 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)4);
7524 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7526 schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
7527 schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
7534 public layer_type l_type; // required
7535 public String rd; // required
7536 public List<String> irts; // required
7537 public List<String> erts; // required
7539 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7540 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7545 L_TYPE((short)1, "l_type"),
7547 IRTS((short)3, "irts"),
7548 ERTS((short)4, "erts");
7550 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7553 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7554 byName.put(field.getFieldName(), field);
7559 * Find the _Fields constant that matches fieldId, or null if its not found.
7561 public static _Fields findByThriftId(int fieldId) {
7577 * Find the _Fields constant that matches fieldId, throwing an exception
7578 * if it is not found.
7580 public static _Fields findByThriftIdOrThrow(int fieldId) {
7581 _Fields fields = findByThriftId(fieldId);
7582 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7587 * Find the _Fields constant that matches name, or null if its not found.
7589 public static _Fields findByName(String name) {
7590 return byName.get(name);
7593 private final short _thriftId;
7594 private final String _fieldName;
7596 _Fields(short thriftId, String fieldName) {
7597 _thriftId = thriftId;
7598 _fieldName = fieldName;
7601 public short getThriftFieldId() {
7605 public String getFieldName() {
7610 // isset id assignments
7611 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7613 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7614 tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
7615 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
7616 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
7617 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7618 tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
7619 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
7620 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7621 tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
7622 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
7623 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7624 metaDataMap = Collections.unmodifiableMap(tmpMap);
7625 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
7628 public addVrf_args() {
7638 this.l_type = l_type;
7645 * Performs a deep copy on <i>other</i>.
7647 public addVrf_args(addVrf_args other) {
7648 if (other.isSetL_type()) {
7649 this.l_type = other.l_type;
7651 if (other.isSetRd()) {
7654 if (other.isSetIrts()) {
7655 List<String> __this__irts = new ArrayList<String>(other.irts);
7656 this.irts = __this__irts;
7658 if (other.isSetErts()) {
7659 List<String> __this__erts = new ArrayList<String>(other.erts);
7660 this.erts = __this__erts;
7664 public addVrf_args deepCopy() {
7665 return new addVrf_args(this);
7669 public void clear() {
7680 public layer_type getL_type() {
7688 public addVrf_args setL_type(layer_type l_type) {
7689 this.l_type = l_type;
7693 public void unsetL_type() {
7697 /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
7698 public boolean isSetL_type() {
7699 return this.l_type != null;
7702 public void setL_typeIsSet(boolean value) {
7708 public String getRd() {
7712 public addVrf_args setRd(String rd) {
7717 public void unsetRd() {
7721 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
7722 public boolean isSetRd() {
7723 return this.rd != null;
7726 public void setRdIsSet(boolean value) {
7732 public int getIrtsSize() {
7733 return (this.irts == null) ? 0 : this.irts.size();
7736 public java.util.Iterator<String> getIrtsIterator() {
7737 return (this.irts == null) ? null : this.irts.iterator();
7740 public void addToIrts(String elem) {
7741 if (this.irts == null) {
7742 this.irts = new ArrayList<String>();
7744 this.irts.add(elem);
7747 public List<String> getIrts() {
7751 public addVrf_args setIrts(List<String> irts) {
7756 public void unsetIrts() {
7760 /** Returns true if field irts is set (has been assigned a value) and false otherwise */
7761 public boolean isSetIrts() {
7762 return this.irts != null;
7765 public void setIrtsIsSet(boolean value) {
7771 public int getErtsSize() {
7772 return (this.erts == null) ? 0 : this.erts.size();
7775 public java.util.Iterator<String> getErtsIterator() {
7776 return (this.erts == null) ? null : this.erts.iterator();
7779 public void addToErts(String elem) {
7780 if (this.erts == null) {
7781 this.erts = new ArrayList<String>();
7783 this.erts.add(elem);
7786 public List<String> getErts() {
7790 public addVrf_args setErts(List<String> erts) {
7795 public void unsetErts() {
7799 /** Returns true if field erts is set (has been assigned a value) and false otherwise */
7800 public boolean isSetErts() {
7801 return this.erts != null;
7804 public void setErtsIsSet(boolean value) {
7810 public void setFieldValue(_Fields field, Object value) {
7813 if (value == null) {
7816 setL_type((layer_type)value);
7821 if (value == null) {
7824 setRd((String)value);
7829 if (value == null) {
7832 setIrts((List<String>)value);
7837 if (value == null) {
7840 setErts((List<String>)value);
7847 public Object getFieldValue(_Fields field) {
7862 throw new IllegalStateException();
7865 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7866 public boolean isSet(_Fields field) {
7867 if (field == null) {
7868 throw new IllegalArgumentException();
7873 return isSetL_type();
7881 throw new IllegalStateException();
7885 public boolean equals(Object that) {
7888 if (that instanceof addVrf_args)
7889 return this.equals((addVrf_args)that);
7893 public boolean equals(addVrf_args that) {
7897 boolean this_present_l_type = true && this.isSetL_type();
7898 boolean that_present_l_type = true && that.isSetL_type();
7899 if (this_present_l_type || that_present_l_type) {
7900 if (!(this_present_l_type && that_present_l_type))
7902 if (!this.l_type.equals(that.l_type))
7906 boolean this_present_rd = true && this.isSetRd();
7907 boolean that_present_rd = true && that.isSetRd();
7908 if (this_present_rd || that_present_rd) {
7909 if (!(this_present_rd && that_present_rd))
7911 if (!this.rd.equals(that.rd))
7915 boolean this_present_irts = true && this.isSetIrts();
7916 boolean that_present_irts = true && that.isSetIrts();
7917 if (this_present_irts || that_present_irts) {
7918 if (!(this_present_irts && that_present_irts))
7920 if (!this.irts.equals(that.irts))
7924 boolean this_present_erts = true && this.isSetErts();
7925 boolean that_present_erts = true && that.isSetErts();
7926 if (this_present_erts || that_present_erts) {
7927 if (!(this_present_erts && that_present_erts))
7929 if (!this.erts.equals(that.erts))
7937 public int hashCode() {
7942 public int compareTo(addVrf_args other) {
7943 if (!getClass().equals(other.getClass())) {
7944 return getClass().getName().compareTo(other.getClass().getName());
7947 int lastComparison = 0;
7949 lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
7950 if (lastComparison != 0) {
7951 return lastComparison;
7953 if (isSetL_type()) {
7954 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
7955 if (lastComparison != 0) {
7956 return lastComparison;
7959 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
7960 if (lastComparison != 0) {
7961 return lastComparison;
7964 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
7965 if (lastComparison != 0) {
7966 return lastComparison;
7969 lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
7970 if (lastComparison != 0) {
7971 return lastComparison;
7974 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
7975 if (lastComparison != 0) {
7976 return lastComparison;
7979 lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
7980 if (lastComparison != 0) {
7981 return lastComparison;
7984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
7985 if (lastComparison != 0) {
7986 return lastComparison;
7992 public _Fields fieldForId(int fieldId) {
7993 return _Fields.findByThriftId(fieldId);
7996 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7997 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8000 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8001 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8005 public String toString() {
8006 StringBuilder sb = new StringBuilder("addVrf_args(");
8007 boolean first = true;
8009 sb.append("l_type:");
8010 if (this.l_type == null) {
8013 sb.append(this.l_type);
8016 if (!first) sb.append(", ");
8018 if (this.rd == null) {
8024 if (!first) sb.append(", ");
8026 if (this.irts == null) {
8029 sb.append(this.irts);
8032 if (!first) sb.append(", ");
8034 if (this.erts == null) {
8037 sb.append(this.erts);
8041 return sb.toString();
8044 public void validate() throws org.apache.thrift.TException {
8045 // check for required fields
8046 // check for sub-struct validity
8049 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8051 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8052 } catch (org.apache.thrift.TException te) {
8053 throw new java.io.IOException(te);
8057 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8059 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8060 } catch (org.apache.thrift.TException te) {
8061 throw new java.io.IOException(te);
8065 private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
8066 public addVrf_argsStandardScheme getScheme() {
8067 return new addVrf_argsStandardScheme();
8071 private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
8073 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
8074 org.apache.thrift.protocol.TField schemeField;
8075 iprot.readStructBegin();
8078 schemeField = iprot.readFieldBegin();
8079 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8082 switch (schemeField.id) {
8084 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8085 struct.l_type = layer_type.findByValue(iprot.readI32());
8086 struct.setL_typeIsSet(true);
8088 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8092 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8093 struct.rd = iprot.readString();
8094 struct.setRdIsSet(true);
8096 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8100 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
8102 org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
8103 struct.irts = new ArrayList<String>(_list8.size);
8104 for (int _i9 = 0; _i9 < _list8.size; ++_i9)
8107 _elem10 = iprot.readString();
8108 struct.irts.add(_elem10);
8110 iprot.readListEnd();
8112 struct.setIrtsIsSet(true);
8114 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8118 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
8120 org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
8121 struct.erts = new ArrayList<String>(_list11.size);
8122 for (int _i12 = 0; _i12 < _list11.size; ++_i12)
8125 _elem13 = iprot.readString();
8126 struct.erts.add(_elem13);
8128 iprot.readListEnd();
8130 struct.setErtsIsSet(true);
8132 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8136 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8138 iprot.readFieldEnd();
8140 iprot.readStructEnd();
8142 // check for required fields of primitive type, which can't be checked in the validate method
8146 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
8149 oprot.writeStructBegin(STRUCT_DESC);
8150 if (struct.l_type != null) {
8151 oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
8152 oprot.writeI32(struct.l_type.getValue());
8153 oprot.writeFieldEnd();
8155 if (struct.rd != null) {
8156 oprot.writeFieldBegin(RD_FIELD_DESC);
8157 oprot.writeString(struct.rd);
8158 oprot.writeFieldEnd();
8160 if (struct.irts != null) {
8161 oprot.writeFieldBegin(IRTS_FIELD_DESC);
8163 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
8164 for (String _iter14 : struct.irts)
8166 oprot.writeString(_iter14);
8168 oprot.writeListEnd();
8170 oprot.writeFieldEnd();
8172 if (struct.erts != null) {
8173 oprot.writeFieldBegin(ERTS_FIELD_DESC);
8175 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
8176 for (String _iter15 : struct.erts)
8178 oprot.writeString(_iter15);
8180 oprot.writeListEnd();
8182 oprot.writeFieldEnd();
8184 oprot.writeFieldStop();
8185 oprot.writeStructEnd();
8190 private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
8191 public addVrf_argsTupleScheme getScheme() {
8192 return new addVrf_argsTupleScheme();
8196 private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
8199 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
8200 TTupleProtocol oprot = (TTupleProtocol) prot;
8201 BitSet optionals = new BitSet();
8202 if (struct.isSetL_type()) {
8205 if (struct.isSetRd()) {
8208 if (struct.isSetIrts()) {
8211 if (struct.isSetErts()) {
8214 oprot.writeBitSet(optionals, 4);
8215 if (struct.isSetL_type()) {
8216 oprot.writeI32(struct.l_type.getValue());
8218 if (struct.isSetRd()) {
8219 oprot.writeString(struct.rd);
8221 if (struct.isSetIrts()) {
8223 oprot.writeI32(struct.irts.size());
8224 for (String _iter16 : struct.irts)
8226 oprot.writeString(_iter16);
8230 if (struct.isSetErts()) {
8232 oprot.writeI32(struct.erts.size());
8233 for (String _iter17 : struct.erts)
8235 oprot.writeString(_iter17);
8242 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
8243 TTupleProtocol iprot = (TTupleProtocol) prot;
8244 BitSet incoming = iprot.readBitSet(4);
8245 if (incoming.get(0)) {
8246 struct.l_type = layer_type.findByValue(iprot.readI32());
8247 struct.setL_typeIsSet(true);
8249 if (incoming.get(1)) {
8250 struct.rd = iprot.readString();
8251 struct.setRdIsSet(true);
8253 if (incoming.get(2)) {
8255 org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
8256 struct.irts = new ArrayList<String>(_list18.size);
8257 for (int _i19 = 0; _i19 < _list18.size; ++_i19)
8260 _elem20 = iprot.readString();
8261 struct.irts.add(_elem20);
8264 struct.setIrtsIsSet(true);
8266 if (incoming.get(3)) {
8268 org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
8269 struct.erts = new ArrayList<String>(_list21.size);
8270 for (int _i22 = 0; _i22 < _list21.size; ++_i22)
8273 _elem23 = iprot.readString();
8274 struct.erts.add(_elem23);
8277 struct.setErtsIsSet(true);
8284 public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result> {
8285 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
8287 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);
8289 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8291 schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
8292 schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
8295 public int success; // required
8297 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8298 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8299 SUCCESS((short)0, "success");
8301 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8304 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8305 byName.put(field.getFieldName(), field);
8310 * Find the _Fields constant that matches fieldId, or null if its not found.
8312 public static _Fields findByThriftId(int fieldId) {
8322 * Find the _Fields constant that matches fieldId, throwing an exception
8323 * if it is not found.
8325 public static _Fields findByThriftIdOrThrow(int fieldId) {
8326 _Fields fields = findByThriftId(fieldId);
8327 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8332 * Find the _Fields constant that matches name, or null if its not found.
8334 public static _Fields findByName(String name) {
8335 return byName.get(name);
8338 private final short _thriftId;
8339 private final String _fieldName;
8341 _Fields(short thriftId, String fieldName) {
8342 _thriftId = thriftId;
8343 _fieldName = fieldName;
8346 public short getThriftFieldId() {
8350 public String getFieldName() {
8355 // isset id assignments
8356 private static final int __SUCCESS_ISSET_ID = 0;
8357 private byte __isset_bitfield = 0;
8358 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8360 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8361 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8362 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8363 metaDataMap = Collections.unmodifiableMap(tmpMap);
8364 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
8367 public addVrf_result() {
8370 public addVrf_result(
8374 this.success = success;
8375 setSuccessIsSet(true);
8379 * Performs a deep copy on <i>other</i>.
8381 public addVrf_result(addVrf_result other) {
8382 __isset_bitfield = other.__isset_bitfield;
8383 this.success = other.success;
8386 public addVrf_result deepCopy() {
8387 return new addVrf_result(this);
8391 public void clear() {
8392 setSuccessIsSet(false);
8396 public int getSuccess() {
8397 return this.success;
8400 public addVrf_result setSuccess(int success) {
8401 this.success = success;
8402 setSuccessIsSet(true);
8406 public void unsetSuccess() {
8407 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8410 /** Returns true if field success is set (has been assigned a value) and false otherwise */
8411 public boolean isSetSuccess() {
8412 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8415 public void setSuccessIsSet(boolean value) {
8416 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8419 public void setFieldValue(_Fields field, Object value) {
8422 if (value == null) {
8425 setSuccess((Integer)value);
8432 public Object getFieldValue(_Fields field) {
8435 return Integer.valueOf(getSuccess());
8438 throw new IllegalStateException();
8441 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8442 public boolean isSet(_Fields field) {
8443 if (field == null) {
8444 throw new IllegalArgumentException();
8449 return isSetSuccess();
8451 throw new IllegalStateException();
8455 public boolean equals(Object that) {
8458 if (that instanceof addVrf_result)
8459 return this.equals((addVrf_result)that);
8463 public boolean equals(addVrf_result that) {
8467 boolean this_present_success = true;
8468 boolean that_present_success = true;
8469 if (this_present_success || that_present_success) {
8470 if (!(this_present_success && that_present_success))
8472 if (this.success != that.success)
8480 public int hashCode() {
8485 public int compareTo(addVrf_result other) {
8486 if (!getClass().equals(other.getClass())) {
8487 return getClass().getName().compareTo(other.getClass().getName());
8490 int lastComparison = 0;
8492 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8493 if (lastComparison != 0) {
8494 return lastComparison;
8496 if (isSetSuccess()) {
8497 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8498 if (lastComparison != 0) {
8499 return lastComparison;
8505 public _Fields fieldForId(int fieldId) {
8506 return _Fields.findByThriftId(fieldId);
8509 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8510 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8513 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8514 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8518 public String toString() {
8519 StringBuilder sb = new StringBuilder("addVrf_result(");
8520 boolean first = true;
8522 sb.append("success:");
8523 sb.append(this.success);
8526 return sb.toString();
8529 public void validate() throws org.apache.thrift.TException {
8530 // check for required fields
8531 // check for sub-struct validity
8534 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8536 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8537 } catch (org.apache.thrift.TException te) {
8538 throw new java.io.IOException(te);
8542 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8544 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8545 __isset_bitfield = 0;
8546 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8547 } catch (org.apache.thrift.TException te) {
8548 throw new java.io.IOException(te);
8552 private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
8553 public addVrf_resultStandardScheme getScheme() {
8554 return new addVrf_resultStandardScheme();
8558 private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
8560 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
8561 org.apache.thrift.protocol.TField schemeField;
8562 iprot.readStructBegin();
8565 schemeField = iprot.readFieldBegin();
8566 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8569 switch (schemeField.id) {
8571 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8572 struct.success = iprot.readI32();
8573 struct.setSuccessIsSet(true);
8575 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8579 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8581 iprot.readFieldEnd();
8583 iprot.readStructEnd();
8585 // check for required fields of primitive type, which can't be checked in the validate method
8589 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
8592 oprot.writeStructBegin(STRUCT_DESC);
8593 if (struct.isSetSuccess()) {
8594 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8595 oprot.writeI32(struct.success);
8596 oprot.writeFieldEnd();
8598 oprot.writeFieldStop();
8599 oprot.writeStructEnd();
8604 private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
8605 public addVrf_resultTupleScheme getScheme() {
8606 return new addVrf_resultTupleScheme();
8610 private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
8613 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
8614 TTupleProtocol oprot = (TTupleProtocol) prot;
8615 BitSet optionals = new BitSet();
8616 if (struct.isSetSuccess()) {
8619 oprot.writeBitSet(optionals, 1);
8620 if (struct.isSetSuccess()) {
8621 oprot.writeI32(struct.success);
8626 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
8627 TTupleProtocol iprot = (TTupleProtocol) prot;
8628 BitSet incoming = iprot.readBitSet(1);
8629 if (incoming.get(0)) {
8630 struct.success = iprot.readI32();
8631 struct.setSuccessIsSet(true);
8638 public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args> {
8639 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
8641 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);
8643 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8645 schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
8646 schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
8649 public String rd; // required
8651 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8652 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8655 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8658 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8659 byName.put(field.getFieldName(), field);
8664 * Find the _Fields constant that matches fieldId, or null if its not found.
8666 public static _Fields findByThriftId(int fieldId) {
8676 * Find the _Fields constant that matches fieldId, throwing an exception
8677 * if it is not found.
8679 public static _Fields findByThriftIdOrThrow(int fieldId) {
8680 _Fields fields = findByThriftId(fieldId);
8681 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8686 * Find the _Fields constant that matches name, or null if its not found.
8688 public static _Fields findByName(String name) {
8689 return byName.get(name);
8692 private final short _thriftId;
8693 private final String _fieldName;
8695 _Fields(short thriftId, String fieldName) {
8696 _thriftId = thriftId;
8697 _fieldName = fieldName;
8700 public short getThriftFieldId() {
8704 public String getFieldName() {
8709 // isset id assignments
8710 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8712 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8713 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8714 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8715 metaDataMap = Collections.unmodifiableMap(tmpMap);
8716 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
8719 public delVrf_args() {
8730 * Performs a deep copy on <i>other</i>.
8732 public delVrf_args(delVrf_args other) {
8733 if (other.isSetRd()) {
8738 public delVrf_args deepCopy() {
8739 return new delVrf_args(this);
8743 public void clear() {
8747 public String getRd() {
8751 public delVrf_args setRd(String rd) {
8756 public void unsetRd() {
8760 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8761 public boolean isSetRd() {
8762 return this.rd != null;
8765 public void setRdIsSet(boolean value) {
8771 public void setFieldValue(_Fields field, Object value) {
8774 if (value == null) {
8777 setRd((String)value);
8784 public Object getFieldValue(_Fields field) {
8790 throw new IllegalStateException();
8793 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8794 public boolean isSet(_Fields field) {
8795 if (field == null) {
8796 throw new IllegalArgumentException();
8803 throw new IllegalStateException();
8807 public boolean equals(Object that) {
8810 if (that instanceof delVrf_args)
8811 return this.equals((delVrf_args)that);
8815 public boolean equals(delVrf_args that) {
8819 boolean this_present_rd = true && this.isSetRd();
8820 boolean that_present_rd = true && that.isSetRd();
8821 if (this_present_rd || that_present_rd) {
8822 if (!(this_present_rd && that_present_rd))
8824 if (!this.rd.equals(that.rd))
8832 public int hashCode() {
8837 public int compareTo(delVrf_args other) {
8838 if (!getClass().equals(other.getClass())) {
8839 return getClass().getName().compareTo(other.getClass().getName());
8842 int lastComparison = 0;
8844 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8845 if (lastComparison != 0) {
8846 return lastComparison;
8849 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8850 if (lastComparison != 0) {
8851 return lastComparison;
8857 public _Fields fieldForId(int fieldId) {
8858 return _Fields.findByThriftId(fieldId);
8861 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8862 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8865 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8866 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8870 public String toString() {
8871 StringBuilder sb = new StringBuilder("delVrf_args(");
8872 boolean first = true;
8875 if (this.rd == null) {
8882 return sb.toString();
8885 public void validate() throws org.apache.thrift.TException {
8886 // check for required fields
8887 // check for sub-struct validity
8890 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8892 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8893 } catch (org.apache.thrift.TException te) {
8894 throw new java.io.IOException(te);
8898 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8900 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8901 } catch (org.apache.thrift.TException te) {
8902 throw new java.io.IOException(te);
8906 private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
8907 public delVrf_argsStandardScheme getScheme() {
8908 return new delVrf_argsStandardScheme();
8912 private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
8914 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
8915 org.apache.thrift.protocol.TField schemeField;
8916 iprot.readStructBegin();
8919 schemeField = iprot.readFieldBegin();
8920 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8923 switch (schemeField.id) {
8925 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
8926 struct.rd = iprot.readString();
8927 struct.setRdIsSet(true);
8929 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8933 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8935 iprot.readFieldEnd();
8937 iprot.readStructEnd();
8939 // check for required fields of primitive type, which can't be checked in the validate method
8943 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
8946 oprot.writeStructBegin(STRUCT_DESC);
8947 if (struct.rd != null) {
8948 oprot.writeFieldBegin(RD_FIELD_DESC);
8949 oprot.writeString(struct.rd);
8950 oprot.writeFieldEnd();
8952 oprot.writeFieldStop();
8953 oprot.writeStructEnd();
8958 private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
8959 public delVrf_argsTupleScheme getScheme() {
8960 return new delVrf_argsTupleScheme();
8964 private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
8967 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
8968 TTupleProtocol oprot = (TTupleProtocol) prot;
8969 BitSet optionals = new BitSet();
8970 if (struct.isSetRd()) {
8973 oprot.writeBitSet(optionals, 1);
8974 if (struct.isSetRd()) {
8975 oprot.writeString(struct.rd);
8980 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
8981 TTupleProtocol iprot = (TTupleProtocol) prot;
8982 BitSet incoming = iprot.readBitSet(1);
8983 if (incoming.get(0)) {
8984 struct.rd = iprot.readString();
8985 struct.setRdIsSet(true);
8992 public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result> {
8993 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
8995 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);
8997 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8999 schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
9000 schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
9003 public int success; // required
9005 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9006 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9007 SUCCESS((short)0, "success");
9009 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9012 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9013 byName.put(field.getFieldName(), field);
9018 * Find the _Fields constant that matches fieldId, or null if its not found.
9020 public static _Fields findByThriftId(int fieldId) {
9030 * Find the _Fields constant that matches fieldId, throwing an exception
9031 * if it is not found.
9033 public static _Fields findByThriftIdOrThrow(int fieldId) {
9034 _Fields fields = findByThriftId(fieldId);
9035 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9040 * Find the _Fields constant that matches name, or null if its not found.
9042 public static _Fields findByName(String name) {
9043 return byName.get(name);
9046 private final short _thriftId;
9047 private final String _fieldName;
9049 _Fields(short thriftId, String fieldName) {
9050 _thriftId = thriftId;
9051 _fieldName = fieldName;
9054 public short getThriftFieldId() {
9058 public String getFieldName() {
9063 // isset id assignments
9064 private static final int __SUCCESS_ISSET_ID = 0;
9065 private byte __isset_bitfield = 0;
9066 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9068 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9069 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9070 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9071 metaDataMap = Collections.unmodifiableMap(tmpMap);
9072 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
9075 public delVrf_result() {
9078 public delVrf_result(
9082 this.success = success;
9083 setSuccessIsSet(true);
9087 * Performs a deep copy on <i>other</i>.
9089 public delVrf_result(delVrf_result other) {
9090 __isset_bitfield = other.__isset_bitfield;
9091 this.success = other.success;
9094 public delVrf_result deepCopy() {
9095 return new delVrf_result(this);
9099 public void clear() {
9100 setSuccessIsSet(false);
9104 public int getSuccess() {
9105 return this.success;
9108 public delVrf_result setSuccess(int success) {
9109 this.success = success;
9110 setSuccessIsSet(true);
9114 public void unsetSuccess() {
9115 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9118 /** Returns true if field success is set (has been assigned a value) and false otherwise */
9119 public boolean isSetSuccess() {
9120 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9123 public void setSuccessIsSet(boolean value) {
9124 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9127 public void setFieldValue(_Fields field, Object value) {
9130 if (value == null) {
9133 setSuccess((Integer)value);
9140 public Object getFieldValue(_Fields field) {
9143 return Integer.valueOf(getSuccess());
9146 throw new IllegalStateException();
9149 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9150 public boolean isSet(_Fields field) {
9151 if (field == null) {
9152 throw new IllegalArgumentException();
9157 return isSetSuccess();
9159 throw new IllegalStateException();
9163 public boolean equals(Object that) {
9166 if (that instanceof delVrf_result)
9167 return this.equals((delVrf_result)that);
9171 public boolean equals(delVrf_result that) {
9175 boolean this_present_success = true;
9176 boolean that_present_success = true;
9177 if (this_present_success || that_present_success) {
9178 if (!(this_present_success && that_present_success))
9180 if (this.success != that.success)
9188 public int hashCode() {
9193 public int compareTo(delVrf_result other) {
9194 if (!getClass().equals(other.getClass())) {
9195 return getClass().getName().compareTo(other.getClass().getName());
9198 int lastComparison = 0;
9200 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9201 if (lastComparison != 0) {
9202 return lastComparison;
9204 if (isSetSuccess()) {
9205 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9206 if (lastComparison != 0) {
9207 return lastComparison;
9213 public _Fields fieldForId(int fieldId) {
9214 return _Fields.findByThriftId(fieldId);
9217 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9218 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9221 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9222 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9226 public String toString() {
9227 StringBuilder sb = new StringBuilder("delVrf_result(");
9228 boolean first = true;
9230 sb.append("success:");
9231 sb.append(this.success);
9234 return sb.toString();
9237 public void validate() throws org.apache.thrift.TException {
9238 // check for required fields
9239 // check for sub-struct validity
9242 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9244 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9245 } catch (org.apache.thrift.TException te) {
9246 throw new java.io.IOException(te);
9250 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9252 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9253 __isset_bitfield = 0;
9254 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9255 } catch (org.apache.thrift.TException te) {
9256 throw new java.io.IOException(te);
9260 private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
9261 public delVrf_resultStandardScheme getScheme() {
9262 return new delVrf_resultStandardScheme();
9266 private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
9268 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
9269 org.apache.thrift.protocol.TField schemeField;
9270 iprot.readStructBegin();
9273 schemeField = iprot.readFieldBegin();
9274 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9277 switch (schemeField.id) {
9279 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9280 struct.success = iprot.readI32();
9281 struct.setSuccessIsSet(true);
9283 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9287 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9289 iprot.readFieldEnd();
9291 iprot.readStructEnd();
9293 // check for required fields of primitive type, which can't be checked in the validate method
9297 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
9300 oprot.writeStructBegin(STRUCT_DESC);
9301 if (struct.isSetSuccess()) {
9302 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9303 oprot.writeI32(struct.success);
9304 oprot.writeFieldEnd();
9306 oprot.writeFieldStop();
9307 oprot.writeStructEnd();
9312 private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
9313 public delVrf_resultTupleScheme getScheme() {
9314 return new delVrf_resultTupleScheme();
9318 private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
9321 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
9322 TTupleProtocol oprot = (TTupleProtocol) prot;
9323 BitSet optionals = new BitSet();
9324 if (struct.isSetSuccess()) {
9327 oprot.writeBitSet(optionals, 1);
9328 if (struct.isSetSuccess()) {
9329 oprot.writeI32(struct.success);
9334 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
9335 TTupleProtocol iprot = (TTupleProtocol) prot;
9336 BitSet incoming = iprot.readBitSet(1);
9337 if (incoming.get(0)) {
9338 struct.success = iprot.readI32();
9339 struct.setSuccessIsSet(true);
9346 public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args> {
9347 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
9349 private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
9350 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
9351 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)3);
9352 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)4);
9353 private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)5);
9354 private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)6);
9355 private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)7);
9356 private static final org.apache.thrift.protocol.TField L3LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l3label", org.apache.thrift.protocol.TType.I32, (short)8);
9357 private static final org.apache.thrift.protocol.TField L2LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("l2label", org.apache.thrift.protocol.TType.I32, (short)9);
9358 private static final org.apache.thrift.protocol.TField ENC_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("enc_type", org.apache.thrift.protocol.TType.I32, (short)10);
9359 private static final org.apache.thrift.protocol.TField ROUTERMAC_FIELD_DESC = new org.apache.thrift.protocol.TField("routermac", org.apache.thrift.protocol.TType.STRING, (short)11);
9361 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9363 schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
9364 schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
9369 * @see protocol_type
9371 public protocol_type p_type; // required
9372 public String prefix; // required
9373 public String nexthop; // required
9374 public String rd; // required
9375 public int ethtag; // required
9376 public String esi; // required
9377 public String macaddress; // required
9378 public int l3label; // required
9379 public int l2label; // required
9384 public encap_type enc_type; // required
9385 public String routermac; // required
9387 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9388 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9391 * @see protocol_type
9393 P_TYPE((short)1, "p_type"),
9394 PREFIX((short)2, "prefix"),
9395 NEXTHOP((short)3, "nexthop"),
9397 ETHTAG((short)5, "ethtag"),
9398 ESI((short)6, "esi"),
9399 MACADDRESS((short)7, "macaddress"),
9400 L3LABEL((short)8, "l3label"),
9401 L2LABEL((short)9, "l2label"),
9406 ENC_TYPE((short)10, "enc_type"),
9407 ROUTERMAC((short)11, "routermac");
9409 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9412 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9413 byName.put(field.getFieldName(), field);
9418 * Find the _Fields constant that matches fieldId, or null if its not found.
9420 public static _Fields findByThriftId(int fieldId) {
9434 case 7: // MACADDRESS
9440 case 10: // ENC_TYPE
9442 case 11: // ROUTERMAC
9450 * Find the _Fields constant that matches fieldId, throwing an exception
9451 * if it is not found.
9453 public static _Fields findByThriftIdOrThrow(int fieldId) {
9454 _Fields fields = findByThriftId(fieldId);
9455 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9460 * Find the _Fields constant that matches name, or null if its not found.
9462 public static _Fields findByName(String name) {
9463 return byName.get(name);
9466 private final short _thriftId;
9467 private final String _fieldName;
9469 _Fields(short thriftId, String fieldName) {
9470 _thriftId = thriftId;
9471 _fieldName = fieldName;
9474 public short getThriftFieldId() {
9478 public String getFieldName() {
9483 // isset id assignments
9484 private static final int __ETHTAG_ISSET_ID = 0;
9485 private static final int __L3LABEL_ISSET_ID = 1;
9486 private static final int __L2LABEL_ISSET_ID = 2;
9487 private byte __isset_bitfield = 0;
9488 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9490 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9491 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
9492 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
9493 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
9494 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9495 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
9496 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9497 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
9498 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9499 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
9500 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9501 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
9502 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9503 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
9504 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9505 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
9506 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9507 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
9508 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9509 tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
9510 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
9511 tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
9512 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9513 metaDataMap = Collections.unmodifiableMap(tmpMap);
9514 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
9517 public pushRoute_args() {
9520 public pushRoute_args(
9521 protocol_type p_type,
9530 encap_type enc_type,
9534 this.p_type = p_type;
9535 this.prefix = prefix;
9536 this.nexthop = nexthop;
9538 this.ethtag = ethtag;
9539 setEthtagIsSet(true);
9541 this.macaddress = macaddress;
9542 this.l3label = l3label;
9543 setL3labelIsSet(true);
9544 this.l2label = l2label;
9545 setL2labelIsSet(true);
9546 this.enc_type = enc_type;
9547 this.routermac = routermac;
9551 * Performs a deep copy on <i>other</i>.
9553 public pushRoute_args(pushRoute_args other) {
9554 __isset_bitfield = other.__isset_bitfield;
9555 if (other.isSetP_type()) {
9556 this.p_type = other.p_type;
9558 if (other.isSetPrefix()) {
9559 this.prefix = other.prefix;
9561 if (other.isSetNexthop()) {
9562 this.nexthop = other.nexthop;
9564 if (other.isSetRd()) {
9567 this.ethtag = other.ethtag;
9568 if (other.isSetEsi()) {
9569 this.esi = other.esi;
9571 if (other.isSetMacaddress()) {
9572 this.macaddress = other.macaddress;
9574 this.l3label = other.l3label;
9575 this.l2label = other.l2label;
9576 if (other.isSetEnc_type()) {
9577 this.enc_type = other.enc_type;
9579 if (other.isSetRoutermac()) {
9580 this.routermac = other.routermac;
9584 public pushRoute_args deepCopy() {
9585 return new pushRoute_args(this);
9589 public void clear() {
9592 this.nexthop = null;
9594 setEthtagIsSet(false);
9597 this.macaddress = null;
9598 setL3labelIsSet(false);
9600 setL2labelIsSet(false);
9602 this.enc_type = null;
9603 this.routermac = null;
9608 * @see protocol_type
9610 public protocol_type getP_type() {
9616 * @see protocol_type
9618 public pushRoute_args setP_type(protocol_type p_type) {
9619 this.p_type = p_type;
9623 public void unsetP_type() {
9627 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
9628 public boolean isSetP_type() {
9629 return this.p_type != null;
9632 public void setP_typeIsSet(boolean value) {
9638 public String getPrefix() {
9642 public pushRoute_args setPrefix(String prefix) {
9643 this.prefix = prefix;
9647 public void unsetPrefix() {
9651 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
9652 public boolean isSetPrefix() {
9653 return this.prefix != null;
9656 public void setPrefixIsSet(boolean value) {
9662 public String getNexthop() {
9663 return this.nexthop;
9666 public pushRoute_args setNexthop(String nexthop) {
9667 this.nexthop = nexthop;
9671 public void unsetNexthop() {
9672 this.nexthop = null;
9675 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
9676 public boolean isSetNexthop() {
9677 return this.nexthop != null;
9680 public void setNexthopIsSet(boolean value) {
9682 this.nexthop = null;
9686 public String getRd() {
9690 public pushRoute_args setRd(String rd) {
9695 public void unsetRd() {
9699 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9700 public boolean isSetRd() {
9701 return this.rd != null;
9704 public void setRdIsSet(boolean value) {
9710 public int getEthtag() {
9714 public pushRoute_args setEthtag(int ethtag) {
9715 this.ethtag = ethtag;
9716 setEthtagIsSet(true);
9720 public void unsetEthtag() {
9721 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
9724 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
9725 public boolean isSetEthtag() {
9726 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
9729 public void setEthtagIsSet(boolean value) {
9730 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
9733 public String getEsi() {
9737 public pushRoute_args setEsi(String esi) {
9742 public void unsetEsi() {
9746 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
9747 public boolean isSetEsi() {
9748 return this.esi != null;
9751 public void setEsiIsSet(boolean value) {
9757 public String getMacaddress() {
9758 return this.macaddress;
9761 public pushRoute_args setMacaddress(String macaddress) {
9762 this.macaddress = macaddress;
9766 public void unsetMacaddress() {
9767 this.macaddress = null;
9770 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
9771 public boolean isSetMacaddress() {
9772 return this.macaddress != null;
9775 public void setMacaddressIsSet(boolean value) {
9777 this.macaddress = null;
9781 public int getL3label() {
9782 return this.l3label;
9785 public pushRoute_args setL3label(int l3label) {
9786 this.l3label = l3label;
9787 setL3labelIsSet(true);
9791 public void unsetL3label() {
9792 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
9795 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
9796 public boolean isSetL3label() {
9797 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
9800 public void setL3labelIsSet(boolean value) {
9801 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
9804 public int getL2label() {
9805 return this.l2label;
9808 public pushRoute_args setL2label(int l2label) {
9809 this.l2label = l2label;
9810 setL2labelIsSet(true);
9814 public void unsetL2label() {
9815 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
9818 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
9819 public boolean isSetL2label() {
9820 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
9823 public void setL2labelIsSet(boolean value) {
9824 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
9831 public encap_type getEnc_type() {
9832 return this.enc_type;
9839 public pushRoute_args setEnc_type(encap_type enc_type) {
9840 this.enc_type = enc_type;
9844 public void unsetEnc_type() {
9845 this.enc_type = null;
9848 /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
9849 public boolean isSetEnc_type() {
9850 return this.enc_type != null;
9853 public void setEnc_typeIsSet(boolean value) {
9855 this.enc_type = null;
9859 public String getRoutermac() {
9860 return this.routermac;
9863 public pushRoute_args setRoutermac(String routermac) {
9864 this.routermac = routermac;
9868 public void unsetRoutermac() {
9869 this.routermac = null;
9872 /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
9873 public boolean isSetRoutermac() {
9874 return this.routermac != null;
9877 public void setRoutermacIsSet(boolean value) {
9879 this.routermac = null;
9883 public void setFieldValue(_Fields field, Object value) {
9886 if (value == null) {
9889 setP_type((protocol_type)value);
9894 if (value == null) {
9897 setPrefix((String)value);
9902 if (value == null) {
9905 setNexthop((String)value);
9910 if (value == null) {
9913 setRd((String)value);
9918 if (value == null) {
9921 setEthtag((Integer)value);
9926 if (value == null) {
9929 setEsi((String)value);
9934 if (value == null) {
9937 setMacaddress((String)value);
9942 if (value == null) {
9945 setL3label((Integer)value);
9950 if (value == null) {
9953 setL2label((Integer)value);
9958 if (value == null) {
9961 setEnc_type((encap_type)value);
9966 if (value == null) {
9969 setRoutermac((String)value);
9976 public Object getFieldValue(_Fields field) {
9985 return getNexthop();
9991 return Integer.valueOf(getEthtag());
9997 return getMacaddress();
10000 return Integer.valueOf(getL3label());
10003 return Integer.valueOf(getL2label());
10006 return getEnc_type();
10009 return getRoutermac();
10012 throw new IllegalStateException();
10015 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10016 public boolean isSet(_Fields field) {
10017 if (field == null) {
10018 throw new IllegalArgumentException();
10023 return isSetP_type();
10025 return isSetPrefix();
10027 return isSetNexthop();
10031 return isSetEthtag();
10035 return isSetMacaddress();
10037 return isSetL3label();
10039 return isSetL2label();
10041 return isSetEnc_type();
10043 return isSetRoutermac();
10045 throw new IllegalStateException();
10049 public boolean equals(Object that) {
10052 if (that instanceof pushRoute_args)
10053 return this.equals((pushRoute_args)that);
10057 public boolean equals(pushRoute_args that) {
10061 boolean this_present_p_type = true && this.isSetP_type();
10062 boolean that_present_p_type = true && that.isSetP_type();
10063 if (this_present_p_type || that_present_p_type) {
10064 if (!(this_present_p_type && that_present_p_type))
10066 if (!this.p_type.equals(that.p_type))
10070 boolean this_present_prefix = true && this.isSetPrefix();
10071 boolean that_present_prefix = true && that.isSetPrefix();
10072 if (this_present_prefix || that_present_prefix) {
10073 if (!(this_present_prefix && that_present_prefix))
10075 if (!this.prefix.equals(that.prefix))
10079 boolean this_present_nexthop = true && this.isSetNexthop();
10080 boolean that_present_nexthop = true && that.isSetNexthop();
10081 if (this_present_nexthop || that_present_nexthop) {
10082 if (!(this_present_nexthop && that_present_nexthop))
10084 if (!this.nexthop.equals(that.nexthop))
10088 boolean this_present_rd = true && this.isSetRd();
10089 boolean that_present_rd = true && that.isSetRd();
10090 if (this_present_rd || that_present_rd) {
10091 if (!(this_present_rd && that_present_rd))
10093 if (!this.rd.equals(that.rd))
10097 boolean this_present_ethtag = true;
10098 boolean that_present_ethtag = true;
10099 if (this_present_ethtag || that_present_ethtag) {
10100 if (!(this_present_ethtag && that_present_ethtag))
10102 if (this.ethtag != that.ethtag)
10106 boolean this_present_esi = true && this.isSetEsi();
10107 boolean that_present_esi = true && that.isSetEsi();
10108 if (this_present_esi || that_present_esi) {
10109 if (!(this_present_esi && that_present_esi))
10111 if (!this.esi.equals(that.esi))
10115 boolean this_present_macaddress = true && this.isSetMacaddress();
10116 boolean that_present_macaddress = true && that.isSetMacaddress();
10117 if (this_present_macaddress || that_present_macaddress) {
10118 if (!(this_present_macaddress && that_present_macaddress))
10120 if (!this.macaddress.equals(that.macaddress))
10124 boolean this_present_l3label = true;
10125 boolean that_present_l3label = true;
10126 if (this_present_l3label || that_present_l3label) {
10127 if (!(this_present_l3label && that_present_l3label))
10129 if (this.l3label != that.l3label)
10133 boolean this_present_l2label = true;
10134 boolean that_present_l2label = true;
10135 if (this_present_l2label || that_present_l2label) {
10136 if (!(this_present_l2label && that_present_l2label))
10138 if (this.l2label != that.l2label)
10142 boolean this_present_enc_type = true && this.isSetEnc_type();
10143 boolean that_present_enc_type = true && that.isSetEnc_type();
10144 if (this_present_enc_type || that_present_enc_type) {
10145 if (!(this_present_enc_type && that_present_enc_type))
10147 if (!this.enc_type.equals(that.enc_type))
10151 boolean this_present_routermac = true && this.isSetRoutermac();
10152 boolean that_present_routermac = true && that.isSetRoutermac();
10153 if (this_present_routermac || that_present_routermac) {
10154 if (!(this_present_routermac && that_present_routermac))
10156 if (!this.routermac.equals(that.routermac))
10164 public int hashCode() {
10169 public int compareTo(pushRoute_args other) {
10170 if (!getClass().equals(other.getClass())) {
10171 return getClass().getName().compareTo(other.getClass().getName());
10174 int lastComparison = 0;
10176 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
10177 if (lastComparison != 0) {
10178 return lastComparison;
10180 if (isSetP_type()) {
10181 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
10182 if (lastComparison != 0) {
10183 return lastComparison;
10186 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
10187 if (lastComparison != 0) {
10188 return lastComparison;
10190 if (isSetPrefix()) {
10191 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
10192 if (lastComparison != 0) {
10193 return lastComparison;
10196 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
10197 if (lastComparison != 0) {
10198 return lastComparison;
10200 if (isSetNexthop()) {
10201 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
10202 if (lastComparison != 0) {
10203 return lastComparison;
10206 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
10207 if (lastComparison != 0) {
10208 return lastComparison;
10211 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
10212 if (lastComparison != 0) {
10213 return lastComparison;
10216 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
10217 if (lastComparison != 0) {
10218 return lastComparison;
10220 if (isSetEthtag()) {
10221 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
10222 if (lastComparison != 0) {
10223 return lastComparison;
10226 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
10227 if (lastComparison != 0) {
10228 return lastComparison;
10231 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
10232 if (lastComparison != 0) {
10233 return lastComparison;
10236 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
10237 if (lastComparison != 0) {
10238 return lastComparison;
10240 if (isSetMacaddress()) {
10241 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
10242 if (lastComparison != 0) {
10243 return lastComparison;
10246 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
10247 if (lastComparison != 0) {
10248 return lastComparison;
10250 if (isSetL3label()) {
10251 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
10252 if (lastComparison != 0) {
10253 return lastComparison;
10256 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
10257 if (lastComparison != 0) {
10258 return lastComparison;
10260 if (isSetL2label()) {
10261 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
10262 if (lastComparison != 0) {
10263 return lastComparison;
10266 lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
10267 if (lastComparison != 0) {
10268 return lastComparison;
10270 if (isSetEnc_type()) {
10271 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
10272 if (lastComparison != 0) {
10273 return lastComparison;
10276 lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
10277 if (lastComparison != 0) {
10278 return lastComparison;
10280 if (isSetRoutermac()) {
10281 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
10282 if (lastComparison != 0) {
10283 return lastComparison;
10289 public _Fields fieldForId(int fieldId) {
10290 return _Fields.findByThriftId(fieldId);
10293 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10294 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10297 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10298 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10302 public String toString() {
10303 StringBuilder sb = new StringBuilder("pushRoute_args(");
10304 boolean first = true;
10306 sb.append("p_type:");
10307 if (this.p_type == null) {
10310 sb.append(this.p_type);
10313 if (!first) sb.append(", ");
10314 sb.append("prefix:");
10315 if (this.prefix == null) {
10318 sb.append(this.prefix);
10321 if (!first) sb.append(", ");
10322 sb.append("nexthop:");
10323 if (this.nexthop == null) {
10326 sb.append(this.nexthop);
10329 if (!first) sb.append(", ");
10331 if (this.rd == null) {
10334 sb.append(this.rd);
10337 if (!first) sb.append(", ");
10338 sb.append("ethtag:");
10339 sb.append(this.ethtag);
10341 if (!first) sb.append(", ");
10343 if (this.esi == null) {
10346 sb.append(this.esi);
10349 if (!first) sb.append(", ");
10350 sb.append("macaddress:");
10351 if (this.macaddress == null) {
10354 sb.append(this.macaddress);
10357 if (!first) sb.append(", ");
10358 sb.append("l3label:");
10359 sb.append(this.l3label);
10361 if (!first) sb.append(", ");
10362 sb.append("l2label:");
10363 sb.append(this.l2label);
10365 if (!first) sb.append(", ");
10366 sb.append("enc_type:");
10367 if (this.enc_type == null) {
10370 sb.append(this.enc_type);
10373 if (!first) sb.append(", ");
10374 sb.append("routermac:");
10375 if (this.routermac == null) {
10378 sb.append(this.routermac);
10382 return sb.toString();
10385 public void validate() throws org.apache.thrift.TException {
10386 // check for required fields
10387 // check for sub-struct validity
10390 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10392 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10393 } catch (org.apache.thrift.TException te) {
10394 throw new java.io.IOException(te);
10398 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10400 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10401 __isset_bitfield = 0;
10402 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10403 } catch (org.apache.thrift.TException te) {
10404 throw new java.io.IOException(te);
10408 private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
10409 public pushRoute_argsStandardScheme getScheme() {
10410 return new pushRoute_argsStandardScheme();
10414 private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
10416 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
10417 org.apache.thrift.protocol.TField schemeField;
10418 iprot.readStructBegin();
10421 schemeField = iprot.readFieldBegin();
10422 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10425 switch (schemeField.id) {
10427 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10428 struct.p_type = protocol_type.findByValue(iprot.readI32());
10429 struct.setP_typeIsSet(true);
10431 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10435 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10436 struct.prefix = iprot.readString();
10437 struct.setPrefixIsSet(true);
10439 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10443 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10444 struct.nexthop = iprot.readString();
10445 struct.setNexthopIsSet(true);
10447 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10451 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10452 struct.rd = iprot.readString();
10453 struct.setRdIsSet(true);
10455 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10459 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10460 struct.ethtag = iprot.readI32();
10461 struct.setEthtagIsSet(true);
10463 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10467 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10468 struct.esi = iprot.readString();
10469 struct.setEsiIsSet(true);
10471 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10474 case 7: // MACADDRESS
10475 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10476 struct.macaddress = iprot.readString();
10477 struct.setMacaddressIsSet(true);
10479 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10483 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10484 struct.l3label = iprot.readI32();
10485 struct.setL3labelIsSet(true);
10487 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10491 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10492 struct.l2label = iprot.readI32();
10493 struct.setL2labelIsSet(true);
10495 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10498 case 10: // ENC_TYPE
10499 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10500 struct.enc_type = encap_type.findByValue(iprot.readI32());
10501 struct.setEnc_typeIsSet(true);
10503 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10506 case 11: // ROUTERMAC
10507 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10508 struct.routermac = iprot.readString();
10509 struct.setRoutermacIsSet(true);
10511 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10515 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10517 iprot.readFieldEnd();
10519 iprot.readStructEnd();
10521 // check for required fields of primitive type, which can't be checked in the validate method
10525 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
10528 oprot.writeStructBegin(STRUCT_DESC);
10529 if (struct.p_type != null) {
10530 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
10531 oprot.writeI32(struct.p_type.getValue());
10532 oprot.writeFieldEnd();
10534 if (struct.prefix != null) {
10535 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
10536 oprot.writeString(struct.prefix);
10537 oprot.writeFieldEnd();
10539 if (struct.nexthop != null) {
10540 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
10541 oprot.writeString(struct.nexthop);
10542 oprot.writeFieldEnd();
10544 if (struct.rd != null) {
10545 oprot.writeFieldBegin(RD_FIELD_DESC);
10546 oprot.writeString(struct.rd);
10547 oprot.writeFieldEnd();
10549 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
10550 oprot.writeI32(struct.ethtag);
10551 oprot.writeFieldEnd();
10552 if (struct.esi != null) {
10553 oprot.writeFieldBegin(ESI_FIELD_DESC);
10554 oprot.writeString(struct.esi);
10555 oprot.writeFieldEnd();
10557 if (struct.macaddress != null) {
10558 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
10559 oprot.writeString(struct.macaddress);
10560 oprot.writeFieldEnd();
10562 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
10563 oprot.writeI32(struct.l3label);
10564 oprot.writeFieldEnd();
10565 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
10566 oprot.writeI32(struct.l2label);
10567 oprot.writeFieldEnd();
10568 if (struct.enc_type != null) {
10569 oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
10570 oprot.writeI32(struct.enc_type.getValue());
10571 oprot.writeFieldEnd();
10573 if (struct.routermac != null) {
10574 oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
10575 oprot.writeString(struct.routermac);
10576 oprot.writeFieldEnd();
10578 oprot.writeFieldStop();
10579 oprot.writeStructEnd();
10584 private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
10585 public pushRoute_argsTupleScheme getScheme() {
10586 return new pushRoute_argsTupleScheme();
10590 private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
10593 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
10594 TTupleProtocol oprot = (TTupleProtocol) prot;
10595 BitSet optionals = new BitSet();
10596 if (struct.isSetP_type()) {
10599 if (struct.isSetPrefix()) {
10602 if (struct.isSetNexthop()) {
10605 if (struct.isSetRd()) {
10608 if (struct.isSetEthtag()) {
10611 if (struct.isSetEsi()) {
10614 if (struct.isSetMacaddress()) {
10617 if (struct.isSetL3label()) {
10620 if (struct.isSetL2label()) {
10623 if (struct.isSetEnc_type()) {
10626 if (struct.isSetRoutermac()) {
10629 oprot.writeBitSet(optionals, 11);
10630 if (struct.isSetP_type()) {
10631 oprot.writeI32(struct.p_type.getValue());
10633 if (struct.isSetPrefix()) {
10634 oprot.writeString(struct.prefix);
10636 if (struct.isSetNexthop()) {
10637 oprot.writeString(struct.nexthop);
10639 if (struct.isSetRd()) {
10640 oprot.writeString(struct.rd);
10642 if (struct.isSetEthtag()) {
10643 oprot.writeI32(struct.ethtag);
10645 if (struct.isSetEsi()) {
10646 oprot.writeString(struct.esi);
10648 if (struct.isSetMacaddress()) {
10649 oprot.writeString(struct.macaddress);
10651 if (struct.isSetL3label()) {
10652 oprot.writeI32(struct.l3label);
10654 if (struct.isSetL2label()) {
10655 oprot.writeI32(struct.l2label);
10657 if (struct.isSetEnc_type()) {
10658 oprot.writeI32(struct.enc_type.getValue());
10660 if (struct.isSetRoutermac()) {
10661 oprot.writeString(struct.routermac);
10666 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
10667 TTupleProtocol iprot = (TTupleProtocol) prot;
10668 BitSet incoming = iprot.readBitSet(11);
10669 if (incoming.get(0)) {
10670 struct.p_type = protocol_type.findByValue(iprot.readI32());
10671 struct.setP_typeIsSet(true);
10673 if (incoming.get(1)) {
10674 struct.prefix = iprot.readString();
10675 struct.setPrefixIsSet(true);
10677 if (incoming.get(2)) {
10678 struct.nexthop = iprot.readString();
10679 struct.setNexthopIsSet(true);
10681 if (incoming.get(3)) {
10682 struct.rd = iprot.readString();
10683 struct.setRdIsSet(true);
10685 if (incoming.get(4)) {
10686 struct.ethtag = iprot.readI32();
10687 struct.setEthtagIsSet(true);
10689 if (incoming.get(5)) {
10690 struct.esi = iprot.readString();
10691 struct.setEsiIsSet(true);
10693 if (incoming.get(6)) {
10694 struct.macaddress = iprot.readString();
10695 struct.setMacaddressIsSet(true);
10697 if (incoming.get(7)) {
10698 struct.l3label = iprot.readI32();
10699 struct.setL3labelIsSet(true);
10701 if (incoming.get(8)) {
10702 struct.l2label = iprot.readI32();
10703 struct.setL2labelIsSet(true);
10705 if (incoming.get(9)) {
10706 struct.enc_type = encap_type.findByValue(iprot.readI32());
10707 struct.setEnc_typeIsSet(true);
10709 if (incoming.get(10)) {
10710 struct.routermac = iprot.readString();
10711 struct.setRoutermacIsSet(true);
10718 public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result> {
10719 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
10721 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);
10723 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10725 schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
10726 schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
10729 public int success; // required
10731 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10732 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10733 SUCCESS((short)0, "success");
10735 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10738 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10739 byName.put(field.getFieldName(), field);
10744 * Find the _Fields constant that matches fieldId, or null if its not found.
10746 public static _Fields findByThriftId(int fieldId) {
10756 * Find the _Fields constant that matches fieldId, throwing an exception
10757 * if it is not found.
10759 public static _Fields findByThriftIdOrThrow(int fieldId) {
10760 _Fields fields = findByThriftId(fieldId);
10761 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10766 * Find the _Fields constant that matches name, or null if its not found.
10768 public static _Fields findByName(String name) {
10769 return byName.get(name);
10772 private final short _thriftId;
10773 private final String _fieldName;
10775 _Fields(short thriftId, String fieldName) {
10776 _thriftId = thriftId;
10777 _fieldName = fieldName;
10780 public short getThriftFieldId() {
10784 public String getFieldName() {
10789 // isset id assignments
10790 private static final int __SUCCESS_ISSET_ID = 0;
10791 private byte __isset_bitfield = 0;
10792 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10794 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10795 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10796 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10797 metaDataMap = Collections.unmodifiableMap(tmpMap);
10798 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
10801 public pushRoute_result() {
10804 public pushRoute_result(
10808 this.success = success;
10809 setSuccessIsSet(true);
10813 * Performs a deep copy on <i>other</i>.
10815 public pushRoute_result(pushRoute_result other) {
10816 __isset_bitfield = other.__isset_bitfield;
10817 this.success = other.success;
10820 public pushRoute_result deepCopy() {
10821 return new pushRoute_result(this);
10825 public void clear() {
10826 setSuccessIsSet(false);
10830 public int getSuccess() {
10831 return this.success;
10834 public pushRoute_result setSuccess(int success) {
10835 this.success = success;
10836 setSuccessIsSet(true);
10840 public void unsetSuccess() {
10841 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10844 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10845 public boolean isSetSuccess() {
10846 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10849 public void setSuccessIsSet(boolean value) {
10850 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10853 public void setFieldValue(_Fields field, Object value) {
10856 if (value == null) {
10859 setSuccess((Integer)value);
10866 public Object getFieldValue(_Fields field) {
10869 return Integer.valueOf(getSuccess());
10872 throw new IllegalStateException();
10875 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10876 public boolean isSet(_Fields field) {
10877 if (field == null) {
10878 throw new IllegalArgumentException();
10883 return isSetSuccess();
10885 throw new IllegalStateException();
10889 public boolean equals(Object that) {
10892 if (that instanceof pushRoute_result)
10893 return this.equals((pushRoute_result)that);
10897 public boolean equals(pushRoute_result that) {
10901 boolean this_present_success = true;
10902 boolean that_present_success = true;
10903 if (this_present_success || that_present_success) {
10904 if (!(this_present_success && that_present_success))
10906 if (this.success != that.success)
10914 public int hashCode() {
10919 public int compareTo(pushRoute_result other) {
10920 if (!getClass().equals(other.getClass())) {
10921 return getClass().getName().compareTo(other.getClass().getName());
10924 int lastComparison = 0;
10926 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10927 if (lastComparison != 0) {
10928 return lastComparison;
10930 if (isSetSuccess()) {
10931 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10932 if (lastComparison != 0) {
10933 return lastComparison;
10939 public _Fields fieldForId(int fieldId) {
10940 return _Fields.findByThriftId(fieldId);
10943 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10944 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10947 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10948 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10952 public String toString() {
10953 StringBuilder sb = new StringBuilder("pushRoute_result(");
10954 boolean first = true;
10956 sb.append("success:");
10957 sb.append(this.success);
10960 return sb.toString();
10963 public void validate() throws org.apache.thrift.TException {
10964 // check for required fields
10965 // check for sub-struct validity
10968 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10970 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10971 } catch (org.apache.thrift.TException te) {
10972 throw new java.io.IOException(te);
10976 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10978 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10979 __isset_bitfield = 0;
10980 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10981 } catch (org.apache.thrift.TException te) {
10982 throw new java.io.IOException(te);
10986 private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
10987 public pushRoute_resultStandardScheme getScheme() {
10988 return new pushRoute_resultStandardScheme();
10992 private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
10994 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
10995 org.apache.thrift.protocol.TField schemeField;
10996 iprot.readStructBegin();
10999 schemeField = iprot.readFieldBegin();
11000 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11003 switch (schemeField.id) {
11005 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11006 struct.success = iprot.readI32();
11007 struct.setSuccessIsSet(true);
11009 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11013 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11015 iprot.readFieldEnd();
11017 iprot.readStructEnd();
11019 // check for required fields of primitive type, which can't be checked in the validate method
11023 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
11026 oprot.writeStructBegin(STRUCT_DESC);
11027 if (struct.isSetSuccess()) {
11028 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11029 oprot.writeI32(struct.success);
11030 oprot.writeFieldEnd();
11032 oprot.writeFieldStop();
11033 oprot.writeStructEnd();
11038 private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
11039 public pushRoute_resultTupleScheme getScheme() {
11040 return new pushRoute_resultTupleScheme();
11044 private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
11047 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
11048 TTupleProtocol oprot = (TTupleProtocol) prot;
11049 BitSet optionals = new BitSet();
11050 if (struct.isSetSuccess()) {
11053 oprot.writeBitSet(optionals, 1);
11054 if (struct.isSetSuccess()) {
11055 oprot.writeI32(struct.success);
11060 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
11061 TTupleProtocol iprot = (TTupleProtocol) prot;
11062 BitSet incoming = iprot.readBitSet(1);
11063 if (incoming.get(0)) {
11064 struct.success = iprot.readI32();
11065 struct.setSuccessIsSet(true);
11072 public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args> {
11073 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
11075 private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
11076 private static final org.apache.thrift.protocol.TField PREFIX_FIELD_DESC = new org.apache.thrift.protocol.TField("prefix", org.apache.thrift.protocol.TType.STRING, (short)2);
11077 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);
11078 private static final org.apache.thrift.protocol.TField ETHTAG_FIELD_DESC = new org.apache.thrift.protocol.TField("ethtag", org.apache.thrift.protocol.TType.I32, (short)4);
11079 private static final org.apache.thrift.protocol.TField ESI_FIELD_DESC = new org.apache.thrift.protocol.TField("esi", org.apache.thrift.protocol.TType.STRING, (short)5);
11080 private static final org.apache.thrift.protocol.TField MACADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("macaddress", org.apache.thrift.protocol.TType.STRING, (short)6);
11082 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11084 schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
11085 schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
11090 * @see protocol_type
11092 public protocol_type p_type; // required
11093 public String prefix; // required
11094 public String rd; // required
11095 public int ethtag; // required
11096 public String esi; // required
11097 public String macaddress; // required
11099 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11100 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11103 * @see protocol_type
11105 P_TYPE((short)1, "p_type"),
11106 PREFIX((short)2, "prefix"),
11107 RD((short)3, "rd"),
11108 ETHTAG((short)4, "ethtag"),
11109 ESI((short)5, "esi"),
11110 MACADDRESS((short)6, "macaddress");
11112 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11115 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11116 byName.put(field.getFieldName(), field);
11121 * Find the _Fields constant that matches fieldId, or null if its not found.
11123 public static _Fields findByThriftId(int fieldId) {
11135 case 6: // MACADDRESS
11143 * Find the _Fields constant that matches fieldId, throwing an exception
11144 * if it is not found.
11146 public static _Fields findByThriftIdOrThrow(int fieldId) {
11147 _Fields fields = findByThriftId(fieldId);
11148 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11153 * Find the _Fields constant that matches name, or null if its not found.
11155 public static _Fields findByName(String name) {
11156 return byName.get(name);
11159 private final short _thriftId;
11160 private final String _fieldName;
11162 _Fields(short thriftId, String fieldName) {
11163 _thriftId = thriftId;
11164 _fieldName = fieldName;
11167 public short getThriftFieldId() {
11171 public String getFieldName() {
11176 // isset id assignments
11177 private static final int __ETHTAG_ISSET_ID = 0;
11178 private byte __isset_bitfield = 0;
11179 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11181 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11182 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
11183 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
11184 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
11185 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11186 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
11187 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11188 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
11189 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
11190 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
11191 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11192 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
11193 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11194 metaDataMap = Collections.unmodifiableMap(tmpMap);
11195 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
11198 public withdrawRoute_args() {
11201 public withdrawRoute_args(
11202 protocol_type p_type,
11210 this.p_type = p_type;
11211 this.prefix = prefix;
11213 this.ethtag = ethtag;
11214 setEthtagIsSet(true);
11216 this.macaddress = macaddress;
11220 * Performs a deep copy on <i>other</i>.
11222 public withdrawRoute_args(withdrawRoute_args other) {
11223 __isset_bitfield = other.__isset_bitfield;
11224 if (other.isSetP_type()) {
11225 this.p_type = other.p_type;
11227 if (other.isSetPrefix()) {
11228 this.prefix = other.prefix;
11230 if (other.isSetRd()) {
11231 this.rd = other.rd;
11233 this.ethtag = other.ethtag;
11234 if (other.isSetEsi()) {
11235 this.esi = other.esi;
11237 if (other.isSetMacaddress()) {
11238 this.macaddress = other.macaddress;
11242 public withdrawRoute_args deepCopy() {
11243 return new withdrawRoute_args(this);
11247 public void clear() {
11248 this.p_type = null;
11249 this.prefix = null;
11251 setEthtagIsSet(false);
11254 this.macaddress = null;
11259 * @see protocol_type
11261 public protocol_type getP_type() {
11262 return this.p_type;
11267 * @see protocol_type
11269 public withdrawRoute_args setP_type(protocol_type p_type) {
11270 this.p_type = p_type;
11274 public void unsetP_type() {
11275 this.p_type = null;
11278 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
11279 public boolean isSetP_type() {
11280 return this.p_type != null;
11283 public void setP_typeIsSet(boolean value) {
11285 this.p_type = null;
11289 public String getPrefix() {
11290 return this.prefix;
11293 public withdrawRoute_args setPrefix(String prefix) {
11294 this.prefix = prefix;
11298 public void unsetPrefix() {
11299 this.prefix = null;
11302 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
11303 public boolean isSetPrefix() {
11304 return this.prefix != null;
11307 public void setPrefixIsSet(boolean value) {
11309 this.prefix = null;
11313 public String getRd() {
11317 public withdrawRoute_args setRd(String rd) {
11322 public void unsetRd() {
11326 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
11327 public boolean isSetRd() {
11328 return this.rd != null;
11331 public void setRdIsSet(boolean value) {
11337 public int getEthtag() {
11338 return this.ethtag;
11341 public withdrawRoute_args setEthtag(int ethtag) {
11342 this.ethtag = ethtag;
11343 setEthtagIsSet(true);
11347 public void unsetEthtag() {
11348 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11351 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
11352 public boolean isSetEthtag() {
11353 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11356 public void setEthtagIsSet(boolean value) {
11357 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
11360 public String getEsi() {
11364 public withdrawRoute_args setEsi(String esi) {
11369 public void unsetEsi() {
11373 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
11374 public boolean isSetEsi() {
11375 return this.esi != null;
11378 public void setEsiIsSet(boolean value) {
11384 public String getMacaddress() {
11385 return this.macaddress;
11388 public withdrawRoute_args setMacaddress(String macaddress) {
11389 this.macaddress = macaddress;
11393 public void unsetMacaddress() {
11394 this.macaddress = null;
11397 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
11398 public boolean isSetMacaddress() {
11399 return this.macaddress != null;
11402 public void setMacaddressIsSet(boolean value) {
11404 this.macaddress = null;
11408 public void setFieldValue(_Fields field, Object value) {
11411 if (value == null) {
11414 setP_type((protocol_type)value);
11419 if (value == null) {
11422 setPrefix((String)value);
11427 if (value == null) {
11430 setRd((String)value);
11435 if (value == null) {
11438 setEthtag((Integer)value);
11443 if (value == null) {
11446 setEsi((String)value);
11451 if (value == null) {
11454 setMacaddress((String)value);
11461 public Object getFieldValue(_Fields field) {
11464 return getP_type();
11467 return getPrefix();
11473 return Integer.valueOf(getEthtag());
11479 return getMacaddress();
11482 throw new IllegalStateException();
11485 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11486 public boolean isSet(_Fields field) {
11487 if (field == null) {
11488 throw new IllegalArgumentException();
11493 return isSetP_type();
11495 return isSetPrefix();
11499 return isSetEthtag();
11503 return isSetMacaddress();
11505 throw new IllegalStateException();
11509 public boolean equals(Object that) {
11512 if (that instanceof withdrawRoute_args)
11513 return this.equals((withdrawRoute_args)that);
11517 public boolean equals(withdrawRoute_args that) {
11521 boolean this_present_p_type = true && this.isSetP_type();
11522 boolean that_present_p_type = true && that.isSetP_type();
11523 if (this_present_p_type || that_present_p_type) {
11524 if (!(this_present_p_type && that_present_p_type))
11526 if (!this.p_type.equals(that.p_type))
11530 boolean this_present_prefix = true && this.isSetPrefix();
11531 boolean that_present_prefix = true && that.isSetPrefix();
11532 if (this_present_prefix || that_present_prefix) {
11533 if (!(this_present_prefix && that_present_prefix))
11535 if (!this.prefix.equals(that.prefix))
11539 boolean this_present_rd = true && this.isSetRd();
11540 boolean that_present_rd = true && that.isSetRd();
11541 if (this_present_rd || that_present_rd) {
11542 if (!(this_present_rd && that_present_rd))
11544 if (!this.rd.equals(that.rd))
11548 boolean this_present_ethtag = true;
11549 boolean that_present_ethtag = true;
11550 if (this_present_ethtag || that_present_ethtag) {
11551 if (!(this_present_ethtag && that_present_ethtag))
11553 if (this.ethtag != that.ethtag)
11557 boolean this_present_esi = true && this.isSetEsi();
11558 boolean that_present_esi = true && that.isSetEsi();
11559 if (this_present_esi || that_present_esi) {
11560 if (!(this_present_esi && that_present_esi))
11562 if (!this.esi.equals(that.esi))
11566 boolean this_present_macaddress = true && this.isSetMacaddress();
11567 boolean that_present_macaddress = true && that.isSetMacaddress();
11568 if (this_present_macaddress || that_present_macaddress) {
11569 if (!(this_present_macaddress && that_present_macaddress))
11571 if (!this.macaddress.equals(that.macaddress))
11579 public int hashCode() {
11584 public int compareTo(withdrawRoute_args other) {
11585 if (!getClass().equals(other.getClass())) {
11586 return getClass().getName().compareTo(other.getClass().getName());
11589 int lastComparison = 0;
11591 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11592 if (lastComparison != 0) {
11593 return lastComparison;
11595 if (isSetP_type()) {
11596 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11597 if (lastComparison != 0) {
11598 return lastComparison;
11601 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11602 if (lastComparison != 0) {
11603 return lastComparison;
11605 if (isSetPrefix()) {
11606 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11607 if (lastComparison != 0) {
11608 return lastComparison;
11611 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11612 if (lastComparison != 0) {
11613 return lastComparison;
11616 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11617 if (lastComparison != 0) {
11618 return lastComparison;
11621 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11622 if (lastComparison != 0) {
11623 return lastComparison;
11625 if (isSetEthtag()) {
11626 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11627 if (lastComparison != 0) {
11628 return lastComparison;
11631 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11632 if (lastComparison != 0) {
11633 return lastComparison;
11636 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11637 if (lastComparison != 0) {
11638 return lastComparison;
11641 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11642 if (lastComparison != 0) {
11643 return lastComparison;
11645 if (isSetMacaddress()) {
11646 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11647 if (lastComparison != 0) {
11648 return lastComparison;
11654 public _Fields fieldForId(int fieldId) {
11655 return _Fields.findByThriftId(fieldId);
11658 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11659 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11662 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11663 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11667 public String toString() {
11668 StringBuilder sb = new StringBuilder("withdrawRoute_args(");
11669 boolean first = true;
11671 sb.append("p_type:");
11672 if (this.p_type == null) {
11675 sb.append(this.p_type);
11678 if (!first) sb.append(", ");
11679 sb.append("prefix:");
11680 if (this.prefix == null) {
11683 sb.append(this.prefix);
11686 if (!first) sb.append(", ");
11688 if (this.rd == null) {
11691 sb.append(this.rd);
11694 if (!first) sb.append(", ");
11695 sb.append("ethtag:");
11696 sb.append(this.ethtag);
11698 if (!first) sb.append(", ");
11700 if (this.esi == null) {
11703 sb.append(this.esi);
11706 if (!first) sb.append(", ");
11707 sb.append("macaddress:");
11708 if (this.macaddress == null) {
11711 sb.append(this.macaddress);
11715 return sb.toString();
11718 public void validate() throws org.apache.thrift.TException {
11719 // check for required fields
11720 // check for sub-struct validity
11723 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11725 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11726 } catch (org.apache.thrift.TException te) {
11727 throw new java.io.IOException(te);
11731 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11733 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11734 __isset_bitfield = 0;
11735 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11736 } catch (org.apache.thrift.TException te) {
11737 throw new java.io.IOException(te);
11741 private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
11742 public withdrawRoute_argsStandardScheme getScheme() {
11743 return new withdrawRoute_argsStandardScheme();
11747 private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
11749 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11750 org.apache.thrift.protocol.TField schemeField;
11751 iprot.readStructBegin();
11754 schemeField = iprot.readFieldBegin();
11755 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11758 switch (schemeField.id) {
11760 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11761 struct.p_type = protocol_type.findByValue(iprot.readI32());
11762 struct.setP_typeIsSet(true);
11764 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11768 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11769 struct.prefix = iprot.readString();
11770 struct.setPrefixIsSet(true);
11772 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11776 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11777 struct.rd = iprot.readString();
11778 struct.setRdIsSet(true);
11780 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11784 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11785 struct.ethtag = iprot.readI32();
11786 struct.setEthtagIsSet(true);
11788 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11792 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11793 struct.esi = iprot.readString();
11794 struct.setEsiIsSet(true);
11796 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11799 case 6: // MACADDRESS
11800 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11801 struct.macaddress = iprot.readString();
11802 struct.setMacaddressIsSet(true);
11804 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11808 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11810 iprot.readFieldEnd();
11812 iprot.readStructEnd();
11814 // check for required fields of primitive type, which can't be checked in the validate method
11818 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11821 oprot.writeStructBegin(STRUCT_DESC);
11822 if (struct.p_type != null) {
11823 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
11824 oprot.writeI32(struct.p_type.getValue());
11825 oprot.writeFieldEnd();
11827 if (struct.prefix != null) {
11828 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
11829 oprot.writeString(struct.prefix);
11830 oprot.writeFieldEnd();
11832 if (struct.rd != null) {
11833 oprot.writeFieldBegin(RD_FIELD_DESC);
11834 oprot.writeString(struct.rd);
11835 oprot.writeFieldEnd();
11837 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
11838 oprot.writeI32(struct.ethtag);
11839 oprot.writeFieldEnd();
11840 if (struct.esi != null) {
11841 oprot.writeFieldBegin(ESI_FIELD_DESC);
11842 oprot.writeString(struct.esi);
11843 oprot.writeFieldEnd();
11845 if (struct.macaddress != null) {
11846 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
11847 oprot.writeString(struct.macaddress);
11848 oprot.writeFieldEnd();
11850 oprot.writeFieldStop();
11851 oprot.writeStructEnd();
11856 private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
11857 public withdrawRoute_argsTupleScheme getScheme() {
11858 return new withdrawRoute_argsTupleScheme();
11862 private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
11865 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11866 TTupleProtocol oprot = (TTupleProtocol) prot;
11867 BitSet optionals = new BitSet();
11868 if (struct.isSetP_type()) {
11871 if (struct.isSetPrefix()) {
11874 if (struct.isSetRd()) {
11877 if (struct.isSetEthtag()) {
11880 if (struct.isSetEsi()) {
11883 if (struct.isSetMacaddress()) {
11886 oprot.writeBitSet(optionals, 6);
11887 if (struct.isSetP_type()) {
11888 oprot.writeI32(struct.p_type.getValue());
11890 if (struct.isSetPrefix()) {
11891 oprot.writeString(struct.prefix);
11893 if (struct.isSetRd()) {
11894 oprot.writeString(struct.rd);
11896 if (struct.isSetEthtag()) {
11897 oprot.writeI32(struct.ethtag);
11899 if (struct.isSetEsi()) {
11900 oprot.writeString(struct.esi);
11902 if (struct.isSetMacaddress()) {
11903 oprot.writeString(struct.macaddress);
11908 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
11909 TTupleProtocol iprot = (TTupleProtocol) prot;
11910 BitSet incoming = iprot.readBitSet(6);
11911 if (incoming.get(0)) {
11912 struct.p_type = protocol_type.findByValue(iprot.readI32());
11913 struct.setP_typeIsSet(true);
11915 if (incoming.get(1)) {
11916 struct.prefix = iprot.readString();
11917 struct.setPrefixIsSet(true);
11919 if (incoming.get(2)) {
11920 struct.rd = iprot.readString();
11921 struct.setRdIsSet(true);
11923 if (incoming.get(3)) {
11924 struct.ethtag = iprot.readI32();
11925 struct.setEthtagIsSet(true);
11927 if (incoming.get(4)) {
11928 struct.esi = iprot.readString();
11929 struct.setEsiIsSet(true);
11931 if (incoming.get(5)) {
11932 struct.macaddress = iprot.readString();
11933 struct.setMacaddressIsSet(true);
11940 public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result> {
11941 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
11943 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);
11945 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11947 schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
11948 schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
11951 public int success; // required
11953 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11954 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11955 SUCCESS((short)0, "success");
11957 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11960 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11961 byName.put(field.getFieldName(), field);
11966 * Find the _Fields constant that matches fieldId, or null if its not found.
11968 public static _Fields findByThriftId(int fieldId) {
11978 * Find the _Fields constant that matches fieldId, throwing an exception
11979 * if it is not found.
11981 public static _Fields findByThriftIdOrThrow(int fieldId) {
11982 _Fields fields = findByThriftId(fieldId);
11983 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11988 * Find the _Fields constant that matches name, or null if its not found.
11990 public static _Fields findByName(String name) {
11991 return byName.get(name);
11994 private final short _thriftId;
11995 private final String _fieldName;
11997 _Fields(short thriftId, String fieldName) {
11998 _thriftId = thriftId;
11999 _fieldName = fieldName;
12002 public short getThriftFieldId() {
12006 public String getFieldName() {
12011 // isset id assignments
12012 private static final int __SUCCESS_ISSET_ID = 0;
12013 private byte __isset_bitfield = 0;
12014 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12016 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12017 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12018 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12019 metaDataMap = Collections.unmodifiableMap(tmpMap);
12020 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
12023 public withdrawRoute_result() {
12026 public withdrawRoute_result(
12030 this.success = success;
12031 setSuccessIsSet(true);
12035 * Performs a deep copy on <i>other</i>.
12037 public withdrawRoute_result(withdrawRoute_result other) {
12038 __isset_bitfield = other.__isset_bitfield;
12039 this.success = other.success;
12042 public withdrawRoute_result deepCopy() {
12043 return new withdrawRoute_result(this);
12047 public void clear() {
12048 setSuccessIsSet(false);
12052 public int getSuccess() {
12053 return this.success;
12056 public withdrawRoute_result setSuccess(int success) {
12057 this.success = success;
12058 setSuccessIsSet(true);
12062 public void unsetSuccess() {
12063 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12066 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12067 public boolean isSetSuccess() {
12068 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12071 public void setSuccessIsSet(boolean value) {
12072 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12075 public void setFieldValue(_Fields field, Object value) {
12078 if (value == null) {
12081 setSuccess((Integer)value);
12088 public Object getFieldValue(_Fields field) {
12091 return Integer.valueOf(getSuccess());
12094 throw new IllegalStateException();
12097 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12098 public boolean isSet(_Fields field) {
12099 if (field == null) {
12100 throw new IllegalArgumentException();
12105 return isSetSuccess();
12107 throw new IllegalStateException();
12111 public boolean equals(Object that) {
12114 if (that instanceof withdrawRoute_result)
12115 return this.equals((withdrawRoute_result)that);
12119 public boolean equals(withdrawRoute_result that) {
12123 boolean this_present_success = true;
12124 boolean that_present_success = true;
12125 if (this_present_success || that_present_success) {
12126 if (!(this_present_success && that_present_success))
12128 if (this.success != that.success)
12136 public int hashCode() {
12141 public int compareTo(withdrawRoute_result other) {
12142 if (!getClass().equals(other.getClass())) {
12143 return getClass().getName().compareTo(other.getClass().getName());
12146 int lastComparison = 0;
12148 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12149 if (lastComparison != 0) {
12150 return lastComparison;
12152 if (isSetSuccess()) {
12153 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12154 if (lastComparison != 0) {
12155 return lastComparison;
12161 public _Fields fieldForId(int fieldId) {
12162 return _Fields.findByThriftId(fieldId);
12165 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12166 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12169 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12170 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12174 public String toString() {
12175 StringBuilder sb = new StringBuilder("withdrawRoute_result(");
12176 boolean first = true;
12178 sb.append("success:");
12179 sb.append(this.success);
12182 return sb.toString();
12185 public void validate() throws org.apache.thrift.TException {
12186 // check for required fields
12187 // check for sub-struct validity
12190 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12192 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12193 } catch (org.apache.thrift.TException te) {
12194 throw new java.io.IOException(te);
12198 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12200 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12201 __isset_bitfield = 0;
12202 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12203 } catch (org.apache.thrift.TException te) {
12204 throw new java.io.IOException(te);
12208 private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
12209 public withdrawRoute_resultStandardScheme getScheme() {
12210 return new withdrawRoute_resultStandardScheme();
12214 private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
12216 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12217 org.apache.thrift.protocol.TField schemeField;
12218 iprot.readStructBegin();
12221 schemeField = iprot.readFieldBegin();
12222 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12225 switch (schemeField.id) {
12227 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12228 struct.success = iprot.readI32();
12229 struct.setSuccessIsSet(true);
12231 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12235 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12237 iprot.readFieldEnd();
12239 iprot.readStructEnd();
12241 // check for required fields of primitive type, which can't be checked in the validate method
12245 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12248 oprot.writeStructBegin(STRUCT_DESC);
12249 if (struct.isSetSuccess()) {
12250 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12251 oprot.writeI32(struct.success);
12252 oprot.writeFieldEnd();
12254 oprot.writeFieldStop();
12255 oprot.writeStructEnd();
12260 private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
12261 public withdrawRoute_resultTupleScheme getScheme() {
12262 return new withdrawRoute_resultTupleScheme();
12266 private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
12269 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12270 TTupleProtocol oprot = (TTupleProtocol) prot;
12271 BitSet optionals = new BitSet();
12272 if (struct.isSetSuccess()) {
12275 oprot.writeBitSet(optionals, 1);
12276 if (struct.isSetSuccess()) {
12277 oprot.writeI32(struct.success);
12282 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
12283 TTupleProtocol iprot = (TTupleProtocol) prot;
12284 BitSet incoming = iprot.readBitSet(1);
12285 if (incoming.get(0)) {
12286 struct.success = iprot.readI32();
12287 struct.setSuccessIsSet(true);
12294 public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args> {
12295 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
12297 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);
12298 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);
12300 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12302 schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
12303 schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
12306 public String peerIp; // required
12307 public int nHops; // required
12309 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12310 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12311 PEER_IP((short)1, "peerIp"),
12312 N_HOPS((short)2, "nHops");
12314 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12317 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12318 byName.put(field.getFieldName(), field);
12323 * Find the _Fields constant that matches fieldId, or null if its not found.
12325 public static _Fields findByThriftId(int fieldId) {
12337 * Find the _Fields constant that matches fieldId, throwing an exception
12338 * if it is not found.
12340 public static _Fields findByThriftIdOrThrow(int fieldId) {
12341 _Fields fields = findByThriftId(fieldId);
12342 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12347 * Find the _Fields constant that matches name, or null if its not found.
12349 public static _Fields findByName(String name) {
12350 return byName.get(name);
12353 private final short _thriftId;
12354 private final String _fieldName;
12356 _Fields(short thriftId, String fieldName) {
12357 _thriftId = thriftId;
12358 _fieldName = fieldName;
12361 public short getThriftFieldId() {
12365 public String getFieldName() {
12370 // isset id assignments
12371 private static final int __NHOPS_ISSET_ID = 0;
12372 private byte __isset_bitfield = 0;
12373 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12375 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12376 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
12377 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12378 tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
12379 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12380 metaDataMap = Collections.unmodifiableMap(tmpMap);
12381 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
12384 public setEbgpMultihop_args() {
12387 public setEbgpMultihop_args(
12392 this.peerIp = peerIp;
12393 this.nHops = nHops;
12394 setNHopsIsSet(true);
12398 * Performs a deep copy on <i>other</i>.
12400 public setEbgpMultihop_args(setEbgpMultihop_args other) {
12401 __isset_bitfield = other.__isset_bitfield;
12402 if (other.isSetPeerIp()) {
12403 this.peerIp = other.peerIp;
12405 this.nHops = other.nHops;
12408 public setEbgpMultihop_args deepCopy() {
12409 return new setEbgpMultihop_args(this);
12413 public void clear() {
12414 this.peerIp = null;
12415 setNHopsIsSet(false);
12419 public String getPeerIp() {
12420 return this.peerIp;
12423 public setEbgpMultihop_args setPeerIp(String peerIp) {
12424 this.peerIp = peerIp;
12428 public void unsetPeerIp() {
12429 this.peerIp = null;
12432 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
12433 public boolean isSetPeerIp() {
12434 return this.peerIp != null;
12437 public void setPeerIpIsSet(boolean value) {
12439 this.peerIp = null;
12443 public int getNHops() {
12447 public setEbgpMultihop_args setNHops(int nHops) {
12448 this.nHops = nHops;
12449 setNHopsIsSet(true);
12453 public void unsetNHops() {
12454 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
12457 /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
12458 public boolean isSetNHops() {
12459 return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
12462 public void setNHopsIsSet(boolean value) {
12463 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
12466 public void setFieldValue(_Fields field, Object value) {
12469 if (value == null) {
12472 setPeerIp((String)value);
12477 if (value == null) {
12480 setNHops((Integer)value);
12487 public Object getFieldValue(_Fields field) {
12490 return getPeerIp();
12493 return Integer.valueOf(getNHops());
12496 throw new IllegalStateException();
12499 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12500 public boolean isSet(_Fields field) {
12501 if (field == null) {
12502 throw new IllegalArgumentException();
12507 return isSetPeerIp();
12509 return isSetNHops();
12511 throw new IllegalStateException();
12515 public boolean equals(Object that) {
12518 if (that instanceof setEbgpMultihop_args)
12519 return this.equals((setEbgpMultihop_args)that);
12523 public boolean equals(setEbgpMultihop_args that) {
12527 boolean this_present_peerIp = true && this.isSetPeerIp();
12528 boolean that_present_peerIp = true && that.isSetPeerIp();
12529 if (this_present_peerIp || that_present_peerIp) {
12530 if (!(this_present_peerIp && that_present_peerIp))
12532 if (!this.peerIp.equals(that.peerIp))
12536 boolean this_present_nHops = true;
12537 boolean that_present_nHops = true;
12538 if (this_present_nHops || that_present_nHops) {
12539 if (!(this_present_nHops && that_present_nHops))
12541 if (this.nHops != that.nHops)
12549 public int hashCode() {
12554 public int compareTo(setEbgpMultihop_args other) {
12555 if (!getClass().equals(other.getClass())) {
12556 return getClass().getName().compareTo(other.getClass().getName());
12559 int lastComparison = 0;
12561 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
12562 if (lastComparison != 0) {
12563 return lastComparison;
12565 if (isSetPeerIp()) {
12566 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
12567 if (lastComparison != 0) {
12568 return lastComparison;
12571 lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
12572 if (lastComparison != 0) {
12573 return lastComparison;
12575 if (isSetNHops()) {
12576 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
12577 if (lastComparison != 0) {
12578 return lastComparison;
12584 public _Fields fieldForId(int fieldId) {
12585 return _Fields.findByThriftId(fieldId);
12588 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12589 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12592 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12593 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12597 public String toString() {
12598 StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
12599 boolean first = true;
12601 sb.append("peerIp:");
12602 if (this.peerIp == null) {
12605 sb.append(this.peerIp);
12608 if (!first) sb.append(", ");
12609 sb.append("nHops:");
12610 sb.append(this.nHops);
12613 return sb.toString();
12616 public void validate() throws org.apache.thrift.TException {
12617 // check for required fields
12618 // check for sub-struct validity
12621 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12623 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12624 } catch (org.apache.thrift.TException te) {
12625 throw new java.io.IOException(te);
12629 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12631 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12632 __isset_bitfield = 0;
12633 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12634 } catch (org.apache.thrift.TException te) {
12635 throw new java.io.IOException(te);
12639 private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
12640 public setEbgpMultihop_argsStandardScheme getScheme() {
12641 return new setEbgpMultihop_argsStandardScheme();
12645 private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
12647 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12648 org.apache.thrift.protocol.TField schemeField;
12649 iprot.readStructBegin();
12652 schemeField = iprot.readFieldBegin();
12653 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12656 switch (schemeField.id) {
12658 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12659 struct.peerIp = iprot.readString();
12660 struct.setPeerIpIsSet(true);
12662 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12666 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12667 struct.nHops = iprot.readI32();
12668 struct.setNHopsIsSet(true);
12670 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12674 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12676 iprot.readFieldEnd();
12678 iprot.readStructEnd();
12680 // check for required fields of primitive type, which can't be checked in the validate method
12684 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12687 oprot.writeStructBegin(STRUCT_DESC);
12688 if (struct.peerIp != null) {
12689 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
12690 oprot.writeString(struct.peerIp);
12691 oprot.writeFieldEnd();
12693 oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
12694 oprot.writeI32(struct.nHops);
12695 oprot.writeFieldEnd();
12696 oprot.writeFieldStop();
12697 oprot.writeStructEnd();
12702 private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
12703 public setEbgpMultihop_argsTupleScheme getScheme() {
12704 return new setEbgpMultihop_argsTupleScheme();
12708 private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
12711 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12712 TTupleProtocol oprot = (TTupleProtocol) prot;
12713 BitSet optionals = new BitSet();
12714 if (struct.isSetPeerIp()) {
12717 if (struct.isSetNHops()) {
12720 oprot.writeBitSet(optionals, 2);
12721 if (struct.isSetPeerIp()) {
12722 oprot.writeString(struct.peerIp);
12724 if (struct.isSetNHops()) {
12725 oprot.writeI32(struct.nHops);
12730 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
12731 TTupleProtocol iprot = (TTupleProtocol) prot;
12732 BitSet incoming = iprot.readBitSet(2);
12733 if (incoming.get(0)) {
12734 struct.peerIp = iprot.readString();
12735 struct.setPeerIpIsSet(true);
12737 if (incoming.get(1)) {
12738 struct.nHops = iprot.readI32();
12739 struct.setNHopsIsSet(true);
12746 public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result> {
12747 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
12749 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);
12751 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12753 schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
12754 schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
12757 public int success; // required
12759 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12760 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12761 SUCCESS((short)0, "success");
12763 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12766 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12767 byName.put(field.getFieldName(), field);
12772 * Find the _Fields constant that matches fieldId, or null if its not found.
12774 public static _Fields findByThriftId(int fieldId) {
12784 * Find the _Fields constant that matches fieldId, throwing an exception
12785 * if it is not found.
12787 public static _Fields findByThriftIdOrThrow(int fieldId) {
12788 _Fields fields = findByThriftId(fieldId);
12789 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12794 * Find the _Fields constant that matches name, or null if its not found.
12796 public static _Fields findByName(String name) {
12797 return byName.get(name);
12800 private final short _thriftId;
12801 private final String _fieldName;
12803 _Fields(short thriftId, String fieldName) {
12804 _thriftId = thriftId;
12805 _fieldName = fieldName;
12808 public short getThriftFieldId() {
12812 public String getFieldName() {
12817 // isset id assignments
12818 private static final int __SUCCESS_ISSET_ID = 0;
12819 private byte __isset_bitfield = 0;
12820 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12822 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12823 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12824 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12825 metaDataMap = Collections.unmodifiableMap(tmpMap);
12826 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
12829 public setEbgpMultihop_result() {
12832 public setEbgpMultihop_result(
12836 this.success = success;
12837 setSuccessIsSet(true);
12841 * Performs a deep copy on <i>other</i>.
12843 public setEbgpMultihop_result(setEbgpMultihop_result other) {
12844 __isset_bitfield = other.__isset_bitfield;
12845 this.success = other.success;
12848 public setEbgpMultihop_result deepCopy() {
12849 return new setEbgpMultihop_result(this);
12853 public void clear() {
12854 setSuccessIsSet(false);
12858 public int getSuccess() {
12859 return this.success;
12862 public setEbgpMultihop_result setSuccess(int success) {
12863 this.success = success;
12864 setSuccessIsSet(true);
12868 public void unsetSuccess() {
12869 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12872 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12873 public boolean isSetSuccess() {
12874 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12877 public void setSuccessIsSet(boolean value) {
12878 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12881 public void setFieldValue(_Fields field, Object value) {
12884 if (value == null) {
12887 setSuccess((Integer)value);
12894 public Object getFieldValue(_Fields field) {
12897 return Integer.valueOf(getSuccess());
12900 throw new IllegalStateException();
12903 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12904 public boolean isSet(_Fields field) {
12905 if (field == null) {
12906 throw new IllegalArgumentException();
12911 return isSetSuccess();
12913 throw new IllegalStateException();
12917 public boolean equals(Object that) {
12920 if (that instanceof setEbgpMultihop_result)
12921 return this.equals((setEbgpMultihop_result)that);
12925 public boolean equals(setEbgpMultihop_result that) {
12929 boolean this_present_success = true;
12930 boolean that_present_success = true;
12931 if (this_present_success || that_present_success) {
12932 if (!(this_present_success && that_present_success))
12934 if (this.success != that.success)
12942 public int hashCode() {
12947 public int compareTo(setEbgpMultihop_result other) {
12948 if (!getClass().equals(other.getClass())) {
12949 return getClass().getName().compareTo(other.getClass().getName());
12952 int lastComparison = 0;
12954 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12955 if (lastComparison != 0) {
12956 return lastComparison;
12958 if (isSetSuccess()) {
12959 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12960 if (lastComparison != 0) {
12961 return lastComparison;
12967 public _Fields fieldForId(int fieldId) {
12968 return _Fields.findByThriftId(fieldId);
12971 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12972 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12975 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12976 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12980 public String toString() {
12981 StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
12982 boolean first = true;
12984 sb.append("success:");
12985 sb.append(this.success);
12988 return sb.toString();
12991 public void validate() throws org.apache.thrift.TException {
12992 // check for required fields
12993 // check for sub-struct validity
12996 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12998 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12999 } catch (org.apache.thrift.TException te) {
13000 throw new java.io.IOException(te);
13004 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13006 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13007 __isset_bitfield = 0;
13008 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13009 } catch (org.apache.thrift.TException te) {
13010 throw new java.io.IOException(te);
13014 private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
13015 public setEbgpMultihop_resultStandardScheme getScheme() {
13016 return new setEbgpMultihop_resultStandardScheme();
13020 private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
13022 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13023 org.apache.thrift.protocol.TField schemeField;
13024 iprot.readStructBegin();
13027 schemeField = iprot.readFieldBegin();
13028 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13031 switch (schemeField.id) {
13033 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13034 struct.success = iprot.readI32();
13035 struct.setSuccessIsSet(true);
13037 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13041 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13043 iprot.readFieldEnd();
13045 iprot.readStructEnd();
13047 // check for required fields of primitive type, which can't be checked in the validate method
13051 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13054 oprot.writeStructBegin(STRUCT_DESC);
13055 if (struct.isSetSuccess()) {
13056 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13057 oprot.writeI32(struct.success);
13058 oprot.writeFieldEnd();
13060 oprot.writeFieldStop();
13061 oprot.writeStructEnd();
13066 private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
13067 public setEbgpMultihop_resultTupleScheme getScheme() {
13068 return new setEbgpMultihop_resultTupleScheme();
13072 private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
13075 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13076 TTupleProtocol oprot = (TTupleProtocol) prot;
13077 BitSet optionals = new BitSet();
13078 if (struct.isSetSuccess()) {
13081 oprot.writeBitSet(optionals, 1);
13082 if (struct.isSetSuccess()) {
13083 oprot.writeI32(struct.success);
13088 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
13089 TTupleProtocol iprot = (TTupleProtocol) prot;
13090 BitSet incoming = iprot.readBitSet(1);
13091 if (incoming.get(0)) {
13092 struct.success = iprot.readI32();
13093 struct.setSuccessIsSet(true);
13100 public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args> {
13101 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
13103 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);
13105 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13107 schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
13108 schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
13111 public String peerIp; // required
13113 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13114 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13115 PEER_IP((short)1, "peerIp");
13117 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13120 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13121 byName.put(field.getFieldName(), field);
13126 * Find the _Fields constant that matches fieldId, or null if its not found.
13128 public static _Fields findByThriftId(int fieldId) {
13138 * Find the _Fields constant that matches fieldId, throwing an exception
13139 * if it is not found.
13141 public static _Fields findByThriftIdOrThrow(int fieldId) {
13142 _Fields fields = findByThriftId(fieldId);
13143 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13148 * Find the _Fields constant that matches name, or null if its not found.
13150 public static _Fields findByName(String name) {
13151 return byName.get(name);
13154 private final short _thriftId;
13155 private final String _fieldName;
13157 _Fields(short thriftId, String fieldName) {
13158 _thriftId = thriftId;
13159 _fieldName = fieldName;
13162 public short getThriftFieldId() {
13166 public String getFieldName() {
13171 // isset id assignments
13172 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13174 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13175 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13176 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13177 metaDataMap = Collections.unmodifiableMap(tmpMap);
13178 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
13181 public unsetEbgpMultihop_args() {
13184 public unsetEbgpMultihop_args(
13188 this.peerIp = peerIp;
13192 * Performs a deep copy on <i>other</i>.
13194 public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
13195 if (other.isSetPeerIp()) {
13196 this.peerIp = other.peerIp;
13200 public unsetEbgpMultihop_args deepCopy() {
13201 return new unsetEbgpMultihop_args(this);
13205 public void clear() {
13206 this.peerIp = null;
13209 public String getPeerIp() {
13210 return this.peerIp;
13213 public unsetEbgpMultihop_args setPeerIp(String peerIp) {
13214 this.peerIp = peerIp;
13218 public void unsetPeerIp() {
13219 this.peerIp = null;
13222 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13223 public boolean isSetPeerIp() {
13224 return this.peerIp != null;
13227 public void setPeerIpIsSet(boolean value) {
13229 this.peerIp = null;
13233 public void setFieldValue(_Fields field, Object value) {
13236 if (value == null) {
13239 setPeerIp((String)value);
13246 public Object getFieldValue(_Fields field) {
13249 return getPeerIp();
13252 throw new IllegalStateException();
13255 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13256 public boolean isSet(_Fields field) {
13257 if (field == null) {
13258 throw new IllegalArgumentException();
13263 return isSetPeerIp();
13265 throw new IllegalStateException();
13269 public boolean equals(Object that) {
13272 if (that instanceof unsetEbgpMultihop_args)
13273 return this.equals((unsetEbgpMultihop_args)that);
13277 public boolean equals(unsetEbgpMultihop_args that) {
13281 boolean this_present_peerIp = true && this.isSetPeerIp();
13282 boolean that_present_peerIp = true && that.isSetPeerIp();
13283 if (this_present_peerIp || that_present_peerIp) {
13284 if (!(this_present_peerIp && that_present_peerIp))
13286 if (!this.peerIp.equals(that.peerIp))
13294 public int hashCode() {
13299 public int compareTo(unsetEbgpMultihop_args other) {
13300 if (!getClass().equals(other.getClass())) {
13301 return getClass().getName().compareTo(other.getClass().getName());
13304 int lastComparison = 0;
13306 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
13307 if (lastComparison != 0) {
13308 return lastComparison;
13310 if (isSetPeerIp()) {
13311 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
13312 if (lastComparison != 0) {
13313 return lastComparison;
13319 public _Fields fieldForId(int fieldId) {
13320 return _Fields.findByThriftId(fieldId);
13323 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13324 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13327 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13328 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13332 public String toString() {
13333 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
13334 boolean first = true;
13336 sb.append("peerIp:");
13337 if (this.peerIp == null) {
13340 sb.append(this.peerIp);
13344 return sb.toString();
13347 public void validate() throws org.apache.thrift.TException {
13348 // check for required fields
13349 // check for sub-struct validity
13352 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13354 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13355 } catch (org.apache.thrift.TException te) {
13356 throw new java.io.IOException(te);
13360 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13362 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13363 } catch (org.apache.thrift.TException te) {
13364 throw new java.io.IOException(te);
13368 private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
13369 public unsetEbgpMultihop_argsStandardScheme getScheme() {
13370 return new unsetEbgpMultihop_argsStandardScheme();
13374 private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
13376 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13377 org.apache.thrift.protocol.TField schemeField;
13378 iprot.readStructBegin();
13381 schemeField = iprot.readFieldBegin();
13382 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13385 switch (schemeField.id) {
13387 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13388 struct.peerIp = iprot.readString();
13389 struct.setPeerIpIsSet(true);
13391 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13395 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13397 iprot.readFieldEnd();
13399 iprot.readStructEnd();
13401 // check for required fields of primitive type, which can't be checked in the validate method
13405 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13408 oprot.writeStructBegin(STRUCT_DESC);
13409 if (struct.peerIp != null) {
13410 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
13411 oprot.writeString(struct.peerIp);
13412 oprot.writeFieldEnd();
13414 oprot.writeFieldStop();
13415 oprot.writeStructEnd();
13420 private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
13421 public unsetEbgpMultihop_argsTupleScheme getScheme() {
13422 return new unsetEbgpMultihop_argsTupleScheme();
13426 private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
13429 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13430 TTupleProtocol oprot = (TTupleProtocol) prot;
13431 BitSet optionals = new BitSet();
13432 if (struct.isSetPeerIp()) {
13435 oprot.writeBitSet(optionals, 1);
13436 if (struct.isSetPeerIp()) {
13437 oprot.writeString(struct.peerIp);
13442 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
13443 TTupleProtocol iprot = (TTupleProtocol) prot;
13444 BitSet incoming = iprot.readBitSet(1);
13445 if (incoming.get(0)) {
13446 struct.peerIp = iprot.readString();
13447 struct.setPeerIpIsSet(true);
13454 public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result> {
13455 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
13457 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);
13459 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13461 schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
13462 schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
13465 public int success; // required
13467 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13468 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13469 SUCCESS((short)0, "success");
13471 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13474 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13475 byName.put(field.getFieldName(), field);
13480 * Find the _Fields constant that matches fieldId, or null if its not found.
13482 public static _Fields findByThriftId(int fieldId) {
13492 * Find the _Fields constant that matches fieldId, throwing an exception
13493 * if it is not found.
13495 public static _Fields findByThriftIdOrThrow(int fieldId) {
13496 _Fields fields = findByThriftId(fieldId);
13497 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13502 * Find the _Fields constant that matches name, or null if its not found.
13504 public static _Fields findByName(String name) {
13505 return byName.get(name);
13508 private final short _thriftId;
13509 private final String _fieldName;
13511 _Fields(short thriftId, String fieldName) {
13512 _thriftId = thriftId;
13513 _fieldName = fieldName;
13516 public short getThriftFieldId() {
13520 public String getFieldName() {
13525 // isset id assignments
13526 private static final int __SUCCESS_ISSET_ID = 0;
13527 private byte __isset_bitfield = 0;
13528 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13530 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13531 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13532 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13533 metaDataMap = Collections.unmodifiableMap(tmpMap);
13534 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
13537 public unsetEbgpMultihop_result() {
13540 public unsetEbgpMultihop_result(
13544 this.success = success;
13545 setSuccessIsSet(true);
13549 * Performs a deep copy on <i>other</i>.
13551 public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
13552 __isset_bitfield = other.__isset_bitfield;
13553 this.success = other.success;
13556 public unsetEbgpMultihop_result deepCopy() {
13557 return new unsetEbgpMultihop_result(this);
13561 public void clear() {
13562 setSuccessIsSet(false);
13566 public int getSuccess() {
13567 return this.success;
13570 public unsetEbgpMultihop_result setSuccess(int success) {
13571 this.success = success;
13572 setSuccessIsSet(true);
13576 public void unsetSuccess() {
13577 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13580 /** Returns true if field success is set (has been assigned a value) and false otherwise */
13581 public boolean isSetSuccess() {
13582 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13585 public void setSuccessIsSet(boolean value) {
13586 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13589 public void setFieldValue(_Fields field, Object value) {
13592 if (value == null) {
13595 setSuccess((Integer)value);
13602 public Object getFieldValue(_Fields field) {
13605 return Integer.valueOf(getSuccess());
13608 throw new IllegalStateException();
13611 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13612 public boolean isSet(_Fields field) {
13613 if (field == null) {
13614 throw new IllegalArgumentException();
13619 return isSetSuccess();
13621 throw new IllegalStateException();
13625 public boolean equals(Object that) {
13628 if (that instanceof unsetEbgpMultihop_result)
13629 return this.equals((unsetEbgpMultihop_result)that);
13633 public boolean equals(unsetEbgpMultihop_result that) {
13637 boolean this_present_success = true;
13638 boolean that_present_success = true;
13639 if (this_present_success || that_present_success) {
13640 if (!(this_present_success && that_present_success))
13642 if (this.success != that.success)
13650 public int hashCode() {
13655 public int compareTo(unsetEbgpMultihop_result other) {
13656 if (!getClass().equals(other.getClass())) {
13657 return getClass().getName().compareTo(other.getClass().getName());
13660 int lastComparison = 0;
13662 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13663 if (lastComparison != 0) {
13664 return lastComparison;
13666 if (isSetSuccess()) {
13667 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13668 if (lastComparison != 0) {
13669 return lastComparison;
13675 public _Fields fieldForId(int fieldId) {
13676 return _Fields.findByThriftId(fieldId);
13679 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13680 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13683 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13684 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13688 public String toString() {
13689 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
13690 boolean first = true;
13692 sb.append("success:");
13693 sb.append(this.success);
13696 return sb.toString();
13699 public void validate() throws org.apache.thrift.TException {
13700 // check for required fields
13701 // check for sub-struct validity
13704 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13706 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13707 } catch (org.apache.thrift.TException te) {
13708 throw new java.io.IOException(te);
13712 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13714 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13715 __isset_bitfield = 0;
13716 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13717 } catch (org.apache.thrift.TException te) {
13718 throw new java.io.IOException(te);
13722 private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
13723 public unsetEbgpMultihop_resultStandardScheme getScheme() {
13724 return new unsetEbgpMultihop_resultStandardScheme();
13728 private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
13730 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13731 org.apache.thrift.protocol.TField schemeField;
13732 iprot.readStructBegin();
13735 schemeField = iprot.readFieldBegin();
13736 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13739 switch (schemeField.id) {
13741 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13742 struct.success = iprot.readI32();
13743 struct.setSuccessIsSet(true);
13745 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13749 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13751 iprot.readFieldEnd();
13753 iprot.readStructEnd();
13755 // check for required fields of primitive type, which can't be checked in the validate method
13759 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13762 oprot.writeStructBegin(STRUCT_DESC);
13763 if (struct.isSetSuccess()) {
13764 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13765 oprot.writeI32(struct.success);
13766 oprot.writeFieldEnd();
13768 oprot.writeFieldStop();
13769 oprot.writeStructEnd();
13774 private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
13775 public unsetEbgpMultihop_resultTupleScheme getScheme() {
13776 return new unsetEbgpMultihop_resultTupleScheme();
13780 private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
13783 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13784 TTupleProtocol oprot = (TTupleProtocol) prot;
13785 BitSet optionals = new BitSet();
13786 if (struct.isSetSuccess()) {
13789 oprot.writeBitSet(optionals, 1);
13790 if (struct.isSetSuccess()) {
13791 oprot.writeI32(struct.success);
13796 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
13797 TTupleProtocol iprot = (TTupleProtocol) prot;
13798 BitSet incoming = iprot.readBitSet(1);
13799 if (incoming.get(0)) {
13800 struct.success = iprot.readI32();
13801 struct.setSuccessIsSet(true);
13808 public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args> {
13809 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
13811 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);
13812 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);
13814 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13816 schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
13817 schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
13820 public String peerIp; // required
13821 public String srcIp; // required
13823 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13824 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13825 PEER_IP((short)1, "peerIp"),
13826 SRC_IP((short)2, "srcIp");
13828 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13831 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13832 byName.put(field.getFieldName(), field);
13837 * Find the _Fields constant that matches fieldId, or null if its not found.
13839 public static _Fields findByThriftId(int fieldId) {
13851 * Find the _Fields constant that matches fieldId, throwing an exception
13852 * if it is not found.
13854 public static _Fields findByThriftIdOrThrow(int fieldId) {
13855 _Fields fields = findByThriftId(fieldId);
13856 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13861 * Find the _Fields constant that matches name, or null if its not found.
13863 public static _Fields findByName(String name) {
13864 return byName.get(name);
13867 private final short _thriftId;
13868 private final String _fieldName;
13870 _Fields(short thriftId, String fieldName) {
13871 _thriftId = thriftId;
13872 _fieldName = fieldName;
13875 public short getThriftFieldId() {
13879 public String getFieldName() {
13884 // isset id assignments
13885 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13887 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13888 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13890 tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13891 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13892 metaDataMap = Collections.unmodifiableMap(tmpMap);
13893 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
13896 public setUpdateSource_args() {
13899 public setUpdateSource_args(
13904 this.peerIp = peerIp;
13905 this.srcIp = srcIp;
13909 * Performs a deep copy on <i>other</i>.
13911 public setUpdateSource_args(setUpdateSource_args other) {
13912 if (other.isSetPeerIp()) {
13913 this.peerIp = other.peerIp;
13915 if (other.isSetSrcIp()) {
13916 this.srcIp = other.srcIp;
13920 public setUpdateSource_args deepCopy() {
13921 return new setUpdateSource_args(this);
13925 public void clear() {
13926 this.peerIp = null;
13930 public String getPeerIp() {
13931 return this.peerIp;
13934 public setUpdateSource_args setPeerIp(String peerIp) {
13935 this.peerIp = peerIp;
13939 public void unsetPeerIp() {
13940 this.peerIp = null;
13943 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13944 public boolean isSetPeerIp() {
13945 return this.peerIp != null;
13948 public void setPeerIpIsSet(boolean value) {
13950 this.peerIp = null;
13954 public String getSrcIp() {
13958 public setUpdateSource_args setSrcIp(String srcIp) {
13959 this.srcIp = srcIp;
13963 public void unsetSrcIp() {
13967 /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
13968 public boolean isSetSrcIp() {
13969 return this.srcIp != null;
13972 public void setSrcIpIsSet(boolean value) {
13978 public void setFieldValue(_Fields field, Object value) {
13981 if (value == null) {
13984 setPeerIp((String)value);
13989 if (value == null) {
13992 setSrcIp((String)value);
13999 public Object getFieldValue(_Fields field) {
14002 return getPeerIp();
14008 throw new IllegalStateException();
14011 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14012 public boolean isSet(_Fields field) {
14013 if (field == null) {
14014 throw new IllegalArgumentException();
14019 return isSetPeerIp();
14021 return isSetSrcIp();
14023 throw new IllegalStateException();
14027 public boolean equals(Object that) {
14030 if (that instanceof setUpdateSource_args)
14031 return this.equals((setUpdateSource_args)that);
14035 public boolean equals(setUpdateSource_args that) {
14039 boolean this_present_peerIp = true && this.isSetPeerIp();
14040 boolean that_present_peerIp = true && that.isSetPeerIp();
14041 if (this_present_peerIp || that_present_peerIp) {
14042 if (!(this_present_peerIp && that_present_peerIp))
14044 if (!this.peerIp.equals(that.peerIp))
14048 boolean this_present_srcIp = true && this.isSetSrcIp();
14049 boolean that_present_srcIp = true && that.isSetSrcIp();
14050 if (this_present_srcIp || that_present_srcIp) {
14051 if (!(this_present_srcIp && that_present_srcIp))
14053 if (!this.srcIp.equals(that.srcIp))
14061 public int hashCode() {
14066 public int compareTo(setUpdateSource_args other) {
14067 if (!getClass().equals(other.getClass())) {
14068 return getClass().getName().compareTo(other.getClass().getName());
14071 int lastComparison = 0;
14073 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14074 if (lastComparison != 0) {
14075 return lastComparison;
14077 if (isSetPeerIp()) {
14078 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14079 if (lastComparison != 0) {
14080 return lastComparison;
14083 lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
14084 if (lastComparison != 0) {
14085 return lastComparison;
14087 if (isSetSrcIp()) {
14088 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
14089 if (lastComparison != 0) {
14090 return lastComparison;
14096 public _Fields fieldForId(int fieldId) {
14097 return _Fields.findByThriftId(fieldId);
14100 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14101 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14104 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14105 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14109 public String toString() {
14110 StringBuilder sb = new StringBuilder("setUpdateSource_args(");
14111 boolean first = true;
14113 sb.append("peerIp:");
14114 if (this.peerIp == null) {
14117 sb.append(this.peerIp);
14120 if (!first) sb.append(", ");
14121 sb.append("srcIp:");
14122 if (this.srcIp == null) {
14125 sb.append(this.srcIp);
14129 return sb.toString();
14132 public void validate() throws org.apache.thrift.TException {
14133 // check for required fields
14134 // check for sub-struct validity
14137 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14139 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14140 } catch (org.apache.thrift.TException te) {
14141 throw new java.io.IOException(te);
14145 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14147 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14148 } catch (org.apache.thrift.TException te) {
14149 throw new java.io.IOException(te);
14153 private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
14154 public setUpdateSource_argsStandardScheme getScheme() {
14155 return new setUpdateSource_argsStandardScheme();
14159 private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
14161 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14162 org.apache.thrift.protocol.TField schemeField;
14163 iprot.readStructBegin();
14166 schemeField = iprot.readFieldBegin();
14167 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14170 switch (schemeField.id) {
14172 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14173 struct.peerIp = iprot.readString();
14174 struct.setPeerIpIsSet(true);
14176 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14180 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14181 struct.srcIp = iprot.readString();
14182 struct.setSrcIpIsSet(true);
14184 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14188 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14190 iprot.readFieldEnd();
14192 iprot.readStructEnd();
14194 // check for required fields of primitive type, which can't be checked in the validate method
14198 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14201 oprot.writeStructBegin(STRUCT_DESC);
14202 if (struct.peerIp != null) {
14203 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14204 oprot.writeString(struct.peerIp);
14205 oprot.writeFieldEnd();
14207 if (struct.srcIp != null) {
14208 oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
14209 oprot.writeString(struct.srcIp);
14210 oprot.writeFieldEnd();
14212 oprot.writeFieldStop();
14213 oprot.writeStructEnd();
14218 private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
14219 public setUpdateSource_argsTupleScheme getScheme() {
14220 return new setUpdateSource_argsTupleScheme();
14224 private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
14227 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14228 TTupleProtocol oprot = (TTupleProtocol) prot;
14229 BitSet optionals = new BitSet();
14230 if (struct.isSetPeerIp()) {
14233 if (struct.isSetSrcIp()) {
14236 oprot.writeBitSet(optionals, 2);
14237 if (struct.isSetPeerIp()) {
14238 oprot.writeString(struct.peerIp);
14240 if (struct.isSetSrcIp()) {
14241 oprot.writeString(struct.srcIp);
14246 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
14247 TTupleProtocol iprot = (TTupleProtocol) prot;
14248 BitSet incoming = iprot.readBitSet(2);
14249 if (incoming.get(0)) {
14250 struct.peerIp = iprot.readString();
14251 struct.setPeerIpIsSet(true);
14253 if (incoming.get(1)) {
14254 struct.srcIp = iprot.readString();
14255 struct.setSrcIpIsSet(true);
14262 public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result> {
14263 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
14265 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);
14267 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14269 schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
14270 schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
14273 public int success; // required
14275 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14276 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14277 SUCCESS((short)0, "success");
14279 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14282 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14283 byName.put(field.getFieldName(), field);
14288 * Find the _Fields constant that matches fieldId, or null if its not found.
14290 public static _Fields findByThriftId(int fieldId) {
14300 * Find the _Fields constant that matches fieldId, throwing an exception
14301 * if it is not found.
14303 public static _Fields findByThriftIdOrThrow(int fieldId) {
14304 _Fields fields = findByThriftId(fieldId);
14305 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14310 * Find the _Fields constant that matches name, or null if its not found.
14312 public static _Fields findByName(String name) {
14313 return byName.get(name);
14316 private final short _thriftId;
14317 private final String _fieldName;
14319 _Fields(short thriftId, String fieldName) {
14320 _thriftId = thriftId;
14321 _fieldName = fieldName;
14324 public short getThriftFieldId() {
14328 public String getFieldName() {
14333 // isset id assignments
14334 private static final int __SUCCESS_ISSET_ID = 0;
14335 private byte __isset_bitfield = 0;
14336 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14338 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14339 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14340 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14341 metaDataMap = Collections.unmodifiableMap(tmpMap);
14342 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
14345 public setUpdateSource_result() {
14348 public setUpdateSource_result(
14352 this.success = success;
14353 setSuccessIsSet(true);
14357 * Performs a deep copy on <i>other</i>.
14359 public setUpdateSource_result(setUpdateSource_result other) {
14360 __isset_bitfield = other.__isset_bitfield;
14361 this.success = other.success;
14364 public setUpdateSource_result deepCopy() {
14365 return new setUpdateSource_result(this);
14369 public void clear() {
14370 setSuccessIsSet(false);
14374 public int getSuccess() {
14375 return this.success;
14378 public setUpdateSource_result setSuccess(int success) {
14379 this.success = success;
14380 setSuccessIsSet(true);
14384 public void unsetSuccess() {
14385 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14388 /** Returns true if field success is set (has been assigned a value) and false otherwise */
14389 public boolean isSetSuccess() {
14390 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14393 public void setSuccessIsSet(boolean value) {
14394 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14397 public void setFieldValue(_Fields field, Object value) {
14400 if (value == null) {
14403 setSuccess((Integer)value);
14410 public Object getFieldValue(_Fields field) {
14413 return Integer.valueOf(getSuccess());
14416 throw new IllegalStateException();
14419 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14420 public boolean isSet(_Fields field) {
14421 if (field == null) {
14422 throw new IllegalArgumentException();
14427 return isSetSuccess();
14429 throw new IllegalStateException();
14433 public boolean equals(Object that) {
14436 if (that instanceof setUpdateSource_result)
14437 return this.equals((setUpdateSource_result)that);
14441 public boolean equals(setUpdateSource_result that) {
14445 boolean this_present_success = true;
14446 boolean that_present_success = true;
14447 if (this_present_success || that_present_success) {
14448 if (!(this_present_success && that_present_success))
14450 if (this.success != that.success)
14458 public int hashCode() {
14463 public int compareTo(setUpdateSource_result other) {
14464 if (!getClass().equals(other.getClass())) {
14465 return getClass().getName().compareTo(other.getClass().getName());
14468 int lastComparison = 0;
14470 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14471 if (lastComparison != 0) {
14472 return lastComparison;
14474 if (isSetSuccess()) {
14475 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14476 if (lastComparison != 0) {
14477 return lastComparison;
14483 public _Fields fieldForId(int fieldId) {
14484 return _Fields.findByThriftId(fieldId);
14487 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14488 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14491 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14492 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14496 public String toString() {
14497 StringBuilder sb = new StringBuilder("setUpdateSource_result(");
14498 boolean first = true;
14500 sb.append("success:");
14501 sb.append(this.success);
14504 return sb.toString();
14507 public void validate() throws org.apache.thrift.TException {
14508 // check for required fields
14509 // check for sub-struct validity
14512 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14514 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14515 } catch (org.apache.thrift.TException te) {
14516 throw new java.io.IOException(te);
14520 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14522 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14523 __isset_bitfield = 0;
14524 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14525 } catch (org.apache.thrift.TException te) {
14526 throw new java.io.IOException(te);
14530 private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
14531 public setUpdateSource_resultStandardScheme getScheme() {
14532 return new setUpdateSource_resultStandardScheme();
14536 private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
14538 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14539 org.apache.thrift.protocol.TField schemeField;
14540 iprot.readStructBegin();
14543 schemeField = iprot.readFieldBegin();
14544 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14547 switch (schemeField.id) {
14549 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14550 struct.success = iprot.readI32();
14551 struct.setSuccessIsSet(true);
14553 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14557 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14559 iprot.readFieldEnd();
14561 iprot.readStructEnd();
14563 // check for required fields of primitive type, which can't be checked in the validate method
14567 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14570 oprot.writeStructBegin(STRUCT_DESC);
14571 if (struct.isSetSuccess()) {
14572 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14573 oprot.writeI32(struct.success);
14574 oprot.writeFieldEnd();
14576 oprot.writeFieldStop();
14577 oprot.writeStructEnd();
14582 private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
14583 public setUpdateSource_resultTupleScheme getScheme() {
14584 return new setUpdateSource_resultTupleScheme();
14588 private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
14591 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14592 TTupleProtocol oprot = (TTupleProtocol) prot;
14593 BitSet optionals = new BitSet();
14594 if (struct.isSetSuccess()) {
14597 oprot.writeBitSet(optionals, 1);
14598 if (struct.isSetSuccess()) {
14599 oprot.writeI32(struct.success);
14604 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
14605 TTupleProtocol iprot = (TTupleProtocol) prot;
14606 BitSet incoming = iprot.readBitSet(1);
14607 if (incoming.get(0)) {
14608 struct.success = iprot.readI32();
14609 struct.setSuccessIsSet(true);
14616 public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args> {
14617 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
14619 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);
14621 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14623 schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
14624 schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
14627 public String peerIp; // required
14629 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14630 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14631 PEER_IP((short)1, "peerIp");
14633 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14636 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14637 byName.put(field.getFieldName(), field);
14642 * Find the _Fields constant that matches fieldId, or null if its not found.
14644 public static _Fields findByThriftId(int fieldId) {
14654 * Find the _Fields constant that matches fieldId, throwing an exception
14655 * if it is not found.
14657 public static _Fields findByThriftIdOrThrow(int fieldId) {
14658 _Fields fields = findByThriftId(fieldId);
14659 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14664 * Find the _Fields constant that matches name, or null if its not found.
14666 public static _Fields findByName(String name) {
14667 return byName.get(name);
14670 private final short _thriftId;
14671 private final String _fieldName;
14673 _Fields(short thriftId, String fieldName) {
14674 _thriftId = thriftId;
14675 _fieldName = fieldName;
14678 public short getThriftFieldId() {
14682 public String getFieldName() {
14687 // isset id assignments
14688 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14690 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14691 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
14692 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14693 metaDataMap = Collections.unmodifiableMap(tmpMap);
14694 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
14697 public unsetUpdateSource_args() {
14700 public unsetUpdateSource_args(
14704 this.peerIp = peerIp;
14708 * Performs a deep copy on <i>other</i>.
14710 public unsetUpdateSource_args(unsetUpdateSource_args other) {
14711 if (other.isSetPeerIp()) {
14712 this.peerIp = other.peerIp;
14716 public unsetUpdateSource_args deepCopy() {
14717 return new unsetUpdateSource_args(this);
14721 public void clear() {
14722 this.peerIp = null;
14725 public String getPeerIp() {
14726 return this.peerIp;
14729 public unsetUpdateSource_args setPeerIp(String peerIp) {
14730 this.peerIp = peerIp;
14734 public void unsetPeerIp() {
14735 this.peerIp = null;
14738 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14739 public boolean isSetPeerIp() {
14740 return this.peerIp != null;
14743 public void setPeerIpIsSet(boolean value) {
14745 this.peerIp = null;
14749 public void setFieldValue(_Fields field, Object value) {
14752 if (value == null) {
14755 setPeerIp((String)value);
14762 public Object getFieldValue(_Fields field) {
14765 return getPeerIp();
14768 throw new IllegalStateException();
14771 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14772 public boolean isSet(_Fields field) {
14773 if (field == null) {
14774 throw new IllegalArgumentException();
14779 return isSetPeerIp();
14781 throw new IllegalStateException();
14785 public boolean equals(Object that) {
14788 if (that instanceof unsetUpdateSource_args)
14789 return this.equals((unsetUpdateSource_args)that);
14793 public boolean equals(unsetUpdateSource_args that) {
14797 boolean this_present_peerIp = true && this.isSetPeerIp();
14798 boolean that_present_peerIp = true && that.isSetPeerIp();
14799 if (this_present_peerIp || that_present_peerIp) {
14800 if (!(this_present_peerIp && that_present_peerIp))
14802 if (!this.peerIp.equals(that.peerIp))
14810 public int hashCode() {
14815 public int compareTo(unsetUpdateSource_args other) {
14816 if (!getClass().equals(other.getClass())) {
14817 return getClass().getName().compareTo(other.getClass().getName());
14820 int lastComparison = 0;
14822 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14823 if (lastComparison != 0) {
14824 return lastComparison;
14826 if (isSetPeerIp()) {
14827 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14828 if (lastComparison != 0) {
14829 return lastComparison;
14835 public _Fields fieldForId(int fieldId) {
14836 return _Fields.findByThriftId(fieldId);
14839 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14840 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14843 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14844 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14848 public String toString() {
14849 StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
14850 boolean first = true;
14852 sb.append("peerIp:");
14853 if (this.peerIp == null) {
14856 sb.append(this.peerIp);
14860 return sb.toString();
14863 public void validate() throws org.apache.thrift.TException {
14864 // check for required fields
14865 // check for sub-struct validity
14868 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14870 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14871 } catch (org.apache.thrift.TException te) {
14872 throw new java.io.IOException(te);
14876 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14878 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14879 } catch (org.apache.thrift.TException te) {
14880 throw new java.io.IOException(te);
14884 private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
14885 public unsetUpdateSource_argsStandardScheme getScheme() {
14886 return new unsetUpdateSource_argsStandardScheme();
14890 private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
14892 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14893 org.apache.thrift.protocol.TField schemeField;
14894 iprot.readStructBegin();
14897 schemeField = iprot.readFieldBegin();
14898 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14901 switch (schemeField.id) {
14903 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14904 struct.peerIp = iprot.readString();
14905 struct.setPeerIpIsSet(true);
14907 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14911 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14913 iprot.readFieldEnd();
14915 iprot.readStructEnd();
14917 // check for required fields of primitive type, which can't be checked in the validate method
14921 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14924 oprot.writeStructBegin(STRUCT_DESC);
14925 if (struct.peerIp != null) {
14926 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14927 oprot.writeString(struct.peerIp);
14928 oprot.writeFieldEnd();
14930 oprot.writeFieldStop();
14931 oprot.writeStructEnd();
14936 private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
14937 public unsetUpdateSource_argsTupleScheme getScheme() {
14938 return new unsetUpdateSource_argsTupleScheme();
14942 private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
14945 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14946 TTupleProtocol oprot = (TTupleProtocol) prot;
14947 BitSet optionals = new BitSet();
14948 if (struct.isSetPeerIp()) {
14951 oprot.writeBitSet(optionals, 1);
14952 if (struct.isSetPeerIp()) {
14953 oprot.writeString(struct.peerIp);
14958 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
14959 TTupleProtocol iprot = (TTupleProtocol) prot;
14960 BitSet incoming = iprot.readBitSet(1);
14961 if (incoming.get(0)) {
14962 struct.peerIp = iprot.readString();
14963 struct.setPeerIpIsSet(true);
14970 public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result> {
14971 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
14973 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);
14975 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14977 schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
14978 schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
14981 public int success; // required
14983 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14984 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14985 SUCCESS((short)0, "success");
14987 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14990 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14991 byName.put(field.getFieldName(), field);
14996 * Find the _Fields constant that matches fieldId, or null if its not found.
14998 public static _Fields findByThriftId(int fieldId) {
15008 * Find the _Fields constant that matches fieldId, throwing an exception
15009 * if it is not found.
15011 public static _Fields findByThriftIdOrThrow(int fieldId) {
15012 _Fields fields = findByThriftId(fieldId);
15013 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15018 * Find the _Fields constant that matches name, or null if its not found.
15020 public static _Fields findByName(String name) {
15021 return byName.get(name);
15024 private final short _thriftId;
15025 private final String _fieldName;
15027 _Fields(short thriftId, String fieldName) {
15028 _thriftId = thriftId;
15029 _fieldName = fieldName;
15032 public short getThriftFieldId() {
15036 public String getFieldName() {
15041 // isset id assignments
15042 private static final int __SUCCESS_ISSET_ID = 0;
15043 private byte __isset_bitfield = 0;
15044 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15046 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15047 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15048 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15049 metaDataMap = Collections.unmodifiableMap(tmpMap);
15050 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
15053 public unsetUpdateSource_result() {
15056 public unsetUpdateSource_result(
15060 this.success = success;
15061 setSuccessIsSet(true);
15065 * Performs a deep copy on <i>other</i>.
15067 public unsetUpdateSource_result(unsetUpdateSource_result other) {
15068 __isset_bitfield = other.__isset_bitfield;
15069 this.success = other.success;
15072 public unsetUpdateSource_result deepCopy() {
15073 return new unsetUpdateSource_result(this);
15077 public void clear() {
15078 setSuccessIsSet(false);
15082 public int getSuccess() {
15083 return this.success;
15086 public unsetUpdateSource_result setSuccess(int success) {
15087 this.success = success;
15088 setSuccessIsSet(true);
15092 public void unsetSuccess() {
15093 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15096 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15097 public boolean isSetSuccess() {
15098 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15101 public void setSuccessIsSet(boolean value) {
15102 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15105 public void setFieldValue(_Fields field, Object value) {
15108 if (value == null) {
15111 setSuccess((Integer)value);
15118 public Object getFieldValue(_Fields field) {
15121 return Integer.valueOf(getSuccess());
15124 throw new IllegalStateException();
15127 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15128 public boolean isSet(_Fields field) {
15129 if (field == null) {
15130 throw new IllegalArgumentException();
15135 return isSetSuccess();
15137 throw new IllegalStateException();
15141 public boolean equals(Object that) {
15144 if (that instanceof unsetUpdateSource_result)
15145 return this.equals((unsetUpdateSource_result)that);
15149 public boolean equals(unsetUpdateSource_result that) {
15153 boolean this_present_success = true;
15154 boolean that_present_success = true;
15155 if (this_present_success || that_present_success) {
15156 if (!(this_present_success && that_present_success))
15158 if (this.success != that.success)
15166 public int hashCode() {
15171 public int compareTo(unsetUpdateSource_result other) {
15172 if (!getClass().equals(other.getClass())) {
15173 return getClass().getName().compareTo(other.getClass().getName());
15176 int lastComparison = 0;
15178 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15179 if (lastComparison != 0) {
15180 return lastComparison;
15182 if (isSetSuccess()) {
15183 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15184 if (lastComparison != 0) {
15185 return lastComparison;
15191 public _Fields fieldForId(int fieldId) {
15192 return _Fields.findByThriftId(fieldId);
15195 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15196 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15199 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15200 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15204 public String toString() {
15205 StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
15206 boolean first = true;
15208 sb.append("success:");
15209 sb.append(this.success);
15212 return sb.toString();
15215 public void validate() throws org.apache.thrift.TException {
15216 // check for required fields
15217 // check for sub-struct validity
15220 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15222 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15223 } catch (org.apache.thrift.TException te) {
15224 throw new java.io.IOException(te);
15228 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15230 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15231 __isset_bitfield = 0;
15232 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15233 } catch (org.apache.thrift.TException te) {
15234 throw new java.io.IOException(te);
15238 private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
15239 public unsetUpdateSource_resultStandardScheme getScheme() {
15240 return new unsetUpdateSource_resultStandardScheme();
15244 private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
15246 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15247 org.apache.thrift.protocol.TField schemeField;
15248 iprot.readStructBegin();
15251 schemeField = iprot.readFieldBegin();
15252 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15255 switch (schemeField.id) {
15257 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15258 struct.success = iprot.readI32();
15259 struct.setSuccessIsSet(true);
15261 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15265 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15267 iprot.readFieldEnd();
15269 iprot.readStructEnd();
15271 // check for required fields of primitive type, which can't be checked in the validate method
15275 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15278 oprot.writeStructBegin(STRUCT_DESC);
15279 if (struct.isSetSuccess()) {
15280 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15281 oprot.writeI32(struct.success);
15282 oprot.writeFieldEnd();
15284 oprot.writeFieldStop();
15285 oprot.writeStructEnd();
15290 private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
15291 public unsetUpdateSource_resultTupleScheme getScheme() {
15292 return new unsetUpdateSource_resultTupleScheme();
15296 private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
15299 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15300 TTupleProtocol oprot = (TTupleProtocol) prot;
15301 BitSet optionals = new BitSet();
15302 if (struct.isSetSuccess()) {
15305 oprot.writeBitSet(optionals, 1);
15306 if (struct.isSetSuccess()) {
15307 oprot.writeI32(struct.success);
15312 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
15313 TTupleProtocol iprot = (TTupleProtocol) prot;
15314 BitSet incoming = iprot.readBitSet(1);
15315 if (incoming.get(0)) {
15316 struct.success = iprot.readI32();
15317 struct.setSuccessIsSet(true);
15324 public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args> {
15325 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
15327 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);
15328 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);
15329 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);
15331 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15333 schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
15334 schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
15337 public String peerIp; // required
15342 public af_afi afi; // required
15347 public af_safi safi; // required
15349 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15350 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15351 PEER_IP((short)1, "peerIp"),
15356 AFI((short)2, "afi"),
15361 SAFI((short)3, "safi");
15363 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15366 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15367 byName.put(field.getFieldName(), field);
15372 * Find the _Fields constant that matches fieldId, or null if its not found.
15374 public static _Fields findByThriftId(int fieldId) {
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 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15424 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15425 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15426 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15427 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
15428 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
15429 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
15430 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
15431 metaDataMap = Collections.unmodifiableMap(tmpMap);
15432 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
15435 public enableAddressFamily_args() {
15438 public enableAddressFamily_args(
15444 this.peerIp = peerIp;
15450 * Performs a deep copy on <i>other</i>.
15452 public enableAddressFamily_args(enableAddressFamily_args other) {
15453 if (other.isSetPeerIp()) {
15454 this.peerIp = other.peerIp;
15456 if (other.isSetAfi()) {
15457 this.afi = other.afi;
15459 if (other.isSetSafi()) {
15460 this.safi = other.safi;
15464 public enableAddressFamily_args deepCopy() {
15465 return new enableAddressFamily_args(this);
15469 public void clear() {
15470 this.peerIp = null;
15475 public String getPeerIp() {
15476 return this.peerIp;
15479 public enableAddressFamily_args setPeerIp(String peerIp) {
15480 this.peerIp = peerIp;
15484 public void unsetPeerIp() {
15485 this.peerIp = null;
15488 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15489 public boolean isSetPeerIp() {
15490 return this.peerIp != null;
15493 public void setPeerIpIsSet(boolean value) {
15495 this.peerIp = null;
15503 public af_afi getAfi() {
15511 public enableAddressFamily_args setAfi(af_afi afi) {
15516 public void unsetAfi() {
15520 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
15521 public boolean isSetAfi() {
15522 return this.afi != null;
15525 public void setAfiIsSet(boolean value) {
15535 public af_safi getSafi() {
15543 public enableAddressFamily_args setSafi(af_safi safi) {
15548 public void unsetSafi() {
15552 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
15553 public boolean isSetSafi() {
15554 return this.safi != null;
15557 public void setSafiIsSet(boolean value) {
15563 public void setFieldValue(_Fields field, Object value) {
15566 if (value == null) {
15569 setPeerIp((String)value);
15574 if (value == null) {
15577 setAfi((af_afi)value);
15582 if (value == null) {
15585 setSafi((af_safi)value);
15592 public Object getFieldValue(_Fields field) {
15595 return getPeerIp();
15604 throw new IllegalStateException();
15607 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15608 public boolean isSet(_Fields field) {
15609 if (field == null) {
15610 throw new IllegalArgumentException();
15615 return isSetPeerIp();
15619 return isSetSafi();
15621 throw new IllegalStateException();
15625 public boolean equals(Object that) {
15628 if (that instanceof enableAddressFamily_args)
15629 return this.equals((enableAddressFamily_args)that);
15633 public boolean equals(enableAddressFamily_args that) {
15637 boolean this_present_peerIp = true && this.isSetPeerIp();
15638 boolean that_present_peerIp = true && that.isSetPeerIp();
15639 if (this_present_peerIp || that_present_peerIp) {
15640 if (!(this_present_peerIp && that_present_peerIp))
15642 if (!this.peerIp.equals(that.peerIp))
15646 boolean this_present_afi = true && this.isSetAfi();
15647 boolean that_present_afi = true && that.isSetAfi();
15648 if (this_present_afi || that_present_afi) {
15649 if (!(this_present_afi && that_present_afi))
15651 if (!this.afi.equals(that.afi))
15655 boolean this_present_safi = true && this.isSetSafi();
15656 boolean that_present_safi = true && that.isSetSafi();
15657 if (this_present_safi || that_present_safi) {
15658 if (!(this_present_safi && that_present_safi))
15660 if (!this.safi.equals(that.safi))
15668 public int hashCode() {
15673 public int compareTo(enableAddressFamily_args other) {
15674 if (!getClass().equals(other.getClass())) {
15675 return getClass().getName().compareTo(other.getClass().getName());
15678 int lastComparison = 0;
15680 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15681 if (lastComparison != 0) {
15682 return lastComparison;
15684 if (isSetPeerIp()) {
15685 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15686 if (lastComparison != 0) {
15687 return lastComparison;
15690 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
15691 if (lastComparison != 0) {
15692 return lastComparison;
15695 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
15696 if (lastComparison != 0) {
15697 return lastComparison;
15700 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
15701 if (lastComparison != 0) {
15702 return lastComparison;
15705 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
15706 if (lastComparison != 0) {
15707 return lastComparison;
15713 public _Fields fieldForId(int fieldId) {
15714 return _Fields.findByThriftId(fieldId);
15717 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15718 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15721 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15722 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15726 public String toString() {
15727 StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
15728 boolean first = true;
15730 sb.append("peerIp:");
15731 if (this.peerIp == null) {
15734 sb.append(this.peerIp);
15737 if (!first) sb.append(", ");
15739 if (this.afi == null) {
15742 sb.append(this.afi);
15745 if (!first) sb.append(", ");
15746 sb.append("safi:");
15747 if (this.safi == null) {
15750 sb.append(this.safi);
15754 return sb.toString();
15757 public void validate() throws org.apache.thrift.TException {
15758 // check for required fields
15759 // check for sub-struct validity
15762 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15764 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15765 } catch (org.apache.thrift.TException te) {
15766 throw new java.io.IOException(te);
15770 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15772 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15773 } catch (org.apache.thrift.TException te) {
15774 throw new java.io.IOException(te);
15778 private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
15779 public enableAddressFamily_argsStandardScheme getScheme() {
15780 return new enableAddressFamily_argsStandardScheme();
15784 private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
15786 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15787 org.apache.thrift.protocol.TField schemeField;
15788 iprot.readStructBegin();
15791 schemeField = iprot.readFieldBegin();
15792 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15795 switch (schemeField.id) {
15797 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15798 struct.peerIp = iprot.readString();
15799 struct.setPeerIpIsSet(true);
15801 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15805 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15806 struct.afi = af_afi.findByValue(iprot.readI32());
15807 struct.setAfiIsSet(true);
15809 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15813 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15814 struct.safi = af_safi.findByValue(iprot.readI32());
15815 struct.setSafiIsSet(true);
15817 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15821 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15823 iprot.readFieldEnd();
15825 iprot.readStructEnd();
15827 // check for required fields of primitive type, which can't be checked in the validate method
15831 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15834 oprot.writeStructBegin(STRUCT_DESC);
15835 if (struct.peerIp != null) {
15836 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15837 oprot.writeString(struct.peerIp);
15838 oprot.writeFieldEnd();
15840 if (struct.afi != null) {
15841 oprot.writeFieldBegin(AFI_FIELD_DESC);
15842 oprot.writeI32(struct.afi.getValue());
15843 oprot.writeFieldEnd();
15845 if (struct.safi != null) {
15846 oprot.writeFieldBegin(SAFI_FIELD_DESC);
15847 oprot.writeI32(struct.safi.getValue());
15848 oprot.writeFieldEnd();
15850 oprot.writeFieldStop();
15851 oprot.writeStructEnd();
15856 private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
15857 public enableAddressFamily_argsTupleScheme getScheme() {
15858 return new enableAddressFamily_argsTupleScheme();
15862 private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
15865 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15866 TTupleProtocol oprot = (TTupleProtocol) prot;
15867 BitSet optionals = new BitSet();
15868 if (struct.isSetPeerIp()) {
15871 if (struct.isSetAfi()) {
15874 if (struct.isSetSafi()) {
15877 oprot.writeBitSet(optionals, 3);
15878 if (struct.isSetPeerIp()) {
15879 oprot.writeString(struct.peerIp);
15881 if (struct.isSetAfi()) {
15882 oprot.writeI32(struct.afi.getValue());
15884 if (struct.isSetSafi()) {
15885 oprot.writeI32(struct.safi.getValue());
15890 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
15891 TTupleProtocol iprot = (TTupleProtocol) prot;
15892 BitSet incoming = iprot.readBitSet(3);
15893 if (incoming.get(0)) {
15894 struct.peerIp = iprot.readString();
15895 struct.setPeerIpIsSet(true);
15897 if (incoming.get(1)) {
15898 struct.afi = af_afi.findByValue(iprot.readI32());
15899 struct.setAfiIsSet(true);
15901 if (incoming.get(2)) {
15902 struct.safi = af_safi.findByValue(iprot.readI32());
15903 struct.setSafiIsSet(true);
15910 public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result> {
15911 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
15913 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);
15915 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15917 schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
15918 schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
15921 public int success; // required
15923 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15924 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15925 SUCCESS((short)0, "success");
15927 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15930 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15931 byName.put(field.getFieldName(), field);
15936 * Find the _Fields constant that matches fieldId, or null if its not found.
15938 public static _Fields findByThriftId(int fieldId) {
15948 * Find the _Fields constant that matches fieldId, throwing an exception
15949 * if it is not found.
15951 public static _Fields findByThriftIdOrThrow(int fieldId) {
15952 _Fields fields = findByThriftId(fieldId);
15953 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15958 * Find the _Fields constant that matches name, or null if its not found.
15960 public static _Fields findByName(String name) {
15961 return byName.get(name);
15964 private final short _thriftId;
15965 private final String _fieldName;
15967 _Fields(short thriftId, String fieldName) {
15968 _thriftId = thriftId;
15969 _fieldName = fieldName;
15972 public short getThriftFieldId() {
15976 public String getFieldName() {
15981 // isset id assignments
15982 private static final int __SUCCESS_ISSET_ID = 0;
15983 private byte __isset_bitfield = 0;
15984 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15986 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15987 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15988 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15989 metaDataMap = Collections.unmodifiableMap(tmpMap);
15990 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
15993 public enableAddressFamily_result() {
15996 public enableAddressFamily_result(
16000 this.success = success;
16001 setSuccessIsSet(true);
16005 * Performs a deep copy on <i>other</i>.
16007 public enableAddressFamily_result(enableAddressFamily_result other) {
16008 __isset_bitfield = other.__isset_bitfield;
16009 this.success = other.success;
16012 public enableAddressFamily_result deepCopy() {
16013 return new enableAddressFamily_result(this);
16017 public void clear() {
16018 setSuccessIsSet(false);
16022 public int getSuccess() {
16023 return this.success;
16026 public enableAddressFamily_result setSuccess(int success) {
16027 this.success = success;
16028 setSuccessIsSet(true);
16032 public void unsetSuccess() {
16033 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16036 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16037 public boolean isSetSuccess() {
16038 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16041 public void setSuccessIsSet(boolean value) {
16042 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16045 public void setFieldValue(_Fields field, Object value) {
16048 if (value == null) {
16051 setSuccess((Integer)value);
16058 public Object getFieldValue(_Fields field) {
16061 return Integer.valueOf(getSuccess());
16064 throw new IllegalStateException();
16067 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16068 public boolean isSet(_Fields field) {
16069 if (field == null) {
16070 throw new IllegalArgumentException();
16075 return isSetSuccess();
16077 throw new IllegalStateException();
16081 public boolean equals(Object that) {
16084 if (that instanceof enableAddressFamily_result)
16085 return this.equals((enableAddressFamily_result)that);
16089 public boolean equals(enableAddressFamily_result that) {
16093 boolean this_present_success = true;
16094 boolean that_present_success = true;
16095 if (this_present_success || that_present_success) {
16096 if (!(this_present_success && that_present_success))
16098 if (this.success != that.success)
16106 public int hashCode() {
16111 public int compareTo(enableAddressFamily_result other) {
16112 if (!getClass().equals(other.getClass())) {
16113 return getClass().getName().compareTo(other.getClass().getName());
16116 int lastComparison = 0;
16118 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16119 if (lastComparison != 0) {
16120 return lastComparison;
16122 if (isSetSuccess()) {
16123 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16124 if (lastComparison != 0) {
16125 return lastComparison;
16131 public _Fields fieldForId(int fieldId) {
16132 return _Fields.findByThriftId(fieldId);
16135 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16136 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16139 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16140 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16144 public String toString() {
16145 StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
16146 boolean first = true;
16148 sb.append("success:");
16149 sb.append(this.success);
16152 return sb.toString();
16155 public void validate() throws org.apache.thrift.TException {
16156 // check for required fields
16157 // check for sub-struct validity
16160 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16162 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16163 } catch (org.apache.thrift.TException te) {
16164 throw new java.io.IOException(te);
16168 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16170 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16171 __isset_bitfield = 0;
16172 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16173 } catch (org.apache.thrift.TException te) {
16174 throw new java.io.IOException(te);
16178 private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
16179 public enableAddressFamily_resultStandardScheme getScheme() {
16180 return new enableAddressFamily_resultStandardScheme();
16184 private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
16186 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16187 org.apache.thrift.protocol.TField schemeField;
16188 iprot.readStructBegin();
16191 schemeField = iprot.readFieldBegin();
16192 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16195 switch (schemeField.id) {
16197 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16198 struct.success = iprot.readI32();
16199 struct.setSuccessIsSet(true);
16201 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16205 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16207 iprot.readFieldEnd();
16209 iprot.readStructEnd();
16211 // check for required fields of primitive type, which can't be checked in the validate method
16215 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16218 oprot.writeStructBegin(STRUCT_DESC);
16219 if (struct.isSetSuccess()) {
16220 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16221 oprot.writeI32(struct.success);
16222 oprot.writeFieldEnd();
16224 oprot.writeFieldStop();
16225 oprot.writeStructEnd();
16230 private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
16231 public enableAddressFamily_resultTupleScheme getScheme() {
16232 return new enableAddressFamily_resultTupleScheme();
16236 private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
16239 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16240 TTupleProtocol oprot = (TTupleProtocol) prot;
16241 BitSet optionals = new BitSet();
16242 if (struct.isSetSuccess()) {
16245 oprot.writeBitSet(optionals, 1);
16246 if (struct.isSetSuccess()) {
16247 oprot.writeI32(struct.success);
16252 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
16253 TTupleProtocol iprot = (TTupleProtocol) prot;
16254 BitSet incoming = iprot.readBitSet(1);
16255 if (incoming.get(0)) {
16256 struct.success = iprot.readI32();
16257 struct.setSuccessIsSet(true);
16264 public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args> {
16265 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
16267 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);
16268 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);
16269 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);
16271 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16273 schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
16274 schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
16277 public String peerIp; // required
16282 public af_afi afi; // required
16287 public af_safi safi; // required
16289 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16290 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16291 PEER_IP((short)1, "peerIp"),
16296 AFI((short)2, "afi"),
16301 SAFI((short)3, "safi");
16303 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16306 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16307 byName.put(field.getFieldName(), field);
16312 * Find the _Fields constant that matches fieldId, or null if its not found.
16314 public static _Fields findByThriftId(int fieldId) {
16328 * Find the _Fields constant that matches fieldId, throwing an exception
16329 * if it is not found.
16331 public static _Fields findByThriftIdOrThrow(int fieldId) {
16332 _Fields fields = findByThriftId(fieldId);
16333 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16338 * Find the _Fields constant that matches name, or null if its not found.
16340 public static _Fields findByName(String name) {
16341 return byName.get(name);
16344 private final short _thriftId;
16345 private final String _fieldName;
16347 _Fields(short thriftId, String fieldName) {
16348 _thriftId = thriftId;
16349 _fieldName = fieldName;
16352 public short getThriftFieldId() {
16356 public String getFieldName() {
16361 // isset id assignments
16362 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16364 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16365 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16366 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16367 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
16368 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
16369 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
16370 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
16371 metaDataMap = Collections.unmodifiableMap(tmpMap);
16372 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
16375 public disableAddressFamily_args() {
16378 public disableAddressFamily_args(
16384 this.peerIp = peerIp;
16390 * Performs a deep copy on <i>other</i>.
16392 public disableAddressFamily_args(disableAddressFamily_args other) {
16393 if (other.isSetPeerIp()) {
16394 this.peerIp = other.peerIp;
16396 if (other.isSetAfi()) {
16397 this.afi = other.afi;
16399 if (other.isSetSafi()) {
16400 this.safi = other.safi;
16404 public disableAddressFamily_args deepCopy() {
16405 return new disableAddressFamily_args(this);
16409 public void clear() {
16410 this.peerIp = null;
16415 public String getPeerIp() {
16416 return this.peerIp;
16419 public disableAddressFamily_args setPeerIp(String peerIp) {
16420 this.peerIp = peerIp;
16424 public void unsetPeerIp() {
16425 this.peerIp = null;
16428 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16429 public boolean isSetPeerIp() {
16430 return this.peerIp != null;
16433 public void setPeerIpIsSet(boolean value) {
16435 this.peerIp = null;
16443 public af_afi getAfi() {
16451 public disableAddressFamily_args setAfi(af_afi afi) {
16456 public void unsetAfi() {
16460 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
16461 public boolean isSetAfi() {
16462 return this.afi != null;
16465 public void setAfiIsSet(boolean value) {
16475 public af_safi getSafi() {
16483 public disableAddressFamily_args setSafi(af_safi safi) {
16488 public void unsetSafi() {
16492 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
16493 public boolean isSetSafi() {
16494 return this.safi != null;
16497 public void setSafiIsSet(boolean value) {
16503 public void setFieldValue(_Fields field, Object value) {
16506 if (value == null) {
16509 setPeerIp((String)value);
16514 if (value == null) {
16517 setAfi((af_afi)value);
16522 if (value == null) {
16525 setSafi((af_safi)value);
16532 public Object getFieldValue(_Fields field) {
16535 return getPeerIp();
16544 throw new IllegalStateException();
16547 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16548 public boolean isSet(_Fields field) {
16549 if (field == null) {
16550 throw new IllegalArgumentException();
16555 return isSetPeerIp();
16559 return isSetSafi();
16561 throw new IllegalStateException();
16565 public boolean equals(Object that) {
16568 if (that instanceof disableAddressFamily_args)
16569 return this.equals((disableAddressFamily_args)that);
16573 public boolean equals(disableAddressFamily_args that) {
16577 boolean this_present_peerIp = true && this.isSetPeerIp();
16578 boolean that_present_peerIp = true && that.isSetPeerIp();
16579 if (this_present_peerIp || that_present_peerIp) {
16580 if (!(this_present_peerIp && that_present_peerIp))
16582 if (!this.peerIp.equals(that.peerIp))
16586 boolean this_present_afi = true && this.isSetAfi();
16587 boolean that_present_afi = true && that.isSetAfi();
16588 if (this_present_afi || that_present_afi) {
16589 if (!(this_present_afi && that_present_afi))
16591 if (!this.afi.equals(that.afi))
16595 boolean this_present_safi = true && this.isSetSafi();
16596 boolean that_present_safi = true && that.isSetSafi();
16597 if (this_present_safi || that_present_safi) {
16598 if (!(this_present_safi && that_present_safi))
16600 if (!this.safi.equals(that.safi))
16608 public int hashCode() {
16613 public int compareTo(disableAddressFamily_args other) {
16614 if (!getClass().equals(other.getClass())) {
16615 return getClass().getName().compareTo(other.getClass().getName());
16618 int lastComparison = 0;
16620 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16621 if (lastComparison != 0) {
16622 return lastComparison;
16624 if (isSetPeerIp()) {
16625 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16626 if (lastComparison != 0) {
16627 return lastComparison;
16630 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
16631 if (lastComparison != 0) {
16632 return lastComparison;
16635 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
16636 if (lastComparison != 0) {
16637 return lastComparison;
16640 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
16641 if (lastComparison != 0) {
16642 return lastComparison;
16645 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
16646 if (lastComparison != 0) {
16647 return lastComparison;
16653 public _Fields fieldForId(int fieldId) {
16654 return _Fields.findByThriftId(fieldId);
16657 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16658 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16661 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16662 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16666 public String toString() {
16667 StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
16668 boolean first = true;
16670 sb.append("peerIp:");
16671 if (this.peerIp == null) {
16674 sb.append(this.peerIp);
16677 if (!first) sb.append(", ");
16679 if (this.afi == null) {
16682 sb.append(this.afi);
16685 if (!first) sb.append(", ");
16686 sb.append("safi:");
16687 if (this.safi == null) {
16690 sb.append(this.safi);
16694 return sb.toString();
16697 public void validate() throws org.apache.thrift.TException {
16698 // check for required fields
16699 // check for sub-struct validity
16702 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16704 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16705 } catch (org.apache.thrift.TException te) {
16706 throw new java.io.IOException(te);
16710 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16712 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16713 } catch (org.apache.thrift.TException te) {
16714 throw new java.io.IOException(te);
16718 private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
16719 public disableAddressFamily_argsStandardScheme getScheme() {
16720 return new disableAddressFamily_argsStandardScheme();
16724 private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
16726 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16727 org.apache.thrift.protocol.TField schemeField;
16728 iprot.readStructBegin();
16731 schemeField = iprot.readFieldBegin();
16732 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16735 switch (schemeField.id) {
16737 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16738 struct.peerIp = iprot.readString();
16739 struct.setPeerIpIsSet(true);
16741 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16745 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16746 struct.afi = af_afi.findByValue(iprot.readI32());
16747 struct.setAfiIsSet(true);
16749 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16753 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16754 struct.safi = af_safi.findByValue(iprot.readI32());
16755 struct.setSafiIsSet(true);
16757 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16761 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16763 iprot.readFieldEnd();
16765 iprot.readStructEnd();
16767 // check for required fields of primitive type, which can't be checked in the validate method
16771 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16774 oprot.writeStructBegin(STRUCT_DESC);
16775 if (struct.peerIp != null) {
16776 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16777 oprot.writeString(struct.peerIp);
16778 oprot.writeFieldEnd();
16780 if (struct.afi != null) {
16781 oprot.writeFieldBegin(AFI_FIELD_DESC);
16782 oprot.writeI32(struct.afi.getValue());
16783 oprot.writeFieldEnd();
16785 if (struct.safi != null) {
16786 oprot.writeFieldBegin(SAFI_FIELD_DESC);
16787 oprot.writeI32(struct.safi.getValue());
16788 oprot.writeFieldEnd();
16790 oprot.writeFieldStop();
16791 oprot.writeStructEnd();
16796 private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
16797 public disableAddressFamily_argsTupleScheme getScheme() {
16798 return new disableAddressFamily_argsTupleScheme();
16802 private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
16805 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16806 TTupleProtocol oprot = (TTupleProtocol) prot;
16807 BitSet optionals = new BitSet();
16808 if (struct.isSetPeerIp()) {
16811 if (struct.isSetAfi()) {
16814 if (struct.isSetSafi()) {
16817 oprot.writeBitSet(optionals, 3);
16818 if (struct.isSetPeerIp()) {
16819 oprot.writeString(struct.peerIp);
16821 if (struct.isSetAfi()) {
16822 oprot.writeI32(struct.afi.getValue());
16824 if (struct.isSetSafi()) {
16825 oprot.writeI32(struct.safi.getValue());
16830 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
16831 TTupleProtocol iprot = (TTupleProtocol) prot;
16832 BitSet incoming = iprot.readBitSet(3);
16833 if (incoming.get(0)) {
16834 struct.peerIp = iprot.readString();
16835 struct.setPeerIpIsSet(true);
16837 if (incoming.get(1)) {
16838 struct.afi = af_afi.findByValue(iprot.readI32());
16839 struct.setAfiIsSet(true);
16841 if (incoming.get(2)) {
16842 struct.safi = af_safi.findByValue(iprot.readI32());
16843 struct.setSafiIsSet(true);
16850 public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result> {
16851 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
16853 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);
16855 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16857 schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
16858 schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
16861 public int success; // required
16863 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16864 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16865 SUCCESS((short)0, "success");
16867 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16870 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16871 byName.put(field.getFieldName(), field);
16876 * Find the _Fields constant that matches fieldId, or null if its not found.
16878 public static _Fields findByThriftId(int fieldId) {
16888 * Find the _Fields constant that matches fieldId, throwing an exception
16889 * if it is not found.
16891 public static _Fields findByThriftIdOrThrow(int fieldId) {
16892 _Fields fields = findByThriftId(fieldId);
16893 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16898 * Find the _Fields constant that matches name, or null if its not found.
16900 public static _Fields findByName(String name) {
16901 return byName.get(name);
16904 private final short _thriftId;
16905 private final String _fieldName;
16907 _Fields(short thriftId, String fieldName) {
16908 _thriftId = thriftId;
16909 _fieldName = fieldName;
16912 public short getThriftFieldId() {
16916 public String getFieldName() {
16921 // isset id assignments
16922 private static final int __SUCCESS_ISSET_ID = 0;
16923 private byte __isset_bitfield = 0;
16924 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16926 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16927 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16928 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16929 metaDataMap = Collections.unmodifiableMap(tmpMap);
16930 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
16933 public disableAddressFamily_result() {
16936 public disableAddressFamily_result(
16940 this.success = success;
16941 setSuccessIsSet(true);
16945 * Performs a deep copy on <i>other</i>.
16947 public disableAddressFamily_result(disableAddressFamily_result other) {
16948 __isset_bitfield = other.__isset_bitfield;
16949 this.success = other.success;
16952 public disableAddressFamily_result deepCopy() {
16953 return new disableAddressFamily_result(this);
16957 public void clear() {
16958 setSuccessIsSet(false);
16962 public int getSuccess() {
16963 return this.success;
16966 public disableAddressFamily_result setSuccess(int success) {
16967 this.success = success;
16968 setSuccessIsSet(true);
16972 public void unsetSuccess() {
16973 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16976 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16977 public boolean isSetSuccess() {
16978 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16981 public void setSuccessIsSet(boolean value) {
16982 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16985 public void setFieldValue(_Fields field, Object value) {
16988 if (value == null) {
16991 setSuccess((Integer)value);
16998 public Object getFieldValue(_Fields field) {
17001 return Integer.valueOf(getSuccess());
17004 throw new IllegalStateException();
17007 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17008 public boolean isSet(_Fields field) {
17009 if (field == null) {
17010 throw new IllegalArgumentException();
17015 return isSetSuccess();
17017 throw new IllegalStateException();
17021 public boolean equals(Object that) {
17024 if (that instanceof disableAddressFamily_result)
17025 return this.equals((disableAddressFamily_result)that);
17029 public boolean equals(disableAddressFamily_result that) {
17033 boolean this_present_success = true;
17034 boolean that_present_success = true;
17035 if (this_present_success || that_present_success) {
17036 if (!(this_present_success && that_present_success))
17038 if (this.success != that.success)
17046 public int hashCode() {
17051 public int compareTo(disableAddressFamily_result other) {
17052 if (!getClass().equals(other.getClass())) {
17053 return getClass().getName().compareTo(other.getClass().getName());
17056 int lastComparison = 0;
17058 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17059 if (lastComparison != 0) {
17060 return lastComparison;
17062 if (isSetSuccess()) {
17063 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17064 if (lastComparison != 0) {
17065 return lastComparison;
17071 public _Fields fieldForId(int fieldId) {
17072 return _Fields.findByThriftId(fieldId);
17075 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17076 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17079 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17080 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17084 public String toString() {
17085 StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
17086 boolean first = true;
17088 sb.append("success:");
17089 sb.append(this.success);
17092 return sb.toString();
17095 public void validate() throws org.apache.thrift.TException {
17096 // check for required fields
17097 // check for sub-struct validity
17100 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17102 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17103 } catch (org.apache.thrift.TException te) {
17104 throw new java.io.IOException(te);
17108 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17110 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17111 __isset_bitfield = 0;
17112 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17113 } catch (org.apache.thrift.TException te) {
17114 throw new java.io.IOException(te);
17118 private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
17119 public disableAddressFamily_resultStandardScheme getScheme() {
17120 return new disableAddressFamily_resultStandardScheme();
17124 private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
17126 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17127 org.apache.thrift.protocol.TField schemeField;
17128 iprot.readStructBegin();
17131 schemeField = iprot.readFieldBegin();
17132 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17135 switch (schemeField.id) {
17137 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17138 struct.success = iprot.readI32();
17139 struct.setSuccessIsSet(true);
17141 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17145 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17147 iprot.readFieldEnd();
17149 iprot.readStructEnd();
17151 // check for required fields of primitive type, which can't be checked in the validate method
17155 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17158 oprot.writeStructBegin(STRUCT_DESC);
17159 if (struct.isSetSuccess()) {
17160 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17161 oprot.writeI32(struct.success);
17162 oprot.writeFieldEnd();
17164 oprot.writeFieldStop();
17165 oprot.writeStructEnd();
17170 private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
17171 public disableAddressFamily_resultTupleScheme getScheme() {
17172 return new disableAddressFamily_resultTupleScheme();
17176 private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
17179 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17180 TTupleProtocol oprot = (TTupleProtocol) prot;
17181 BitSet optionals = new BitSet();
17182 if (struct.isSetSuccess()) {
17185 oprot.writeBitSet(optionals, 1);
17186 if (struct.isSetSuccess()) {
17187 oprot.writeI32(struct.success);
17192 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
17193 TTupleProtocol iprot = (TTupleProtocol) prot;
17194 BitSet incoming = iprot.readBitSet(1);
17195 if (incoming.get(0)) {
17196 struct.success = iprot.readI32();
17197 struct.setSuccessIsSet(true);
17204 public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args> {
17205 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
17207 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);
17208 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);
17210 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17212 schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
17213 schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
17216 public String logFileName; // required
17217 public String logLevel; // required
17219 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17220 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17221 LOG_FILE_NAME((short)1, "logFileName"),
17222 LOG_LEVEL((short)2, "logLevel");
17224 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17227 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17228 byName.put(field.getFieldName(), field);
17233 * Find the _Fields constant that matches fieldId, or null if its not found.
17235 public static _Fields findByThriftId(int fieldId) {
17237 case 1: // LOG_FILE_NAME
17238 return LOG_FILE_NAME;
17239 case 2: // LOG_LEVEL
17247 * Find the _Fields constant that matches fieldId, throwing an exception
17248 * if it is not found.
17250 public static _Fields findByThriftIdOrThrow(int fieldId) {
17251 _Fields fields = findByThriftId(fieldId);
17252 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17257 * Find the _Fields constant that matches name, or null if its not found.
17259 public static _Fields findByName(String name) {
17260 return byName.get(name);
17263 private final short _thriftId;
17264 private final String _fieldName;
17266 _Fields(short thriftId, String fieldName) {
17267 _thriftId = thriftId;
17268 _fieldName = fieldName;
17271 public short getThriftFieldId() {
17275 public String getFieldName() {
17280 // isset id assignments
17281 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17283 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17284 tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
17285 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17286 tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
17287 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17288 metaDataMap = Collections.unmodifiableMap(tmpMap);
17289 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
17292 public setLogConfig_args() {
17295 public setLogConfig_args(
17296 String logFileName,
17300 this.logFileName = logFileName;
17301 this.logLevel = logLevel;
17305 * Performs a deep copy on <i>other</i>.
17307 public setLogConfig_args(setLogConfig_args other) {
17308 if (other.isSetLogFileName()) {
17309 this.logFileName = other.logFileName;
17311 if (other.isSetLogLevel()) {
17312 this.logLevel = other.logLevel;
17316 public setLogConfig_args deepCopy() {
17317 return new setLogConfig_args(this);
17321 public void clear() {
17322 this.logFileName = null;
17323 this.logLevel = null;
17326 public String getLogFileName() {
17327 return this.logFileName;
17330 public setLogConfig_args setLogFileName(String logFileName) {
17331 this.logFileName = logFileName;
17335 public void unsetLogFileName() {
17336 this.logFileName = null;
17339 /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
17340 public boolean isSetLogFileName() {
17341 return this.logFileName != null;
17344 public void setLogFileNameIsSet(boolean value) {
17346 this.logFileName = null;
17350 public String getLogLevel() {
17351 return this.logLevel;
17354 public setLogConfig_args setLogLevel(String logLevel) {
17355 this.logLevel = logLevel;
17359 public void unsetLogLevel() {
17360 this.logLevel = null;
17363 /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
17364 public boolean isSetLogLevel() {
17365 return this.logLevel != null;
17368 public void setLogLevelIsSet(boolean value) {
17370 this.logLevel = null;
17374 public void setFieldValue(_Fields field, Object value) {
17376 case LOG_FILE_NAME:
17377 if (value == null) {
17378 unsetLogFileName();
17380 setLogFileName((String)value);
17385 if (value == null) {
17388 setLogLevel((String)value);
17395 public Object getFieldValue(_Fields field) {
17397 case LOG_FILE_NAME:
17398 return getLogFileName();
17401 return getLogLevel();
17404 throw new IllegalStateException();
17407 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17408 public boolean isSet(_Fields field) {
17409 if (field == null) {
17410 throw new IllegalArgumentException();
17414 case LOG_FILE_NAME:
17415 return isSetLogFileName();
17417 return isSetLogLevel();
17419 throw new IllegalStateException();
17423 public boolean equals(Object that) {
17426 if (that instanceof setLogConfig_args)
17427 return this.equals((setLogConfig_args)that);
17431 public boolean equals(setLogConfig_args that) {
17435 boolean this_present_logFileName = true && this.isSetLogFileName();
17436 boolean that_present_logFileName = true && that.isSetLogFileName();
17437 if (this_present_logFileName || that_present_logFileName) {
17438 if (!(this_present_logFileName && that_present_logFileName))
17440 if (!this.logFileName.equals(that.logFileName))
17444 boolean this_present_logLevel = true && this.isSetLogLevel();
17445 boolean that_present_logLevel = true && that.isSetLogLevel();
17446 if (this_present_logLevel || that_present_logLevel) {
17447 if (!(this_present_logLevel && that_present_logLevel))
17449 if (!this.logLevel.equals(that.logLevel))
17457 public int hashCode() {
17462 public int compareTo(setLogConfig_args other) {
17463 if (!getClass().equals(other.getClass())) {
17464 return getClass().getName().compareTo(other.getClass().getName());
17467 int lastComparison = 0;
17469 lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
17470 if (lastComparison != 0) {
17471 return lastComparison;
17473 if (isSetLogFileName()) {
17474 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
17475 if (lastComparison != 0) {
17476 return lastComparison;
17479 lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
17480 if (lastComparison != 0) {
17481 return lastComparison;
17483 if (isSetLogLevel()) {
17484 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
17485 if (lastComparison != 0) {
17486 return lastComparison;
17492 public _Fields fieldForId(int fieldId) {
17493 return _Fields.findByThriftId(fieldId);
17496 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17497 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17500 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17501 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17505 public String toString() {
17506 StringBuilder sb = new StringBuilder("setLogConfig_args(");
17507 boolean first = true;
17509 sb.append("logFileName:");
17510 if (this.logFileName == null) {
17513 sb.append(this.logFileName);
17516 if (!first) sb.append(", ");
17517 sb.append("logLevel:");
17518 if (this.logLevel == null) {
17521 sb.append(this.logLevel);
17525 return sb.toString();
17528 public void validate() throws org.apache.thrift.TException {
17529 // check for required fields
17530 // check for sub-struct validity
17533 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17535 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17536 } catch (org.apache.thrift.TException te) {
17537 throw new java.io.IOException(te);
17541 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17543 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17544 } catch (org.apache.thrift.TException te) {
17545 throw new java.io.IOException(te);
17549 private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
17550 public setLogConfig_argsStandardScheme getScheme() {
17551 return new setLogConfig_argsStandardScheme();
17555 private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
17557 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
17558 org.apache.thrift.protocol.TField schemeField;
17559 iprot.readStructBegin();
17562 schemeField = iprot.readFieldBegin();
17563 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17566 switch (schemeField.id) {
17567 case 1: // LOG_FILE_NAME
17568 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17569 struct.logFileName = iprot.readString();
17570 struct.setLogFileNameIsSet(true);
17572 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17575 case 2: // LOG_LEVEL
17576 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17577 struct.logLevel = iprot.readString();
17578 struct.setLogLevelIsSet(true);
17580 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17584 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17586 iprot.readFieldEnd();
17588 iprot.readStructEnd();
17590 // check for required fields of primitive type, which can't be checked in the validate method
17594 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
17597 oprot.writeStructBegin(STRUCT_DESC);
17598 if (struct.logFileName != null) {
17599 oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
17600 oprot.writeString(struct.logFileName);
17601 oprot.writeFieldEnd();
17603 if (struct.logLevel != null) {
17604 oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
17605 oprot.writeString(struct.logLevel);
17606 oprot.writeFieldEnd();
17608 oprot.writeFieldStop();
17609 oprot.writeStructEnd();
17614 private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
17615 public setLogConfig_argsTupleScheme getScheme() {
17616 return new setLogConfig_argsTupleScheme();
17620 private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
17623 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
17624 TTupleProtocol oprot = (TTupleProtocol) prot;
17625 BitSet optionals = new BitSet();
17626 if (struct.isSetLogFileName()) {
17629 if (struct.isSetLogLevel()) {
17632 oprot.writeBitSet(optionals, 2);
17633 if (struct.isSetLogFileName()) {
17634 oprot.writeString(struct.logFileName);
17636 if (struct.isSetLogLevel()) {
17637 oprot.writeString(struct.logLevel);
17642 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
17643 TTupleProtocol iprot = (TTupleProtocol) prot;
17644 BitSet incoming = iprot.readBitSet(2);
17645 if (incoming.get(0)) {
17646 struct.logFileName = iprot.readString();
17647 struct.setLogFileNameIsSet(true);
17649 if (incoming.get(1)) {
17650 struct.logLevel = iprot.readString();
17651 struct.setLogLevelIsSet(true);
17658 public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result> {
17659 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
17661 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);
17663 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17665 schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
17666 schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
17669 public int success; // required
17671 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17672 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17673 SUCCESS((short)0, "success");
17675 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17678 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17679 byName.put(field.getFieldName(), field);
17684 * Find the _Fields constant that matches fieldId, or null if its not found.
17686 public static _Fields findByThriftId(int fieldId) {
17696 * Find the _Fields constant that matches fieldId, throwing an exception
17697 * if it is not found.
17699 public static _Fields findByThriftIdOrThrow(int fieldId) {
17700 _Fields fields = findByThriftId(fieldId);
17701 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17706 * Find the _Fields constant that matches name, or null if its not found.
17708 public static _Fields findByName(String name) {
17709 return byName.get(name);
17712 private final short _thriftId;
17713 private final String _fieldName;
17715 _Fields(short thriftId, String fieldName) {
17716 _thriftId = thriftId;
17717 _fieldName = fieldName;
17720 public short getThriftFieldId() {
17724 public String getFieldName() {
17729 // isset id assignments
17730 private static final int __SUCCESS_ISSET_ID = 0;
17731 private byte __isset_bitfield = 0;
17732 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17734 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17735 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17736 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17737 metaDataMap = Collections.unmodifiableMap(tmpMap);
17738 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
17741 public setLogConfig_result() {
17744 public setLogConfig_result(
17748 this.success = success;
17749 setSuccessIsSet(true);
17753 * Performs a deep copy on <i>other</i>.
17755 public setLogConfig_result(setLogConfig_result other) {
17756 __isset_bitfield = other.__isset_bitfield;
17757 this.success = other.success;
17760 public setLogConfig_result deepCopy() {
17761 return new setLogConfig_result(this);
17765 public void clear() {
17766 setSuccessIsSet(false);
17770 public int getSuccess() {
17771 return this.success;
17774 public setLogConfig_result setSuccess(int success) {
17775 this.success = success;
17776 setSuccessIsSet(true);
17780 public void unsetSuccess() {
17781 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17784 /** Returns true if field success is set (has been assigned a value) and false otherwise */
17785 public boolean isSetSuccess() {
17786 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17789 public void setSuccessIsSet(boolean value) {
17790 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17793 public void setFieldValue(_Fields field, Object value) {
17796 if (value == null) {
17799 setSuccess((Integer)value);
17806 public Object getFieldValue(_Fields field) {
17809 return Integer.valueOf(getSuccess());
17812 throw new IllegalStateException();
17815 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17816 public boolean isSet(_Fields field) {
17817 if (field == null) {
17818 throw new IllegalArgumentException();
17823 return isSetSuccess();
17825 throw new IllegalStateException();
17829 public boolean equals(Object that) {
17832 if (that instanceof setLogConfig_result)
17833 return this.equals((setLogConfig_result)that);
17837 public boolean equals(setLogConfig_result that) {
17841 boolean this_present_success = true;
17842 boolean that_present_success = true;
17843 if (this_present_success || that_present_success) {
17844 if (!(this_present_success && that_present_success))
17846 if (this.success != that.success)
17854 public int hashCode() {
17859 public int compareTo(setLogConfig_result other) {
17860 if (!getClass().equals(other.getClass())) {
17861 return getClass().getName().compareTo(other.getClass().getName());
17864 int lastComparison = 0;
17866 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17867 if (lastComparison != 0) {
17868 return lastComparison;
17870 if (isSetSuccess()) {
17871 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17872 if (lastComparison != 0) {
17873 return lastComparison;
17879 public _Fields fieldForId(int fieldId) {
17880 return _Fields.findByThriftId(fieldId);
17883 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17884 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17887 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17888 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17892 public String toString() {
17893 StringBuilder sb = new StringBuilder("setLogConfig_result(");
17894 boolean first = true;
17896 sb.append("success:");
17897 sb.append(this.success);
17900 return sb.toString();
17903 public void validate() throws org.apache.thrift.TException {
17904 // check for required fields
17905 // check for sub-struct validity
17908 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17910 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17911 } catch (org.apache.thrift.TException te) {
17912 throw new java.io.IOException(te);
17916 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17918 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17919 __isset_bitfield = 0;
17920 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17921 } catch (org.apache.thrift.TException te) {
17922 throw new java.io.IOException(te);
17926 private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
17927 public setLogConfig_resultStandardScheme getScheme() {
17928 return new setLogConfig_resultStandardScheme();
17932 private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
17934 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
17935 org.apache.thrift.protocol.TField schemeField;
17936 iprot.readStructBegin();
17939 schemeField = iprot.readFieldBegin();
17940 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17943 switch (schemeField.id) {
17945 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17946 struct.success = iprot.readI32();
17947 struct.setSuccessIsSet(true);
17949 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17953 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17955 iprot.readFieldEnd();
17957 iprot.readStructEnd();
17959 // check for required fields of primitive type, which can't be checked in the validate method
17963 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
17966 oprot.writeStructBegin(STRUCT_DESC);
17967 if (struct.isSetSuccess()) {
17968 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17969 oprot.writeI32(struct.success);
17970 oprot.writeFieldEnd();
17972 oprot.writeFieldStop();
17973 oprot.writeStructEnd();
17978 private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
17979 public setLogConfig_resultTupleScheme getScheme() {
17980 return new setLogConfig_resultTupleScheme();
17984 private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
17987 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
17988 TTupleProtocol oprot = (TTupleProtocol) prot;
17989 BitSet optionals = new BitSet();
17990 if (struct.isSetSuccess()) {
17993 oprot.writeBitSet(optionals, 1);
17994 if (struct.isSetSuccess()) {
17995 oprot.writeI32(struct.success);
18000 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
18001 TTupleProtocol iprot = (TTupleProtocol) prot;
18002 BitSet incoming = iprot.readBitSet(1);
18003 if (incoming.get(0)) {
18004 struct.success = iprot.readI32();
18005 struct.setSuccessIsSet(true);
18012 public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args> {
18013 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
18015 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);
18017 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18019 schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
18020 schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
18023 public int stalepathTime; // required
18025 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18026 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18027 STALEPATH_TIME((short)1, "stalepathTime");
18029 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18032 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18033 byName.put(field.getFieldName(), field);
18038 * Find the _Fields constant that matches fieldId, or null if its not found.
18040 public static _Fields findByThriftId(int fieldId) {
18042 case 1: // STALEPATH_TIME
18043 return STALEPATH_TIME;
18050 * Find the _Fields constant that matches fieldId, throwing an exception
18051 * if it is not found.
18053 public static _Fields findByThriftIdOrThrow(int fieldId) {
18054 _Fields fields = findByThriftId(fieldId);
18055 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18060 * Find the _Fields constant that matches name, or null if its not found.
18062 public static _Fields findByName(String name) {
18063 return byName.get(name);
18066 private final short _thriftId;
18067 private final String _fieldName;
18069 _Fields(short thriftId, String fieldName) {
18070 _thriftId = thriftId;
18071 _fieldName = fieldName;
18074 public short getThriftFieldId() {
18078 public String getFieldName() {
18083 // isset id assignments
18084 private static final int __STALEPATHTIME_ISSET_ID = 0;
18085 private byte __isset_bitfield = 0;
18086 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18088 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18089 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
18090 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18091 metaDataMap = Collections.unmodifiableMap(tmpMap);
18092 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
18095 public enableGracefulRestart_args() {
18098 public enableGracefulRestart_args(
18102 this.stalepathTime = stalepathTime;
18103 setStalepathTimeIsSet(true);
18107 * Performs a deep copy on <i>other</i>.
18109 public enableGracefulRestart_args(enableGracefulRestart_args other) {
18110 __isset_bitfield = other.__isset_bitfield;
18111 this.stalepathTime = other.stalepathTime;
18114 public enableGracefulRestart_args deepCopy() {
18115 return new enableGracefulRestart_args(this);
18119 public void clear() {
18120 setStalepathTimeIsSet(false);
18121 this.stalepathTime = 0;
18124 public int getStalepathTime() {
18125 return this.stalepathTime;
18128 public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
18129 this.stalepathTime = stalepathTime;
18130 setStalepathTimeIsSet(true);
18134 public void unsetStalepathTime() {
18135 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
18138 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
18139 public boolean isSetStalepathTime() {
18140 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
18143 public void setStalepathTimeIsSet(boolean value) {
18144 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
18147 public void setFieldValue(_Fields field, Object value) {
18149 case STALEPATH_TIME:
18150 if (value == null) {
18151 unsetStalepathTime();
18153 setStalepathTime((Integer)value);
18160 public Object getFieldValue(_Fields field) {
18162 case STALEPATH_TIME:
18163 return Integer.valueOf(getStalepathTime());
18166 throw new IllegalStateException();
18169 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18170 public boolean isSet(_Fields field) {
18171 if (field == null) {
18172 throw new IllegalArgumentException();
18176 case STALEPATH_TIME:
18177 return isSetStalepathTime();
18179 throw new IllegalStateException();
18183 public boolean equals(Object that) {
18186 if (that instanceof enableGracefulRestart_args)
18187 return this.equals((enableGracefulRestart_args)that);
18191 public boolean equals(enableGracefulRestart_args that) {
18195 boolean this_present_stalepathTime = true;
18196 boolean that_present_stalepathTime = true;
18197 if (this_present_stalepathTime || that_present_stalepathTime) {
18198 if (!(this_present_stalepathTime && that_present_stalepathTime))
18200 if (this.stalepathTime != that.stalepathTime)
18208 public int hashCode() {
18213 public int compareTo(enableGracefulRestart_args other) {
18214 if (!getClass().equals(other.getClass())) {
18215 return getClass().getName().compareTo(other.getClass().getName());
18218 int lastComparison = 0;
18220 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
18221 if (lastComparison != 0) {
18222 return lastComparison;
18224 if (isSetStalepathTime()) {
18225 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
18226 if (lastComparison != 0) {
18227 return lastComparison;
18233 public _Fields fieldForId(int fieldId) {
18234 return _Fields.findByThriftId(fieldId);
18237 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18238 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18241 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18242 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18246 public String toString() {
18247 StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
18248 boolean first = true;
18250 sb.append("stalepathTime:");
18251 sb.append(this.stalepathTime);
18254 return sb.toString();
18257 public void validate() throws org.apache.thrift.TException {
18258 // check for required fields
18259 // check for sub-struct validity
18262 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18264 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18265 } catch (org.apache.thrift.TException te) {
18266 throw new java.io.IOException(te);
18270 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18272 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18273 __isset_bitfield = 0;
18274 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18275 } catch (org.apache.thrift.TException te) {
18276 throw new java.io.IOException(te);
18280 private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
18281 public enableGracefulRestart_argsStandardScheme getScheme() {
18282 return new enableGracefulRestart_argsStandardScheme();
18286 private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
18288 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18289 org.apache.thrift.protocol.TField schemeField;
18290 iprot.readStructBegin();
18293 schemeField = iprot.readFieldBegin();
18294 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18297 switch (schemeField.id) {
18298 case 1: // STALEPATH_TIME
18299 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18300 struct.stalepathTime = iprot.readI32();
18301 struct.setStalepathTimeIsSet(true);
18303 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18307 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18309 iprot.readFieldEnd();
18311 iprot.readStructEnd();
18313 // check for required fields of primitive type, which can't be checked in the validate method
18317 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18320 oprot.writeStructBegin(STRUCT_DESC);
18321 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
18322 oprot.writeI32(struct.stalepathTime);
18323 oprot.writeFieldEnd();
18324 oprot.writeFieldStop();
18325 oprot.writeStructEnd();
18330 private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
18331 public enableGracefulRestart_argsTupleScheme getScheme() {
18332 return new enableGracefulRestart_argsTupleScheme();
18336 private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
18339 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18340 TTupleProtocol oprot = (TTupleProtocol) prot;
18341 BitSet optionals = new BitSet();
18342 if (struct.isSetStalepathTime()) {
18345 oprot.writeBitSet(optionals, 1);
18346 if (struct.isSetStalepathTime()) {
18347 oprot.writeI32(struct.stalepathTime);
18352 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
18353 TTupleProtocol iprot = (TTupleProtocol) prot;
18354 BitSet incoming = iprot.readBitSet(1);
18355 if (incoming.get(0)) {
18356 struct.stalepathTime = iprot.readI32();
18357 struct.setStalepathTimeIsSet(true);
18364 public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result> {
18365 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
18367 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);
18369 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18371 schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
18372 schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
18375 public int success; // required
18377 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18378 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18379 SUCCESS((short)0, "success");
18381 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18384 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18385 byName.put(field.getFieldName(), field);
18390 * Find the _Fields constant that matches fieldId, or null if its not found.
18392 public static _Fields findByThriftId(int fieldId) {
18402 * Find the _Fields constant that matches fieldId, throwing an exception
18403 * if it is not found.
18405 public static _Fields findByThriftIdOrThrow(int fieldId) {
18406 _Fields fields = findByThriftId(fieldId);
18407 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18412 * Find the _Fields constant that matches name, or null if its not found.
18414 public static _Fields findByName(String name) {
18415 return byName.get(name);
18418 private final short _thriftId;
18419 private final String _fieldName;
18421 _Fields(short thriftId, String fieldName) {
18422 _thriftId = thriftId;
18423 _fieldName = fieldName;
18426 public short getThriftFieldId() {
18430 public String getFieldName() {
18435 // isset id assignments
18436 private static final int __SUCCESS_ISSET_ID = 0;
18437 private byte __isset_bitfield = 0;
18438 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18440 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18441 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18442 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18443 metaDataMap = Collections.unmodifiableMap(tmpMap);
18444 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
18447 public enableGracefulRestart_result() {
18450 public enableGracefulRestart_result(
18454 this.success = success;
18455 setSuccessIsSet(true);
18459 * Performs a deep copy on <i>other</i>.
18461 public enableGracefulRestart_result(enableGracefulRestart_result other) {
18462 __isset_bitfield = other.__isset_bitfield;
18463 this.success = other.success;
18466 public enableGracefulRestart_result deepCopy() {
18467 return new enableGracefulRestart_result(this);
18471 public void clear() {
18472 setSuccessIsSet(false);
18476 public int getSuccess() {
18477 return this.success;
18480 public enableGracefulRestart_result setSuccess(int success) {
18481 this.success = success;
18482 setSuccessIsSet(true);
18486 public void unsetSuccess() {
18487 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18490 /** Returns true if field success is set (has been assigned a value) and false otherwise */
18491 public boolean isSetSuccess() {
18492 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18495 public void setSuccessIsSet(boolean value) {
18496 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18499 public void setFieldValue(_Fields field, Object value) {
18502 if (value == null) {
18505 setSuccess((Integer)value);
18512 public Object getFieldValue(_Fields field) {
18515 return Integer.valueOf(getSuccess());
18518 throw new IllegalStateException();
18521 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18522 public boolean isSet(_Fields field) {
18523 if (field == null) {
18524 throw new IllegalArgumentException();
18529 return isSetSuccess();
18531 throw new IllegalStateException();
18535 public boolean equals(Object that) {
18538 if (that instanceof enableGracefulRestart_result)
18539 return this.equals((enableGracefulRestart_result)that);
18543 public boolean equals(enableGracefulRestart_result that) {
18547 boolean this_present_success = true;
18548 boolean that_present_success = true;
18549 if (this_present_success || that_present_success) {
18550 if (!(this_present_success && that_present_success))
18552 if (this.success != that.success)
18560 public int hashCode() {
18565 public int compareTo(enableGracefulRestart_result other) {
18566 if (!getClass().equals(other.getClass())) {
18567 return getClass().getName().compareTo(other.getClass().getName());
18570 int lastComparison = 0;
18572 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18573 if (lastComparison != 0) {
18574 return lastComparison;
18576 if (isSetSuccess()) {
18577 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18578 if (lastComparison != 0) {
18579 return lastComparison;
18585 public _Fields fieldForId(int fieldId) {
18586 return _Fields.findByThriftId(fieldId);
18589 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18590 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18593 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18594 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18598 public String toString() {
18599 StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
18600 boolean first = true;
18602 sb.append("success:");
18603 sb.append(this.success);
18606 return sb.toString();
18609 public void validate() throws org.apache.thrift.TException {
18610 // check for required fields
18611 // check for sub-struct validity
18614 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18616 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18617 } catch (org.apache.thrift.TException te) {
18618 throw new java.io.IOException(te);
18622 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18624 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18625 __isset_bitfield = 0;
18626 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18627 } catch (org.apache.thrift.TException te) {
18628 throw new java.io.IOException(te);
18632 private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
18633 public enableGracefulRestart_resultStandardScheme getScheme() {
18634 return new enableGracefulRestart_resultStandardScheme();
18638 private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
18640 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18641 org.apache.thrift.protocol.TField schemeField;
18642 iprot.readStructBegin();
18645 schemeField = iprot.readFieldBegin();
18646 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18649 switch (schemeField.id) {
18651 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18652 struct.success = iprot.readI32();
18653 struct.setSuccessIsSet(true);
18655 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18659 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18661 iprot.readFieldEnd();
18663 iprot.readStructEnd();
18665 // check for required fields of primitive type, which can't be checked in the validate method
18669 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18672 oprot.writeStructBegin(STRUCT_DESC);
18673 if (struct.isSetSuccess()) {
18674 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18675 oprot.writeI32(struct.success);
18676 oprot.writeFieldEnd();
18678 oprot.writeFieldStop();
18679 oprot.writeStructEnd();
18684 private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
18685 public enableGracefulRestart_resultTupleScheme getScheme() {
18686 return new enableGracefulRestart_resultTupleScheme();
18690 private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
18693 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18694 TTupleProtocol oprot = (TTupleProtocol) prot;
18695 BitSet optionals = new BitSet();
18696 if (struct.isSetSuccess()) {
18699 oprot.writeBitSet(optionals, 1);
18700 if (struct.isSetSuccess()) {
18701 oprot.writeI32(struct.success);
18706 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
18707 TTupleProtocol iprot = (TTupleProtocol) prot;
18708 BitSet incoming = iprot.readBitSet(1);
18709 if (incoming.get(0)) {
18710 struct.success = iprot.readI32();
18711 struct.setSuccessIsSet(true);
18718 public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args> {
18719 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
18722 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18724 schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
18725 schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
18729 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18730 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18733 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18736 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18737 byName.put(field.getFieldName(), field);
18742 * Find the _Fields constant that matches fieldId, or null if its not found.
18744 public static _Fields findByThriftId(int fieldId) {
18752 * Find the _Fields constant that matches fieldId, throwing an exception
18753 * if it is not found.
18755 public static _Fields findByThriftIdOrThrow(int fieldId) {
18756 _Fields fields = findByThriftId(fieldId);
18757 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18762 * Find the _Fields constant that matches name, or null if its not found.
18764 public static _Fields findByName(String name) {
18765 return byName.get(name);
18768 private final short _thriftId;
18769 private final String _fieldName;
18771 _Fields(short thriftId, String fieldName) {
18772 _thriftId = thriftId;
18773 _fieldName = fieldName;
18776 public short getThriftFieldId() {
18780 public String getFieldName() {
18784 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18786 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18787 metaDataMap = Collections.unmodifiableMap(tmpMap);
18788 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
18791 public disableGracefulRestart_args() {
18795 * Performs a deep copy on <i>other</i>.
18797 public disableGracefulRestart_args(disableGracefulRestart_args other) {
18800 public disableGracefulRestart_args deepCopy() {
18801 return new disableGracefulRestart_args(this);
18805 public void clear() {
18808 public void setFieldValue(_Fields field, Object value) {
18813 public Object getFieldValue(_Fields field) {
18816 throw new IllegalStateException();
18819 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18820 public boolean isSet(_Fields field) {
18821 if (field == null) {
18822 throw new IllegalArgumentException();
18827 throw new IllegalStateException();
18831 public boolean equals(Object that) {
18834 if (that instanceof disableGracefulRestart_args)
18835 return this.equals((disableGracefulRestart_args)that);
18839 public boolean equals(disableGracefulRestart_args that) {
18847 public int hashCode() {
18852 public int compareTo(disableGracefulRestart_args other) {
18853 if (!getClass().equals(other.getClass())) {
18854 return getClass().getName().compareTo(other.getClass().getName());
18857 int lastComparison = 0;
18862 public _Fields fieldForId(int fieldId) {
18863 return _Fields.findByThriftId(fieldId);
18866 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18867 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18870 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18871 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18875 public String toString() {
18876 StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
18877 boolean first = true;
18880 return sb.toString();
18883 public void validate() throws org.apache.thrift.TException {
18884 // check for required fields
18885 // check for sub-struct validity
18888 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18890 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18891 } catch (org.apache.thrift.TException te) {
18892 throw new java.io.IOException(te);
18896 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18898 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18899 } catch (org.apache.thrift.TException te) {
18900 throw new java.io.IOException(te);
18904 private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
18905 public disableGracefulRestart_argsStandardScheme getScheme() {
18906 return new disableGracefulRestart_argsStandardScheme();
18910 private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
18912 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18913 org.apache.thrift.protocol.TField schemeField;
18914 iprot.readStructBegin();
18917 schemeField = iprot.readFieldBegin();
18918 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18921 switch (schemeField.id) {
18923 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18925 iprot.readFieldEnd();
18927 iprot.readStructEnd();
18929 // check for required fields of primitive type, which can't be checked in the validate method
18933 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18936 oprot.writeStructBegin(STRUCT_DESC);
18937 oprot.writeFieldStop();
18938 oprot.writeStructEnd();
18943 private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
18944 public disableGracefulRestart_argsTupleScheme getScheme() {
18945 return new disableGracefulRestart_argsTupleScheme();
18949 private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
18952 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18953 TTupleProtocol oprot = (TTupleProtocol) prot;
18957 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
18958 TTupleProtocol iprot = (TTupleProtocol) prot;
18964 public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result> {
18965 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
18967 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);
18969 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18971 schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
18972 schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
18975 public int success; // required
18977 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18978 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18979 SUCCESS((short)0, "success");
18981 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18984 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18985 byName.put(field.getFieldName(), field);
18990 * Find the _Fields constant that matches fieldId, or null if its not found.
18992 public static _Fields findByThriftId(int fieldId) {
19002 * Find the _Fields constant that matches fieldId, throwing an exception
19003 * if it is not found.
19005 public static _Fields findByThriftIdOrThrow(int fieldId) {
19006 _Fields fields = findByThriftId(fieldId);
19007 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19012 * Find the _Fields constant that matches name, or null if its not found.
19014 public static _Fields findByName(String name) {
19015 return byName.get(name);
19018 private final short _thriftId;
19019 private final String _fieldName;
19021 _Fields(short thriftId, String fieldName) {
19022 _thriftId = thriftId;
19023 _fieldName = fieldName;
19026 public short getThriftFieldId() {
19030 public String getFieldName() {
19035 // isset id assignments
19036 private static final int __SUCCESS_ISSET_ID = 0;
19037 private byte __isset_bitfield = 0;
19038 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19040 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19041 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19042 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19043 metaDataMap = Collections.unmodifiableMap(tmpMap);
19044 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
19047 public disableGracefulRestart_result() {
19050 public disableGracefulRestart_result(
19054 this.success = success;
19055 setSuccessIsSet(true);
19059 * Performs a deep copy on <i>other</i>.
19061 public disableGracefulRestart_result(disableGracefulRestart_result other) {
19062 __isset_bitfield = other.__isset_bitfield;
19063 this.success = other.success;
19066 public disableGracefulRestart_result deepCopy() {
19067 return new disableGracefulRestart_result(this);
19071 public void clear() {
19072 setSuccessIsSet(false);
19076 public int getSuccess() {
19077 return this.success;
19080 public disableGracefulRestart_result setSuccess(int success) {
19081 this.success = success;
19082 setSuccessIsSet(true);
19086 public void unsetSuccess() {
19087 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19090 /** Returns true if field success is set (has been assigned a value) and false otherwise */
19091 public boolean isSetSuccess() {
19092 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19095 public void setSuccessIsSet(boolean value) {
19096 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19099 public void setFieldValue(_Fields field, Object value) {
19102 if (value == null) {
19105 setSuccess((Integer)value);
19112 public Object getFieldValue(_Fields field) {
19115 return Integer.valueOf(getSuccess());
19118 throw new IllegalStateException();
19121 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19122 public boolean isSet(_Fields field) {
19123 if (field == null) {
19124 throw new IllegalArgumentException();
19129 return isSetSuccess();
19131 throw new IllegalStateException();
19135 public boolean equals(Object that) {
19138 if (that instanceof disableGracefulRestart_result)
19139 return this.equals((disableGracefulRestart_result)that);
19143 public boolean equals(disableGracefulRestart_result that) {
19147 boolean this_present_success = true;
19148 boolean that_present_success = true;
19149 if (this_present_success || that_present_success) {
19150 if (!(this_present_success && that_present_success))
19152 if (this.success != that.success)
19160 public int hashCode() {
19165 public int compareTo(disableGracefulRestart_result other) {
19166 if (!getClass().equals(other.getClass())) {
19167 return getClass().getName().compareTo(other.getClass().getName());
19170 int lastComparison = 0;
19172 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19173 if (lastComparison != 0) {
19174 return lastComparison;
19176 if (isSetSuccess()) {
19177 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19178 if (lastComparison != 0) {
19179 return lastComparison;
19185 public _Fields fieldForId(int fieldId) {
19186 return _Fields.findByThriftId(fieldId);
19189 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19190 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19193 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19194 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19198 public String toString() {
19199 StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
19200 boolean first = true;
19202 sb.append("success:");
19203 sb.append(this.success);
19206 return sb.toString();
19209 public void validate() throws org.apache.thrift.TException {
19210 // check for required fields
19211 // check for sub-struct validity
19214 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19216 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19217 } catch (org.apache.thrift.TException te) {
19218 throw new java.io.IOException(te);
19222 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19224 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19225 __isset_bitfield = 0;
19226 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19227 } catch (org.apache.thrift.TException te) {
19228 throw new java.io.IOException(te);
19232 private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
19233 public disableGracefulRestart_resultStandardScheme getScheme() {
19234 return new disableGracefulRestart_resultStandardScheme();
19238 private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
19240 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19241 org.apache.thrift.protocol.TField schemeField;
19242 iprot.readStructBegin();
19245 schemeField = iprot.readFieldBegin();
19246 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19249 switch (schemeField.id) {
19251 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19252 struct.success = iprot.readI32();
19253 struct.setSuccessIsSet(true);
19255 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19259 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19261 iprot.readFieldEnd();
19263 iprot.readStructEnd();
19265 // check for required fields of primitive type, which can't be checked in the validate method
19269 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19272 oprot.writeStructBegin(STRUCT_DESC);
19273 if (struct.isSetSuccess()) {
19274 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19275 oprot.writeI32(struct.success);
19276 oprot.writeFieldEnd();
19278 oprot.writeFieldStop();
19279 oprot.writeStructEnd();
19284 private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
19285 public disableGracefulRestart_resultTupleScheme getScheme() {
19286 return new disableGracefulRestart_resultTupleScheme();
19290 private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
19293 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19294 TTupleProtocol oprot = (TTupleProtocol) prot;
19295 BitSet optionals = new BitSet();
19296 if (struct.isSetSuccess()) {
19299 oprot.writeBitSet(optionals, 1);
19300 if (struct.isSetSuccess()) {
19301 oprot.writeI32(struct.success);
19306 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
19307 TTupleProtocol iprot = (TTupleProtocol) prot;
19308 BitSet incoming = iprot.readBitSet(1);
19309 if (incoming.get(0)) {
19310 struct.success = iprot.readI32();
19311 struct.setSuccessIsSet(true);
19318 public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args> {
19319 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
19321 private static final org.apache.thrift.protocol.TField P_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("p_type", org.apache.thrift.protocol.TType.I32, (short)1);
19322 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)2);
19323 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)3);
19325 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19327 schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
19328 schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
19333 * @see protocol_type
19335 public protocol_type p_type; // required
19336 public int optype; // required
19337 public int winSize; // required
19339 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19340 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19343 * @see protocol_type
19345 P_TYPE((short)1, "p_type"),
19346 OPTYPE((short)2, "optype"),
19347 WIN_SIZE((short)3, "winSize");
19349 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19352 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19353 byName.put(field.getFieldName(), field);
19358 * Find the _Fields constant that matches fieldId, or null if its not found.
19360 public static _Fields findByThriftId(int fieldId) {
19366 case 3: // WIN_SIZE
19374 * Find the _Fields constant that matches fieldId, throwing an exception
19375 * if it is not found.
19377 public static _Fields findByThriftIdOrThrow(int fieldId) {
19378 _Fields fields = findByThriftId(fieldId);
19379 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19384 * Find the _Fields constant that matches name, or null if its not found.
19386 public static _Fields findByName(String name) {
19387 return byName.get(name);
19390 private final short _thriftId;
19391 private final String _fieldName;
19393 _Fields(short thriftId, String fieldName) {
19394 _thriftId = thriftId;
19395 _fieldName = fieldName;
19398 public short getThriftFieldId() {
19402 public String getFieldName() {
19407 // isset id assignments
19408 private static final int __OPTYPE_ISSET_ID = 0;
19409 private static final int __WINSIZE_ISSET_ID = 1;
19410 private byte __isset_bitfield = 0;
19411 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19413 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19414 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
19415 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
19416 tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
19417 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19418 tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
19419 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19420 metaDataMap = Collections.unmodifiableMap(tmpMap);
19421 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
19424 public getRoutes_args() {
19427 public getRoutes_args(
19428 protocol_type p_type,
19433 this.p_type = p_type;
19434 this.optype = optype;
19435 setOptypeIsSet(true);
19436 this.winSize = winSize;
19437 setWinSizeIsSet(true);
19441 * Performs a deep copy on <i>other</i>.
19443 public getRoutes_args(getRoutes_args other) {
19444 __isset_bitfield = other.__isset_bitfield;
19445 if (other.isSetP_type()) {
19446 this.p_type = other.p_type;
19448 this.optype = other.optype;
19449 this.winSize = other.winSize;
19452 public getRoutes_args deepCopy() {
19453 return new getRoutes_args(this);
19457 public void clear() {
19458 this.p_type = null;
19459 setOptypeIsSet(false);
19461 setWinSizeIsSet(false);
19467 * @see protocol_type
19469 public protocol_type getP_type() {
19470 return this.p_type;
19475 * @see protocol_type
19477 public getRoutes_args setP_type(protocol_type p_type) {
19478 this.p_type = p_type;
19482 public void unsetP_type() {
19483 this.p_type = null;
19486 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
19487 public boolean isSetP_type() {
19488 return this.p_type != null;
19491 public void setP_typeIsSet(boolean value) {
19493 this.p_type = null;
19497 public int getOptype() {
19498 return this.optype;
19501 public getRoutes_args setOptype(int optype) {
19502 this.optype = optype;
19503 setOptypeIsSet(true);
19507 public void unsetOptype() {
19508 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
19511 /** Returns true if field optype is set (has been assigned a value) and false otherwise */
19512 public boolean isSetOptype() {
19513 return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
19516 public void setOptypeIsSet(boolean value) {
19517 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
19520 public int getWinSize() {
19521 return this.winSize;
19524 public getRoutes_args setWinSize(int winSize) {
19525 this.winSize = winSize;
19526 setWinSizeIsSet(true);
19530 public void unsetWinSize() {
19531 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
19534 /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
19535 public boolean isSetWinSize() {
19536 return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
19539 public void setWinSizeIsSet(boolean value) {
19540 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
19543 public void setFieldValue(_Fields field, Object value) {
19546 if (value == null) {
19549 setP_type((protocol_type)value);
19554 if (value == null) {
19557 setOptype((Integer)value);
19562 if (value == null) {
19565 setWinSize((Integer)value);
19572 public Object getFieldValue(_Fields field) {
19575 return getP_type();
19578 return Integer.valueOf(getOptype());
19581 return Integer.valueOf(getWinSize());
19584 throw new IllegalStateException();
19587 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19588 public boolean isSet(_Fields field) {
19589 if (field == null) {
19590 throw new IllegalArgumentException();
19595 return isSetP_type();
19597 return isSetOptype();
19599 return isSetWinSize();
19601 throw new IllegalStateException();
19605 public boolean equals(Object that) {
19608 if (that instanceof getRoutes_args)
19609 return this.equals((getRoutes_args)that);
19613 public boolean equals(getRoutes_args that) {
19617 boolean this_present_p_type = true && this.isSetP_type();
19618 boolean that_present_p_type = true && that.isSetP_type();
19619 if (this_present_p_type || that_present_p_type) {
19620 if (!(this_present_p_type && that_present_p_type))
19622 if (!this.p_type.equals(that.p_type))
19626 boolean this_present_optype = true;
19627 boolean that_present_optype = true;
19628 if (this_present_optype || that_present_optype) {
19629 if (!(this_present_optype && that_present_optype))
19631 if (this.optype != that.optype)
19635 boolean this_present_winSize = true;
19636 boolean that_present_winSize = true;
19637 if (this_present_winSize || that_present_winSize) {
19638 if (!(this_present_winSize && that_present_winSize))
19640 if (this.winSize != that.winSize)
19648 public int hashCode() {
19653 public int compareTo(getRoutes_args other) {
19654 if (!getClass().equals(other.getClass())) {
19655 return getClass().getName().compareTo(other.getClass().getName());
19658 int lastComparison = 0;
19660 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
19661 if (lastComparison != 0) {
19662 return lastComparison;
19664 if (isSetP_type()) {
19665 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
19666 if (lastComparison != 0) {
19667 return lastComparison;
19670 lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
19671 if (lastComparison != 0) {
19672 return lastComparison;
19674 if (isSetOptype()) {
19675 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
19676 if (lastComparison != 0) {
19677 return lastComparison;
19680 lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
19681 if (lastComparison != 0) {
19682 return lastComparison;
19684 if (isSetWinSize()) {
19685 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
19686 if (lastComparison != 0) {
19687 return lastComparison;
19693 public _Fields fieldForId(int fieldId) {
19694 return _Fields.findByThriftId(fieldId);
19697 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19698 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19701 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19702 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19706 public String toString() {
19707 StringBuilder sb = new StringBuilder("getRoutes_args(");
19708 boolean first = true;
19710 sb.append("p_type:");
19711 if (this.p_type == null) {
19714 sb.append(this.p_type);
19717 if (!first) sb.append(", ");
19718 sb.append("optype:");
19719 sb.append(this.optype);
19721 if (!first) sb.append(", ");
19722 sb.append("winSize:");
19723 sb.append(this.winSize);
19726 return sb.toString();
19729 public void validate() throws org.apache.thrift.TException {
19730 // check for required fields
19731 // check for sub-struct validity
19734 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19736 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19737 } catch (org.apache.thrift.TException te) {
19738 throw new java.io.IOException(te);
19742 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19744 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19745 __isset_bitfield = 0;
19746 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19747 } catch (org.apache.thrift.TException te) {
19748 throw new java.io.IOException(te);
19752 private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
19753 public getRoutes_argsStandardScheme getScheme() {
19754 return new getRoutes_argsStandardScheme();
19758 private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
19760 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
19761 org.apache.thrift.protocol.TField schemeField;
19762 iprot.readStructBegin();
19765 schemeField = iprot.readFieldBegin();
19766 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19769 switch (schemeField.id) {
19771 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19772 struct.p_type = protocol_type.findByValue(iprot.readI32());
19773 struct.setP_typeIsSet(true);
19775 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19779 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19780 struct.optype = iprot.readI32();
19781 struct.setOptypeIsSet(true);
19783 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19786 case 3: // WIN_SIZE
19787 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19788 struct.winSize = iprot.readI32();
19789 struct.setWinSizeIsSet(true);
19791 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19795 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19797 iprot.readFieldEnd();
19799 iprot.readStructEnd();
19801 // check for required fields of primitive type, which can't be checked in the validate method
19805 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
19808 oprot.writeStructBegin(STRUCT_DESC);
19809 if (struct.p_type != null) {
19810 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
19811 oprot.writeI32(struct.p_type.getValue());
19812 oprot.writeFieldEnd();
19814 oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
19815 oprot.writeI32(struct.optype);
19816 oprot.writeFieldEnd();
19817 oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
19818 oprot.writeI32(struct.winSize);
19819 oprot.writeFieldEnd();
19820 oprot.writeFieldStop();
19821 oprot.writeStructEnd();
19826 private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
19827 public getRoutes_argsTupleScheme getScheme() {
19828 return new getRoutes_argsTupleScheme();
19832 private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
19835 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
19836 TTupleProtocol oprot = (TTupleProtocol) prot;
19837 BitSet optionals = new BitSet();
19838 if (struct.isSetP_type()) {
19841 if (struct.isSetOptype()) {
19844 if (struct.isSetWinSize()) {
19847 oprot.writeBitSet(optionals, 3);
19848 if (struct.isSetP_type()) {
19849 oprot.writeI32(struct.p_type.getValue());
19851 if (struct.isSetOptype()) {
19852 oprot.writeI32(struct.optype);
19854 if (struct.isSetWinSize()) {
19855 oprot.writeI32(struct.winSize);
19860 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
19861 TTupleProtocol iprot = (TTupleProtocol) prot;
19862 BitSet incoming = iprot.readBitSet(3);
19863 if (incoming.get(0)) {
19864 struct.p_type = protocol_type.findByValue(iprot.readI32());
19865 struct.setP_typeIsSet(true);
19867 if (incoming.get(1)) {
19868 struct.optype = iprot.readI32();
19869 struct.setOptypeIsSet(true);
19871 if (incoming.get(2)) {
19872 struct.winSize = iprot.readI32();
19873 struct.setWinSizeIsSet(true);
19880 public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result> {
19881 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
19883 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);
19885 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19887 schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
19888 schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
19891 public Routes success; // required
19893 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19894 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19895 SUCCESS((short)0, "success");
19897 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19900 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19901 byName.put(field.getFieldName(), field);
19906 * Find the _Fields constant that matches fieldId, or null if its not found.
19908 public static _Fields findByThriftId(int fieldId) {
19918 * Find the _Fields constant that matches fieldId, throwing an exception
19919 * if it is not found.
19921 public static _Fields findByThriftIdOrThrow(int fieldId) {
19922 _Fields fields = findByThriftId(fieldId);
19923 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19928 * Find the _Fields constant that matches name, or null if its not found.
19930 public static _Fields findByName(String name) {
19931 return byName.get(name);
19934 private final short _thriftId;
19935 private final String _fieldName;
19937 _Fields(short thriftId, String fieldName) {
19938 _thriftId = thriftId;
19939 _fieldName = fieldName;
19942 public short getThriftFieldId() {
19946 public String getFieldName() {
19951 // isset id assignments
19952 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19954 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19955 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19956 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
19957 metaDataMap = Collections.unmodifiableMap(tmpMap);
19958 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
19961 public getRoutes_result() {
19964 public getRoutes_result(
19968 this.success = success;
19972 * Performs a deep copy on <i>other</i>.
19974 public getRoutes_result(getRoutes_result other) {
19975 if (other.isSetSuccess()) {
19976 this.success = new Routes(other.success);
19980 public getRoutes_result deepCopy() {
19981 return new getRoutes_result(this);
19985 public void clear() {
19986 this.success = null;
19989 public Routes getSuccess() {
19990 return this.success;
19993 public getRoutes_result setSuccess(Routes success) {
19994 this.success = success;
19998 public void unsetSuccess() {
19999 this.success = null;
20002 /** Returns true if field success is set (has been assigned a value) and false otherwise */
20003 public boolean isSetSuccess() {
20004 return this.success != null;
20007 public void setSuccessIsSet(boolean value) {
20009 this.success = null;
20013 public void setFieldValue(_Fields field, Object value) {
20016 if (value == null) {
20019 setSuccess((Routes)value);
20026 public Object getFieldValue(_Fields field) {
20029 return getSuccess();
20032 throw new IllegalStateException();
20035 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20036 public boolean isSet(_Fields field) {
20037 if (field == null) {
20038 throw new IllegalArgumentException();
20043 return isSetSuccess();
20045 throw new IllegalStateException();
20049 public boolean equals(Object that) {
20052 if (that instanceof getRoutes_result)
20053 return this.equals((getRoutes_result)that);
20057 public boolean equals(getRoutes_result that) {
20061 boolean this_present_success = true && this.isSetSuccess();
20062 boolean that_present_success = true && that.isSetSuccess();
20063 if (this_present_success || that_present_success) {
20064 if (!(this_present_success && that_present_success))
20066 if (!this.success.equals(that.success))
20074 public int hashCode() {
20079 public int compareTo(getRoutes_result other) {
20080 if (!getClass().equals(other.getClass())) {
20081 return getClass().getName().compareTo(other.getClass().getName());
20084 int lastComparison = 0;
20086 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20087 if (lastComparison != 0) {
20088 return lastComparison;
20090 if (isSetSuccess()) {
20091 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20092 if (lastComparison != 0) {
20093 return lastComparison;
20099 public _Fields fieldForId(int fieldId) {
20100 return _Fields.findByThriftId(fieldId);
20103 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20104 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20107 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20108 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20112 public String toString() {
20113 StringBuilder sb = new StringBuilder("getRoutes_result(");
20114 boolean first = true;
20116 sb.append("success:");
20117 if (this.success == null) {
20120 sb.append(this.success);
20124 return sb.toString();
20127 public void validate() throws org.apache.thrift.TException {
20128 // check for required fields
20129 // check for sub-struct validity
20130 if (success != null) {
20131 success.validate();
20135 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20137 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20138 } catch (org.apache.thrift.TException te) {
20139 throw new java.io.IOException(te);
20143 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20145 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20146 } catch (org.apache.thrift.TException te) {
20147 throw new java.io.IOException(te);
20151 private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
20152 public getRoutes_resultStandardScheme getScheme() {
20153 return new getRoutes_resultStandardScheme();
20157 private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
20159 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
20160 org.apache.thrift.protocol.TField schemeField;
20161 iprot.readStructBegin();
20164 schemeField = iprot.readFieldBegin();
20165 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20168 switch (schemeField.id) {
20170 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
20171 struct.success = new Routes();
20172 struct.success.read(iprot);
20173 struct.setSuccessIsSet(true);
20175 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20179 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20181 iprot.readFieldEnd();
20183 iprot.readStructEnd();
20185 // check for required fields of primitive type, which can't be checked in the validate method
20189 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
20192 oprot.writeStructBegin(STRUCT_DESC);
20193 if (struct.success != null) {
20194 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20195 struct.success.write(oprot);
20196 oprot.writeFieldEnd();
20198 oprot.writeFieldStop();
20199 oprot.writeStructEnd();
20204 private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
20205 public getRoutes_resultTupleScheme getScheme() {
20206 return new getRoutes_resultTupleScheme();
20210 private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
20213 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
20214 TTupleProtocol oprot = (TTupleProtocol) prot;
20215 BitSet optionals = new BitSet();
20216 if (struct.isSetSuccess()) {
20219 oprot.writeBitSet(optionals, 1);
20220 if (struct.isSetSuccess()) {
20221 struct.success.write(oprot);
20226 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
20227 TTupleProtocol iprot = (TTupleProtocol) prot;
20228 BitSet incoming = iprot.readBitSet(1);
20229 if (incoming.get(0)) {
20230 struct.success = new Routes();
20231 struct.success.read(iprot);
20232 struct.setSuccessIsSet(true);
20239 public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args> {
20240 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
20242 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)1);
20243 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)2);
20245 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20247 schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
20248 schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
20255 public af_afi afi; // required
20260 public af_safi safi; // required
20262 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20263 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20268 AFI((short)1, "afi"),
20273 SAFI((short)2, "safi");
20275 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20278 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20279 byName.put(field.getFieldName(), field);
20284 * Find the _Fields constant that matches fieldId, or null if its not found.
20286 public static _Fields findByThriftId(int fieldId) {
20298 * Find the _Fields constant that matches fieldId, throwing an exception
20299 * if it is not found.
20301 public static _Fields findByThriftIdOrThrow(int fieldId) {
20302 _Fields fields = findByThriftId(fieldId);
20303 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20308 * Find the _Fields constant that matches name, or null if its not found.
20310 public static _Fields findByName(String name) {
20311 return byName.get(name);
20314 private final short _thriftId;
20315 private final String _fieldName;
20317 _Fields(short thriftId, String fieldName) {
20318 _thriftId = thriftId;
20319 _fieldName = fieldName;
20322 public short getThriftFieldId() {
20326 public String getFieldName() {
20331 // isset id assignments
20332 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20334 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20335 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
20336 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
20337 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
20338 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
20339 metaDataMap = Collections.unmodifiableMap(tmpMap);
20340 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
20343 public enableMultipath_args() {
20346 public enableMultipath_args(
20356 * Performs a deep copy on <i>other</i>.
20358 public enableMultipath_args(enableMultipath_args other) {
20359 if (other.isSetAfi()) {
20360 this.afi = other.afi;
20362 if (other.isSetSafi()) {
20363 this.safi = other.safi;
20367 public enableMultipath_args deepCopy() {
20368 return new enableMultipath_args(this);
20372 public void clear() {
20381 public af_afi getAfi() {
20389 public enableMultipath_args setAfi(af_afi afi) {
20394 public void unsetAfi() {
20398 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
20399 public boolean isSetAfi() {
20400 return this.afi != null;
20403 public void setAfiIsSet(boolean value) {
20413 public af_safi getSafi() {
20421 public enableMultipath_args setSafi(af_safi safi) {
20426 public void unsetSafi() {
20430 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
20431 public boolean isSetSafi() {
20432 return this.safi != null;
20435 public void setSafiIsSet(boolean value) {
20441 public void setFieldValue(_Fields field, Object value) {
20444 if (value == null) {
20447 setAfi((af_afi)value);
20452 if (value == null) {
20455 setSafi((af_safi)value);
20462 public Object getFieldValue(_Fields field) {
20471 throw new IllegalStateException();
20474 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20475 public boolean isSet(_Fields field) {
20476 if (field == null) {
20477 throw new IllegalArgumentException();
20484 return isSetSafi();
20486 throw new IllegalStateException();
20490 public boolean equals(Object that) {
20493 if (that instanceof enableMultipath_args)
20494 return this.equals((enableMultipath_args)that);
20498 public boolean equals(enableMultipath_args that) {
20502 boolean this_present_afi = true && this.isSetAfi();
20503 boolean that_present_afi = true && that.isSetAfi();
20504 if (this_present_afi || that_present_afi) {
20505 if (!(this_present_afi && that_present_afi))
20507 if (!this.afi.equals(that.afi))
20511 boolean this_present_safi = true && this.isSetSafi();
20512 boolean that_present_safi = true && that.isSetSafi();
20513 if (this_present_safi || that_present_safi) {
20514 if (!(this_present_safi && that_present_safi))
20516 if (!this.safi.equals(that.safi))
20524 public int hashCode() {
20529 public int compareTo(enableMultipath_args other) {
20530 if (!getClass().equals(other.getClass())) {
20531 return getClass().getName().compareTo(other.getClass().getName());
20534 int lastComparison = 0;
20536 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
20537 if (lastComparison != 0) {
20538 return lastComparison;
20541 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
20542 if (lastComparison != 0) {
20543 return lastComparison;
20546 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
20547 if (lastComparison != 0) {
20548 return lastComparison;
20551 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
20552 if (lastComparison != 0) {
20553 return lastComparison;
20559 public _Fields fieldForId(int fieldId) {
20560 return _Fields.findByThriftId(fieldId);
20563 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20564 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20567 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20568 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20572 public String toString() {
20573 StringBuilder sb = new StringBuilder("enableMultipath_args(");
20574 boolean first = true;
20577 if (this.afi == null) {
20580 sb.append(this.afi);
20583 if (!first) sb.append(", ");
20584 sb.append("safi:");
20585 if (this.safi == null) {
20588 sb.append(this.safi);
20592 return sb.toString();
20595 public void validate() throws org.apache.thrift.TException {
20596 // check for required fields
20597 // check for sub-struct validity
20600 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20602 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20603 } catch (org.apache.thrift.TException te) {
20604 throw new java.io.IOException(te);
20608 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20610 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20611 } catch (org.apache.thrift.TException te) {
20612 throw new java.io.IOException(te);
20616 private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
20617 public enableMultipath_argsStandardScheme getScheme() {
20618 return new enableMultipath_argsStandardScheme();
20622 private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
20624 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
20625 org.apache.thrift.protocol.TField schemeField;
20626 iprot.readStructBegin();
20629 schemeField = iprot.readFieldBegin();
20630 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20633 switch (schemeField.id) {
20635 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20636 struct.afi = af_afi.findByValue(iprot.readI32());
20637 struct.setAfiIsSet(true);
20639 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20643 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20644 struct.safi = af_safi.findByValue(iprot.readI32());
20645 struct.setSafiIsSet(true);
20647 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20651 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20653 iprot.readFieldEnd();
20655 iprot.readStructEnd();
20657 // check for required fields of primitive type, which can't be checked in the validate method
20661 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
20664 oprot.writeStructBegin(STRUCT_DESC);
20665 if (struct.afi != null) {
20666 oprot.writeFieldBegin(AFI_FIELD_DESC);
20667 oprot.writeI32(struct.afi.getValue());
20668 oprot.writeFieldEnd();
20670 if (struct.safi != null) {
20671 oprot.writeFieldBegin(SAFI_FIELD_DESC);
20672 oprot.writeI32(struct.safi.getValue());
20673 oprot.writeFieldEnd();
20675 oprot.writeFieldStop();
20676 oprot.writeStructEnd();
20681 private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
20682 public enableMultipath_argsTupleScheme getScheme() {
20683 return new enableMultipath_argsTupleScheme();
20687 private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
20690 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
20691 TTupleProtocol oprot = (TTupleProtocol) prot;
20692 BitSet optionals = new BitSet();
20693 if (struct.isSetAfi()) {
20696 if (struct.isSetSafi()) {
20699 oprot.writeBitSet(optionals, 2);
20700 if (struct.isSetAfi()) {
20701 oprot.writeI32(struct.afi.getValue());
20703 if (struct.isSetSafi()) {
20704 oprot.writeI32(struct.safi.getValue());
20709 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
20710 TTupleProtocol iprot = (TTupleProtocol) prot;
20711 BitSet incoming = iprot.readBitSet(2);
20712 if (incoming.get(0)) {
20713 struct.afi = af_afi.findByValue(iprot.readI32());
20714 struct.setAfiIsSet(true);
20716 if (incoming.get(1)) {
20717 struct.safi = af_safi.findByValue(iprot.readI32());
20718 struct.setSafiIsSet(true);
20725 public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result> {
20726 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
20728 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);
20730 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20732 schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
20733 schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
20736 public int success; // required
20738 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20739 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20740 SUCCESS((short)0, "success");
20742 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20745 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20746 byName.put(field.getFieldName(), field);
20751 * Find the _Fields constant that matches fieldId, or null if its not found.
20753 public static _Fields findByThriftId(int fieldId) {
20763 * Find the _Fields constant that matches fieldId, throwing an exception
20764 * if it is not found.
20766 public static _Fields findByThriftIdOrThrow(int fieldId) {
20767 _Fields fields = findByThriftId(fieldId);
20768 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20773 * Find the _Fields constant that matches name, or null if its not found.
20775 public static _Fields findByName(String name) {
20776 return byName.get(name);
20779 private final short _thriftId;
20780 private final String _fieldName;
20782 _Fields(short thriftId, String fieldName) {
20783 _thriftId = thriftId;
20784 _fieldName = fieldName;
20787 public short getThriftFieldId() {
20791 public String getFieldName() {
20796 // isset id assignments
20797 private static final int __SUCCESS_ISSET_ID = 0;
20798 private byte __isset_bitfield = 0;
20799 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20801 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20802 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20803 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20804 metaDataMap = Collections.unmodifiableMap(tmpMap);
20805 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
20808 public enableMultipath_result() {
20811 public enableMultipath_result(
20815 this.success = success;
20816 setSuccessIsSet(true);
20820 * Performs a deep copy on <i>other</i>.
20822 public enableMultipath_result(enableMultipath_result other) {
20823 __isset_bitfield = other.__isset_bitfield;
20824 this.success = other.success;
20827 public enableMultipath_result deepCopy() {
20828 return new enableMultipath_result(this);
20832 public void clear() {
20833 setSuccessIsSet(false);
20837 public int getSuccess() {
20838 return this.success;
20841 public enableMultipath_result setSuccess(int success) {
20842 this.success = success;
20843 setSuccessIsSet(true);
20847 public void unsetSuccess() {
20848 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20851 /** Returns true if field success is set (has been assigned a value) and false otherwise */
20852 public boolean isSetSuccess() {
20853 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20856 public void setSuccessIsSet(boolean value) {
20857 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20860 public void setFieldValue(_Fields field, Object value) {
20863 if (value == null) {
20866 setSuccess((Integer)value);
20873 public Object getFieldValue(_Fields field) {
20876 return Integer.valueOf(getSuccess());
20879 throw new IllegalStateException();
20882 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20883 public boolean isSet(_Fields field) {
20884 if (field == null) {
20885 throw new IllegalArgumentException();
20890 return isSetSuccess();
20892 throw new IllegalStateException();
20896 public boolean equals(Object that) {
20899 if (that instanceof enableMultipath_result)
20900 return this.equals((enableMultipath_result)that);
20904 public boolean equals(enableMultipath_result that) {
20908 boolean this_present_success = true;
20909 boolean that_present_success = true;
20910 if (this_present_success || that_present_success) {
20911 if (!(this_present_success && that_present_success))
20913 if (this.success != that.success)
20921 public int hashCode() {
20926 public int compareTo(enableMultipath_result other) {
20927 if (!getClass().equals(other.getClass())) {
20928 return getClass().getName().compareTo(other.getClass().getName());
20931 int lastComparison = 0;
20933 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20934 if (lastComparison != 0) {
20935 return lastComparison;
20937 if (isSetSuccess()) {
20938 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20939 if (lastComparison != 0) {
20940 return lastComparison;
20946 public _Fields fieldForId(int fieldId) {
20947 return _Fields.findByThriftId(fieldId);
20950 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20951 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20954 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20955 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20959 public String toString() {
20960 StringBuilder sb = new StringBuilder("enableMultipath_result(");
20961 boolean first = true;
20963 sb.append("success:");
20964 sb.append(this.success);
20967 return sb.toString();
20970 public void validate() throws org.apache.thrift.TException {
20971 // check for required fields
20972 // check for sub-struct validity
20975 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20977 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20978 } catch (org.apache.thrift.TException te) {
20979 throw new java.io.IOException(te);
20983 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20985 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20986 __isset_bitfield = 0;
20987 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20988 } catch (org.apache.thrift.TException te) {
20989 throw new java.io.IOException(te);
20993 private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
20994 public enableMultipath_resultStandardScheme getScheme() {
20995 return new enableMultipath_resultStandardScheme();
20999 private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
21001 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
21002 org.apache.thrift.protocol.TField schemeField;
21003 iprot.readStructBegin();
21006 schemeField = iprot.readFieldBegin();
21007 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21010 switch (schemeField.id) {
21012 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21013 struct.success = iprot.readI32();
21014 struct.setSuccessIsSet(true);
21016 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21020 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21022 iprot.readFieldEnd();
21024 iprot.readStructEnd();
21026 // check for required fields of primitive type, which can't be checked in the validate method
21030 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
21033 oprot.writeStructBegin(STRUCT_DESC);
21034 if (struct.isSetSuccess()) {
21035 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21036 oprot.writeI32(struct.success);
21037 oprot.writeFieldEnd();
21039 oprot.writeFieldStop();
21040 oprot.writeStructEnd();
21045 private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
21046 public enableMultipath_resultTupleScheme getScheme() {
21047 return new enableMultipath_resultTupleScheme();
21051 private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
21054 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
21055 TTupleProtocol oprot = (TTupleProtocol) prot;
21056 BitSet optionals = new BitSet();
21057 if (struct.isSetSuccess()) {
21060 oprot.writeBitSet(optionals, 1);
21061 if (struct.isSetSuccess()) {
21062 oprot.writeI32(struct.success);
21067 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
21068 TTupleProtocol iprot = (TTupleProtocol) prot;
21069 BitSet incoming = iprot.readBitSet(1);
21070 if (incoming.get(0)) {
21071 struct.success = iprot.readI32();
21072 struct.setSuccessIsSet(true);
21079 public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args> {
21080 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
21082 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)1);
21083 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)2);
21085 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21087 schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
21088 schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
21095 public af_afi afi; // required
21100 public af_safi safi; // required
21102 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21103 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21108 AFI((short)1, "afi"),
21113 SAFI((short)2, "safi");
21115 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21118 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21119 byName.put(field.getFieldName(), field);
21124 * Find the _Fields constant that matches fieldId, or null if its not found.
21126 public static _Fields findByThriftId(int fieldId) {
21138 * Find the _Fields constant that matches fieldId, throwing an exception
21139 * if it is not found.
21141 public static _Fields findByThriftIdOrThrow(int fieldId) {
21142 _Fields fields = findByThriftId(fieldId);
21143 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21148 * Find the _Fields constant that matches name, or null if its not found.
21150 public static _Fields findByName(String name) {
21151 return byName.get(name);
21154 private final short _thriftId;
21155 private final String _fieldName;
21157 _Fields(short thriftId, String fieldName) {
21158 _thriftId = thriftId;
21159 _fieldName = fieldName;
21162 public short getThriftFieldId() {
21166 public String getFieldName() {
21171 // isset id assignments
21172 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21174 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21175 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21176 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21177 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21178 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
21179 metaDataMap = Collections.unmodifiableMap(tmpMap);
21180 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
21183 public disableMultipath_args() {
21186 public disableMultipath_args(
21196 * Performs a deep copy on <i>other</i>.
21198 public disableMultipath_args(disableMultipath_args other) {
21199 if (other.isSetAfi()) {
21200 this.afi = other.afi;
21202 if (other.isSetSafi()) {
21203 this.safi = other.safi;
21207 public disableMultipath_args deepCopy() {
21208 return new disableMultipath_args(this);
21212 public void clear() {
21221 public af_afi getAfi() {
21229 public disableMultipath_args setAfi(af_afi afi) {
21234 public void unsetAfi() {
21238 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21239 public boolean isSetAfi() {
21240 return this.afi != null;
21243 public void setAfiIsSet(boolean value) {
21253 public af_safi getSafi() {
21261 public disableMultipath_args setSafi(af_safi safi) {
21266 public void unsetSafi() {
21270 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
21271 public boolean isSetSafi() {
21272 return this.safi != null;
21275 public void setSafiIsSet(boolean value) {
21281 public void setFieldValue(_Fields field, Object value) {
21284 if (value == null) {
21287 setAfi((af_afi)value);
21292 if (value == null) {
21295 setSafi((af_safi)value);
21302 public Object getFieldValue(_Fields field) {
21311 throw new IllegalStateException();
21314 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21315 public boolean isSet(_Fields field) {
21316 if (field == null) {
21317 throw new IllegalArgumentException();
21324 return isSetSafi();
21326 throw new IllegalStateException();
21330 public boolean equals(Object that) {
21333 if (that instanceof disableMultipath_args)
21334 return this.equals((disableMultipath_args)that);
21338 public boolean equals(disableMultipath_args that) {
21342 boolean this_present_afi = true && this.isSetAfi();
21343 boolean that_present_afi = true && that.isSetAfi();
21344 if (this_present_afi || that_present_afi) {
21345 if (!(this_present_afi && that_present_afi))
21347 if (!this.afi.equals(that.afi))
21351 boolean this_present_safi = true && this.isSetSafi();
21352 boolean that_present_safi = true && that.isSetSafi();
21353 if (this_present_safi || that_present_safi) {
21354 if (!(this_present_safi && that_present_safi))
21356 if (!this.safi.equals(that.safi))
21364 public int hashCode() {
21369 public int compareTo(disableMultipath_args other) {
21370 if (!getClass().equals(other.getClass())) {
21371 return getClass().getName().compareTo(other.getClass().getName());
21374 int lastComparison = 0;
21376 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
21377 if (lastComparison != 0) {
21378 return lastComparison;
21381 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
21382 if (lastComparison != 0) {
21383 return lastComparison;
21386 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
21387 if (lastComparison != 0) {
21388 return lastComparison;
21391 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
21392 if (lastComparison != 0) {
21393 return lastComparison;
21399 public _Fields fieldForId(int fieldId) {
21400 return _Fields.findByThriftId(fieldId);
21403 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21404 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21407 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21408 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21412 public String toString() {
21413 StringBuilder sb = new StringBuilder("disableMultipath_args(");
21414 boolean first = true;
21417 if (this.afi == null) {
21420 sb.append(this.afi);
21423 if (!first) sb.append(", ");
21424 sb.append("safi:");
21425 if (this.safi == null) {
21428 sb.append(this.safi);
21432 return sb.toString();
21435 public void validate() throws org.apache.thrift.TException {
21436 // check for required fields
21437 // check for sub-struct validity
21440 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21442 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21443 } catch (org.apache.thrift.TException te) {
21444 throw new java.io.IOException(te);
21448 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21450 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21451 } catch (org.apache.thrift.TException te) {
21452 throw new java.io.IOException(te);
21456 private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
21457 public disableMultipath_argsStandardScheme getScheme() {
21458 return new disableMultipath_argsStandardScheme();
21462 private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
21464 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
21465 org.apache.thrift.protocol.TField schemeField;
21466 iprot.readStructBegin();
21469 schemeField = iprot.readFieldBegin();
21470 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21473 switch (schemeField.id) {
21475 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21476 struct.afi = af_afi.findByValue(iprot.readI32());
21477 struct.setAfiIsSet(true);
21479 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21483 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21484 struct.safi = af_safi.findByValue(iprot.readI32());
21485 struct.setSafiIsSet(true);
21487 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21491 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21493 iprot.readFieldEnd();
21495 iprot.readStructEnd();
21497 // check for required fields of primitive type, which can't be checked in the validate method
21501 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
21504 oprot.writeStructBegin(STRUCT_DESC);
21505 if (struct.afi != null) {
21506 oprot.writeFieldBegin(AFI_FIELD_DESC);
21507 oprot.writeI32(struct.afi.getValue());
21508 oprot.writeFieldEnd();
21510 if (struct.safi != null) {
21511 oprot.writeFieldBegin(SAFI_FIELD_DESC);
21512 oprot.writeI32(struct.safi.getValue());
21513 oprot.writeFieldEnd();
21515 oprot.writeFieldStop();
21516 oprot.writeStructEnd();
21521 private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
21522 public disableMultipath_argsTupleScheme getScheme() {
21523 return new disableMultipath_argsTupleScheme();
21527 private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
21530 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
21531 TTupleProtocol oprot = (TTupleProtocol) prot;
21532 BitSet optionals = new BitSet();
21533 if (struct.isSetAfi()) {
21536 if (struct.isSetSafi()) {
21539 oprot.writeBitSet(optionals, 2);
21540 if (struct.isSetAfi()) {
21541 oprot.writeI32(struct.afi.getValue());
21543 if (struct.isSetSafi()) {
21544 oprot.writeI32(struct.safi.getValue());
21549 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
21550 TTupleProtocol iprot = (TTupleProtocol) prot;
21551 BitSet incoming = iprot.readBitSet(2);
21552 if (incoming.get(0)) {
21553 struct.afi = af_afi.findByValue(iprot.readI32());
21554 struct.setAfiIsSet(true);
21556 if (incoming.get(1)) {
21557 struct.safi = af_safi.findByValue(iprot.readI32());
21558 struct.setSafiIsSet(true);
21565 public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result> {
21566 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
21568 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);
21570 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21572 schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
21573 schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
21576 public int success; // required
21578 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21579 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21580 SUCCESS((short)0, "success");
21582 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21585 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21586 byName.put(field.getFieldName(), field);
21591 * Find the _Fields constant that matches fieldId, or null if its not found.
21593 public static _Fields findByThriftId(int fieldId) {
21603 * Find the _Fields constant that matches fieldId, throwing an exception
21604 * if it is not found.
21606 public static _Fields findByThriftIdOrThrow(int fieldId) {
21607 _Fields fields = findByThriftId(fieldId);
21608 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21613 * Find the _Fields constant that matches name, or null if its not found.
21615 public static _Fields findByName(String name) {
21616 return byName.get(name);
21619 private final short _thriftId;
21620 private final String _fieldName;
21622 _Fields(short thriftId, String fieldName) {
21623 _thriftId = thriftId;
21624 _fieldName = fieldName;
21627 public short getThriftFieldId() {
21631 public String getFieldName() {
21636 // isset id assignments
21637 private static final int __SUCCESS_ISSET_ID = 0;
21638 private byte __isset_bitfield = 0;
21639 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21641 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21642 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21643 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21644 metaDataMap = Collections.unmodifiableMap(tmpMap);
21645 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
21648 public disableMultipath_result() {
21651 public disableMultipath_result(
21655 this.success = success;
21656 setSuccessIsSet(true);
21660 * Performs a deep copy on <i>other</i>.
21662 public disableMultipath_result(disableMultipath_result other) {
21663 __isset_bitfield = other.__isset_bitfield;
21664 this.success = other.success;
21667 public disableMultipath_result deepCopy() {
21668 return new disableMultipath_result(this);
21672 public void clear() {
21673 setSuccessIsSet(false);
21677 public int getSuccess() {
21678 return this.success;
21681 public disableMultipath_result setSuccess(int success) {
21682 this.success = success;
21683 setSuccessIsSet(true);
21687 public void unsetSuccess() {
21688 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21691 /** Returns true if field success is set (has been assigned a value) and false otherwise */
21692 public boolean isSetSuccess() {
21693 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21696 public void setSuccessIsSet(boolean value) {
21697 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21700 public void setFieldValue(_Fields field, Object value) {
21703 if (value == null) {
21706 setSuccess((Integer)value);
21713 public Object getFieldValue(_Fields field) {
21716 return Integer.valueOf(getSuccess());
21719 throw new IllegalStateException();
21722 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21723 public boolean isSet(_Fields field) {
21724 if (field == null) {
21725 throw new IllegalArgumentException();
21730 return isSetSuccess();
21732 throw new IllegalStateException();
21736 public boolean equals(Object that) {
21739 if (that instanceof disableMultipath_result)
21740 return this.equals((disableMultipath_result)that);
21744 public boolean equals(disableMultipath_result that) {
21748 boolean this_present_success = true;
21749 boolean that_present_success = true;
21750 if (this_present_success || that_present_success) {
21751 if (!(this_present_success && that_present_success))
21753 if (this.success != that.success)
21761 public int hashCode() {
21766 public int compareTo(disableMultipath_result other) {
21767 if (!getClass().equals(other.getClass())) {
21768 return getClass().getName().compareTo(other.getClass().getName());
21771 int lastComparison = 0;
21773 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21774 if (lastComparison != 0) {
21775 return lastComparison;
21777 if (isSetSuccess()) {
21778 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21779 if (lastComparison != 0) {
21780 return lastComparison;
21786 public _Fields fieldForId(int fieldId) {
21787 return _Fields.findByThriftId(fieldId);
21790 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21791 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21794 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21795 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21799 public String toString() {
21800 StringBuilder sb = new StringBuilder("disableMultipath_result(");
21801 boolean first = true;
21803 sb.append("success:");
21804 sb.append(this.success);
21807 return sb.toString();
21810 public void validate() throws org.apache.thrift.TException {
21811 // check for required fields
21812 // check for sub-struct validity
21815 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21817 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21818 } catch (org.apache.thrift.TException te) {
21819 throw new java.io.IOException(te);
21823 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21825 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21826 __isset_bitfield = 0;
21827 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21828 } catch (org.apache.thrift.TException te) {
21829 throw new java.io.IOException(te);
21833 private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
21834 public disableMultipath_resultStandardScheme getScheme() {
21835 return new disableMultipath_resultStandardScheme();
21839 private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
21841 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
21842 org.apache.thrift.protocol.TField schemeField;
21843 iprot.readStructBegin();
21846 schemeField = iprot.readFieldBegin();
21847 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21850 switch (schemeField.id) {
21852 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21853 struct.success = iprot.readI32();
21854 struct.setSuccessIsSet(true);
21856 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21860 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21862 iprot.readFieldEnd();
21864 iprot.readStructEnd();
21866 // check for required fields of primitive type, which can't be checked in the validate method
21870 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
21873 oprot.writeStructBegin(STRUCT_DESC);
21874 if (struct.isSetSuccess()) {
21875 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21876 oprot.writeI32(struct.success);
21877 oprot.writeFieldEnd();
21879 oprot.writeFieldStop();
21880 oprot.writeStructEnd();
21885 private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
21886 public disableMultipath_resultTupleScheme getScheme() {
21887 return new disableMultipath_resultTupleScheme();
21891 private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
21894 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
21895 TTupleProtocol oprot = (TTupleProtocol) prot;
21896 BitSet optionals = new BitSet();
21897 if (struct.isSetSuccess()) {
21900 oprot.writeBitSet(optionals, 1);
21901 if (struct.isSetSuccess()) {
21902 oprot.writeI32(struct.success);
21907 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
21908 TTupleProtocol iprot = (TTupleProtocol) prot;
21909 BitSet incoming = iprot.readBitSet(1);
21910 if (incoming.get(0)) {
21911 struct.success = iprot.readI32();
21912 struct.setSuccessIsSet(true);
21919 public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args> {
21920 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
21922 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);
21923 private static final org.apache.thrift.protocol.TField MAX_PATH_FIELD_DESC = new org.apache.thrift.protocol.TField("maxPath", org.apache.thrift.protocol.TType.I32, (short)2);
21925 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21927 schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
21928 schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
21931 public String rd; // required
21932 public int maxPath; // required
21934 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21935 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21936 RD((short)1, "rd"),
21937 MAX_PATH((short)2, "maxPath");
21939 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21942 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21943 byName.put(field.getFieldName(), field);
21948 * Find the _Fields constant that matches fieldId, or null if its not found.
21950 public static _Fields findByThriftId(int fieldId) {
21954 case 2: // MAX_PATH
21962 * Find the _Fields constant that matches fieldId, throwing an exception
21963 * if it is not found.
21965 public static _Fields findByThriftIdOrThrow(int fieldId) {
21966 _Fields fields = findByThriftId(fieldId);
21967 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21972 * Find the _Fields constant that matches name, or null if its not found.
21974 public static _Fields findByName(String name) {
21975 return byName.get(name);
21978 private final short _thriftId;
21979 private final String _fieldName;
21981 _Fields(short thriftId, String fieldName) {
21982 _thriftId = thriftId;
21983 _fieldName = fieldName;
21986 public short getThriftFieldId() {
21990 public String getFieldName() {
21995 // isset id assignments
21996 private static final int __MAXPATH_ISSET_ID = 0;
21997 private byte __isset_bitfield = 0;
21998 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22000 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22001 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
22002 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22003 tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
22004 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
22005 metaDataMap = Collections.unmodifiableMap(tmpMap);
22006 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
22009 public multipaths_args() {
22012 public multipaths_args(
22018 this.maxPath = maxPath;
22019 setMaxPathIsSet(true);
22023 * Performs a deep copy on <i>other</i>.
22025 public multipaths_args(multipaths_args other) {
22026 __isset_bitfield = other.__isset_bitfield;
22027 if (other.isSetRd()) {
22028 this.rd = other.rd;
22030 this.maxPath = other.maxPath;
22033 public multipaths_args deepCopy() {
22034 return new multipaths_args(this);
22038 public void clear() {
22040 setMaxPathIsSet(false);
22044 public String getRd() {
22048 public multipaths_args setRd(String rd) {
22053 public void unsetRd() {
22057 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
22058 public boolean isSetRd() {
22059 return this.rd != null;
22062 public void setRdIsSet(boolean value) {
22068 public int getMaxPath() {
22069 return this.maxPath;
22072 public multipaths_args setMaxPath(int maxPath) {
22073 this.maxPath = maxPath;
22074 setMaxPathIsSet(true);
22078 public void unsetMaxPath() {
22079 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
22082 /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
22083 public boolean isSetMaxPath() {
22084 return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
22087 public void setMaxPathIsSet(boolean value) {
22088 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
22091 public void setFieldValue(_Fields field, Object value) {
22094 if (value == null) {
22097 setRd((String)value);
22102 if (value == null) {
22105 setMaxPath((Integer)value);
22112 public Object getFieldValue(_Fields field) {
22118 return Integer.valueOf(getMaxPath());
22121 throw new IllegalStateException();
22124 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22125 public boolean isSet(_Fields field) {
22126 if (field == null) {
22127 throw new IllegalArgumentException();
22134 return isSetMaxPath();
22136 throw new IllegalStateException();
22140 public boolean equals(Object that) {
22143 if (that instanceof multipaths_args)
22144 return this.equals((multipaths_args)that);
22148 public boolean equals(multipaths_args that) {
22152 boolean this_present_rd = true && this.isSetRd();
22153 boolean that_present_rd = true && that.isSetRd();
22154 if (this_present_rd || that_present_rd) {
22155 if (!(this_present_rd && that_present_rd))
22157 if (!this.rd.equals(that.rd))
22161 boolean this_present_maxPath = true;
22162 boolean that_present_maxPath = true;
22163 if (this_present_maxPath || that_present_maxPath) {
22164 if (!(this_present_maxPath && that_present_maxPath))
22166 if (this.maxPath != that.maxPath)
22174 public int hashCode() {
22179 public int compareTo(multipaths_args other) {
22180 if (!getClass().equals(other.getClass())) {
22181 return getClass().getName().compareTo(other.getClass().getName());
22184 int lastComparison = 0;
22186 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
22187 if (lastComparison != 0) {
22188 return lastComparison;
22191 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
22192 if (lastComparison != 0) {
22193 return lastComparison;
22196 lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
22197 if (lastComparison != 0) {
22198 return lastComparison;
22200 if (isSetMaxPath()) {
22201 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
22202 if (lastComparison != 0) {
22203 return lastComparison;
22209 public _Fields fieldForId(int fieldId) {
22210 return _Fields.findByThriftId(fieldId);
22213 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22214 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22217 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22218 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22222 public String toString() {
22223 StringBuilder sb = new StringBuilder("multipaths_args(");
22224 boolean first = true;
22227 if (this.rd == null) {
22230 sb.append(this.rd);
22233 if (!first) sb.append(", ");
22234 sb.append("maxPath:");
22235 sb.append(this.maxPath);
22238 return sb.toString();
22241 public void validate() throws org.apache.thrift.TException {
22242 // check for required fields
22243 // check for sub-struct validity
22246 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22248 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22249 } catch (org.apache.thrift.TException te) {
22250 throw new java.io.IOException(te);
22254 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22256 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22257 __isset_bitfield = 0;
22258 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22259 } catch (org.apache.thrift.TException te) {
22260 throw new java.io.IOException(te);
22264 private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
22265 public multipaths_argsStandardScheme getScheme() {
22266 return new multipaths_argsStandardScheme();
22270 private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
22272 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
22273 org.apache.thrift.protocol.TField schemeField;
22274 iprot.readStructBegin();
22277 schemeField = iprot.readFieldBegin();
22278 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22281 switch (schemeField.id) {
22283 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
22284 struct.rd = iprot.readString();
22285 struct.setRdIsSet(true);
22287 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22290 case 2: // MAX_PATH
22291 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22292 struct.maxPath = iprot.readI32();
22293 struct.setMaxPathIsSet(true);
22295 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22299 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22301 iprot.readFieldEnd();
22303 iprot.readStructEnd();
22305 // check for required fields of primitive type, which can't be checked in the validate method
22309 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
22312 oprot.writeStructBegin(STRUCT_DESC);
22313 if (struct.rd != null) {
22314 oprot.writeFieldBegin(RD_FIELD_DESC);
22315 oprot.writeString(struct.rd);
22316 oprot.writeFieldEnd();
22318 oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
22319 oprot.writeI32(struct.maxPath);
22320 oprot.writeFieldEnd();
22321 oprot.writeFieldStop();
22322 oprot.writeStructEnd();
22327 private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
22328 public multipaths_argsTupleScheme getScheme() {
22329 return new multipaths_argsTupleScheme();
22333 private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
22336 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
22337 TTupleProtocol oprot = (TTupleProtocol) prot;
22338 BitSet optionals = new BitSet();
22339 if (struct.isSetRd()) {
22342 if (struct.isSetMaxPath()) {
22345 oprot.writeBitSet(optionals, 2);
22346 if (struct.isSetRd()) {
22347 oprot.writeString(struct.rd);
22349 if (struct.isSetMaxPath()) {
22350 oprot.writeI32(struct.maxPath);
22355 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
22356 TTupleProtocol iprot = (TTupleProtocol) prot;
22357 BitSet incoming = iprot.readBitSet(2);
22358 if (incoming.get(0)) {
22359 struct.rd = iprot.readString();
22360 struct.setRdIsSet(true);
22362 if (incoming.get(1)) {
22363 struct.maxPath = iprot.readI32();
22364 struct.setMaxPathIsSet(true);
22371 public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result> {
22372 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
22374 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);
22376 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22378 schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
22379 schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
22382 public int success; // required
22384 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22385 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22386 SUCCESS((short)0, "success");
22388 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22391 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22392 byName.put(field.getFieldName(), field);
22397 * Find the _Fields constant that matches fieldId, or null if its not found.
22399 public static _Fields findByThriftId(int fieldId) {
22409 * Find the _Fields constant that matches fieldId, throwing an exception
22410 * if it is not found.
22412 public static _Fields findByThriftIdOrThrow(int fieldId) {
22413 _Fields fields = findByThriftId(fieldId);
22414 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22419 * Find the _Fields constant that matches name, or null if its not found.
22421 public static _Fields findByName(String name) {
22422 return byName.get(name);
22425 private final short _thriftId;
22426 private final String _fieldName;
22428 _Fields(short thriftId, String fieldName) {
22429 _thriftId = thriftId;
22430 _fieldName = fieldName;
22433 public short getThriftFieldId() {
22437 public String getFieldName() {
22442 // isset id assignments
22443 private static final int __SUCCESS_ISSET_ID = 0;
22444 private byte __isset_bitfield = 0;
22445 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22447 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22448 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22449 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
22450 metaDataMap = Collections.unmodifiableMap(tmpMap);
22451 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
22454 public multipaths_result() {
22457 public multipaths_result(
22461 this.success = success;
22462 setSuccessIsSet(true);
22466 * Performs a deep copy on <i>other</i>.
22468 public multipaths_result(multipaths_result other) {
22469 __isset_bitfield = other.__isset_bitfield;
22470 this.success = other.success;
22473 public multipaths_result deepCopy() {
22474 return new multipaths_result(this);
22478 public void clear() {
22479 setSuccessIsSet(false);
22483 public int getSuccess() {
22484 return this.success;
22487 public multipaths_result setSuccess(int success) {
22488 this.success = success;
22489 setSuccessIsSet(true);
22493 public void unsetSuccess() {
22494 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
22497 /** Returns true if field success is set (has been assigned a value) and false otherwise */
22498 public boolean isSetSuccess() {
22499 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
22502 public void setSuccessIsSet(boolean value) {
22503 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
22506 public void setFieldValue(_Fields field, Object value) {
22509 if (value == null) {
22512 setSuccess((Integer)value);
22519 public Object getFieldValue(_Fields field) {
22522 return Integer.valueOf(getSuccess());
22525 throw new IllegalStateException();
22528 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22529 public boolean isSet(_Fields field) {
22530 if (field == null) {
22531 throw new IllegalArgumentException();
22536 return isSetSuccess();
22538 throw new IllegalStateException();
22542 public boolean equals(Object that) {
22545 if (that instanceof multipaths_result)
22546 return this.equals((multipaths_result)that);
22550 public boolean equals(multipaths_result that) {
22554 boolean this_present_success = true;
22555 boolean that_present_success = true;
22556 if (this_present_success || that_present_success) {
22557 if (!(this_present_success && that_present_success))
22559 if (this.success != that.success)
22567 public int hashCode() {
22572 public int compareTo(multipaths_result other) {
22573 if (!getClass().equals(other.getClass())) {
22574 return getClass().getName().compareTo(other.getClass().getName());
22577 int lastComparison = 0;
22579 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22580 if (lastComparison != 0) {
22581 return lastComparison;
22583 if (isSetSuccess()) {
22584 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22585 if (lastComparison != 0) {
22586 return lastComparison;
22592 public _Fields fieldForId(int fieldId) {
22593 return _Fields.findByThriftId(fieldId);
22596 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22597 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22600 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22601 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22605 public String toString() {
22606 StringBuilder sb = new StringBuilder("multipaths_result(");
22607 boolean first = true;
22609 sb.append("success:");
22610 sb.append(this.success);
22613 return sb.toString();
22616 public void validate() throws org.apache.thrift.TException {
22617 // check for required fields
22618 // check for sub-struct validity
22621 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22623 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22624 } catch (org.apache.thrift.TException te) {
22625 throw new java.io.IOException(te);
22629 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22631 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22632 __isset_bitfield = 0;
22633 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22634 } catch (org.apache.thrift.TException te) {
22635 throw new java.io.IOException(te);
22639 private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
22640 public multipaths_resultStandardScheme getScheme() {
22641 return new multipaths_resultStandardScheme();
22645 private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
22647 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
22648 org.apache.thrift.protocol.TField schemeField;
22649 iprot.readStructBegin();
22652 schemeField = iprot.readFieldBegin();
22653 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22656 switch (schemeField.id) {
22658 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22659 struct.success = iprot.readI32();
22660 struct.setSuccessIsSet(true);
22662 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22666 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22668 iprot.readFieldEnd();
22670 iprot.readStructEnd();
22672 // check for required fields of primitive type, which can't be checked in the validate method
22676 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
22679 oprot.writeStructBegin(STRUCT_DESC);
22680 if (struct.isSetSuccess()) {
22681 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22682 oprot.writeI32(struct.success);
22683 oprot.writeFieldEnd();
22685 oprot.writeFieldStop();
22686 oprot.writeStructEnd();
22691 private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
22692 public multipaths_resultTupleScheme getScheme() {
22693 return new multipaths_resultTupleScheme();
22697 private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
22700 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
22701 TTupleProtocol oprot = (TTupleProtocol) prot;
22702 BitSet optionals = new BitSet();
22703 if (struct.isSetSuccess()) {
22706 oprot.writeBitSet(optionals, 1);
22707 if (struct.isSetSuccess()) {
22708 oprot.writeI32(struct.success);
22713 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
22714 TTupleProtocol iprot = (TTupleProtocol) prot;
22715 BitSet incoming = iprot.readBitSet(1);
22716 if (incoming.get(0)) {
22717 struct.success = iprot.readI32();
22718 struct.setSuccessIsSet(true);