2 * Autogenerated by Thrift Compiler (0.9.3)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
7 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
8 import org.apache.thrift.scheme.IScheme;
9 import org.apache.thrift.scheme.SchemeFactory;
10 import org.apache.thrift.scheme.StandardScheme;
12 import org.apache.thrift.scheme.TupleScheme;
13 import org.apache.thrift.protocol.TTupleProtocol;
14 import org.apache.thrift.protocol.TProtocolException;
15 import org.apache.thrift.EncodingUtils;
16 import org.apache.thrift.TException;
17 import org.apache.thrift.async.AsyncMethodCallback;
18 import org.apache.thrift.server.AbstractNonblockingServer.*;
19 import java.util.List;
20 import java.util.ArrayList;
22 import java.util.HashMap;
23 import java.util.EnumMap;
25 import java.util.HashSet;
26 import java.util.EnumSet;
27 import java.util.Collections;
28 import java.util.BitSet;
29 import java.nio.ByteBuffer;
30 import java.util.Arrays;
31 import javax.annotation.Generated;
32 import org.slf4j.Logger;
33 import org.slf4j.LoggerFactory;
35 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
36 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2017-09-13")
37 public class BgpConfigurator {
39 public interface Iface {
41 public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException;
43 public int stopBgp(long asNumber) throws org.apache.thrift.TException;
45 public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException;
47 public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException;
49 public int deletePeer(String ipAddress) throws org.apache.thrift.TException;
51 public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException;
53 public int delVrf(String rd) throws org.apache.thrift.TException;
55 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, af_afi afi) throws org.apache.thrift.TException;
57 public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException;
59 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException;
61 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException;
63 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException;
65 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException;
67 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
69 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
71 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException;
73 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException;
75 public int disableGracefulRestart() throws org.apache.thrift.TException;
77 public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException;
79 public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
81 public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException;
83 public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException;
85 public int enableEORDelay(int delay) throws org.apache.thrift.TException;
87 public int sendEOR() throws org.apache.thrift.TException;
91 public interface AsyncIface {
93 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;
95 public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
97 public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
99 public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
101 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
103 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;
105 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
107 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
109 public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
111 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
113 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
115 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
117 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
119 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
121 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
123 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
125 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
127 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
129 public void getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
131 public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
133 public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
135 public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
137 public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
139 public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
143 public static class Client extends org.apache.thrift.TServiceClient implements Iface {
144 public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
147 public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
148 return new Client(prot);
151 public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
152 return new Client(iprot, oprot);
156 public Client(org.apache.thrift.protocol.TProtocol prot)
161 public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
166 public int startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
168 send_startBgp(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush);
169 return recv_startBgp();
172 public void send_startBgp(long asNumber, String routerId, int port, int holdTime, int keepAliveTime, int stalepathTime, boolean announceFlush) throws org.apache.thrift.TException
174 startBgp_args args = new startBgp_args();
175 args.setAsNumber(asNumber);
176 args.setRouterId(routerId);
178 args.setHoldTime(holdTime);
179 args.setKeepAliveTime(keepAliveTime);
180 args.setStalepathTime(stalepathTime);
181 args.setAnnounceFlush(announceFlush);
182 sendBase("startBgp", args);
185 public int recv_startBgp() throws org.apache.thrift.TException
187 startBgp_result result = new startBgp_result();
188 receiveBase(result, "startBgp");
189 if (result.isSetSuccess()) {
190 return result.success;
192 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "startBgp failed: unknown result");
196 public int stopBgp(long asNumber) throws org.apache.thrift.TException
198 send_stopBgp(asNumber);
199 return recv_stopBgp();
202 public void send_stopBgp(long asNumber) throws org.apache.thrift.TException
204 stopBgp_args args = new stopBgp_args();
205 args.setAsNumber(asNumber);
206 sendBase("stopBgp", args);
209 public int recv_stopBgp() throws org.apache.thrift.TException
211 stopBgp_result result = new stopBgp_result();
212 receiveBase(result, "stopBgp");
213 if (result.isSetSuccess()) {
214 return result.success;
216 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "stopBgp failed: unknown result");
220 public int createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
222 send_createPeer(ipAddress, asNumber);
223 return recv_createPeer();
226 public void send_createPeer(String ipAddress, long asNumber) throws org.apache.thrift.TException
228 createPeer_args args = new createPeer_args();
229 args.setIpAddress(ipAddress);
230 args.setAsNumber(asNumber);
231 sendBase("createPeer", args);
234 public int recv_createPeer() throws org.apache.thrift.TException
236 createPeer_result result = new createPeer_result();
237 receiveBase(result, "createPeer");
238 if (result.isSetSuccess()) {
239 return result.success;
241 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPeer failed: unknown result");
245 public int setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
247 send_setPeerSecret(ipAddress, rfc2385_sharedSecret);
248 return recv_setPeerSecret();
251 public void send_setPeerSecret(String ipAddress, String rfc2385_sharedSecret) throws org.apache.thrift.TException
253 setPeerSecret_args args = new setPeerSecret_args();
254 args.setIpAddress(ipAddress);
255 args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
256 sendBase("setPeerSecret", args);
259 public int recv_setPeerSecret() throws org.apache.thrift.TException
261 setPeerSecret_result result = new setPeerSecret_result();
262 receiveBase(result, "setPeerSecret");
263 if (result.isSetSuccess()) {
264 return result.success;
266 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setPeerSecret failed: unknown result");
270 public int deletePeer(String ipAddress) throws org.apache.thrift.TException
272 send_deletePeer(ipAddress);
273 return recv_deletePeer();
276 public void send_deletePeer(String ipAddress) throws org.apache.thrift.TException
278 deletePeer_args args = new deletePeer_args();
279 args.setIpAddress(ipAddress);
280 sendBase("deletePeer", args);
283 public int recv_deletePeer() throws org.apache.thrift.TException
285 deletePeer_result result = new deletePeer_result();
286 receiveBase(result, "deletePeer");
287 if (result.isSetSuccess()) {
288 return result.success;
290 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deletePeer failed: unknown result");
294 public int addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
296 send_addVrf(l_type, rd, irts, erts);
297 return recv_addVrf();
300 public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException
302 addVrf_args args = new addVrf_args();
303 args.setL_type(l_type);
307 sendBase("addVrf", args);
310 public int recv_addVrf() throws org.apache.thrift.TException
312 addVrf_result result = new addVrf_result();
313 receiveBase(result, "addVrf");
314 if (result.isSetSuccess()) {
315 return result.success;
317 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
321 public int delVrf(String rd) throws org.apache.thrift.TException
324 return recv_delVrf();
327 public void send_delVrf(String rd) throws org.apache.thrift.TException
329 delVrf_args args = new delVrf_args();
331 sendBase("delVrf", args);
334 public int recv_delVrf() throws org.apache.thrift.TException
336 delVrf_result result = new delVrf_result();
337 receiveBase(result, "delVrf");
338 if (result.isSetSuccess()) {
339 return result.success;
341 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
345 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, af_afi afi) throws org.apache.thrift.TException
347 send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi);
348 return recv_pushRoute();
351 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, af_afi afi) throws org.apache.thrift.TException
353 pushRoute_args args = new pushRoute_args();
354 args.setP_type(p_type);
355 args.setPrefix(prefix);
356 args.setNexthop(nexthop);
358 args.setEthtag(ethtag);
360 args.setMacaddress(macaddress);
361 args.setL3label(l3label);
362 args.setL2label(l2label);
363 args.setEnc_type(enc_type);
364 args.setRoutermac(routermac);
366 sendBase("pushRoute", args);
369 public int recv_pushRoute() throws org.apache.thrift.TException
371 pushRoute_result result = new pushRoute_result();
372 receiveBase(result, "pushRoute");
373 if (result.isSetSuccess()) {
374 return result.success;
376 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
380 public int withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException
382 send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress, afi);
383 return recv_withdrawRoute();
386 public void send_withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi) throws org.apache.thrift.TException
388 withdrawRoute_args args = new withdrawRoute_args();
389 args.setP_type(p_type);
390 args.setPrefix(prefix);
392 args.setEthtag(ethtag);
394 args.setMacaddress(macaddress);
396 sendBase("withdrawRoute", args);
399 public int recv_withdrawRoute() throws org.apache.thrift.TException
401 withdrawRoute_result result = new withdrawRoute_result();
402 receiveBase(result, "withdrawRoute");
403 if (result.isSetSuccess()) {
404 return result.success;
406 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
410 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
412 send_setEbgpMultihop(peerIp, nHops);
413 return recv_setEbgpMultihop();
416 public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
418 setEbgpMultihop_args args = new setEbgpMultihop_args();
419 args.setPeerIp(peerIp);
420 args.setNHops(nHops);
421 sendBase("setEbgpMultihop", args);
424 public int recv_setEbgpMultihop() throws org.apache.thrift.TException
426 setEbgpMultihop_result result = new setEbgpMultihop_result();
427 receiveBase(result, "setEbgpMultihop");
428 if (result.isSetSuccess()) {
429 return result.success;
431 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
435 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
437 send_unsetEbgpMultihop(peerIp);
438 return recv_unsetEbgpMultihop();
441 public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
443 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
444 args.setPeerIp(peerIp);
445 sendBase("unsetEbgpMultihop", args);
448 public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
450 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
451 receiveBase(result, "unsetEbgpMultihop");
452 if (result.isSetSuccess()) {
453 return result.success;
455 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
459 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
461 send_setUpdateSource(peerIp, srcIp);
462 return recv_setUpdateSource();
465 public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
467 setUpdateSource_args args = new setUpdateSource_args();
468 args.setPeerIp(peerIp);
469 args.setSrcIp(srcIp);
470 sendBase("setUpdateSource", args);
473 public int recv_setUpdateSource() throws org.apache.thrift.TException
475 setUpdateSource_result result = new setUpdateSource_result();
476 receiveBase(result, "setUpdateSource");
477 if (result.isSetSuccess()) {
478 return result.success;
480 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
484 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
486 send_unsetUpdateSource(peerIp);
487 return recv_unsetUpdateSource();
490 public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
492 unsetUpdateSource_args args = new unsetUpdateSource_args();
493 args.setPeerIp(peerIp);
494 sendBase("unsetUpdateSource", args);
497 public int recv_unsetUpdateSource() throws org.apache.thrift.TException
499 unsetUpdateSource_result result = new unsetUpdateSource_result();
500 receiveBase(result, "unsetUpdateSource");
501 if (result.isSetSuccess()) {
502 return result.success;
504 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
508 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
510 send_enableAddressFamily(peerIp, afi, safi);
511 return recv_enableAddressFamily();
514 public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
516 enableAddressFamily_args args = new enableAddressFamily_args();
517 args.setPeerIp(peerIp);
520 sendBase("enableAddressFamily", args);
523 public int recv_enableAddressFamily() throws org.apache.thrift.TException
525 enableAddressFamily_result result = new enableAddressFamily_result();
526 receiveBase(result, "enableAddressFamily");
527 if (result.isSetSuccess()) {
528 return result.success;
530 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
534 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
536 send_disableAddressFamily(peerIp, afi, safi);
537 return recv_disableAddressFamily();
540 public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
542 disableAddressFamily_args args = new disableAddressFamily_args();
543 args.setPeerIp(peerIp);
546 sendBase("disableAddressFamily", args);
549 public int recv_disableAddressFamily() throws org.apache.thrift.TException
551 disableAddressFamily_result result = new disableAddressFamily_result();
552 receiveBase(result, "disableAddressFamily");
553 if (result.isSetSuccess()) {
554 return result.success;
556 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
560 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
562 send_setLogConfig(logFileName, logLevel);
563 return recv_setLogConfig();
566 public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
568 setLogConfig_args args = new setLogConfig_args();
569 args.setLogFileName(logFileName);
570 args.setLogLevel(logLevel);
571 sendBase("setLogConfig", args);
574 public int recv_setLogConfig() throws org.apache.thrift.TException
576 setLogConfig_result result = new setLogConfig_result();
577 receiveBase(result, "setLogConfig");
578 if (result.isSetSuccess()) {
579 return result.success;
581 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
585 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
587 send_enableGracefulRestart(stalepathTime);
588 return recv_enableGracefulRestart();
591 public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
593 enableGracefulRestart_args args = new enableGracefulRestart_args();
594 args.setStalepathTime(stalepathTime);
595 sendBase("enableGracefulRestart", args);
598 public int recv_enableGracefulRestart() throws org.apache.thrift.TException
600 enableGracefulRestart_result result = new enableGracefulRestart_result();
601 receiveBase(result, "enableGracefulRestart");
602 if (result.isSetSuccess()) {
603 return result.success;
605 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
609 public int disableGracefulRestart() throws org.apache.thrift.TException
611 send_disableGracefulRestart();
612 return recv_disableGracefulRestart();
615 public void send_disableGracefulRestart() throws org.apache.thrift.TException
617 disableGracefulRestart_args args = new disableGracefulRestart_args();
618 sendBase("disableGracefulRestart", args);
621 public int recv_disableGracefulRestart() throws org.apache.thrift.TException
623 disableGracefulRestart_result result = new disableGracefulRestart_result();
624 receiveBase(result, "disableGracefulRestart");
625 if (result.isSetSuccess()) {
626 return result.success;
628 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
632 public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
634 send_getRoutes(p_type, optype, winSize, afi);
635 return recv_getRoutes();
638 public void send_getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
640 getRoutes_args args = new getRoutes_args();
641 args.setP_type(p_type);
642 args.setOptype(optype);
643 args.setWinSize(winSize);
645 sendBase("getRoutes", args);
648 public Routes recv_getRoutes() throws org.apache.thrift.TException
650 getRoutes_result result = new getRoutes_result();
651 receiveBase(result, "getRoutes");
652 if (result.isSetSuccess()) {
653 return result.success;
655 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
659 public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
661 send_enableMultipath(afi, safi);
662 return recv_enableMultipath();
665 public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
667 enableMultipath_args args = new enableMultipath_args();
670 sendBase("enableMultipath", args);
673 public int recv_enableMultipath() throws org.apache.thrift.TException
675 enableMultipath_result result = new enableMultipath_result();
676 receiveBase(result, "enableMultipath");
677 if (result.isSetSuccess()) {
678 return result.success;
680 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
684 public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
686 send_disableMultipath(afi, safi);
687 return recv_disableMultipath();
690 public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
692 disableMultipath_args args = new disableMultipath_args();
695 sendBase("disableMultipath", args);
698 public int recv_disableMultipath() throws org.apache.thrift.TException
700 disableMultipath_result result = new disableMultipath_result();
701 receiveBase(result, "disableMultipath");
702 if (result.isSetSuccess()) {
703 return result.success;
705 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
709 public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
711 send_multipaths(rd, maxPath);
712 return recv_multipaths();
715 public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
717 multipaths_args args = new multipaths_args();
719 args.setMaxPath(maxPath);
720 sendBase("multipaths", args);
723 public int recv_multipaths() throws org.apache.thrift.TException
725 multipaths_result result = new multipaths_result();
726 receiveBase(result, "multipaths");
727 if (result.isSetSuccess()) {
728 return result.success;
730 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
733 public int enableEORDelay(int delay) throws org.apache.thrift.TException
735 send_enableEORDelay(delay);
736 return recv_enableEORDelay();
739 public void send_enableEORDelay(int delay) throws org.apache.thrift.TException
741 enableEORDelay_args args = new enableEORDelay_args();
742 args.setDelay(delay);
743 sendBase("enableEORDelay", args);
746 public int recv_enableEORDelay() throws org.apache.thrift.TException
748 enableEORDelay_result result = new enableEORDelay_result();
749 receiveBase(result, "enableEORDelay");
750 if (result.isSetSuccess()) {
751 return result.success;
753 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableEORDelay failed: unknown result");
756 public int sendEOR() throws org.apache.thrift.TException
759 return recv_sendEOR();
762 public void send_sendEOR() throws org.apache.thrift.TException
764 sendEOR_args args = new sendEOR_args();
765 sendBase("sendEOR", args);
768 public int recv_sendEOR() throws org.apache.thrift.TException
770 sendEOR_result result = new sendEOR_result();
771 receiveBase(result, "sendEOR");
772 if (result.isSetSuccess()) {
773 return result.success;
775 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendEOR failed: unknown result");
779 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
780 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
781 private final org.apache.thrift.async.TAsyncClientManager clientManager;
782 private final org.apache.thrift.protocol.TProtocolFactory protocolFactory;
783 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
784 this.clientManager = clientManager;
785 this.protocolFactory = protocolFactory;
788 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
789 return new AsyncClient(protocolFactory, clientManager, transport);
793 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
794 super(protocolFactory, clientManager, transport);
798 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 {
800 startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
801 this.___currentMethod = method_call;
802 ___manager.call(method_call);
805 public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
806 private final long asNumber;
807 private final String routerId;
808 private final int port;
809 private final int holdTime;
810 private final int keepAliveTime;
811 private final int stalepathTime;
812 private final boolean announceFlush;
813 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 {
814 super(client, protocolFactory, transport, resultHandler, false);
815 this.asNumber = asNumber;
816 this.routerId = routerId;
818 this.holdTime = holdTime;
819 this.keepAliveTime = keepAliveTime;
820 this.stalepathTime = stalepathTime;
821 this.announceFlush = announceFlush;
825 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
826 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
827 startBgp_args args = new startBgp_args();
828 args.setAsNumber(asNumber);
829 args.setRouterId(routerId);
831 args.setHoldTime(holdTime);
832 args.setKeepAliveTime(keepAliveTime);
833 args.setStalepathTime(stalepathTime);
834 args.setAnnounceFlush(announceFlush);
836 prot.writeMessageEnd();
839 public int getResult() throws org.apache.thrift.TException {
840 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
841 throw new IllegalStateException("Method call not finished!");
843 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
844 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
845 return (new Client(prot)).recv_startBgp();
850 public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
852 stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
853 this.___currentMethod = method_call;
854 ___manager.call(method_call);
857 public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
858 private final long asNumber;
859 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 {
860 super(client, protocolFactory, transport, resultHandler, false);
861 this.asNumber = asNumber;
865 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
866 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
867 stopBgp_args args = new stopBgp_args();
868 args.setAsNumber(asNumber);
870 prot.writeMessageEnd();
873 public int getResult() throws org.apache.thrift.TException {
874 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
875 throw new IllegalStateException("Method call not finished!");
877 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
878 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
879 return (new Client(prot)).recv_stopBgp();
884 public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
886 createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
887 this.___currentMethod = method_call;
888 ___manager.call(method_call);
891 public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
892 private final String ipAddress;
893 private final long asNumber;
894 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 {
895 super(client, protocolFactory, transport, resultHandler, false);
896 this.ipAddress = ipAddress;
897 this.asNumber = asNumber;
901 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
902 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
903 createPeer_args args = new createPeer_args();
904 args.setIpAddress(ipAddress);
905 args.setAsNumber(asNumber);
907 prot.writeMessageEnd();
910 public int getResult() throws org.apache.thrift.TException {
911 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
912 throw new IllegalStateException("Method call not finished!");
914 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
915 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
916 return (new Client(prot)).recv_createPeer();
921 public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
923 setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
924 this.___currentMethod = method_call;
925 ___manager.call(method_call);
928 public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
929 private final String ipAddress;
930 private final String rfc2385_sharedSecret;
931 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 {
932 super(client, protocolFactory, transport, resultHandler, false);
933 this.ipAddress = ipAddress;
934 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
938 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
939 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
940 setPeerSecret_args args = new setPeerSecret_args();
941 args.setIpAddress(ipAddress);
942 args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
944 prot.writeMessageEnd();
947 public int getResult() throws org.apache.thrift.TException {
948 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
949 throw new IllegalStateException("Method call not finished!");
951 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
952 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
953 return (new Client(prot)).recv_setPeerSecret();
958 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
960 deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
961 this.___currentMethod = method_call;
962 ___manager.call(method_call);
965 public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
966 private final String ipAddress;
967 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 {
968 super(client, protocolFactory, transport, resultHandler, false);
969 this.ipAddress = ipAddress;
973 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
974 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
975 deletePeer_args args = new deletePeer_args();
976 args.setIpAddress(ipAddress);
978 prot.writeMessageEnd();
981 public int getResult() throws org.apache.thrift.TException {
982 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
983 throw new IllegalStateException("Method call not finished!");
985 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
986 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
987 return (new Client(prot)).recv_deletePeer();
992 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 {
994 addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, resultHandler, this, ___protocolFactory, ___transport);
995 this.___currentMethod = method_call;
996 ___manager.call(method_call);
999 public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1000 private final layer_type l_type;
1001 private final String rd;
1002 private final List<String> irts;
1003 private final List<String> erts;
1004 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 {
1005 super(client, protocolFactory, transport, resultHandler, false);
1006 this.l_type = l_type;
1013 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1014 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1015 addVrf_args args = new addVrf_args();
1016 args.setL_type(l_type);
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_addVrf();
1035 public void delVrf(String rd, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1037 delVrf_call method_call = new delVrf_call(rd, resultHandler, this, ___protocolFactory, ___transport);
1038 this.___currentMethod = method_call;
1039 ___manager.call(method_call);
1042 public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1043 private final String rd;
1044 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 {
1045 super(client, protocolFactory, transport, resultHandler, false);
1050 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1051 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1052 delVrf_args args = new delVrf_args();
1055 prot.writeMessageEnd();
1058 public int getResult() throws org.apache.thrift.TException {
1059 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1060 throw new IllegalStateException("Method call not finished!");
1062 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1063 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1064 return (new Client(prot)).recv_delVrf();
1069 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, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1071 pushRoute_call method_call = new pushRoute_call(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi, resultHandler, this, ___protocolFactory, ___transport);
1072 this.___currentMethod = method_call;
1073 ___manager.call(method_call);
1076 public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1077 private final protocol_type p_type;
1078 private final String prefix;
1079 private final String nexthop;
1080 private final String rd;
1081 private final int ethtag;
1082 private final String esi;
1083 private final String macaddress;
1084 private final int l3label;
1085 private final int l2label;
1086 private final encap_type enc_type;
1087 private final String routermac;
1088 private final af_afi afi;
1089 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, af_afi afi, 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 {
1090 super(client, protocolFactory, transport, resultHandler, false);
1091 this.p_type = p_type;
1092 this.prefix = prefix;
1093 this.nexthop = nexthop;
1095 this.ethtag = ethtag;
1097 this.macaddress = macaddress;
1098 this.l3label = l3label;
1099 this.l2label = l2label;
1100 this.enc_type = enc_type;
1101 this.routermac = routermac;
1106 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1107 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1108 pushRoute_args args = new pushRoute_args();
1109 args.setP_type(p_type);
1110 args.setPrefix(prefix);
1111 args.setNexthop(nexthop);
1113 args.setEthtag(ethtag);
1115 args.setMacaddress(macaddress);
1116 args.setL3label(l3label);
1117 args.setL2label(l2label);
1118 args.setEnc_type(enc_type);
1119 args.setRoutermac(routermac);
1122 prot.writeMessageEnd();
1125 public int getResult() throws org.apache.thrift.TException {
1126 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1127 throw new IllegalStateException("Method call not finished!");
1129 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1130 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1131 return (new Client(prot)).recv_pushRoute();
1136 public void withdrawRoute(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1138 withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, afi, resultHandler, this, ___protocolFactory, ___transport);
1139 this.___currentMethod = method_call;
1140 ___manager.call(method_call);
1143 public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1144 private final protocol_type p_type;
1145 private final String prefix;
1146 private final String rd;
1147 private final int ethtag;
1148 private final String esi;
1149 private final String macaddress;
1150 private final af_afi afi;
1151 public withdrawRoute_call(protocol_type p_type, String prefix, String rd, int ethtag, String esi, String macaddress, af_afi afi, 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 {
1152 super(client, protocolFactory, transport, resultHandler, false);
1153 this.p_type = p_type;
1154 this.prefix = prefix;
1156 this.ethtag = ethtag;
1158 this.macaddress = macaddress;
1163 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165 withdrawRoute_args args = new withdrawRoute_args();
1166 args.setP_type(p_type);
1167 args.setPrefix(prefix);
1169 args.setEthtag(ethtag);
1171 args.setMacaddress(macaddress);
1174 prot.writeMessageEnd();
1177 public int getResult() throws org.apache.thrift.TException {
1178 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1179 throw new IllegalStateException("Method call not finished!");
1181 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1182 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1183 return (new Client(prot)).recv_withdrawRoute();
1188 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1190 setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1191 this.___currentMethod = method_call;
1192 ___manager.call(method_call);
1195 public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1196 private final String peerIp;
1197 private final int nHops;
1198 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 {
1199 super(client, protocolFactory, transport, resultHandler, false);
1200 this.peerIp = peerIp;
1205 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1206 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1207 setEbgpMultihop_args args = new setEbgpMultihop_args();
1208 args.setPeerIp(peerIp);
1209 args.setNHops(nHops);
1211 prot.writeMessageEnd();
1214 public int getResult() throws org.apache.thrift.TException {
1215 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1216 throw new IllegalStateException("Method call not finished!");
1218 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1219 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1220 return (new Client(prot)).recv_setEbgpMultihop();
1225 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1227 unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1228 this.___currentMethod = method_call;
1229 ___manager.call(method_call);
1232 public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1233 private final String peerIp;
1234 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 {
1235 super(client, protocolFactory, transport, resultHandler, false);
1236 this.peerIp = peerIp;
1240 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1241 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1242 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1243 args.setPeerIp(peerIp);
1245 prot.writeMessageEnd();
1248 public int getResult() throws org.apache.thrift.TException {
1249 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1250 throw new IllegalStateException("Method call not finished!");
1252 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1253 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1254 return (new Client(prot)).recv_unsetEbgpMultihop();
1259 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1261 setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1262 this.___currentMethod = method_call;
1263 ___manager.call(method_call);
1266 public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1267 private final String peerIp;
1268 private final String srcIp;
1269 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 {
1270 super(client, protocolFactory, transport, resultHandler, false);
1271 this.peerIp = peerIp;
1276 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1277 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1278 setUpdateSource_args args = new setUpdateSource_args();
1279 args.setPeerIp(peerIp);
1280 args.setSrcIp(srcIp);
1282 prot.writeMessageEnd();
1285 public int getResult() throws org.apache.thrift.TException {
1286 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1287 throw new IllegalStateException("Method call not finished!");
1289 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1290 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1291 return (new Client(prot)).recv_setUpdateSource();
1296 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1298 unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1299 this.___currentMethod = method_call;
1300 ___manager.call(method_call);
1303 public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1304 private final String peerIp;
1305 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 {
1306 super(client, protocolFactory, transport, resultHandler, false);
1307 this.peerIp = peerIp;
1311 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1312 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1313 unsetUpdateSource_args args = new unsetUpdateSource_args();
1314 args.setPeerIp(peerIp);
1316 prot.writeMessageEnd();
1319 public int getResult() throws org.apache.thrift.TException {
1320 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1321 throw new IllegalStateException("Method call not finished!");
1323 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1324 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1325 return (new Client(prot)).recv_unsetUpdateSource();
1330 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1332 enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1333 this.___currentMethod = method_call;
1334 ___manager.call(method_call);
1337 public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1338 private final String peerIp;
1339 private final af_afi afi;
1340 private final af_safi safi;
1341 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 {
1342 super(client, protocolFactory, transport, resultHandler, false);
1343 this.peerIp = peerIp;
1349 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1350 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1351 enableAddressFamily_args args = new enableAddressFamily_args();
1352 args.setPeerIp(peerIp);
1356 prot.writeMessageEnd();
1359 public int getResult() throws org.apache.thrift.TException {
1360 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1361 throw new IllegalStateException("Method call not finished!");
1363 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1364 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1365 return (new Client(prot)).recv_enableAddressFamily();
1370 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1372 disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1373 this.___currentMethod = method_call;
1374 ___manager.call(method_call);
1377 public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1378 private final String peerIp;
1379 private final af_afi afi;
1380 private final af_safi safi;
1381 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 {
1382 super(client, protocolFactory, transport, resultHandler, false);
1383 this.peerIp = peerIp;
1389 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1390 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1391 disableAddressFamily_args args = new disableAddressFamily_args();
1392 args.setPeerIp(peerIp);
1396 prot.writeMessageEnd();
1399 public int getResult() throws org.apache.thrift.TException {
1400 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1401 throw new IllegalStateException("Method call not finished!");
1403 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1404 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1405 return (new Client(prot)).recv_disableAddressFamily();
1410 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1412 setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1413 this.___currentMethod = method_call;
1414 ___manager.call(method_call);
1417 public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1418 private final String logFileName;
1419 private final String logLevel;
1420 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 {
1421 super(client, protocolFactory, transport, resultHandler, false);
1422 this.logFileName = logFileName;
1423 this.logLevel = logLevel;
1427 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1428 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1429 setLogConfig_args args = new setLogConfig_args();
1430 args.setLogFileName(logFileName);
1431 args.setLogLevel(logLevel);
1433 prot.writeMessageEnd();
1436 public int getResult() throws org.apache.thrift.TException {
1437 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1438 throw new IllegalStateException("Method call not finished!");
1440 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1441 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1442 return (new Client(prot)).recv_setLogConfig();
1447 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1449 enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1450 this.___currentMethod = method_call;
1451 ___manager.call(method_call);
1454 public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1455 private final int stalepathTime;
1456 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 {
1457 super(client, protocolFactory, transport, resultHandler, false);
1458 this.stalepathTime = stalepathTime;
1462 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1463 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1464 enableGracefulRestart_args args = new enableGracefulRestart_args();
1465 args.setStalepathTime(stalepathTime);
1467 prot.writeMessageEnd();
1470 public int getResult() throws org.apache.thrift.TException {
1471 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1472 throw new IllegalStateException("Method call not finished!");
1474 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1475 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1476 return (new Client(prot)).recv_enableGracefulRestart();
1481 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1483 disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1484 this.___currentMethod = method_call;
1485 ___manager.call(method_call);
1488 public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1489 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 {
1490 super(client, protocolFactory, transport, resultHandler, false);
1494 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1495 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1496 disableGracefulRestart_args args = new disableGracefulRestart_args();
1498 prot.writeMessageEnd();
1501 public int getResult() throws org.apache.thrift.TException {
1502 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1503 throw new IllegalStateException("Method call not finished!");
1505 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1506 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1507 return (new Client(prot)).recv_disableGracefulRestart();
1512 public void getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1514 getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, afi, resultHandler, this, ___protocolFactory, ___transport);
1515 this.___currentMethod = method_call;
1516 ___manager.call(method_call);
1519 public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1520 private final protocol_type p_type;
1521 private final int optype;
1522 private final int winSize;
1523 private final af_afi afi;
1524 public getRoutes_call(protocol_type p_type, int optype, int winSize, af_afi afi, 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 {
1525 super(client, protocolFactory, transport, resultHandler, false);
1526 this.p_type = p_type;
1527 this.optype = optype;
1528 this.winSize = winSize;
1533 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1534 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1535 getRoutes_args args = new getRoutes_args();
1536 args.setP_type(p_type);
1537 args.setOptype(optype);
1538 args.setWinSize(winSize);
1541 prot.writeMessageEnd();
1544 public Routes getResult() throws org.apache.thrift.TException {
1545 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1546 throw new IllegalStateException("Method call not finished!");
1548 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1549 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1550 return (new Client(prot)).recv_getRoutes();
1555 public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1557 enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1558 this.___currentMethod = method_call;
1559 ___manager.call(method_call);
1562 public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1563 private final af_afi afi;
1564 private final af_safi safi;
1565 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 {
1566 super(client, protocolFactory, transport, resultHandler, false);
1572 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1573 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1574 enableMultipath_args args = new enableMultipath_args();
1578 prot.writeMessageEnd();
1581 public int getResult() throws org.apache.thrift.TException {
1582 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1583 throw new IllegalStateException("Method call not finished!");
1585 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1586 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1587 return (new Client(prot)).recv_enableMultipath();
1592 public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1594 disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1595 this.___currentMethod = method_call;
1596 ___manager.call(method_call);
1599 public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1600 private final af_afi afi;
1601 private final af_safi safi;
1602 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 {
1603 super(client, protocolFactory, transport, resultHandler, false);
1609 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1610 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1611 disableMultipath_args args = new disableMultipath_args();
1615 prot.writeMessageEnd();
1618 public int getResult() throws org.apache.thrift.TException {
1619 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1620 throw new IllegalStateException("Method call not finished!");
1622 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1623 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1624 return (new Client(prot)).recv_disableMultipath();
1629 public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1631 multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1632 this.___currentMethod = method_call;
1633 ___manager.call(method_call);
1636 public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1637 private final String rd;
1638 private final int maxPath;
1639 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 {
1640 super(client, protocolFactory, transport, resultHandler, false);
1642 this.maxPath = maxPath;
1646 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1647 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1648 multipaths_args args = new multipaths_args();
1650 args.setMaxPath(maxPath);
1652 prot.writeMessageEnd();
1655 public int getResult() throws org.apache.thrift.TException {
1656 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1657 throw new IllegalStateException("Method call not finished!");
1659 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1660 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1661 return (new Client(prot)).recv_multipaths();
1665 public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1667 enableEORDelay_call method_call = new enableEORDelay_call(delay, resultHandler, this, ___protocolFactory, ___transport);
1668 this.___currentMethod = method_call;
1669 ___manager.call(method_call);
1672 public static class enableEORDelay_call extends org.apache.thrift.async.TAsyncMethodCall {
1674 public enableEORDelay_call(int delay, 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 {
1675 super(client, protocolFactory, transport, resultHandler, false);
1679 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1680 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableEORDelay", org.apache.thrift.protocol.TMessageType.CALL, 0));
1681 enableEORDelay_args args = new enableEORDelay_args();
1682 args.setDelay(delay);
1684 prot.writeMessageEnd();
1687 public int getResult() throws org.apache.thrift.TException {
1688 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1689 throw new IllegalStateException("Method call not finished!");
1691 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1692 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1693 return (new Client(prot)).recv_enableEORDelay();
1697 public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1699 sendEOR_call method_call = new sendEOR_call(resultHandler, this, ___protocolFactory, ___transport);
1700 this.___currentMethod = method_call;
1701 ___manager.call(method_call);
1704 public static class sendEOR_call extends org.apache.thrift.async.TAsyncMethodCall {
1705 public sendEOR_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 {
1706 super(client, protocolFactory, transport, resultHandler, false);
1709 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1710 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendEOR", org.apache.thrift.protocol.TMessageType.CALL, 0));
1711 sendEOR_args args = new sendEOR_args();
1713 prot.writeMessageEnd();
1716 public int getResult() throws org.apache.thrift.TException {
1717 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1718 throw new IllegalStateException("Method call not finished!");
1720 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1721 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1722 return (new Client(prot)).recv_sendEOR();
1728 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1729 private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
1730 public Processor(I iface) {
1731 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1734 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1735 super(iface, getProcessMap(processMap));
1738 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) {
1739 processMap.put("startBgp", new startBgp());
1740 processMap.put("stopBgp", new stopBgp());
1741 processMap.put("createPeer", new createPeer());
1742 processMap.put("setPeerSecret", new setPeerSecret());
1743 processMap.put("deletePeer", new deletePeer());
1744 processMap.put("addVrf", new addVrf());
1745 processMap.put("delVrf", new delVrf());
1746 processMap.put("pushRoute", new pushRoute());
1747 processMap.put("withdrawRoute", new withdrawRoute());
1748 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1749 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1750 processMap.put("setUpdateSource", new setUpdateSource());
1751 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1752 processMap.put("enableAddressFamily", new enableAddressFamily());
1753 processMap.put("disableAddressFamily", new disableAddressFamily());
1754 processMap.put("setLogConfig", new setLogConfig());
1755 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1756 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1757 processMap.put("getRoutes", new getRoutes());
1758 processMap.put("enableMultipath", new enableMultipath());
1759 processMap.put("disableMultipath", new disableMultipath());
1760 processMap.put("multipaths", new multipaths());
1761 processMap.put("enableEORDelay", new enableEORDelay());
1762 processMap.put("sendEOR", new sendEOR());
1766 public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1772 public startBgp_args getEmptyArgsInstance() {
1773 return new startBgp_args();
1777 protected boolean isOneway() {
1782 public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1783 startBgp_result result = new startBgp_result();
1784 result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1785 result.setSuccessIsSet(true);
1790 public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1796 public stopBgp_args getEmptyArgsInstance() {
1797 return new stopBgp_args();
1801 protected boolean isOneway() {
1806 public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1807 stopBgp_result result = new stopBgp_result();
1808 result.success = iface.stopBgp(args.asNumber);
1809 result.setSuccessIsSet(true);
1814 public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1815 public createPeer() {
1816 super("createPeer");
1820 public createPeer_args getEmptyArgsInstance() {
1821 return new createPeer_args();
1825 protected boolean isOneway() {
1830 public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1831 createPeer_result result = new createPeer_result();
1832 result.success = iface.createPeer(args.ipAddress, args.asNumber);
1833 result.setSuccessIsSet(true);
1838 public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1839 public setPeerSecret() {
1840 super("setPeerSecret");
1844 public setPeerSecret_args getEmptyArgsInstance() {
1845 return new setPeerSecret_args();
1849 protected boolean isOneway() {
1854 public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1855 setPeerSecret_result result = new setPeerSecret_result();
1856 result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1857 result.setSuccessIsSet(true);
1862 public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1863 public deletePeer() {
1864 super("deletePeer");
1868 public deletePeer_args getEmptyArgsInstance() {
1869 return new deletePeer_args();
1873 protected boolean isOneway() {
1878 public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1879 deletePeer_result result = new deletePeer_result();
1880 result.success = iface.deletePeer(args.ipAddress);
1881 result.setSuccessIsSet(true);
1886 public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1892 public addVrf_args getEmptyArgsInstance() {
1893 return new addVrf_args();
1897 protected boolean isOneway() {
1902 public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1903 addVrf_result result = new addVrf_result();
1904 result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts);
1905 result.setSuccessIsSet(true);
1910 public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1916 public delVrf_args getEmptyArgsInstance() {
1917 return new delVrf_args();
1921 protected boolean isOneway() {
1926 public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1927 delVrf_result result = new delVrf_result();
1928 result.success = iface.delVrf(args.rd);
1929 result.setSuccessIsSet(true);
1934 public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1935 public pushRoute() {
1940 public pushRoute_args getEmptyArgsInstance() {
1941 return new pushRoute_args();
1945 protected boolean isOneway() {
1950 public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1951 pushRoute_result result = new pushRoute_result();
1952 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, args.afi);
1953 result.setSuccessIsSet(true);
1958 public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1959 public withdrawRoute() {
1960 super("withdrawRoute");
1964 public withdrawRoute_args getEmptyArgsInstance() {
1965 return new withdrawRoute_args();
1969 protected boolean isOneway() {
1974 public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1975 withdrawRoute_result result = new withdrawRoute_result();
1976 result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi);
1977 result.setSuccessIsSet(true);
1982 public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1983 public setEbgpMultihop() {
1984 super("setEbgpMultihop");
1988 public setEbgpMultihop_args getEmptyArgsInstance() {
1989 return new setEbgpMultihop_args();
1993 protected boolean isOneway() {
1998 public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
1999 setEbgpMultihop_result result = new setEbgpMultihop_result();
2000 result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
2001 result.setSuccessIsSet(true);
2006 public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
2007 public unsetEbgpMultihop() {
2008 super("unsetEbgpMultihop");
2012 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2013 return new unsetEbgpMultihop_args();
2017 protected boolean isOneway() {
2022 public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
2023 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2024 result.success = iface.unsetEbgpMultihop(args.peerIp);
2025 result.setSuccessIsSet(true);
2030 public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
2031 public setUpdateSource() {
2032 super("setUpdateSource");
2036 public setUpdateSource_args getEmptyArgsInstance() {
2037 return new setUpdateSource_args();
2041 protected boolean isOneway() {
2046 public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
2047 setUpdateSource_result result = new setUpdateSource_result();
2048 result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
2049 result.setSuccessIsSet(true);
2054 public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
2055 public unsetUpdateSource() {
2056 super("unsetUpdateSource");
2060 public unsetUpdateSource_args getEmptyArgsInstance() {
2061 return new unsetUpdateSource_args();
2065 protected boolean isOneway() {
2070 public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
2071 unsetUpdateSource_result result = new unsetUpdateSource_result();
2072 result.success = iface.unsetUpdateSource(args.peerIp);
2073 result.setSuccessIsSet(true);
2078 public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
2079 public enableAddressFamily() {
2080 super("enableAddressFamily");
2084 public enableAddressFamily_args getEmptyArgsInstance() {
2085 return new enableAddressFamily_args();
2089 protected boolean isOneway() {
2094 public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
2095 enableAddressFamily_result result = new enableAddressFamily_result();
2096 result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
2097 result.setSuccessIsSet(true);
2102 public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
2103 public disableAddressFamily() {
2104 super("disableAddressFamily");
2108 public disableAddressFamily_args getEmptyArgsInstance() {
2109 return new disableAddressFamily_args();
2113 protected boolean isOneway() {
2118 public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
2119 disableAddressFamily_result result = new disableAddressFamily_result();
2120 result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
2121 result.setSuccessIsSet(true);
2126 public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
2127 public setLogConfig() {
2128 super("setLogConfig");
2132 public setLogConfig_args getEmptyArgsInstance() {
2133 return new setLogConfig_args();
2137 protected boolean isOneway() {
2142 public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
2143 setLogConfig_result result = new setLogConfig_result();
2144 result.success = iface.setLogConfig(args.logFileName, args.logLevel);
2145 result.setSuccessIsSet(true);
2150 public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
2151 public enableGracefulRestart() {
2152 super("enableGracefulRestart");
2156 public enableGracefulRestart_args getEmptyArgsInstance() {
2157 return new enableGracefulRestart_args();
2161 protected boolean isOneway() {
2166 public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
2167 enableGracefulRestart_result result = new enableGracefulRestart_result();
2168 result.success = iface.enableGracefulRestart(args.stalepathTime);
2169 result.setSuccessIsSet(true);
2174 public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
2175 public disableGracefulRestart() {
2176 super("disableGracefulRestart");
2180 public disableGracefulRestart_args getEmptyArgsInstance() {
2181 return new disableGracefulRestart_args();
2185 protected boolean isOneway() {
2190 public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
2191 disableGracefulRestart_result result = new disableGracefulRestart_result();
2192 result.success = iface.disableGracefulRestart();
2193 result.setSuccessIsSet(true);
2198 public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
2199 public getRoutes() {
2204 public getRoutes_args getEmptyArgsInstance() {
2205 return new getRoutes_args();
2209 protected boolean isOneway() {
2214 public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
2215 getRoutes_result result = new getRoutes_result();
2216 result.success = iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi);
2221 public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
2222 public enableMultipath() {
2223 super("enableMultipath");
2227 public enableMultipath_args getEmptyArgsInstance() {
2228 return new enableMultipath_args();
2232 protected boolean isOneway() {
2237 public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
2238 enableMultipath_result result = new enableMultipath_result();
2239 result.success = iface.enableMultipath(args.afi, args.safi);
2240 result.setSuccessIsSet(true);
2245 public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
2246 public disableMultipath() {
2247 super("disableMultipath");
2251 public disableMultipath_args getEmptyArgsInstance() {
2252 return new disableMultipath_args();
2256 protected boolean isOneway() {
2261 public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2262 disableMultipath_result result = new disableMultipath_result();
2263 result.success = iface.disableMultipath(args.afi, args.safi);
2264 result.setSuccessIsSet(true);
2269 public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2270 public multipaths() {
2271 super("multipaths");
2275 public multipaths_args getEmptyArgsInstance() {
2276 return new multipaths_args();
2280 protected boolean isOneway() {
2285 public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2286 multipaths_result result = new multipaths_result();
2287 result.success = iface.multipaths(args.rd, args.maxPath);
2288 result.setSuccessIsSet(true);
2293 public static class enableEORDelay<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableEORDelay_args> {
2294 public enableEORDelay() {
2295 super("enableEORDelay");
2298 public enableEORDelay_args getEmptyArgsInstance() {
2299 return new enableEORDelay_args();
2302 protected boolean isOneway() {
2306 public enableEORDelay_result getResult(I iface, enableEORDelay_args args) throws org.apache.thrift.TException {
2307 enableEORDelay_result result = new enableEORDelay_result();
2308 result.success = iface.enableEORDelay(args.delay);
2309 result.setSuccessIsSet(true);
2314 public static class sendEOR<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendEOR_args> {
2319 public sendEOR_args getEmptyArgsInstance() {
2320 return new sendEOR_args();
2323 protected boolean isOneway() {
2327 public sendEOR_result getResult(I iface, sendEOR_args args) throws org.apache.thrift.TException {
2328 sendEOR_result result = new sendEOR_result();
2329 result.success = iface.sendEOR();
2330 result.setSuccessIsSet(true);
2337 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2338 private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2339 public AsyncProcessor(I iface) {
2340 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2343 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
2344 super(iface, getProcessMap(processMap));
2347 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) {
2348 processMap.put("startBgp", new startBgp());
2349 processMap.put("stopBgp", new stopBgp());
2350 processMap.put("createPeer", new createPeer());
2351 processMap.put("setPeerSecret", new setPeerSecret());
2352 processMap.put("deletePeer", new deletePeer());
2353 processMap.put("addVrf", new addVrf());
2354 processMap.put("delVrf", new delVrf());
2355 processMap.put("pushRoute", new pushRoute());
2356 processMap.put("withdrawRoute", new withdrawRoute());
2357 processMap.put("setEbgpMultihop", new setEbgpMultihop());
2358 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2359 processMap.put("setUpdateSource", new setUpdateSource());
2360 processMap.put("unsetUpdateSource", new unsetUpdateSource());
2361 processMap.put("enableAddressFamily", new enableAddressFamily());
2362 processMap.put("disableAddressFamily", new disableAddressFamily());
2363 processMap.put("setLogConfig", new setLogConfig());
2364 processMap.put("enableGracefulRestart", new enableGracefulRestart());
2365 processMap.put("disableGracefulRestart", new disableGracefulRestart());
2366 processMap.put("getRoutes", new getRoutes());
2367 processMap.put("enableMultipath", new enableMultipath());
2368 processMap.put("disableMultipath", new disableMultipath());
2369 processMap.put("multipaths", new multipaths());
2370 processMap.put("enableEORDelay", new enableEORDelay());
2371 processMap.put("sendEOR", new sendEOR());
2375 public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2381 public startBgp_args getEmptyArgsInstance() {
2382 return new startBgp_args();
2386 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2387 final org.apache.thrift.AsyncProcessFunction fcall = this;
2388 return new AsyncMethodCallback<Integer>() {
2390 public void onComplete(Integer o) {
2391 startBgp_result result = new startBgp_result();
2393 result.setSuccessIsSet(true);
2395 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2397 } catch (Exception e) {
2398 LOG.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 startBgp_result result = new startBgp_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 LOG.error("Exception writing to internal frame buffer", ex);
2423 protected boolean isOneway() {
2428 public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2429 iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2433 public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2439 public stopBgp_args getEmptyArgsInstance() {
2440 return new stopBgp_args();
2444 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2445 final org.apache.thrift.AsyncProcessFunction fcall = this;
2446 return new AsyncMethodCallback<Integer>() {
2448 public void onComplete(Integer o) {
2449 stopBgp_result result = new stopBgp_result();
2451 result.setSuccessIsSet(true);
2453 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2455 } catch (Exception e) {
2456 LOG.error("Exception writing to internal frame buffer", e);
2461 public void onError(Exception e) {
2462 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2463 org.apache.thrift.TBase msg;
2464 stopBgp_result result = new stopBgp_result();
2466 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2467 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2470 fcall.sendResponse(fb,msg,msgType,seqid);
2472 } catch (Exception ex) {
2473 LOG.error("Exception writing to internal frame buffer", ex);
2481 protected boolean isOneway() {
2486 public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2487 iface.stopBgp(args.asNumber,resultHandler);
2491 public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2492 public createPeer() {
2493 super("createPeer");
2497 public createPeer_args getEmptyArgsInstance() {
2498 return new createPeer_args();
2502 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2503 final org.apache.thrift.AsyncProcessFunction fcall = this;
2504 return new AsyncMethodCallback<Integer>() {
2506 public void onComplete(Integer o) {
2507 createPeer_result result = new createPeer_result();
2509 result.setSuccessIsSet(true);
2511 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2513 } catch (Exception e) {
2514 LOG.error("Exception writing to internal frame buffer", e);
2519 public void onError(Exception e) {
2520 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2521 org.apache.thrift.TBase msg;
2522 createPeer_result result = new createPeer_result();
2524 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2525 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2528 fcall.sendResponse(fb,msg,msgType,seqid);
2530 } catch (Exception ex) {
2531 LOG.error("Exception writing to internal frame buffer", ex);
2539 protected boolean isOneway() {
2544 public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2545 iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2549 public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2550 public setPeerSecret() {
2551 super("setPeerSecret");
2555 public setPeerSecret_args getEmptyArgsInstance() {
2556 return new setPeerSecret_args();
2560 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2561 final org.apache.thrift.AsyncProcessFunction fcall = this;
2562 return new AsyncMethodCallback<Integer>() {
2564 public void onComplete(Integer o) {
2565 setPeerSecret_result result = new setPeerSecret_result();
2567 result.setSuccessIsSet(true);
2569 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2571 } catch (Exception e) {
2572 LOG.error("Exception writing to internal frame buffer", e);
2577 public void onError(Exception e) {
2578 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2579 org.apache.thrift.TBase msg;
2580 setPeerSecret_result result = new setPeerSecret_result();
2582 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2583 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2586 fcall.sendResponse(fb,msg,msgType,seqid);
2588 } catch (Exception ex) {
2589 LOG.error("Exception writing to internal frame buffer", ex);
2597 protected boolean isOneway() {
2602 public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2603 iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2607 public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2608 public deletePeer() {
2609 super("deletePeer");
2613 public deletePeer_args getEmptyArgsInstance() {
2614 return new deletePeer_args();
2618 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2619 final org.apache.thrift.AsyncProcessFunction fcall = this;
2620 return new AsyncMethodCallback<Integer>() {
2622 public void onComplete(Integer o) {
2623 deletePeer_result result = new deletePeer_result();
2625 result.setSuccessIsSet(true);
2627 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2629 } catch (Exception e) {
2630 LOG.error("Exception writing to internal frame buffer", e);
2635 public void onError(Exception e) {
2636 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2637 org.apache.thrift.TBase msg;
2638 deletePeer_result result = new deletePeer_result();
2640 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2641 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2644 fcall.sendResponse(fb,msg,msgType,seqid);
2646 } catch (Exception ex) {
2647 LOG.error("Exception writing to internal frame buffer", ex);
2655 protected boolean isOneway() {
2660 public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2661 iface.deletePeer(args.ipAddress,resultHandler);
2665 public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2671 public addVrf_args getEmptyArgsInstance() {
2672 return new addVrf_args();
2676 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2677 final org.apache.thrift.AsyncProcessFunction fcall = this;
2678 return new AsyncMethodCallback<Integer>() {
2680 public void onComplete(Integer o) {
2681 addVrf_result result = new addVrf_result();
2683 result.setSuccessIsSet(true);
2685 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2687 } catch (Exception e) {
2688 LOG.error("Exception writing to internal frame buffer", e);
2693 public void onError(Exception e) {
2694 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2695 org.apache.thrift.TBase msg;
2696 addVrf_result result = new addVrf_result();
2698 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2699 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2702 fcall.sendResponse(fb,msg,msgType,seqid);
2704 } catch (Exception ex) {
2705 LOG.error("Exception writing to internal frame buffer", ex);
2713 protected boolean isOneway() {
2718 public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2719 iface.addVrf(args.l_type, args.rd, args.irts, args.erts,resultHandler);
2723 public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2729 public delVrf_args getEmptyArgsInstance() {
2730 return new delVrf_args();
2734 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2735 final org.apache.thrift.AsyncProcessFunction fcall = this;
2736 return new AsyncMethodCallback<Integer>() {
2738 public void onComplete(Integer o) {
2739 delVrf_result result = new delVrf_result();
2741 result.setSuccessIsSet(true);
2743 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2745 } catch (Exception e) {
2746 LOG.error("Exception writing to internal frame buffer", e);
2751 public void onError(Exception e) {
2752 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2753 org.apache.thrift.TBase msg;
2754 delVrf_result result = new delVrf_result();
2756 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2757 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2760 fcall.sendResponse(fb,msg,msgType,seqid);
2762 } catch (Exception ex) {
2763 LOG.error("Exception writing to internal frame buffer", ex);
2771 protected boolean isOneway() {
2776 public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2777 iface.delVrf(args.rd,resultHandler);
2781 public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2782 public pushRoute() {
2787 public pushRoute_args getEmptyArgsInstance() {
2788 return new pushRoute_args();
2792 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2793 final org.apache.thrift.AsyncProcessFunction fcall = this;
2794 return new AsyncMethodCallback<Integer>() {
2796 public void onComplete(Integer o) {
2797 pushRoute_result result = new pushRoute_result();
2799 result.setSuccessIsSet(true);
2801 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2803 } catch (Exception e) {
2804 LOG.error("Exception writing to internal frame buffer", e);
2809 public void onError(Exception e) {
2810 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2811 org.apache.thrift.TBase msg;
2812 pushRoute_result result = new pushRoute_result();
2814 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2815 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2818 fcall.sendResponse(fb,msg,msgType,seqid);
2820 } catch (Exception ex) {
2821 LOG.error("Exception writing to internal frame buffer", ex);
2829 protected boolean isOneway() {
2834 public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2835 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, args.afi,resultHandler);
2839 public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2840 public withdrawRoute() {
2841 super("withdrawRoute");
2845 public withdrawRoute_args getEmptyArgsInstance() {
2846 return new withdrawRoute_args();
2850 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2851 final org.apache.thrift.AsyncProcessFunction fcall = this;
2852 return new AsyncMethodCallback<Integer>() {
2854 public void onComplete(Integer o) {
2855 withdrawRoute_result result = new withdrawRoute_result();
2857 result.setSuccessIsSet(true);
2859 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2861 } catch (Exception e) {
2862 LOG.error("Exception writing to internal frame buffer", e);
2867 public void onError(Exception e) {
2868 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2869 org.apache.thrift.TBase msg;
2870 withdrawRoute_result result = new withdrawRoute_result();
2872 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2873 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2876 fcall.sendResponse(fb,msg,msgType,seqid);
2878 } catch (Exception ex) {
2879 LOG.error("Exception writing to internal frame buffer", ex);
2887 protected boolean isOneway() {
2892 public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2893 iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi,resultHandler);
2897 public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2898 public setEbgpMultihop() {
2899 super("setEbgpMultihop");
2903 public setEbgpMultihop_args getEmptyArgsInstance() {
2904 return new setEbgpMultihop_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>() {
2912 public void onComplete(Integer o) {
2913 setEbgpMultihop_result result = new setEbgpMultihop_result();
2915 result.setSuccessIsSet(true);
2917 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2919 } catch (Exception e) {
2920 LOG.error("Exception writing to internal frame buffer", e);
2925 public void onError(Exception e) {
2926 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2927 org.apache.thrift.TBase msg;
2928 setEbgpMultihop_result result = new setEbgpMultihop_result();
2930 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2931 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2934 fcall.sendResponse(fb,msg,msgType,seqid);
2936 } catch (Exception ex) {
2937 LOG.error("Exception writing to internal frame buffer", ex);
2945 protected boolean isOneway() {
2950 public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2951 iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2955 public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2956 public unsetEbgpMultihop() {
2957 super("unsetEbgpMultihop");
2961 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2962 return new unsetEbgpMultihop_args();
2966 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2967 final org.apache.thrift.AsyncProcessFunction fcall = this;
2968 return new AsyncMethodCallback<Integer>() {
2970 public void onComplete(Integer o) {
2971 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2973 result.setSuccessIsSet(true);
2975 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2977 } catch (Exception e) {
2978 LOG.error("Exception writing to internal frame buffer", e);
2983 public void onError(Exception e) {
2984 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2985 org.apache.thrift.TBase msg;
2986 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2988 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2989 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2992 fcall.sendResponse(fb,msg,msgType,seqid);
2994 } catch (Exception ex) {
2995 LOG.error("Exception writing to internal frame buffer", ex);
3003 protected boolean isOneway() {
3008 public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3009 iface.unsetEbgpMultihop(args.peerIp,resultHandler);
3013 public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
3014 public setUpdateSource() {
3015 super("setUpdateSource");
3019 public setUpdateSource_args getEmptyArgsInstance() {
3020 return new setUpdateSource_args();
3024 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3025 final org.apache.thrift.AsyncProcessFunction fcall = this;
3026 return new AsyncMethodCallback<Integer>() {
3028 public void onComplete(Integer o) {
3029 setUpdateSource_result result = new setUpdateSource_result();
3031 result.setSuccessIsSet(true);
3033 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3035 } catch (Exception e) {
3036 LOG.error("Exception writing to internal frame buffer", e);
3041 public void onError(Exception e) {
3042 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3043 org.apache.thrift.TBase msg;
3044 setUpdateSource_result result = new setUpdateSource_result();
3046 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3047 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3050 fcall.sendResponse(fb,msg,msgType,seqid);
3052 } catch (Exception ex) {
3053 LOG.error("Exception writing to internal frame buffer", ex);
3061 protected boolean isOneway() {
3066 public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3067 iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
3071 public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
3072 public unsetUpdateSource() {
3073 super("unsetUpdateSource");
3077 public unsetUpdateSource_args getEmptyArgsInstance() {
3078 return new unsetUpdateSource_args();
3082 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3083 final org.apache.thrift.AsyncProcessFunction fcall = this;
3084 return new AsyncMethodCallback<Integer>() {
3086 public void onComplete(Integer o) {
3087 unsetUpdateSource_result result = new unsetUpdateSource_result();
3089 result.setSuccessIsSet(true);
3091 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3093 } catch (Exception e) {
3094 LOG.error("Exception writing to internal frame buffer", e);
3099 public void onError(Exception e) {
3100 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3101 org.apache.thrift.TBase msg;
3102 unsetUpdateSource_result result = new unsetUpdateSource_result();
3104 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3105 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3108 fcall.sendResponse(fb,msg,msgType,seqid);
3110 } catch (Exception ex) {
3111 LOG.error("Exception writing to internal frame buffer", ex);
3119 protected boolean isOneway() {
3124 public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3125 iface.unsetUpdateSource(args.peerIp,resultHandler);
3129 public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
3130 public enableAddressFamily() {
3131 super("enableAddressFamily");
3135 public enableAddressFamily_args getEmptyArgsInstance() {
3136 return new enableAddressFamily_args();
3140 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3141 final org.apache.thrift.AsyncProcessFunction fcall = this;
3142 return new AsyncMethodCallback<Integer>() {
3144 public void onComplete(Integer o) {
3145 enableAddressFamily_result result = new enableAddressFamily_result();
3147 result.setSuccessIsSet(true);
3149 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3151 } catch (Exception e) {
3152 LOG.error("Exception writing to internal frame buffer", e);
3157 public void onError(Exception e) {
3158 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3159 org.apache.thrift.TBase msg;
3160 enableAddressFamily_result result = new enableAddressFamily_result();
3162 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3163 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3166 fcall.sendResponse(fb,msg,msgType,seqid);
3168 } catch (Exception ex) {
3169 LOG.error("Exception writing to internal frame buffer", ex);
3177 protected boolean isOneway() {
3182 public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3183 iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3187 public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
3188 public disableAddressFamily() {
3189 super("disableAddressFamily");
3193 public disableAddressFamily_args getEmptyArgsInstance() {
3194 return new disableAddressFamily_args();
3198 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3199 final org.apache.thrift.AsyncProcessFunction fcall = this;
3200 return new AsyncMethodCallback<Integer>() {
3202 public void onComplete(Integer o) {
3203 disableAddressFamily_result result = new disableAddressFamily_result();
3205 result.setSuccessIsSet(true);
3207 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3209 } catch (Exception e) {
3210 LOG.error("Exception writing to internal frame buffer", e);
3215 public void onError(Exception e) {
3216 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3217 org.apache.thrift.TBase msg;
3218 disableAddressFamily_result result = new disableAddressFamily_result();
3220 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3221 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3224 fcall.sendResponse(fb,msg,msgType,seqid);
3226 } catch (Exception ex) {
3227 LOG.error("Exception writing to internal frame buffer", ex);
3235 protected boolean isOneway() {
3240 public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3241 iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3245 public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
3246 public setLogConfig() {
3247 super("setLogConfig");
3251 public setLogConfig_args getEmptyArgsInstance() {
3252 return new setLogConfig_args();
3256 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3257 final org.apache.thrift.AsyncProcessFunction fcall = this;
3258 return new AsyncMethodCallback<Integer>() {
3260 public void onComplete(Integer o) {
3261 setLogConfig_result result = new setLogConfig_result();
3263 result.setSuccessIsSet(true);
3265 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3267 } catch (Exception e) {
3268 LOG.error("Exception writing to internal frame buffer", e);
3273 public void onError(Exception e) {
3274 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3275 org.apache.thrift.TBase msg;
3276 setLogConfig_result result = new setLogConfig_result();
3278 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3279 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3282 fcall.sendResponse(fb,msg,msgType,seqid);
3284 } catch (Exception ex) {
3285 LOG.error("Exception writing to internal frame buffer", ex);
3293 protected boolean isOneway() {
3298 public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3299 iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
3303 public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
3304 public enableGracefulRestart() {
3305 super("enableGracefulRestart");
3309 public enableGracefulRestart_args getEmptyArgsInstance() {
3310 return new enableGracefulRestart_args();
3314 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3315 final org.apache.thrift.AsyncProcessFunction fcall = this;
3316 return new AsyncMethodCallback<Integer>() {
3318 public void onComplete(Integer o) {
3319 enableGracefulRestart_result result = new enableGracefulRestart_result();
3321 result.setSuccessIsSet(true);
3323 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3325 } catch (Exception e) {
3326 LOG.error("Exception writing to internal frame buffer", e);
3331 public void onError(Exception e) {
3332 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3333 org.apache.thrift.TBase msg;
3334 enableGracefulRestart_result result = new enableGracefulRestart_result();
3336 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3337 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3340 fcall.sendResponse(fb,msg,msgType,seqid);
3342 } catch (Exception ex) {
3343 LOG.error("Exception writing to internal frame buffer", ex);
3351 protected boolean isOneway() {
3356 public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3357 iface.enableGracefulRestart(args.stalepathTime,resultHandler);
3361 public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
3362 public disableGracefulRestart() {
3363 super("disableGracefulRestart");
3367 public disableGracefulRestart_args getEmptyArgsInstance() {
3368 return new disableGracefulRestart_args();
3372 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3373 final org.apache.thrift.AsyncProcessFunction fcall = this;
3374 return new AsyncMethodCallback<Integer>() {
3376 public void onComplete(Integer o) {
3377 disableGracefulRestart_result result = new disableGracefulRestart_result();
3379 result.setSuccessIsSet(true);
3381 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3383 } catch (Exception e) {
3384 LOG.error("Exception writing to internal frame buffer", e);
3389 public void onError(Exception e) {
3390 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3391 org.apache.thrift.TBase msg;
3392 disableGracefulRestart_result result = new disableGracefulRestart_result();
3394 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3395 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3398 fcall.sendResponse(fb,msg,msgType,seqid);
3400 } catch (Exception ex) {
3401 LOG.error("Exception writing to internal frame buffer", ex);
3409 protected boolean isOneway() {
3414 public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3415 iface.disableGracefulRestart(resultHandler);
3419 public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3420 public getRoutes() {
3425 public getRoutes_args getEmptyArgsInstance() {
3426 return new getRoutes_args();
3430 public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3431 final org.apache.thrift.AsyncProcessFunction fcall = this;
3432 return new AsyncMethodCallback<Routes>() {
3434 public void onComplete(Routes o) {
3435 getRoutes_result result = new getRoutes_result();
3438 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3440 } catch (Exception e) {
3441 LOG.error("Exception writing to internal frame buffer", e);
3446 public void onError(Exception e) {
3447 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3448 org.apache.thrift.TBase msg;
3449 getRoutes_result result = new getRoutes_result();
3451 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3452 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3455 fcall.sendResponse(fb,msg,msgType,seqid);
3457 } catch (Exception ex) {
3458 LOG.error("Exception writing to internal frame buffer", ex);
3466 protected boolean isOneway() {
3471 public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3472 iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi,resultHandler);
3476 public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3477 public enableMultipath() {
3478 super("enableMultipath");
3482 public enableMultipath_args getEmptyArgsInstance() {
3483 return new enableMultipath_args();
3487 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3488 final org.apache.thrift.AsyncProcessFunction fcall = this;
3489 return new AsyncMethodCallback<Integer>() {
3491 public void onComplete(Integer o) {
3492 enableMultipath_result result = new enableMultipath_result();
3494 result.setSuccessIsSet(true);
3496 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3498 } catch (Exception e) {
3499 LOG.error("Exception writing to internal frame buffer", e);
3504 public void onError(Exception e) {
3505 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3506 org.apache.thrift.TBase msg;
3507 enableMultipath_result result = new enableMultipath_result();
3509 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3510 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3513 fcall.sendResponse(fb,msg,msgType,seqid);
3515 } catch (Exception ex) {
3516 LOG.error("Exception writing to internal frame buffer", ex);
3524 protected boolean isOneway() {
3529 public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3530 iface.enableMultipath(args.afi, args.safi,resultHandler);
3534 public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3535 public disableMultipath() {
3536 super("disableMultipath");
3540 public disableMultipath_args getEmptyArgsInstance() {
3541 return new disableMultipath_args();
3545 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3546 final org.apache.thrift.AsyncProcessFunction fcall = this;
3547 return new AsyncMethodCallback<Integer>() {
3549 public void onComplete(Integer o) {
3550 disableMultipath_result result = new disableMultipath_result();
3552 result.setSuccessIsSet(true);
3554 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3556 } catch (Exception e) {
3557 LOG.error("Exception writing to internal frame buffer", e);
3562 public void onError(Exception e) {
3563 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3564 org.apache.thrift.TBase msg;
3565 disableMultipath_result result = new disableMultipath_result();
3567 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3568 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3571 fcall.sendResponse(fb,msg,msgType,seqid);
3573 } catch (Exception ex) {
3574 LOG.error("Exception writing to internal frame buffer", ex);
3582 protected boolean isOneway() {
3587 public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3588 iface.disableMultipath(args.afi, args.safi,resultHandler);
3592 public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3593 public multipaths() {
3594 super("multipaths");
3598 public multipaths_args getEmptyArgsInstance() {
3599 return new multipaths_args();
3603 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3604 final org.apache.thrift.AsyncProcessFunction fcall = this;
3605 return new AsyncMethodCallback<Integer>() {
3607 public void onComplete(Integer o) {
3608 multipaths_result result = new multipaths_result();
3610 result.setSuccessIsSet(true);
3612 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3614 } catch (Exception e) {
3615 LOG.error("Exception writing to internal frame buffer", e);
3620 public void onError(Exception e) {
3621 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3622 org.apache.thrift.TBase msg;
3623 multipaths_result result = new multipaths_result();
3625 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3626 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3629 fcall.sendResponse(fb,msg,msgType,seqid);
3631 } catch (Exception ex) {
3632 LOG.error("Exception writing to internal frame buffer", ex);
3640 protected boolean isOneway() {
3645 public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3646 iface.multipaths(args.rd, args.maxPath,resultHandler);
3650 public static class enableEORDelay<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableEORDelay_args, Integer> {
3651 public enableEORDelay() {
3652 super("enableEORDelay");
3655 public enableEORDelay_args getEmptyArgsInstance() {
3656 return new enableEORDelay_args();
3659 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3660 final org.apache.thrift.AsyncProcessFunction fcall = this;
3661 return new AsyncMethodCallback<Integer>() {
3662 public void onComplete(Integer o) {
3663 enableEORDelay_result result = new enableEORDelay_result();
3665 result.setSuccessIsSet(true);
3667 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3669 } catch (Exception e) {
3670 LOG.error("Exception writing to internal frame buffer", e);
3674 public void onError(Exception e) {
3675 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3676 org.apache.thrift.TBase msg;
3677 enableEORDelay_result result = new enableEORDelay_result();
3679 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3680 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3683 fcall.sendResponse(fb,msg,msgType,seqid);
3685 } catch (Exception ex) {
3686 LOG.error("Exception writing to internal frame buffer", ex);
3693 protected boolean isOneway() {
3697 public void start(I iface, enableEORDelay_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3698 iface.enableEORDelay(args.delay,resultHandler);
3702 public static class sendEOR<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sendEOR_args, Integer> {
3707 public sendEOR_args getEmptyArgsInstance() {
3708 return new sendEOR_args();
3711 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3712 final org.apache.thrift.AsyncProcessFunction fcall = this;
3713 return new AsyncMethodCallback<Integer>() {
3714 public void onComplete(Integer o) {
3715 sendEOR_result result = new sendEOR_result();
3717 result.setSuccessIsSet(true);
3719 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3721 } catch (Exception e) {
3722 LOG.error("Exception writing to internal frame buffer", e);
3726 public void onError(Exception e) {
3727 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3728 org.apache.thrift.TBase msg;
3729 sendEOR_result result = new sendEOR_result();
3731 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3732 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3735 fcall.sendResponse(fb,msg,msgType,seqid);
3737 } catch (Exception ex) {
3738 LOG.error("Exception writing to internal frame buffer", ex);
3745 protected boolean isOneway() {
3749 public void start(I iface, sendEOR_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3750 iface.sendEOR(resultHandler);
3756 public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args> {
3757 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3759 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);
3760 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);
3761 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);
3762 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);
3763 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);
3764 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);
3765 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);
3767 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3769 schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3770 schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3773 public long asNumber; // required
3774 public String routerId; // required
3775 public int port; // required
3776 public int holdTime; // required
3777 public int keepAliveTime; // required
3778 public int stalepathTime; // required
3779 public boolean announceFlush; // required
3781 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3782 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3783 AS_NUMBER((short)1, "asNumber"),
3784 ROUTER_ID((short)2, "routerId"),
3785 PORT((short)3, "port"),
3786 HOLD_TIME((short)4, "holdTime"),
3787 KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3788 STALEPATH_TIME((short)6, "stalepathTime"),
3789 ANNOUNCE_FLUSH((short)7, "announceFlush");
3791 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3794 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3795 byName.put(field.getFieldName(), field);
3800 * Find the _Fields constant that matches fieldId, or null if its not found.
3802 public static _Fields findByThriftId(int fieldId) {
3804 case 1: // AS_NUMBER
3806 case 2: // ROUTER_ID
3810 case 4: // HOLD_TIME
3812 case 5: // KEEP_ALIVE_TIME
3813 return KEEP_ALIVE_TIME;
3814 case 6: // STALEPATH_TIME
3815 return STALEPATH_TIME;
3816 case 7: // ANNOUNCE_FLUSH
3817 return ANNOUNCE_FLUSH;
3824 * Find the _Fields constant that matches fieldId, throwing an exception
3825 * if it is not found.
3827 public static _Fields findByThriftIdOrThrow(int fieldId) {
3828 _Fields fields = findByThriftId(fieldId);
3829 if (fields == null) {
3830 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3836 * Find the _Fields constant that matches name, or null if its not found.
3838 public static _Fields findByName(String name) {
3839 return byName.get(name);
3842 private final short _thriftId;
3843 private final String _fieldName;
3845 _Fields(short thriftId, String fieldName) {
3846 _thriftId = thriftId;
3847 _fieldName = fieldName;
3851 public short getThriftFieldId() {
3856 public String getFieldName() {
3861 // isset id assignments
3862 private static final int __ASNUMBER_ISSET_ID = 0;
3863 private static final int __PORT_ISSET_ID = 1;
3864 private static final int __HOLDTIME_ISSET_ID = 2;
3865 private static final int __KEEPALIVETIME_ISSET_ID = 3;
3866 private static final int __STALEPATHTIME_ISSET_ID = 4;
3867 private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3868 private byte __isset_bitfield = 0;
3869 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3871 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3872 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3873 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3874 tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
3875 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3876 tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
3877 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3878 tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3879 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3880 tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3881 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3882 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3883 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3884 tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT,
3885 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3886 metaDataMap = Collections.unmodifiableMap(tmpMap);
3887 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3890 public startBgp_args() {
3893 public startBgp_args(
3900 boolean announceFlush)
3903 this.asNumber = asNumber;
3904 setAsNumberIsSet(true);
3905 this.routerId = routerId;
3908 this.holdTime = holdTime;
3909 setHoldTimeIsSet(true);
3910 this.keepAliveTime = keepAliveTime;
3911 setKeepAliveTimeIsSet(true);
3912 this.stalepathTime = stalepathTime;
3913 setStalepathTimeIsSet(true);
3914 this.announceFlush = announceFlush;
3915 setAnnounceFlushIsSet(true);
3919 * Performs a deep copy on <i>other</i>.
3921 public startBgp_args(startBgp_args other) {
3922 __isset_bitfield = other.__isset_bitfield;
3923 this.asNumber = other.asNumber;
3924 if (other.isSetRouterId()) {
3925 this.routerId = other.routerId;
3927 this.port = other.port;
3928 this.holdTime = other.holdTime;
3929 this.keepAliveTime = other.keepAliveTime;
3930 this.stalepathTime = other.stalepathTime;
3931 this.announceFlush = other.announceFlush;
3935 public startBgp_args deepCopy() {
3936 return new startBgp_args(this);
3940 public void clear() {
3941 setAsNumberIsSet(false);
3943 this.routerId = null;
3944 setPortIsSet(false);
3946 setHoldTimeIsSet(false);
3948 setKeepAliveTimeIsSet(false);
3949 this.keepAliveTime = 0;
3950 setStalepathTimeIsSet(false);
3951 this.stalepathTime = 0;
3952 setAnnounceFlushIsSet(false);
3953 this.announceFlush = false;
3956 public long getAsNumber() {
3957 return this.asNumber;
3960 public startBgp_args setAsNumber(long asNumber) {
3961 this.asNumber = asNumber;
3962 setAsNumberIsSet(true);
3966 public void unsetAsNumber() {
3967 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3970 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3971 public boolean isSetAsNumber() {
3972 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3975 public void setAsNumberIsSet(boolean value) {
3976 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3979 public String getRouterId() {
3980 return this.routerId;
3983 public startBgp_args setRouterId(String routerId) {
3984 this.routerId = routerId;
3988 public void unsetRouterId() {
3989 this.routerId = null;
3992 /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
3993 public boolean isSetRouterId() {
3994 return this.routerId != null;
3997 public void setRouterIdIsSet(boolean value) {
3999 this.routerId = null;
4003 public int getPort() {
4007 public startBgp_args setPort(int port) {
4013 public void unsetPort() {
4014 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
4017 /** Returns true if field port is set (has been assigned a value) and false otherwise */
4018 public boolean isSetPort() {
4019 return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
4022 public void setPortIsSet(boolean value) {
4023 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
4026 public int getHoldTime() {
4027 return this.holdTime;
4030 public startBgp_args setHoldTime(int holdTime) {
4031 this.holdTime = holdTime;
4032 setHoldTimeIsSet(true);
4036 public void unsetHoldTime() {
4037 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4040 /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
4041 public boolean isSetHoldTime() {
4042 return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4045 public void setHoldTimeIsSet(boolean value) {
4046 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
4049 public int getKeepAliveTime() {
4050 return this.keepAliveTime;
4053 public startBgp_args setKeepAliveTime(int keepAliveTime) {
4054 this.keepAliveTime = keepAliveTime;
4055 setKeepAliveTimeIsSet(true);
4059 public void unsetKeepAliveTime() {
4060 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4063 /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
4064 public boolean isSetKeepAliveTime() {
4065 return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4068 public void setKeepAliveTimeIsSet(boolean value) {
4069 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
4072 public int getStalepathTime() {
4073 return this.stalepathTime;
4076 public startBgp_args setStalepathTime(int stalepathTime) {
4077 this.stalepathTime = stalepathTime;
4078 setStalepathTimeIsSet(true);
4082 public void unsetStalepathTime() {
4083 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4086 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
4087 public boolean isSetStalepathTime() {
4088 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4091 public void setStalepathTimeIsSet(boolean value) {
4092 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
4095 public boolean isAnnounceFlush() {
4096 return this.announceFlush;
4099 public startBgp_args setAnnounceFlush(boolean announceFlush) {
4100 this.announceFlush = announceFlush;
4101 setAnnounceFlushIsSet(true);
4105 public void unsetAnnounceFlush() {
4106 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4109 /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
4110 public boolean isSetAnnounceFlush() {
4111 return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4114 public void setAnnounceFlushIsSet(boolean value) {
4115 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
4119 public void setFieldValue(_Fields field, Object value) {
4122 if (value == null) {
4125 setAsNumber((Long)value);
4130 if (value == null) {
4133 setRouterId((String)value);
4138 if (value == null) {
4141 setPort((Integer)value);
4146 if (value == null) {
4149 setHoldTime((Integer)value);
4153 case KEEP_ALIVE_TIME:
4154 if (value == null) {
4155 unsetKeepAliveTime();
4157 setKeepAliveTime((Integer)value);
4161 case STALEPATH_TIME:
4162 if (value == null) {
4163 unsetStalepathTime();
4165 setStalepathTime((Integer)value);
4169 case ANNOUNCE_FLUSH:
4170 if (value == null) {
4171 unsetAnnounceFlush();
4173 setAnnounceFlush((Boolean)value);
4181 public Object getFieldValue(_Fields field) {
4184 return Long.valueOf(getAsNumber());
4187 return getRouterId();
4190 return Integer.valueOf(getPort());
4193 return Integer.valueOf(getHoldTime());
4195 case KEEP_ALIVE_TIME:
4196 return Integer.valueOf(getKeepAliveTime());
4198 case STALEPATH_TIME:
4199 return Integer.valueOf(getStalepathTime());
4201 case ANNOUNCE_FLUSH:
4202 return Boolean.valueOf(isAnnounceFlush());
4205 throw new IllegalStateException();
4208 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4210 public boolean isSet(_Fields field) {
4211 if (field == null) {
4212 throw new IllegalArgumentException();
4217 return isSetAsNumber();
4219 return isSetRouterId();
4223 return isSetHoldTime();
4224 case KEEP_ALIVE_TIME:
4225 return isSetKeepAliveTime();
4226 case STALEPATH_TIME:
4227 return isSetStalepathTime();
4228 case ANNOUNCE_FLUSH:
4229 return isSetAnnounceFlush();
4231 throw new IllegalStateException();
4235 public boolean equals(Object that) {
4239 if (that instanceof startBgp_args) {
4240 return this.equals((startBgp_args)that);
4245 public boolean equals(startBgp_args that) {
4250 boolean this_present_asNumber = true;
4251 boolean that_present_asNumber = true;
4252 if (this_present_asNumber || that_present_asNumber) {
4253 if (!(this_present_asNumber && that_present_asNumber)) {
4256 if (this.asNumber != that.asNumber) {
4261 boolean this_present_routerId = true && this.isSetRouterId();
4262 boolean that_present_routerId = true && that.isSetRouterId();
4263 if (this_present_routerId || that_present_routerId) {
4264 if (!(this_present_routerId && that_present_routerId)) {
4267 if (!this.routerId.equals(that.routerId)) {
4272 boolean this_present_port = true;
4273 boolean that_present_port = true;
4274 if (this_present_port || that_present_port) {
4275 if (!(this_present_port && that_present_port)) {
4278 if (this.port != that.port) {
4283 boolean this_present_holdTime = true;
4284 boolean that_present_holdTime = true;
4285 if (this_present_holdTime || that_present_holdTime) {
4286 if (!(this_present_holdTime && that_present_holdTime)) {
4289 if (this.holdTime != that.holdTime) {
4294 boolean this_present_keepAliveTime = true;
4295 boolean that_present_keepAliveTime = true;
4296 if (this_present_keepAliveTime || that_present_keepAliveTime) {
4297 if (!(this_present_keepAliveTime && that_present_keepAliveTime)) {
4300 if (this.keepAliveTime != that.keepAliveTime) {
4305 boolean this_present_stalepathTime = true;
4306 boolean that_present_stalepathTime = true;
4307 if (this_present_stalepathTime || that_present_stalepathTime) {
4308 if (!(this_present_stalepathTime && that_present_stalepathTime)) {
4311 if (this.stalepathTime != that.stalepathTime) {
4316 boolean this_present_announceFlush = true;
4317 boolean that_present_announceFlush = true;
4318 if (this_present_announceFlush || that_present_announceFlush) {
4319 if (!(this_present_announceFlush && that_present_announceFlush)) {
4322 if (this.announceFlush != that.announceFlush) {
4331 public int hashCode() {
4332 List<Object> list = new ArrayList<Object>();
4334 boolean present_asNumber = true;
4335 list.add(present_asNumber);
4336 if (present_asNumber)
4338 boolean present_routerId = true && (isSetRouterId());
4339 list.add(present_routerId);
4340 if (present_routerId)
4342 boolean present_port = true;
4343 list.add(present_port);
4346 boolean present_holdTime = true;
4347 list.add(present_holdTime);
4348 if (present_holdTime)
4350 boolean present_keepAliveTime = true;
4351 list.add(present_keepAliveTime);
4352 if (present_keepAliveTime)
4353 list.add(keepAliveTime);
4354 boolean present_stalepathTime = true;
4355 list.add(present_stalepathTime);
4356 if (present_stalepathTime)
4357 list.add(stalepathTime);
4358 boolean present_announceFlush = true;
4359 list.add(present_announceFlush);
4360 if (present_announceFlush)
4361 list.add(announceFlush);
4362 return list.hashCode();
4366 public int compareTo(startBgp_args other) {
4367 if (!getClass().equals(other.getClass())) {
4368 return getClass().getName().compareTo(other.getClass().getName());
4371 int lastComparison = 0;
4373 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4374 if (lastComparison != 0) {
4375 return lastComparison;
4377 if (isSetAsNumber()) {
4378 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4379 if (lastComparison != 0) {
4380 return lastComparison;
4383 lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
4384 if (lastComparison != 0) {
4385 return lastComparison;
4387 if (isSetRouterId()) {
4388 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
4389 if (lastComparison != 0) {
4390 return lastComparison;
4393 lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
4394 if (lastComparison != 0) {
4395 return lastComparison;
4398 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
4399 if (lastComparison != 0) {
4400 return lastComparison;
4403 lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
4404 if (lastComparison != 0) {
4405 return lastComparison;
4407 if (isSetHoldTime()) {
4408 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
4409 if (lastComparison != 0) {
4410 return lastComparison;
4413 lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
4414 if (lastComparison != 0) {
4415 return lastComparison;
4417 if (isSetKeepAliveTime()) {
4418 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
4419 if (lastComparison != 0) {
4420 return lastComparison;
4423 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
4424 if (lastComparison != 0) {
4425 return lastComparison;
4427 if (isSetStalepathTime()) {
4428 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
4429 if (lastComparison != 0) {
4430 return lastComparison;
4433 lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
4434 if (lastComparison != 0) {
4435 return lastComparison;
4437 if (isSetAnnounceFlush()) {
4438 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
4439 if (lastComparison != 0) {
4440 return lastComparison;
4447 public _Fields fieldForId(int fieldId) {
4448 return _Fields.findByThriftId(fieldId);
4452 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4453 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4457 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4458 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4462 public String toString() {
4463 StringBuilder sb = new StringBuilder("startBgp_args(");
4464 boolean first = true;
4466 sb.append("asNumber:");
4467 sb.append(this.asNumber);
4472 sb.append("routerId:");
4473 if (this.routerId == null) {
4476 sb.append(this.routerId);
4483 sb.append(this.port);
4488 sb.append("holdTime:");
4489 sb.append(this.holdTime);
4494 sb.append("keepAliveTime:");
4495 sb.append(this.keepAliveTime);
4500 sb.append("stalepathTime:");
4501 sb.append(this.stalepathTime);
4506 sb.append("announceFlush:");
4507 sb.append(this.announceFlush);
4510 return sb.toString();
4513 public void validate() throws org.apache.thrift.TException {
4514 // check for required fields
4515 // check for sub-struct validity
4518 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4520 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4521 } catch (org.apache.thrift.TException te) {
4522 throw new java.io.IOException(te);
4526 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4528 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4529 __isset_bitfield = 0;
4530 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4531 } catch (org.apache.thrift.TException te) {
4532 throw new java.io.IOException(te);
4536 private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
4538 public startBgp_argsStandardScheme getScheme() {
4539 return new startBgp_argsStandardScheme();
4543 private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
4546 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
4547 org.apache.thrift.protocol.TField schemeField;
4548 iprot.readStructBegin();
4551 schemeField = iprot.readFieldBegin();
4552 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4555 switch (schemeField.id) {
4556 case 1: // AS_NUMBER
4557 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4558 struct.asNumber = iprot.readI64();
4559 struct.setAsNumberIsSet(true);
4561 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4564 case 2: // ROUTER_ID
4565 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4566 struct.routerId = iprot.readString();
4567 struct.setRouterIdIsSet(true);
4569 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4573 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4574 struct.port = iprot.readI32();
4575 struct.setPortIsSet(true);
4577 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4580 case 4: // HOLD_TIME
4581 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4582 struct.holdTime = iprot.readI32();
4583 struct.setHoldTimeIsSet(true);
4585 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4588 case 5: // KEEP_ALIVE_TIME
4589 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4590 struct.keepAliveTime = iprot.readI32();
4591 struct.setKeepAliveTimeIsSet(true);
4593 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4596 case 6: // STALEPATH_TIME
4597 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4598 struct.stalepathTime = iprot.readI32();
4599 struct.setStalepathTimeIsSet(true);
4601 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4604 case 7: // ANNOUNCE_FLUSH
4605 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
4606 struct.announceFlush = iprot.readBool();
4607 struct.setAnnounceFlushIsSet(true);
4609 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4613 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4615 iprot.readFieldEnd();
4617 iprot.readStructEnd();
4619 // check for required fields of primitive type, which can't be checked in the validate method
4624 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4627 oprot.writeStructBegin(STRUCT_DESC);
4628 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4629 oprot.writeI64(struct.asNumber);
4630 oprot.writeFieldEnd();
4631 if (struct.routerId != null) {
4632 oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4633 oprot.writeString(struct.routerId);
4634 oprot.writeFieldEnd();
4636 oprot.writeFieldBegin(PORT_FIELD_DESC);
4637 oprot.writeI32(struct.port);
4638 oprot.writeFieldEnd();
4639 oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4640 oprot.writeI32(struct.holdTime);
4641 oprot.writeFieldEnd();
4642 oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4643 oprot.writeI32(struct.keepAliveTime);
4644 oprot.writeFieldEnd();
4645 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4646 oprot.writeI32(struct.stalepathTime);
4647 oprot.writeFieldEnd();
4648 oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4649 oprot.writeBool(struct.announceFlush);
4650 oprot.writeFieldEnd();
4651 oprot.writeFieldStop();
4652 oprot.writeStructEnd();
4657 private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4659 public startBgp_argsTupleScheme getScheme() {
4660 return new startBgp_argsTupleScheme();
4664 private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4667 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4668 TTupleProtocol oprot = (TTupleProtocol) prot;
4669 BitSet optionals = new BitSet();
4670 if (struct.isSetAsNumber()) {
4673 if (struct.isSetRouterId()) {
4676 if (struct.isSetPort()) {
4679 if (struct.isSetHoldTime()) {
4682 if (struct.isSetKeepAliveTime()) {
4685 if (struct.isSetStalepathTime()) {
4688 if (struct.isSetAnnounceFlush()) {
4691 oprot.writeBitSet(optionals, 7);
4692 if (struct.isSetAsNumber()) {
4693 oprot.writeI64(struct.asNumber);
4695 if (struct.isSetRouterId()) {
4696 oprot.writeString(struct.routerId);
4698 if (struct.isSetPort()) {
4699 oprot.writeI32(struct.port);
4701 if (struct.isSetHoldTime()) {
4702 oprot.writeI32(struct.holdTime);
4704 if (struct.isSetKeepAliveTime()) {
4705 oprot.writeI32(struct.keepAliveTime);
4707 if (struct.isSetStalepathTime()) {
4708 oprot.writeI32(struct.stalepathTime);
4710 if (struct.isSetAnnounceFlush()) {
4711 oprot.writeBool(struct.announceFlush);
4716 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4717 TTupleProtocol iprot = (TTupleProtocol) prot;
4718 BitSet incoming = iprot.readBitSet(7);
4719 if (incoming.get(0)) {
4720 struct.asNumber = iprot.readI64();
4721 struct.setAsNumberIsSet(true);
4723 if (incoming.get(1)) {
4724 struct.routerId = iprot.readString();
4725 struct.setRouterIdIsSet(true);
4727 if (incoming.get(2)) {
4728 struct.port = iprot.readI32();
4729 struct.setPortIsSet(true);
4731 if (incoming.get(3)) {
4732 struct.holdTime = iprot.readI32();
4733 struct.setHoldTimeIsSet(true);
4735 if (incoming.get(4)) {
4736 struct.keepAliveTime = iprot.readI32();
4737 struct.setKeepAliveTimeIsSet(true);
4739 if (incoming.get(5)) {
4740 struct.stalepathTime = iprot.readI32();
4741 struct.setStalepathTimeIsSet(true);
4743 if (incoming.get(6)) {
4744 struct.announceFlush = iprot.readBool();
4745 struct.setAnnounceFlushIsSet(true);
4752 public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result> {
4753 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4755 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);
4757 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4759 schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4760 schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4763 public int success; // required
4765 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4766 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4767 SUCCESS((short)0, "success");
4769 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4772 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4773 byName.put(field.getFieldName(), field);
4778 * Find the _Fields constant that matches fieldId, or null if its not found.
4780 public static _Fields findByThriftId(int fieldId) {
4790 * Find the _Fields constant that matches fieldId, throwing an exception
4791 * if it is not found.
4793 public static _Fields findByThriftIdOrThrow(int fieldId) {
4794 _Fields fields = findByThriftId(fieldId);
4795 if (fields == null) {
4796 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4802 * Find the _Fields constant that matches name, or null if its not found.
4804 public static _Fields findByName(String name) {
4805 return byName.get(name);
4808 private final short _thriftId;
4809 private final String _fieldName;
4811 _Fields(short thriftId, String fieldName) {
4812 _thriftId = thriftId;
4813 _fieldName = fieldName;
4817 public short getThriftFieldId() {
4822 public String getFieldName() {
4827 // isset id assignments
4828 private static final int __SUCCESS_ISSET_ID = 0;
4829 private byte __isset_bitfield = 0;
4830 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4832 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4833 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4834 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4835 metaDataMap = Collections.unmodifiableMap(tmpMap);
4836 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4839 public startBgp_result() {
4842 public startBgp_result(
4846 this.success = success;
4847 setSuccessIsSet(true);
4851 * Performs a deep copy on <i>other</i>.
4853 public startBgp_result(startBgp_result other) {
4854 __isset_bitfield = other.__isset_bitfield;
4855 this.success = other.success;
4859 public startBgp_result deepCopy() {
4860 return new startBgp_result(this);
4864 public void clear() {
4865 setSuccessIsSet(false);
4869 public int getSuccess() {
4870 return this.success;
4873 public startBgp_result setSuccess(int success) {
4874 this.success = success;
4875 setSuccessIsSet(true);
4879 public void unsetSuccess() {
4880 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4883 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4884 public boolean isSetSuccess() {
4885 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4888 public void setSuccessIsSet(boolean value) {
4889 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4893 public void setFieldValue(_Fields field, Object value) {
4896 if (value == null) {
4899 setSuccess((Integer)value);
4907 public Object getFieldValue(_Fields field) {
4910 return Integer.valueOf(getSuccess());
4913 throw new IllegalStateException();
4916 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4918 public boolean isSet(_Fields field) {
4919 if (field == null) {
4920 throw new IllegalArgumentException();
4925 return isSetSuccess();
4927 throw new IllegalStateException();
4931 public boolean equals(Object that) {
4935 if (that instanceof startBgp_result) {
4936 return this.equals((startBgp_result)that);
4941 public boolean equals(startBgp_result that) {
4946 boolean this_present_success = true;
4947 boolean that_present_success = true;
4948 if (this_present_success || that_present_success) {
4949 if (!(this_present_success && that_present_success)) {
4952 if (this.success != that.success) {
4961 public int hashCode() {
4962 List<Object> list = new ArrayList<Object>();
4964 boolean present_success = true;
4965 list.add(present_success);
4966 if (present_success)
4968 return list.hashCode();
4972 public int compareTo(startBgp_result other) {
4973 if (!getClass().equals(other.getClass())) {
4974 return getClass().getName().compareTo(other.getClass().getName());
4977 int lastComparison = 0;
4979 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
4980 if (lastComparison != 0) {
4981 return lastComparison;
4983 if (isSetSuccess()) {
4984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
4985 if (lastComparison != 0) {
4986 return lastComparison;
4993 public _Fields fieldForId(int fieldId) {
4994 return _Fields.findByThriftId(fieldId);
4998 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4999 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5003 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5004 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5008 public String toString() {
5009 StringBuilder sb = new StringBuilder("startBgp_result(");
5010 boolean first = true;
5012 sb.append("success:");
5013 sb.append(this.success);
5016 return sb.toString();
5019 public void validate() throws org.apache.thrift.TException {
5020 // check for required fields
5021 // check for sub-struct validity
5024 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5026 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5027 } catch (org.apache.thrift.TException te) {
5028 throw new java.io.IOException(te);
5032 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5034 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5035 __isset_bitfield = 0;
5036 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5037 } catch (org.apache.thrift.TException te) {
5038 throw new java.io.IOException(te);
5042 private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
5044 public startBgp_resultStandardScheme getScheme() {
5045 return new startBgp_resultStandardScheme();
5049 private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
5052 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
5053 org.apache.thrift.protocol.TField schemeField;
5054 iprot.readStructBegin();
5057 schemeField = iprot.readFieldBegin();
5058 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5061 switch (schemeField.id) {
5063 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5064 struct.success = iprot.readI32();
5065 struct.setSuccessIsSet(true);
5067 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5071 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5073 iprot.readFieldEnd();
5075 iprot.readStructEnd();
5077 // check for required fields of primitive type, which can't be checked in the validate method
5082 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
5085 oprot.writeStructBegin(STRUCT_DESC);
5086 if (struct.isSetSuccess()) {
5087 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5088 oprot.writeI32(struct.success);
5089 oprot.writeFieldEnd();
5091 oprot.writeFieldStop();
5092 oprot.writeStructEnd();
5097 private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
5099 public startBgp_resultTupleScheme getScheme() {
5100 return new startBgp_resultTupleScheme();
5104 private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
5107 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5108 TTupleProtocol oprot = (TTupleProtocol) prot;
5109 BitSet optionals = new BitSet();
5110 if (struct.isSetSuccess()) {
5113 oprot.writeBitSet(optionals, 1);
5114 if (struct.isSetSuccess()) {
5115 oprot.writeI32(struct.success);
5120 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5121 TTupleProtocol iprot = (TTupleProtocol) prot;
5122 BitSet incoming = iprot.readBitSet(1);
5123 if (incoming.get(0)) {
5124 struct.success = iprot.readI32();
5125 struct.setSuccessIsSet(true);
5132 public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args> {
5133 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
5135 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);
5137 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5139 schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
5140 schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
5143 public long asNumber; // required
5145 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5146 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5147 AS_NUMBER((short)1, "asNumber");
5149 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5152 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5153 byName.put(field.getFieldName(), field);
5158 * Find the _Fields constant that matches fieldId, or null if its not found.
5160 public static _Fields findByThriftId(int fieldId) {
5162 case 1: // AS_NUMBER
5170 * Find the _Fields constant that matches fieldId, throwing an exception
5171 * if it is not found.
5173 public static _Fields findByThriftIdOrThrow(int fieldId) {
5174 _Fields fields = findByThriftId(fieldId);
5175 if (fields == null) {
5176 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5182 * Find the _Fields constant that matches name, or null if its not found.
5184 public static _Fields findByName(String name) {
5185 return byName.get(name);
5188 private final short _thriftId;
5189 private final String _fieldName;
5191 _Fields(short thriftId, String fieldName) {
5192 _thriftId = thriftId;
5193 _fieldName = fieldName;
5197 public short getThriftFieldId() {
5202 public String getFieldName() {
5207 // isset id assignments
5208 private static final int __ASNUMBER_ISSET_ID = 0;
5209 private byte __isset_bitfield = 0;
5210 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5212 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5213 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5214 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5215 metaDataMap = Collections.unmodifiableMap(tmpMap);
5216 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
5219 public stopBgp_args() {
5222 public stopBgp_args(
5226 this.asNumber = asNumber;
5227 setAsNumberIsSet(true);
5231 * Performs a deep copy on <i>other</i>.
5233 public stopBgp_args(stopBgp_args other) {
5234 __isset_bitfield = other.__isset_bitfield;
5235 this.asNumber = other.asNumber;
5239 public stopBgp_args deepCopy() {
5240 return new stopBgp_args(this);
5244 public void clear() {
5245 setAsNumberIsSet(false);
5249 public long getAsNumber() {
5250 return this.asNumber;
5253 public stopBgp_args setAsNumber(long asNumber) {
5254 this.asNumber = asNumber;
5255 setAsNumberIsSet(true);
5259 public void unsetAsNumber() {
5260 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5263 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5264 public boolean isSetAsNumber() {
5265 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5268 public void setAsNumberIsSet(boolean value) {
5269 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5273 public void setFieldValue(_Fields field, Object value) {
5276 if (value == null) {
5279 setAsNumber((Long)value);
5287 public Object getFieldValue(_Fields field) {
5290 return Long.valueOf(getAsNumber());
5293 throw new IllegalStateException();
5296 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5298 public boolean isSet(_Fields field) {
5299 if (field == null) {
5300 throw new IllegalArgumentException();
5305 return isSetAsNumber();
5307 throw new IllegalStateException();
5311 public boolean equals(Object that) {
5315 if (that instanceof stopBgp_args) {
5316 return this.equals((stopBgp_args)that);
5321 public boolean equals(stopBgp_args that) {
5326 boolean this_present_asNumber = true;
5327 boolean that_present_asNumber = true;
5328 if (this_present_asNumber || that_present_asNumber) {
5329 if (!(this_present_asNumber && that_present_asNumber)) {
5332 if (this.asNumber != that.asNumber) {
5341 public int hashCode() {
5342 List<Object> list = new ArrayList<Object>();
5344 boolean present_asNumber = true;
5345 list.add(present_asNumber);
5346 if (present_asNumber)
5348 return list.hashCode();
5352 public int compareTo(stopBgp_args other) {
5353 if (!getClass().equals(other.getClass())) {
5354 return getClass().getName().compareTo(other.getClass().getName());
5357 int lastComparison = 0;
5359 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5360 if (lastComparison != 0) {
5361 return lastComparison;
5363 if (isSetAsNumber()) {
5364 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5365 if (lastComparison != 0) {
5366 return lastComparison;
5373 public _Fields fieldForId(int fieldId) {
5374 return _Fields.findByThriftId(fieldId);
5378 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5379 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5383 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5384 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5388 public String toString() {
5389 StringBuilder sb = new StringBuilder("stopBgp_args(");
5390 boolean first = true;
5392 sb.append("asNumber:");
5393 sb.append(this.asNumber);
5396 return sb.toString();
5399 public void validate() throws org.apache.thrift.TException {
5400 // check for required fields
5401 // check for sub-struct validity
5404 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5406 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5407 } catch (org.apache.thrift.TException te) {
5408 throw new java.io.IOException(te);
5412 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5414 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5415 __isset_bitfield = 0;
5416 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5417 } catch (org.apache.thrift.TException te) {
5418 throw new java.io.IOException(te);
5422 private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
5424 public stopBgp_argsStandardScheme getScheme() {
5425 return new stopBgp_argsStandardScheme();
5429 private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
5432 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
5433 org.apache.thrift.protocol.TField schemeField;
5434 iprot.readStructBegin();
5437 schemeField = iprot.readFieldBegin();
5438 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5441 switch (schemeField.id) {
5442 case 1: // AS_NUMBER
5443 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5444 struct.asNumber = iprot.readI64();
5445 struct.setAsNumberIsSet(true);
5447 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5451 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5453 iprot.readFieldEnd();
5455 iprot.readStructEnd();
5457 // check for required fields of primitive type, which can't be checked in the validate method
5462 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
5465 oprot.writeStructBegin(STRUCT_DESC);
5466 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5467 oprot.writeI64(struct.asNumber);
5468 oprot.writeFieldEnd();
5469 oprot.writeFieldStop();
5470 oprot.writeStructEnd();
5475 private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
5477 public stopBgp_argsTupleScheme getScheme() {
5478 return new stopBgp_argsTupleScheme();
5482 private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
5485 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5486 TTupleProtocol oprot = (TTupleProtocol) prot;
5487 BitSet optionals = new BitSet();
5488 if (struct.isSetAsNumber()) {
5491 oprot.writeBitSet(optionals, 1);
5492 if (struct.isSetAsNumber()) {
5493 oprot.writeI64(struct.asNumber);
5498 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5499 TTupleProtocol iprot = (TTupleProtocol) prot;
5500 BitSet incoming = iprot.readBitSet(1);
5501 if (incoming.get(0)) {
5502 struct.asNumber = iprot.readI64();
5503 struct.setAsNumberIsSet(true);
5510 public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result> {
5511 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
5513 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);
5515 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5517 schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
5518 schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
5521 public int success; // required
5523 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5524 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5525 SUCCESS((short)0, "success");
5527 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5530 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5531 byName.put(field.getFieldName(), field);
5536 * Find the _Fields constant that matches fieldId, or null if its not found.
5538 public static _Fields findByThriftId(int fieldId) {
5548 * Find the _Fields constant that matches fieldId, throwing an exception
5549 * if it is not found.
5551 public static _Fields findByThriftIdOrThrow(int fieldId) {
5552 _Fields fields = findByThriftId(fieldId);
5553 if (fields == null) {
5554 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5560 * Find the _Fields constant that matches name, or null if its not found.
5562 public static _Fields findByName(String name) {
5563 return byName.get(name);
5566 private final short _thriftId;
5567 private final String _fieldName;
5569 _Fields(short thriftId, String fieldName) {
5570 _thriftId = thriftId;
5571 _fieldName = fieldName;
5575 public short getThriftFieldId() {
5580 public String getFieldName() {
5585 // isset id assignments
5586 private static final int __SUCCESS_ISSET_ID = 0;
5587 private byte __isset_bitfield = 0;
5588 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5590 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5591 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5592 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5593 metaDataMap = Collections.unmodifiableMap(tmpMap);
5594 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
5597 public stopBgp_result() {
5600 public stopBgp_result(
5604 this.success = success;
5605 setSuccessIsSet(true);
5609 * Performs a deep copy on <i>other</i>.
5611 public stopBgp_result(stopBgp_result other) {
5612 __isset_bitfield = other.__isset_bitfield;
5613 this.success = other.success;
5617 public stopBgp_result deepCopy() {
5618 return new stopBgp_result(this);
5622 public void clear() {
5623 setSuccessIsSet(false);
5627 public int getSuccess() {
5628 return this.success;
5631 public stopBgp_result setSuccess(int success) {
5632 this.success = success;
5633 setSuccessIsSet(true);
5637 public void unsetSuccess() {
5638 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5641 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5642 public boolean isSetSuccess() {
5643 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5646 public void setSuccessIsSet(boolean value) {
5647 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5651 public void setFieldValue(_Fields field, Object value) {
5654 if (value == null) {
5657 setSuccess((Integer)value);
5665 public Object getFieldValue(_Fields field) {
5668 return Integer.valueOf(getSuccess());
5671 throw new IllegalStateException();
5674 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5676 public boolean isSet(_Fields field) {
5677 if (field == null) {
5678 throw new IllegalArgumentException();
5683 return isSetSuccess();
5685 throw new IllegalStateException();
5689 public boolean equals(Object that) {
5693 if (that instanceof stopBgp_result) {
5694 return this.equals((stopBgp_result)that);
5699 public boolean equals(stopBgp_result that) {
5704 boolean this_present_success = true;
5705 boolean that_present_success = true;
5706 if (this_present_success || that_present_success) {
5707 if (!(this_present_success && that_present_success)) {
5710 if (this.success != that.success) {
5719 public int hashCode() {
5720 List<Object> list = new ArrayList<Object>();
5722 boolean present_success = true;
5723 list.add(present_success);
5724 if (present_success)
5726 return list.hashCode();
5730 public int compareTo(stopBgp_result other) {
5731 if (!getClass().equals(other.getClass())) {
5732 return getClass().getName().compareTo(other.getClass().getName());
5735 int lastComparison = 0;
5737 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5738 if (lastComparison != 0) {
5739 return lastComparison;
5741 if (isSetSuccess()) {
5742 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5743 if (lastComparison != 0) {
5744 return lastComparison;
5751 public _Fields fieldForId(int fieldId) {
5752 return _Fields.findByThriftId(fieldId);
5756 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5757 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5761 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5762 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5766 public String toString() {
5767 StringBuilder sb = new StringBuilder("stopBgp_result(");
5768 boolean first = true;
5770 sb.append("success:");
5771 sb.append(this.success);
5774 return sb.toString();
5777 public void validate() throws org.apache.thrift.TException {
5778 // check for required fields
5779 // check for sub-struct validity
5782 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5784 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5785 } catch (org.apache.thrift.TException te) {
5786 throw new java.io.IOException(te);
5790 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5792 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5793 __isset_bitfield = 0;
5794 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5795 } catch (org.apache.thrift.TException te) {
5796 throw new java.io.IOException(te);
5800 private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5802 public stopBgp_resultStandardScheme getScheme() {
5803 return new stopBgp_resultStandardScheme();
5807 private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5810 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5811 org.apache.thrift.protocol.TField schemeField;
5812 iprot.readStructBegin();
5815 schemeField = iprot.readFieldBegin();
5816 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5819 switch (schemeField.id) {
5821 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5822 struct.success = iprot.readI32();
5823 struct.setSuccessIsSet(true);
5825 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5829 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5831 iprot.readFieldEnd();
5833 iprot.readStructEnd();
5835 // check for required fields of primitive type, which can't be checked in the validate method
5840 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5843 oprot.writeStructBegin(STRUCT_DESC);
5844 if (struct.isSetSuccess()) {
5845 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5846 oprot.writeI32(struct.success);
5847 oprot.writeFieldEnd();
5849 oprot.writeFieldStop();
5850 oprot.writeStructEnd();
5855 private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5857 public stopBgp_resultTupleScheme getScheme() {
5858 return new stopBgp_resultTupleScheme();
5862 private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5865 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5866 TTupleProtocol oprot = (TTupleProtocol) prot;
5867 BitSet optionals = new BitSet();
5868 if (struct.isSetSuccess()) {
5871 oprot.writeBitSet(optionals, 1);
5872 if (struct.isSetSuccess()) {
5873 oprot.writeI32(struct.success);
5878 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5879 TTupleProtocol iprot = (TTupleProtocol) prot;
5880 BitSet incoming = iprot.readBitSet(1);
5881 if (incoming.get(0)) {
5882 struct.success = iprot.readI32();
5883 struct.setSuccessIsSet(true);
5890 public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args> {
5891 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5893 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);
5894 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);
5896 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5898 schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5899 schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5902 public String ipAddress; // required
5903 public long asNumber; // required
5905 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5906 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5907 IP_ADDRESS((short)1, "ipAddress"),
5908 AS_NUMBER((short)2, "asNumber");
5910 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5913 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5914 byName.put(field.getFieldName(), field);
5919 * Find the _Fields constant that matches fieldId, or null if its not found.
5921 public static _Fields findByThriftId(int fieldId) {
5923 case 1: // IP_ADDRESS
5925 case 2: // AS_NUMBER
5933 * Find the _Fields constant that matches fieldId, throwing an exception
5934 * if it is not found.
5936 public static _Fields findByThriftIdOrThrow(int fieldId) {
5937 _Fields fields = findByThriftId(fieldId);
5938 if (fields == null) {
5939 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5945 * Find the _Fields constant that matches name, or null if its not found.
5947 public static _Fields findByName(String name) {
5948 return byName.get(name);
5951 private final short _thriftId;
5952 private final String _fieldName;
5954 _Fields(short thriftId, String fieldName) {
5955 _thriftId = thriftId;
5956 _fieldName = fieldName;
5960 public short getThriftFieldId() {
5965 public String getFieldName() {
5970 // isset id assignments
5971 private static final int __ASNUMBER_ISSET_ID = 0;
5972 private byte __isset_bitfield = 0;
5973 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5975 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5976 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5977 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5978 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5979 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5980 metaDataMap = Collections.unmodifiableMap(tmpMap);
5981 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
5984 public createPeer_args() {
5987 public createPeer_args(
5992 this.ipAddress = ipAddress;
5993 this.asNumber = asNumber;
5994 setAsNumberIsSet(true);
5998 * Performs a deep copy on <i>other</i>.
6000 public createPeer_args(createPeer_args other) {
6001 __isset_bitfield = other.__isset_bitfield;
6002 if (other.isSetIpAddress()) {
6003 this.ipAddress = other.ipAddress;
6005 this.asNumber = other.asNumber;
6009 public createPeer_args deepCopy() {
6010 return new createPeer_args(this);
6014 public void clear() {
6015 this.ipAddress = null;
6016 setAsNumberIsSet(false);
6020 public String getIpAddress() {
6021 return this.ipAddress;
6024 public createPeer_args setIpAddress(String ipAddress) {
6025 this.ipAddress = ipAddress;
6029 public void unsetIpAddress() {
6030 this.ipAddress = null;
6033 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6034 public boolean isSetIpAddress() {
6035 return this.ipAddress != null;
6038 public void setIpAddressIsSet(boolean value) {
6040 this.ipAddress = null;
6044 public long getAsNumber() {
6045 return this.asNumber;
6048 public createPeer_args setAsNumber(long asNumber) {
6049 this.asNumber = asNumber;
6050 setAsNumberIsSet(true);
6054 public void unsetAsNumber() {
6055 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6058 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
6059 public boolean isSetAsNumber() {
6060 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6063 public void setAsNumberIsSet(boolean value) {
6064 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
6068 public void setFieldValue(_Fields field, Object value) {
6071 if (value == null) {
6074 setIpAddress((String)value);
6079 if (value == null) {
6082 setAsNumber((Long)value);
6090 public Object getFieldValue(_Fields field) {
6093 return getIpAddress();
6096 return Long.valueOf(getAsNumber());
6099 throw new IllegalStateException();
6102 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6104 public boolean isSet(_Fields field) {
6105 if (field == null) {
6106 throw new IllegalArgumentException();
6111 return isSetIpAddress();
6113 return isSetAsNumber();
6115 throw new IllegalStateException();
6119 public boolean equals(Object that) {
6123 if (that instanceof createPeer_args) {
6124 return this.equals((createPeer_args)that);
6129 public boolean equals(createPeer_args that) {
6134 boolean this_present_ipAddress = true && this.isSetIpAddress();
6135 boolean that_present_ipAddress = true && that.isSetIpAddress();
6136 if (this_present_ipAddress || that_present_ipAddress) {
6137 if (!(this_present_ipAddress && that_present_ipAddress)) {
6140 if (!this.ipAddress.equals(that.ipAddress)) {
6145 boolean this_present_asNumber = true;
6146 boolean that_present_asNumber = true;
6147 if (this_present_asNumber || that_present_asNumber) {
6148 if (!(this_present_asNumber && that_present_asNumber)) {
6151 if (this.asNumber != that.asNumber) {
6160 public int hashCode() {
6161 List<Object> list = new ArrayList<Object>();
6163 boolean present_ipAddress = true && (isSetIpAddress());
6164 list.add(present_ipAddress);
6165 if (present_ipAddress)
6166 list.add(ipAddress);
6167 boolean present_asNumber = true;
6168 list.add(present_asNumber);
6169 if (present_asNumber)
6171 return list.hashCode();
6175 public int compareTo(createPeer_args other) {
6176 if (!getClass().equals(other.getClass())) {
6177 return getClass().getName().compareTo(other.getClass().getName());
6180 int lastComparison = 0;
6182 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6183 if (lastComparison != 0) {
6184 return lastComparison;
6186 if (isSetIpAddress()) {
6187 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6188 if (lastComparison != 0) {
6189 return lastComparison;
6192 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
6193 if (lastComparison != 0) {
6194 return lastComparison;
6196 if (isSetAsNumber()) {
6197 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
6198 if (lastComparison != 0) {
6199 return lastComparison;
6206 public _Fields fieldForId(int fieldId) {
6207 return _Fields.findByThriftId(fieldId);
6211 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6212 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6216 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6217 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6221 public String toString() {
6222 StringBuilder sb = new StringBuilder("createPeer_args(");
6223 boolean first = true;
6225 sb.append("ipAddress:");
6226 if (this.ipAddress == null) {
6229 sb.append(this.ipAddress);
6235 sb.append("asNumber:");
6236 sb.append(this.asNumber);
6239 return sb.toString();
6242 public void validate() throws org.apache.thrift.TException {
6243 // check for required fields
6244 // check for sub-struct validity
6247 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6249 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6250 } catch (org.apache.thrift.TException te) {
6251 throw new java.io.IOException(te);
6255 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6257 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6258 __isset_bitfield = 0;
6259 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6260 } catch (org.apache.thrift.TException te) {
6261 throw new java.io.IOException(te);
6265 private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
6267 public createPeer_argsStandardScheme getScheme() {
6268 return new createPeer_argsStandardScheme();
6272 private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
6275 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
6276 org.apache.thrift.protocol.TField schemeField;
6277 iprot.readStructBegin();
6280 schemeField = iprot.readFieldBegin();
6281 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6284 switch (schemeField.id) {
6285 case 1: // IP_ADDRESS
6286 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6287 struct.ipAddress = iprot.readString();
6288 struct.setIpAddressIsSet(true);
6290 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6293 case 2: // AS_NUMBER
6294 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
6295 struct.asNumber = iprot.readI64();
6296 struct.setAsNumberIsSet(true);
6298 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6302 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6304 iprot.readFieldEnd();
6306 iprot.readStructEnd();
6308 // check for required fields of primitive type, which can't be checked in the validate method
6313 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
6316 oprot.writeStructBegin(STRUCT_DESC);
6317 if (struct.ipAddress != null) {
6318 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6319 oprot.writeString(struct.ipAddress);
6320 oprot.writeFieldEnd();
6322 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
6323 oprot.writeI64(struct.asNumber);
6324 oprot.writeFieldEnd();
6325 oprot.writeFieldStop();
6326 oprot.writeStructEnd();
6331 private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
6333 public createPeer_argsTupleScheme getScheme() {
6334 return new createPeer_argsTupleScheme();
6338 private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
6341 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6342 TTupleProtocol oprot = (TTupleProtocol) prot;
6343 BitSet optionals = new BitSet();
6344 if (struct.isSetIpAddress()) {
6347 if (struct.isSetAsNumber()) {
6350 oprot.writeBitSet(optionals, 2);
6351 if (struct.isSetIpAddress()) {
6352 oprot.writeString(struct.ipAddress);
6354 if (struct.isSetAsNumber()) {
6355 oprot.writeI64(struct.asNumber);
6360 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6361 TTupleProtocol iprot = (TTupleProtocol) prot;
6362 BitSet incoming = iprot.readBitSet(2);
6363 if (incoming.get(0)) {
6364 struct.ipAddress = iprot.readString();
6365 struct.setIpAddressIsSet(true);
6367 if (incoming.get(1)) {
6368 struct.asNumber = iprot.readI64();
6369 struct.setAsNumberIsSet(true);
6376 public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result> {
6377 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
6379 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);
6381 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6383 schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
6384 schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
6387 public int success; // required
6389 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6390 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6391 SUCCESS((short)0, "success");
6393 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6396 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6397 byName.put(field.getFieldName(), field);
6402 * Find the _Fields constant that matches fieldId, or null if its not found.
6404 public static _Fields findByThriftId(int fieldId) {
6414 * Find the _Fields constant that matches fieldId, throwing an exception
6415 * if it is not found.
6417 public static _Fields findByThriftIdOrThrow(int fieldId) {
6418 _Fields fields = findByThriftId(fieldId);
6419 if (fields == null) {
6420 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6426 * Find the _Fields constant that matches name, or null if its not found.
6428 public static _Fields findByName(String name) {
6429 return byName.get(name);
6432 private final short _thriftId;
6433 private final String _fieldName;
6435 _Fields(short thriftId, String fieldName) {
6436 _thriftId = thriftId;
6437 _fieldName = fieldName;
6441 public short getThriftFieldId() {
6446 public String getFieldName() {
6451 // isset id assignments
6452 private static final int __SUCCESS_ISSET_ID = 0;
6453 private byte __isset_bitfield = 0;
6454 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6456 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6457 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6458 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6459 metaDataMap = Collections.unmodifiableMap(tmpMap);
6460 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
6463 public createPeer_result() {
6466 public createPeer_result(
6470 this.success = success;
6471 setSuccessIsSet(true);
6475 * Performs a deep copy on <i>other</i>.
6477 public createPeer_result(createPeer_result other) {
6478 __isset_bitfield = other.__isset_bitfield;
6479 this.success = other.success;
6483 public createPeer_result deepCopy() {
6484 return new createPeer_result(this);
6488 public void clear() {
6489 setSuccessIsSet(false);
6493 public int getSuccess() {
6494 return this.success;
6497 public createPeer_result setSuccess(int success) {
6498 this.success = success;
6499 setSuccessIsSet(true);
6503 public void unsetSuccess() {
6504 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6507 /** Returns true if field success is set (has been assigned a value) and false otherwise */
6508 public boolean isSetSuccess() {
6509 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6512 public void setSuccessIsSet(boolean value) {
6513 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6517 public void setFieldValue(_Fields field, Object value) {
6520 if (value == null) {
6523 setSuccess((Integer)value);
6531 public Object getFieldValue(_Fields field) {
6534 return Integer.valueOf(getSuccess());
6537 throw new IllegalStateException();
6540 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6542 public boolean isSet(_Fields field) {
6543 if (field == null) {
6544 throw new IllegalArgumentException();
6549 return isSetSuccess();
6551 throw new IllegalStateException();
6555 public boolean equals(Object that) {
6559 if (that instanceof createPeer_result) {
6560 return this.equals((createPeer_result)that);
6565 public boolean equals(createPeer_result that) {
6570 boolean this_present_success = true;
6571 boolean that_present_success = true;
6572 if (this_present_success || that_present_success) {
6573 if (!(this_present_success && that_present_success)) {
6576 if (this.success != that.success) {
6585 public int hashCode() {
6586 List<Object> list = new ArrayList<Object>();
6588 boolean present_success = true;
6589 list.add(present_success);
6590 if (present_success)
6592 return list.hashCode();
6596 public int compareTo(createPeer_result other) {
6597 if (!getClass().equals(other.getClass())) {
6598 return getClass().getName().compareTo(other.getClass().getName());
6601 int lastComparison = 0;
6603 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6604 if (lastComparison != 0) {
6605 return lastComparison;
6607 if (isSetSuccess()) {
6608 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6609 if (lastComparison != 0) {
6610 return lastComparison;
6617 public _Fields fieldForId(int fieldId) {
6618 return _Fields.findByThriftId(fieldId);
6622 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6623 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6627 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6628 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6632 public String toString() {
6633 StringBuilder sb = new StringBuilder("createPeer_result(");
6634 boolean first = true;
6636 sb.append("success:");
6637 sb.append(this.success);
6640 return sb.toString();
6643 public void validate() throws org.apache.thrift.TException {
6644 // check for required fields
6645 // check for sub-struct validity
6648 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6650 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6651 } catch (org.apache.thrift.TException te) {
6652 throw new java.io.IOException(te);
6656 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6658 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6659 __isset_bitfield = 0;
6660 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6661 } catch (org.apache.thrift.TException te) {
6662 throw new java.io.IOException(te);
6666 private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
6668 public createPeer_resultStandardScheme getScheme() {
6669 return new createPeer_resultStandardScheme();
6673 private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
6676 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
6677 org.apache.thrift.protocol.TField schemeField;
6678 iprot.readStructBegin();
6681 schemeField = iprot.readFieldBegin();
6682 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6685 switch (schemeField.id) {
6687 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6688 struct.success = iprot.readI32();
6689 struct.setSuccessIsSet(true);
6691 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6695 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6697 iprot.readFieldEnd();
6699 iprot.readStructEnd();
6701 // check for required fields of primitive type, which can't be checked in the validate method
6706 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
6709 oprot.writeStructBegin(STRUCT_DESC);
6710 if (struct.isSetSuccess()) {
6711 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6712 oprot.writeI32(struct.success);
6713 oprot.writeFieldEnd();
6715 oprot.writeFieldStop();
6716 oprot.writeStructEnd();
6721 private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
6723 public createPeer_resultTupleScheme getScheme() {
6724 return new createPeer_resultTupleScheme();
6728 private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
6731 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6732 TTupleProtocol oprot = (TTupleProtocol) prot;
6733 BitSet optionals = new BitSet();
6734 if (struct.isSetSuccess()) {
6737 oprot.writeBitSet(optionals, 1);
6738 if (struct.isSetSuccess()) {
6739 oprot.writeI32(struct.success);
6744 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6745 TTupleProtocol iprot = (TTupleProtocol) prot;
6746 BitSet incoming = iprot.readBitSet(1);
6747 if (incoming.get(0)) {
6748 struct.success = iprot.readI32();
6749 struct.setSuccessIsSet(true);
6756 public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args> {
6757 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6759 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);
6760 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);
6762 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6764 schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6765 schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6768 public String ipAddress; // required
6769 public String rfc2385_sharedSecret; // required
6771 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6772 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6773 IP_ADDRESS((short)1, "ipAddress"),
6774 RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6776 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6779 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6780 byName.put(field.getFieldName(), field);
6785 * Find the _Fields constant that matches fieldId, or null if its not found.
6787 public static _Fields findByThriftId(int fieldId) {
6789 case 1: // IP_ADDRESS
6791 case 2: // RFC2385_SHARED_SECRET
6792 return RFC2385_SHARED_SECRET;
6799 * Find the _Fields constant that matches fieldId, throwing an exception
6800 * if it is not found.
6802 public static _Fields findByThriftIdOrThrow(int fieldId) {
6803 _Fields fields = findByThriftId(fieldId);
6804 if (fields == null) {
6805 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6811 * Find the _Fields constant that matches name, or null if its not found.
6813 public static _Fields findByName(String name) {
6814 return byName.get(name);
6817 private final short _thriftId;
6818 private final String _fieldName;
6820 _Fields(short thriftId, String fieldName) {
6821 _thriftId = thriftId;
6822 _fieldName = fieldName;
6826 public short getThriftFieldId() {
6831 public String getFieldName() {
6836 // isset id assignments
6837 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6839 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6840 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6841 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6842 tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6843 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6844 metaDataMap = Collections.unmodifiableMap(tmpMap);
6845 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6848 public setPeerSecret_args() {
6851 public setPeerSecret_args(
6853 String rfc2385_sharedSecret)
6856 this.ipAddress = ipAddress;
6857 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6861 * Performs a deep copy on <i>other</i>.
6863 public setPeerSecret_args(setPeerSecret_args other) {
6864 if (other.isSetIpAddress()) {
6865 this.ipAddress = other.ipAddress;
6867 if (other.isSetRfc2385_sharedSecret()) {
6868 this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6873 public setPeerSecret_args deepCopy() {
6874 return new setPeerSecret_args(this);
6878 public void clear() {
6879 this.ipAddress = null;
6880 this.rfc2385_sharedSecret = null;
6883 public String getIpAddress() {
6884 return this.ipAddress;
6887 public setPeerSecret_args setIpAddress(String ipAddress) {
6888 this.ipAddress = ipAddress;
6892 public void unsetIpAddress() {
6893 this.ipAddress = null;
6896 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6897 public boolean isSetIpAddress() {
6898 return this.ipAddress != null;
6901 public void setIpAddressIsSet(boolean value) {
6903 this.ipAddress = null;
6907 public String getRfc2385_sharedSecret() {
6908 return this.rfc2385_sharedSecret;
6911 public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6912 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6916 public void unsetRfc2385_sharedSecret() {
6917 this.rfc2385_sharedSecret = null;
6920 /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6921 public boolean isSetRfc2385_sharedSecret() {
6922 return this.rfc2385_sharedSecret != null;
6925 public void setRfc2385_sharedSecretIsSet(boolean value) {
6927 this.rfc2385_sharedSecret = null;
6932 public void setFieldValue(_Fields field, Object value) {
6935 if (value == null) {
6938 setIpAddress((String)value);
6942 case RFC2385_SHARED_SECRET:
6943 if (value == null) {
6944 unsetRfc2385_sharedSecret();
6946 setRfc2385_sharedSecret((String)value);
6954 public Object getFieldValue(_Fields field) {
6957 return getIpAddress();
6959 case RFC2385_SHARED_SECRET:
6960 return getRfc2385_sharedSecret();
6963 throw new IllegalStateException();
6966 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6968 public boolean isSet(_Fields field) {
6969 if (field == null) {
6970 throw new IllegalArgumentException();
6975 return isSetIpAddress();
6976 case RFC2385_SHARED_SECRET:
6977 return isSetRfc2385_sharedSecret();
6979 throw new IllegalStateException();
6983 public boolean equals(Object that) {
6987 if (that instanceof setPeerSecret_args) {
6988 return this.equals((setPeerSecret_args)that);
6993 public boolean equals(setPeerSecret_args that) {
6998 boolean this_present_ipAddress = true && this.isSetIpAddress();
6999 boolean that_present_ipAddress = true && that.isSetIpAddress();
7000 if (this_present_ipAddress || that_present_ipAddress) {
7001 if (!(this_present_ipAddress && that_present_ipAddress)) {
7004 if (!this.ipAddress.equals(that.ipAddress)) {
7009 boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
7010 boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
7011 if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
7012 if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret)) {
7015 if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret)) {
7024 public int hashCode() {
7025 List<Object> list = new ArrayList<Object>();
7027 boolean present_ipAddress = true && (isSetIpAddress());
7028 list.add(present_ipAddress);
7029 if (present_ipAddress)
7030 list.add(ipAddress);
7031 boolean present_rfc2385_sharedSecret = true && (isSetRfc2385_sharedSecret());
7032 list.add(present_rfc2385_sharedSecret);
7033 if (present_rfc2385_sharedSecret)
7034 list.add(rfc2385_sharedSecret);
7035 return list.hashCode();
7039 public int compareTo(setPeerSecret_args other) {
7040 if (!getClass().equals(other.getClass())) {
7041 return getClass().getName().compareTo(other.getClass().getName());
7044 int lastComparison = 0;
7046 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7047 if (lastComparison != 0) {
7048 return lastComparison;
7050 if (isSetIpAddress()) {
7051 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7052 if (lastComparison != 0) {
7053 return lastComparison;
7056 lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
7057 if (lastComparison != 0) {
7058 return lastComparison;
7060 if (isSetRfc2385_sharedSecret()) {
7061 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
7062 if (lastComparison != 0) {
7063 return lastComparison;
7070 public _Fields fieldForId(int fieldId) {
7071 return _Fields.findByThriftId(fieldId);
7075 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7076 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7080 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7081 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7085 public String toString() {
7086 StringBuilder sb = new StringBuilder("setPeerSecret_args(");
7087 boolean first = true;
7089 sb.append("ipAddress:");
7090 if (this.ipAddress == null) {
7093 sb.append(this.ipAddress);
7099 sb.append("rfc2385_sharedSecret:");
7100 if (this.rfc2385_sharedSecret == null) {
7103 sb.append(this.rfc2385_sharedSecret);
7107 return sb.toString();
7110 public void validate() throws org.apache.thrift.TException {
7111 // check for required fields
7112 // check for sub-struct validity
7115 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7117 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7118 } catch (org.apache.thrift.TException te) {
7119 throw new java.io.IOException(te);
7123 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7125 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7126 } catch (org.apache.thrift.TException te) {
7127 throw new java.io.IOException(te);
7131 private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
7133 public setPeerSecret_argsStandardScheme getScheme() {
7134 return new setPeerSecret_argsStandardScheme();
7138 private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
7141 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7142 org.apache.thrift.protocol.TField schemeField;
7143 iprot.readStructBegin();
7146 schemeField = iprot.readFieldBegin();
7147 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7150 switch (schemeField.id) {
7151 case 1: // IP_ADDRESS
7152 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7153 struct.ipAddress = iprot.readString();
7154 struct.setIpAddressIsSet(true);
7156 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7159 case 2: // RFC2385_SHARED_SECRET
7160 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7161 struct.rfc2385_sharedSecret = iprot.readString();
7162 struct.setRfc2385_sharedSecretIsSet(true);
7164 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7168 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7170 iprot.readFieldEnd();
7172 iprot.readStructEnd();
7174 // check for required fields of primitive type, which can't be checked in the validate method
7179 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7182 oprot.writeStructBegin(STRUCT_DESC);
7183 if (struct.ipAddress != null) {
7184 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7185 oprot.writeString(struct.ipAddress);
7186 oprot.writeFieldEnd();
7188 if (struct.rfc2385_sharedSecret != null) {
7189 oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
7190 oprot.writeString(struct.rfc2385_sharedSecret);
7191 oprot.writeFieldEnd();
7193 oprot.writeFieldStop();
7194 oprot.writeStructEnd();
7199 private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
7201 public setPeerSecret_argsTupleScheme getScheme() {
7202 return new setPeerSecret_argsTupleScheme();
7206 private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
7209 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7210 TTupleProtocol oprot = (TTupleProtocol) prot;
7211 BitSet optionals = new BitSet();
7212 if (struct.isSetIpAddress()) {
7215 if (struct.isSetRfc2385_sharedSecret()) {
7218 oprot.writeBitSet(optionals, 2);
7219 if (struct.isSetIpAddress()) {
7220 oprot.writeString(struct.ipAddress);
7222 if (struct.isSetRfc2385_sharedSecret()) {
7223 oprot.writeString(struct.rfc2385_sharedSecret);
7228 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7229 TTupleProtocol iprot = (TTupleProtocol) prot;
7230 BitSet incoming = iprot.readBitSet(2);
7231 if (incoming.get(0)) {
7232 struct.ipAddress = iprot.readString();
7233 struct.setIpAddressIsSet(true);
7235 if (incoming.get(1)) {
7236 struct.rfc2385_sharedSecret = iprot.readString();
7237 struct.setRfc2385_sharedSecretIsSet(true);
7244 public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result> {
7245 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
7247 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);
7249 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7251 schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
7252 schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
7255 public int success; // required
7257 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7258 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7259 SUCCESS((short)0, "success");
7261 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7264 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7265 byName.put(field.getFieldName(), field);
7270 * Find the _Fields constant that matches fieldId, or null if its not found.
7272 public static _Fields findByThriftId(int fieldId) {
7282 * Find the _Fields constant that matches fieldId, throwing an exception
7283 * if it is not found.
7285 public static _Fields findByThriftIdOrThrow(int fieldId) {
7286 _Fields fields = findByThriftId(fieldId);
7287 if (fields == null) {
7288 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7294 * Find the _Fields constant that matches name, or null if its not found.
7296 public static _Fields findByName(String name) {
7297 return byName.get(name);
7300 private final short _thriftId;
7301 private final String _fieldName;
7303 _Fields(short thriftId, String fieldName) {
7304 _thriftId = thriftId;
7305 _fieldName = fieldName;
7309 public short getThriftFieldId() {
7314 public String getFieldName() {
7319 // isset id assignments
7320 private static final int __SUCCESS_ISSET_ID = 0;
7321 private byte __isset_bitfield = 0;
7322 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7324 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7325 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7326 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7327 metaDataMap = Collections.unmodifiableMap(tmpMap);
7328 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
7331 public setPeerSecret_result() {
7334 public setPeerSecret_result(
7338 this.success = success;
7339 setSuccessIsSet(true);
7343 * Performs a deep copy on <i>other</i>.
7345 public setPeerSecret_result(setPeerSecret_result other) {
7346 __isset_bitfield = other.__isset_bitfield;
7347 this.success = other.success;
7351 public setPeerSecret_result deepCopy() {
7352 return new setPeerSecret_result(this);
7356 public void clear() {
7357 setSuccessIsSet(false);
7361 public int getSuccess() {
7362 return this.success;
7365 public setPeerSecret_result setSuccess(int success) {
7366 this.success = success;
7367 setSuccessIsSet(true);
7371 public void unsetSuccess() {
7372 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7375 /** Returns true if field success is set (has been assigned a value) and false otherwise */
7376 public boolean isSetSuccess() {
7377 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7380 public void setSuccessIsSet(boolean value) {
7381 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7385 public void setFieldValue(_Fields field, Object value) {
7388 if (value == null) {
7391 setSuccess((Integer)value);
7399 public Object getFieldValue(_Fields field) {
7402 return Integer.valueOf(getSuccess());
7405 throw new IllegalStateException();
7408 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7410 public boolean isSet(_Fields field) {
7411 if (field == null) {
7412 throw new IllegalArgumentException();
7417 return isSetSuccess();
7419 throw new IllegalStateException();
7423 public boolean equals(Object that) {
7427 if (that instanceof setPeerSecret_result) {
7428 return this.equals((setPeerSecret_result)that);
7433 public boolean equals(setPeerSecret_result that) {
7438 boolean this_present_success = true;
7439 boolean that_present_success = true;
7440 if (this_present_success || that_present_success) {
7441 if (!(this_present_success && that_present_success)) {
7444 if (this.success != that.success) {
7453 public int hashCode() {
7454 List<Object> list = new ArrayList<Object>();
7456 boolean present_success = true;
7457 list.add(present_success);
7458 if (present_success)
7460 return list.hashCode();
7464 public int compareTo(setPeerSecret_result other) {
7465 if (!getClass().equals(other.getClass())) {
7466 return getClass().getName().compareTo(other.getClass().getName());
7469 int lastComparison = 0;
7471 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7472 if (lastComparison != 0) {
7473 return lastComparison;
7475 if (isSetSuccess()) {
7476 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7477 if (lastComparison != 0) {
7478 return lastComparison;
7485 public _Fields fieldForId(int fieldId) {
7486 return _Fields.findByThriftId(fieldId);
7490 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7491 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7495 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7496 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7500 public String toString() {
7501 StringBuilder sb = new StringBuilder("setPeerSecret_result(");
7502 boolean first = true;
7504 sb.append("success:");
7505 sb.append(this.success);
7508 return sb.toString();
7511 public void validate() throws org.apache.thrift.TException {
7512 // check for required fields
7513 // check for sub-struct validity
7516 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7518 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7519 } catch (org.apache.thrift.TException te) {
7520 throw new java.io.IOException(te);
7524 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7526 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7527 __isset_bitfield = 0;
7528 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7529 } catch (org.apache.thrift.TException te) {
7530 throw new java.io.IOException(te);
7534 private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
7536 public setPeerSecret_resultStandardScheme getScheme() {
7537 return new setPeerSecret_resultStandardScheme();
7541 private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
7544 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7545 org.apache.thrift.protocol.TField schemeField;
7546 iprot.readStructBegin();
7549 schemeField = iprot.readFieldBegin();
7550 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7553 switch (schemeField.id) {
7555 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7556 struct.success = iprot.readI32();
7557 struct.setSuccessIsSet(true);
7559 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7563 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7565 iprot.readFieldEnd();
7567 iprot.readStructEnd();
7569 // check for required fields of primitive type, which can't be checked in the validate method
7574 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7577 oprot.writeStructBegin(STRUCT_DESC);
7578 if (struct.isSetSuccess()) {
7579 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7580 oprot.writeI32(struct.success);
7581 oprot.writeFieldEnd();
7583 oprot.writeFieldStop();
7584 oprot.writeStructEnd();
7589 private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
7591 public setPeerSecret_resultTupleScheme getScheme() {
7592 return new setPeerSecret_resultTupleScheme();
7596 private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
7599 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7600 TTupleProtocol oprot = (TTupleProtocol) prot;
7601 BitSet optionals = new BitSet();
7602 if (struct.isSetSuccess()) {
7605 oprot.writeBitSet(optionals, 1);
7606 if (struct.isSetSuccess()) {
7607 oprot.writeI32(struct.success);
7612 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7613 TTupleProtocol iprot = (TTupleProtocol) prot;
7614 BitSet incoming = iprot.readBitSet(1);
7615 if (incoming.get(0)) {
7616 struct.success = iprot.readI32();
7617 struct.setSuccessIsSet(true);
7624 public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args> {
7625 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
7627 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);
7629 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7631 schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
7632 schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
7635 public String ipAddress; // required
7637 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7638 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7639 IP_ADDRESS((short)1, "ipAddress");
7641 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7644 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7645 byName.put(field.getFieldName(), field);
7650 * Find the _Fields constant that matches fieldId, or null if its not found.
7652 public static _Fields findByThriftId(int fieldId) {
7654 case 1: // IP_ADDRESS
7662 * Find the _Fields constant that matches fieldId, throwing an exception
7663 * if it is not found.
7665 public static _Fields findByThriftIdOrThrow(int fieldId) {
7666 _Fields fields = findByThriftId(fieldId);
7667 if (fields == null) {
7668 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7674 * Find the _Fields constant that matches name, or null if its not found.
7676 public static _Fields findByName(String name) {
7677 return byName.get(name);
7680 private final short _thriftId;
7681 private final String _fieldName;
7683 _Fields(short thriftId, String fieldName) {
7684 _thriftId = thriftId;
7685 _fieldName = fieldName;
7689 public short getThriftFieldId() {
7694 public String getFieldName() {
7699 // isset id assignments
7700 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7702 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7703 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
7704 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7705 metaDataMap = Collections.unmodifiableMap(tmpMap);
7706 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
7709 public deletePeer_args() {
7712 public deletePeer_args(
7716 this.ipAddress = ipAddress;
7720 * Performs a deep copy on <i>other</i>.
7722 public deletePeer_args(deletePeer_args other) {
7723 if (other.isSetIpAddress()) {
7724 this.ipAddress = other.ipAddress;
7729 public deletePeer_args deepCopy() {
7730 return new deletePeer_args(this);
7734 public void clear() {
7735 this.ipAddress = null;
7738 public String getIpAddress() {
7739 return this.ipAddress;
7742 public deletePeer_args setIpAddress(String ipAddress) {
7743 this.ipAddress = ipAddress;
7747 public void unsetIpAddress() {
7748 this.ipAddress = null;
7751 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
7752 public boolean isSetIpAddress() {
7753 return this.ipAddress != null;
7756 public void setIpAddressIsSet(boolean value) {
7758 this.ipAddress = null;
7763 public void setFieldValue(_Fields field, Object value) {
7766 if (value == null) {
7769 setIpAddress((String)value);
7777 public Object getFieldValue(_Fields field) {
7780 return getIpAddress();
7783 throw new IllegalStateException();
7786 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7788 public boolean isSet(_Fields field) {
7789 if (field == null) {
7790 throw new IllegalArgumentException();
7795 return isSetIpAddress();
7797 throw new IllegalStateException();
7801 public boolean equals(Object that) {
7805 if (that instanceof deletePeer_args) {
7806 return this.equals((deletePeer_args)that);
7811 public boolean equals(deletePeer_args that) {
7816 boolean this_present_ipAddress = true && this.isSetIpAddress();
7817 boolean that_present_ipAddress = true && that.isSetIpAddress();
7818 if (this_present_ipAddress || that_present_ipAddress) {
7819 if (!(this_present_ipAddress && that_present_ipAddress)) {
7822 if (!this.ipAddress.equals(that.ipAddress)) {
7831 public int hashCode() {
7832 List<Object> list = new ArrayList<Object>();
7834 boolean present_ipAddress = true && (isSetIpAddress());
7835 list.add(present_ipAddress);
7836 if (present_ipAddress)
7837 list.add(ipAddress);
7838 return list.hashCode();
7842 public int compareTo(deletePeer_args other) {
7843 if (!getClass().equals(other.getClass())) {
7844 return getClass().getName().compareTo(other.getClass().getName());
7847 int lastComparison = 0;
7849 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7850 if (lastComparison != 0) {
7851 return lastComparison;
7853 if (isSetIpAddress()) {
7854 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7855 if (lastComparison != 0) {
7856 return lastComparison;
7863 public _Fields fieldForId(int fieldId) {
7864 return _Fields.findByThriftId(fieldId);
7868 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7869 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7873 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7874 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7878 public String toString() {
7879 StringBuilder sb = new StringBuilder("deletePeer_args(");
7880 boolean first = true;
7882 sb.append("ipAddress:");
7883 if (this.ipAddress == null) {
7886 sb.append(this.ipAddress);
7890 return sb.toString();
7893 public void validate() throws org.apache.thrift.TException {
7894 // check for required fields
7895 // check for sub-struct validity
7898 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7900 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7901 } catch (org.apache.thrift.TException te) {
7902 throw new java.io.IOException(te);
7906 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7908 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7909 } catch (org.apache.thrift.TException te) {
7910 throw new java.io.IOException(te);
7914 private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7916 public deletePeer_argsStandardScheme getScheme() {
7917 return new deletePeer_argsStandardScheme();
7921 private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7924 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7925 org.apache.thrift.protocol.TField schemeField;
7926 iprot.readStructBegin();
7929 schemeField = iprot.readFieldBegin();
7930 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7933 switch (schemeField.id) {
7934 case 1: // IP_ADDRESS
7935 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7936 struct.ipAddress = iprot.readString();
7937 struct.setIpAddressIsSet(true);
7939 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7943 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7945 iprot.readFieldEnd();
7947 iprot.readStructEnd();
7949 // check for required fields of primitive type, which can't be checked in the validate method
7954 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7957 oprot.writeStructBegin(STRUCT_DESC);
7958 if (struct.ipAddress != null) {
7959 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7960 oprot.writeString(struct.ipAddress);
7961 oprot.writeFieldEnd();
7963 oprot.writeFieldStop();
7964 oprot.writeStructEnd();
7969 private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7971 public deletePeer_argsTupleScheme getScheme() {
7972 return new deletePeer_argsTupleScheme();
7976 private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7979 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7980 TTupleProtocol oprot = (TTupleProtocol) prot;
7981 BitSet optionals = new BitSet();
7982 if (struct.isSetIpAddress()) {
7985 oprot.writeBitSet(optionals, 1);
7986 if (struct.isSetIpAddress()) {
7987 oprot.writeString(struct.ipAddress);
7992 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
7993 TTupleProtocol iprot = (TTupleProtocol) prot;
7994 BitSet incoming = iprot.readBitSet(1);
7995 if (incoming.get(0)) {
7996 struct.ipAddress = iprot.readString();
7997 struct.setIpAddressIsSet(true);
8004 public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result> {
8005 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
8007 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);
8009 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8011 schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
8012 schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
8015 public int success; // required
8017 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8018 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8019 SUCCESS((short)0, "success");
8021 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8024 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8025 byName.put(field.getFieldName(), field);
8030 * Find the _Fields constant that matches fieldId, or null if its not found.
8032 public static _Fields findByThriftId(int fieldId) {
8042 * Find the _Fields constant that matches fieldId, throwing an exception
8043 * if it is not found.
8045 public static _Fields findByThriftIdOrThrow(int fieldId) {
8046 _Fields fields = findByThriftId(fieldId);
8047 if (fields == null) {
8048 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8054 * Find the _Fields constant that matches name, or null if its not found.
8056 public static _Fields findByName(String name) {
8057 return byName.get(name);
8060 private final short _thriftId;
8061 private final String _fieldName;
8063 _Fields(short thriftId, String fieldName) {
8064 _thriftId = thriftId;
8065 _fieldName = fieldName;
8069 public short getThriftFieldId() {
8074 public String getFieldName() {
8079 // isset id assignments
8080 private static final int __SUCCESS_ISSET_ID = 0;
8081 private byte __isset_bitfield = 0;
8082 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8084 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8085 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8086 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8087 metaDataMap = Collections.unmodifiableMap(tmpMap);
8088 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
8091 public deletePeer_result() {
8094 public deletePeer_result(
8098 this.success = success;
8099 setSuccessIsSet(true);
8103 * Performs a deep copy on <i>other</i>.
8105 public deletePeer_result(deletePeer_result other) {
8106 __isset_bitfield = other.__isset_bitfield;
8107 this.success = other.success;
8111 public deletePeer_result deepCopy() {
8112 return new deletePeer_result(this);
8116 public void clear() {
8117 setSuccessIsSet(false);
8121 public int getSuccess() {
8122 return this.success;
8125 public deletePeer_result setSuccess(int success) {
8126 this.success = success;
8127 setSuccessIsSet(true);
8131 public void unsetSuccess() {
8132 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8135 /** Returns true if field success is set (has been assigned a value) and false otherwise */
8136 public boolean isSetSuccess() {
8137 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8140 public void setSuccessIsSet(boolean value) {
8141 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8145 public void setFieldValue(_Fields field, Object value) {
8148 if (value == null) {
8151 setSuccess((Integer)value);
8159 public Object getFieldValue(_Fields field) {
8162 return Integer.valueOf(getSuccess());
8165 throw new IllegalStateException();
8168 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8170 public boolean isSet(_Fields field) {
8171 if (field == null) {
8172 throw new IllegalArgumentException();
8177 return isSetSuccess();
8179 throw new IllegalStateException();
8183 public boolean equals(Object that) {
8187 if (that instanceof deletePeer_result) {
8188 return this.equals((deletePeer_result)that);
8193 public boolean equals(deletePeer_result that) {
8198 boolean this_present_success = true;
8199 boolean that_present_success = true;
8200 if (this_present_success || that_present_success) {
8201 if (!(this_present_success && that_present_success)) {
8204 if (this.success != that.success) {
8213 public int hashCode() {
8214 List<Object> list = new ArrayList<Object>();
8216 boolean present_success = true;
8217 list.add(present_success);
8218 if (present_success)
8220 return list.hashCode();
8224 public int compareTo(deletePeer_result other) {
8225 if (!getClass().equals(other.getClass())) {
8226 return getClass().getName().compareTo(other.getClass().getName());
8229 int lastComparison = 0;
8231 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8232 if (lastComparison != 0) {
8233 return lastComparison;
8235 if (isSetSuccess()) {
8236 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8237 if (lastComparison != 0) {
8238 return lastComparison;
8245 public _Fields fieldForId(int fieldId) {
8246 return _Fields.findByThriftId(fieldId);
8250 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8251 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8255 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8256 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8260 public String toString() {
8261 StringBuilder sb = new StringBuilder("deletePeer_result(");
8262 boolean first = true;
8264 sb.append("success:");
8265 sb.append(this.success);
8268 return sb.toString();
8271 public void validate() throws org.apache.thrift.TException {
8272 // check for required fields
8273 // check for sub-struct validity
8276 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8278 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8279 } catch (org.apache.thrift.TException te) {
8280 throw new java.io.IOException(te);
8284 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8286 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8287 __isset_bitfield = 0;
8288 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8289 } catch (org.apache.thrift.TException te) {
8290 throw new java.io.IOException(te);
8294 private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
8296 public deletePeer_resultStandardScheme getScheme() {
8297 return new deletePeer_resultStandardScheme();
8301 private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
8304 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
8305 org.apache.thrift.protocol.TField schemeField;
8306 iprot.readStructBegin();
8309 schemeField = iprot.readFieldBegin();
8310 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8313 switch (schemeField.id) {
8315 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8316 struct.success = iprot.readI32();
8317 struct.setSuccessIsSet(true);
8319 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8323 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8325 iprot.readFieldEnd();
8327 iprot.readStructEnd();
8329 // check for required fields of primitive type, which can't be checked in the validate method
8334 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
8337 oprot.writeStructBegin(STRUCT_DESC);
8338 if (struct.isSetSuccess()) {
8339 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8340 oprot.writeI32(struct.success);
8341 oprot.writeFieldEnd();
8343 oprot.writeFieldStop();
8344 oprot.writeStructEnd();
8349 private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
8351 public deletePeer_resultTupleScheme getScheme() {
8352 return new deletePeer_resultTupleScheme();
8356 private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
8359 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8360 TTupleProtocol oprot = (TTupleProtocol) prot;
8361 BitSet optionals = new BitSet();
8362 if (struct.isSetSuccess()) {
8365 oprot.writeBitSet(optionals, 1);
8366 if (struct.isSetSuccess()) {
8367 oprot.writeI32(struct.success);
8372 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8373 TTupleProtocol iprot = (TTupleProtocol) prot;
8374 BitSet incoming = iprot.readBitSet(1);
8375 if (incoming.get(0)) {
8376 struct.success = iprot.readI32();
8377 struct.setSuccessIsSet(true);
8384 public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args> {
8385 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
8387 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);
8388 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);
8389 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);
8390 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);
8392 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8394 schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
8395 schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
8402 public layer_type l_type; // required
8403 public String rd; // required
8404 public List<String> irts; // required
8405 public List<String> erts; // required
8407 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8408 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8413 L_TYPE((short)1, "l_type"),
8415 IRTS((short)3, "irts"),
8416 ERTS((short)4, "erts");
8418 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8421 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8422 byName.put(field.getFieldName(), field);
8427 * Find the _Fields constant that matches fieldId, or null if its not found.
8429 public static _Fields findByThriftId(int fieldId) {
8445 * Find the _Fields constant that matches fieldId, throwing an exception
8446 * if it is not found.
8448 public static _Fields findByThriftIdOrThrow(int fieldId) {
8449 _Fields fields = findByThriftId(fieldId);
8450 if (fields == null) {
8451 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8457 * Find the _Fields constant that matches name, or null if its not found.
8459 public static _Fields findByName(String name) {
8460 return byName.get(name);
8463 private final short _thriftId;
8464 private final String _fieldName;
8466 _Fields(short thriftId, String fieldName) {
8467 _thriftId = thriftId;
8468 _fieldName = fieldName;
8472 public short getThriftFieldId() {
8477 public String getFieldName() {
8482 // isset id assignments
8483 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8485 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8486 tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
8487 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
8488 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8489 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8490 tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8491 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8492 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8493 tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8494 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8495 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8496 metaDataMap = Collections.unmodifiableMap(tmpMap);
8497 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
8500 public addVrf_args() {
8510 this.l_type = l_type;
8517 * Performs a deep copy on <i>other</i>.
8519 public addVrf_args(addVrf_args other) {
8520 if (other.isSetL_type()) {
8521 this.l_type = other.l_type;
8523 if (other.isSetRd()) {
8526 if (other.isSetIrts()) {
8527 List<String> __this__irts = new ArrayList<String>(other.irts);
8528 this.irts = __this__irts;
8530 if (other.isSetErts()) {
8531 List<String> __this__erts = new ArrayList<String>(other.erts);
8532 this.erts = __this__erts;
8537 public addVrf_args deepCopy() {
8538 return new addVrf_args(this);
8542 public void clear() {
8553 public layer_type getL_type() {
8561 public addVrf_args setL_type(layer_type l_type) {
8562 this.l_type = l_type;
8566 public void unsetL_type() {
8570 /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
8571 public boolean isSetL_type() {
8572 return this.l_type != null;
8575 public void setL_typeIsSet(boolean value) {
8581 public String getRd() {
8585 public addVrf_args setRd(String rd) {
8590 public void unsetRd() {
8594 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8595 public boolean isSetRd() {
8596 return this.rd != null;
8599 public void setRdIsSet(boolean value) {
8605 public int getIrtsSize() {
8606 return (this.irts == null) ? 0 : this.irts.size();
8609 public java.util.Iterator<String> getIrtsIterator() {
8610 return (this.irts == null) ? null : this.irts.iterator();
8613 public void addToIrts(String elem) {
8614 if (this.irts == null) {
8615 this.irts = new ArrayList<String>();
8617 this.irts.add(elem);
8620 public List<String> getIrts() {
8624 public addVrf_args setIrts(List<String> irts) {
8629 public void unsetIrts() {
8633 /** Returns true if field irts is set (has been assigned a value) and false otherwise */
8634 public boolean isSetIrts() {
8635 return this.irts != null;
8638 public void setIrtsIsSet(boolean value) {
8644 public int getErtsSize() {
8645 return (this.erts == null) ? 0 : this.erts.size();
8648 public java.util.Iterator<String> getErtsIterator() {
8649 return (this.erts == null) ? null : this.erts.iterator();
8652 public void addToErts(String elem) {
8653 if (this.erts == null) {
8654 this.erts = new ArrayList<String>();
8656 this.erts.add(elem);
8659 public List<String> getErts() {
8663 public addVrf_args setErts(List<String> erts) {
8668 public void unsetErts() {
8672 /** Returns true if field erts is set (has been assigned a value) and false otherwise */
8673 public boolean isSetErts() {
8674 return this.erts != null;
8677 public void setErtsIsSet(boolean value) {
8684 public void setFieldValue(_Fields field, Object value) {
8687 if (value == null) {
8690 setL_type((layer_type)value);
8695 if (value == null) {
8698 setRd((String)value);
8703 if (value == null) {
8706 setIrts((List<String>)value);
8711 if (value == null) {
8714 setErts((List<String>)value);
8722 public Object getFieldValue(_Fields field) {
8737 throw new IllegalStateException();
8740 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8742 public boolean isSet(_Fields field) {
8743 if (field == null) {
8744 throw new IllegalArgumentException();
8749 return isSetL_type();
8757 throw new IllegalStateException();
8761 public boolean equals(Object that) {
8765 if (that instanceof addVrf_args) {
8766 return this.equals((addVrf_args)that);
8771 public boolean equals(addVrf_args that) {
8776 boolean this_present_l_type = true && this.isSetL_type();
8777 boolean that_present_l_type = true && that.isSetL_type();
8778 if (this_present_l_type || that_present_l_type) {
8779 if (!(this_present_l_type && that_present_l_type)) {
8782 if (!this.l_type.equals(that.l_type)) {
8787 boolean this_present_rd = true && this.isSetRd();
8788 boolean that_present_rd = true && that.isSetRd();
8789 if (this_present_rd || that_present_rd) {
8790 if (!(this_present_rd && that_present_rd)) {
8793 if (!this.rd.equals(that.rd)) {
8798 boolean this_present_irts = true && this.isSetIrts();
8799 boolean that_present_irts = true && that.isSetIrts();
8800 if (this_present_irts || that_present_irts) {
8801 if (!(this_present_irts && that_present_irts)) {
8804 if (!this.irts.equals(that.irts)) {
8809 boolean this_present_erts = true && this.isSetErts();
8810 boolean that_present_erts = true && that.isSetErts();
8811 if (this_present_erts || that_present_erts) {
8812 if (!(this_present_erts && that_present_erts)) {
8815 if (!this.erts.equals(that.erts)) {
8824 public int hashCode() {
8825 List<Object> list = new ArrayList<Object>();
8826 boolean present_l_type = true && (isSetL_type());
8827 list.add(present_l_type);
8829 list.add(l_type.getValue());
8830 boolean present_rd = true && (isSetRd());
8831 list.add(present_rd);
8834 boolean present_irts = true && (isSetIrts());
8835 list.add(present_irts);
8838 boolean present_erts = true && (isSetErts());
8839 list.add(present_erts);
8842 return list.hashCode();
8846 public int compareTo(addVrf_args other) {
8847 if (!getClass().equals(other.getClass())) {
8848 return getClass().getName().compareTo(other.getClass().getName());
8851 int lastComparison = 0;
8853 lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
8854 if (lastComparison != 0) {
8855 return lastComparison;
8857 if (isSetL_type()) {
8858 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
8859 if (lastComparison != 0) {
8860 return lastComparison;
8863 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
8864 if (lastComparison != 0) {
8865 return lastComparison;
8868 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
8869 if (lastComparison != 0) {
8870 return lastComparison;
8873 lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
8874 if (lastComparison != 0) {
8875 return lastComparison;
8878 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
8879 if (lastComparison != 0) {
8880 return lastComparison;
8883 lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
8884 if (lastComparison != 0) {
8885 return lastComparison;
8888 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
8889 if (lastComparison != 0) {
8890 return lastComparison;
8897 public _Fields fieldForId(int fieldId) {
8898 return _Fields.findByThriftId(fieldId);
8902 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8903 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8907 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8908 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8912 public String toString() {
8913 StringBuilder sb = new StringBuilder("addVrf_args(");
8914 boolean first = true;
8916 sb.append("l_type:");
8917 if (this.l_type == null) {
8920 sb.append(this.l_type);
8927 if (this.rd == null) {
8937 if (this.irts == null) {
8940 sb.append(this.irts);
8947 if (this.erts == null) {
8950 sb.append(this.erts);
8954 return sb.toString();
8957 public void validate() throws org.apache.thrift.TException {
8958 // check for required fields
8959 // check for sub-struct validity
8962 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8964 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8965 } catch (org.apache.thrift.TException te) {
8966 throw new java.io.IOException(te);
8970 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8972 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8973 } catch (org.apache.thrift.TException te) {
8974 throw new java.io.IOException(te);
8978 private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
8980 public addVrf_argsStandardScheme getScheme() {
8981 return new addVrf_argsStandardScheme();
8985 private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
8988 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
8989 org.apache.thrift.protocol.TField schemeField;
8990 iprot.readStructBegin();
8993 schemeField = iprot.readFieldBegin();
8994 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8997 switch (schemeField.id) {
8999 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9000 struct.l_type = layer_type.findByValue(iprot.readI32());
9001 struct.setL_typeIsSet(true);
9003 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9007 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9008 struct.rd = iprot.readString();
9009 struct.setRdIsSet(true);
9011 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9015 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9017 org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
9018 struct.irts = new ArrayList<>(_list8.size);
9019 for (int _i9 = 0; _i9 < _list8.size; ++_i9)
9022 _elem10 = iprot.readString();
9023 struct.irts.add(_elem10);
9025 iprot.readListEnd();
9027 struct.setIrtsIsSet(true);
9029 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9033 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9035 org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
9036 struct.erts = new ArrayList<>(_list11.size);
9037 for (int _i12 = 0; _i12 < _list11.size; ++_i12)
9040 _elem13 = iprot.readString();
9041 struct.erts.add(_elem13);
9043 iprot.readListEnd();
9045 struct.setErtsIsSet(true);
9047 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9051 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9053 iprot.readFieldEnd();
9055 iprot.readStructEnd();
9057 // check for required fields of primitive type, which can't be checked in the validate method
9062 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
9065 oprot.writeStructBegin(STRUCT_DESC);
9066 if (struct.l_type != null) {
9067 oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
9068 oprot.writeI32(struct.l_type.getValue());
9069 oprot.writeFieldEnd();
9071 if (struct.rd != null) {
9072 oprot.writeFieldBegin(RD_FIELD_DESC);
9073 oprot.writeString(struct.rd);
9074 oprot.writeFieldEnd();
9076 if (struct.irts != null) {
9077 oprot.writeFieldBegin(IRTS_FIELD_DESC);
9079 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
9080 for (String _iter14 : struct.irts)
9082 oprot.writeString(_iter14);
9084 oprot.writeListEnd();
9086 oprot.writeFieldEnd();
9088 if (struct.erts != null) {
9089 oprot.writeFieldBegin(ERTS_FIELD_DESC);
9091 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
9092 for (String _iter15 : struct.erts)
9094 oprot.writeString(_iter15);
9096 oprot.writeListEnd();
9098 oprot.writeFieldEnd();
9100 oprot.writeFieldStop();
9101 oprot.writeStructEnd();
9106 private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
9108 public addVrf_argsTupleScheme getScheme() {
9109 return new addVrf_argsTupleScheme();
9113 private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
9116 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9117 TTupleProtocol oprot = (TTupleProtocol) prot;
9118 BitSet optionals = new BitSet();
9119 if (struct.isSetL_type()) {
9122 if (struct.isSetRd()) {
9125 if (struct.isSetIrts()) {
9128 if (struct.isSetErts()) {
9131 oprot.writeBitSet(optionals, 4);
9132 if (struct.isSetL_type()) {
9133 oprot.writeI32(struct.l_type.getValue());
9135 if (struct.isSetRd()) {
9136 oprot.writeString(struct.rd);
9138 if (struct.isSetIrts()) {
9140 oprot.writeI32(struct.irts.size());
9141 for (String _iter16 : struct.irts)
9143 oprot.writeString(_iter16);
9147 if (struct.isSetErts()) {
9149 oprot.writeI32(struct.erts.size());
9150 for (String _iter17 : struct.erts)
9152 oprot.writeString(_iter17);
9159 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9160 TTupleProtocol iprot = (TTupleProtocol) prot;
9161 BitSet incoming = iprot.readBitSet(4);
9162 if (incoming.get(0)) {
9163 struct.l_type = layer_type.findByValue(iprot.readI32());
9164 struct.setL_typeIsSet(true);
9166 if (incoming.get(1)) {
9167 struct.rd = iprot.readString();
9168 struct.setRdIsSet(true);
9170 if (incoming.get(2)) {
9172 org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9173 struct.irts = new ArrayList<>(_list18.size);
9174 for (int _i19 = 0; _i19 < _list18.size; ++_i19)
9177 _elem20 = iprot.readString();
9178 struct.irts.add(_elem20);
9181 struct.setIrtsIsSet(true);
9183 if (incoming.get(3)) {
9185 org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9186 struct.erts = new ArrayList<>(_list21.size);
9187 for (int _i22 = 0; _i22 < _list21.size; ++_i22)
9190 _elem23 = iprot.readString();
9191 struct.erts.add(_elem23);
9194 struct.setErtsIsSet(true);
9201 public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result> {
9202 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
9204 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);
9206 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9208 schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
9209 schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
9212 public int success; // required
9214 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9215 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9216 SUCCESS((short)0, "success");
9218 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9221 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9222 byName.put(field.getFieldName(), field);
9227 * Find the _Fields constant that matches fieldId, or null if its not found.
9229 public static _Fields findByThriftId(int fieldId) {
9239 * Find the _Fields constant that matches fieldId, throwing an exception
9240 * if it is not found.
9242 public static _Fields findByThriftIdOrThrow(int fieldId) {
9243 _Fields fields = findByThriftId(fieldId);
9244 if (fields == null) {
9245 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9251 * Find the _Fields constant that matches name, or null if its not found.
9253 public static _Fields findByName(String name) {
9254 return byName.get(name);
9257 private final short _thriftId;
9258 private final String _fieldName;
9260 _Fields(short thriftId, String fieldName) {
9261 _thriftId = thriftId;
9262 _fieldName = fieldName;
9266 public short getThriftFieldId() {
9271 public String getFieldName() {
9276 // isset id assignments
9277 private static final int __SUCCESS_ISSET_ID = 0;
9278 private byte __isset_bitfield = 0;
9279 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9281 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9282 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9283 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9284 metaDataMap = Collections.unmodifiableMap(tmpMap);
9285 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
9288 public addVrf_result() {
9291 public addVrf_result(
9295 this.success = success;
9296 setSuccessIsSet(true);
9300 * Performs a deep copy on <i>other</i>.
9302 public addVrf_result(addVrf_result other) {
9303 __isset_bitfield = other.__isset_bitfield;
9304 this.success = other.success;
9308 public addVrf_result deepCopy() {
9309 return new addVrf_result(this);
9313 public void clear() {
9314 setSuccessIsSet(false);
9318 public int getSuccess() {
9319 return this.success;
9322 public addVrf_result setSuccess(int success) {
9323 this.success = success;
9324 setSuccessIsSet(true);
9328 public void unsetSuccess() {
9329 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9332 /** Returns true if field success is set (has been assigned a value) and false otherwise */
9333 public boolean isSetSuccess() {
9334 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9337 public void setSuccessIsSet(boolean value) {
9338 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9342 public void setFieldValue(_Fields field, Object value) {
9345 if (value == null) {
9348 setSuccess((Integer)value);
9356 public Object getFieldValue(_Fields field) {
9359 return Integer.valueOf(getSuccess());
9362 throw new IllegalStateException();
9365 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9367 public boolean isSet(_Fields field) {
9368 if (field == null) {
9369 throw new IllegalArgumentException();
9374 return isSetSuccess();
9376 throw new IllegalStateException();
9380 public boolean equals(Object that) {
9384 if (that instanceof addVrf_result) {
9385 return this.equals((addVrf_result)that);
9390 public boolean equals(addVrf_result that) {
9395 boolean this_present_success = true;
9396 boolean that_present_success = true;
9397 if (this_present_success || that_present_success) {
9398 if (!(this_present_success && that_present_success)) {
9401 if (this.success != that.success) {
9410 public int hashCode() {
9411 List<Object> list = new ArrayList<Object>();
9413 boolean present_success = true;
9414 list.add(present_success);
9415 if (present_success)
9417 return list.hashCode();
9421 public int compareTo(addVrf_result other) {
9422 if (!getClass().equals(other.getClass())) {
9423 return getClass().getName().compareTo(other.getClass().getName());
9426 int lastComparison = 0;
9428 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9429 if (lastComparison != 0) {
9430 return lastComparison;
9432 if (isSetSuccess()) {
9433 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9434 if (lastComparison != 0) {
9435 return lastComparison;
9442 public _Fields fieldForId(int fieldId) {
9443 return _Fields.findByThriftId(fieldId);
9447 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9448 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9452 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9453 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9457 public String toString() {
9458 StringBuilder sb = new StringBuilder("addVrf_result(");
9459 boolean first = true;
9461 sb.append("success:");
9462 sb.append(this.success);
9465 return sb.toString();
9468 public void validate() throws org.apache.thrift.TException {
9469 // check for required fields
9470 // check for sub-struct validity
9473 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9475 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9476 } catch (org.apache.thrift.TException te) {
9477 throw new java.io.IOException(te);
9481 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9483 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9484 __isset_bitfield = 0;
9485 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9486 } catch (org.apache.thrift.TException te) {
9487 throw new java.io.IOException(te);
9491 private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
9493 public addVrf_resultStandardScheme getScheme() {
9494 return new addVrf_resultStandardScheme();
9498 private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
9501 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
9502 org.apache.thrift.protocol.TField schemeField;
9503 iprot.readStructBegin();
9506 schemeField = iprot.readFieldBegin();
9507 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9510 switch (schemeField.id) {
9512 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9513 struct.success = iprot.readI32();
9514 struct.setSuccessIsSet(true);
9516 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9520 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9522 iprot.readFieldEnd();
9524 iprot.readStructEnd();
9526 // check for required fields of primitive type, which can't be checked in the validate method
9531 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
9534 oprot.writeStructBegin(STRUCT_DESC);
9535 if (struct.isSetSuccess()) {
9536 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9537 oprot.writeI32(struct.success);
9538 oprot.writeFieldEnd();
9540 oprot.writeFieldStop();
9541 oprot.writeStructEnd();
9546 private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
9548 public addVrf_resultTupleScheme getScheme() {
9549 return new addVrf_resultTupleScheme();
9553 private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
9556 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9557 TTupleProtocol oprot = (TTupleProtocol) prot;
9558 BitSet optionals = new BitSet();
9559 if (struct.isSetSuccess()) {
9562 oprot.writeBitSet(optionals, 1);
9563 if (struct.isSetSuccess()) {
9564 oprot.writeI32(struct.success);
9569 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9570 TTupleProtocol iprot = (TTupleProtocol) prot;
9571 BitSet incoming = iprot.readBitSet(1);
9572 if (incoming.get(0)) {
9573 struct.success = iprot.readI32();
9574 struct.setSuccessIsSet(true);
9581 public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args> {
9582 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
9584 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);
9586 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9588 schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
9589 schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
9592 public String rd; // required
9594 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9595 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9598 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9601 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9602 byName.put(field.getFieldName(), field);
9607 * Find the _Fields constant that matches fieldId, or null if its not found.
9609 public static _Fields findByThriftId(int fieldId) {
9619 * Find the _Fields constant that matches fieldId, throwing an exception
9620 * if it is not found.
9622 public static _Fields findByThriftIdOrThrow(int fieldId) {
9623 _Fields fields = findByThriftId(fieldId);
9624 if (fields == null) {
9625 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9631 * Find the _Fields constant that matches name, or null if its not found.
9633 public static _Fields findByName(String name) {
9634 return byName.get(name);
9637 private final short _thriftId;
9638 private final String _fieldName;
9640 _Fields(short thriftId, String fieldName) {
9641 _thriftId = thriftId;
9642 _fieldName = fieldName;
9646 public short getThriftFieldId() {
9651 public String getFieldName() {
9656 // isset id assignments
9657 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9659 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9660 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
9661 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9662 metaDataMap = Collections.unmodifiableMap(tmpMap);
9663 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
9666 public delVrf_args() {
9677 * Performs a deep copy on <i>other</i>.
9679 public delVrf_args(delVrf_args other) {
9680 if (other.isSetRd()) {
9686 public delVrf_args deepCopy() {
9687 return new delVrf_args(this);
9691 public void clear() {
9695 public String getRd() {
9699 public delVrf_args setRd(String rd) {
9704 public void unsetRd() {
9708 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9709 public boolean isSetRd() {
9710 return this.rd != null;
9713 public void setRdIsSet(boolean value) {
9720 public void setFieldValue(_Fields field, Object value) {
9723 if (value == null) {
9726 setRd((String)value);
9734 public Object getFieldValue(_Fields field) {
9740 throw new IllegalStateException();
9743 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9745 public boolean isSet(_Fields field) {
9746 if (field == null) {
9747 throw new IllegalArgumentException();
9754 throw new IllegalStateException();
9758 public boolean equals(Object that) {
9762 if (that instanceof delVrf_args) {
9763 return this.equals((delVrf_args)that);
9768 public boolean equals(delVrf_args that) {
9773 boolean this_present_rd = true && this.isSetRd();
9774 boolean that_present_rd = true && that.isSetRd();
9775 if (this_present_rd || that_present_rd) {
9776 if (!(this_present_rd && that_present_rd)) {
9779 if (!this.rd.equals(that.rd)) {
9788 public int hashCode() {
9789 List<Object> list = new ArrayList<Object>();
9790 boolean present_rd = true && (isSetRd());
9791 list.add(present_rd);
9794 return list.hashCode();
9798 public int compareTo(delVrf_args other) {
9799 if (!getClass().equals(other.getClass())) {
9800 return getClass().getName().compareTo(other.getClass().getName());
9803 int lastComparison = 0;
9805 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9806 if (lastComparison != 0) {
9807 return lastComparison;
9810 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9811 if (lastComparison != 0) {
9812 return lastComparison;
9819 public _Fields fieldForId(int fieldId) {
9820 return _Fields.findByThriftId(fieldId);
9824 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9825 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9829 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9830 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9834 public String toString() {
9835 StringBuilder sb = new StringBuilder("delVrf_args(");
9836 boolean first = true;
9839 if (this.rd == null) {
9846 return sb.toString();
9849 public void validate() throws org.apache.thrift.TException {
9850 // check for required fields
9851 // check for sub-struct validity
9854 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9856 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9857 } catch (org.apache.thrift.TException te) {
9858 throw new java.io.IOException(te);
9862 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9864 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9865 } catch (org.apache.thrift.TException te) {
9866 throw new java.io.IOException(te);
9870 private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
9872 public delVrf_argsStandardScheme getScheme() {
9873 return new delVrf_argsStandardScheme();
9877 private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
9880 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
9881 org.apache.thrift.protocol.TField schemeField;
9882 iprot.readStructBegin();
9885 schemeField = iprot.readFieldBegin();
9886 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9889 switch (schemeField.id) {
9891 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9892 struct.rd = iprot.readString();
9893 struct.setRdIsSet(true);
9895 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9899 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9901 iprot.readFieldEnd();
9903 iprot.readStructEnd();
9905 // check for required fields of primitive type, which can't be checked in the validate method
9910 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
9913 oprot.writeStructBegin(STRUCT_DESC);
9914 if (struct.rd != null) {
9915 oprot.writeFieldBegin(RD_FIELD_DESC);
9916 oprot.writeString(struct.rd);
9917 oprot.writeFieldEnd();
9919 oprot.writeFieldStop();
9920 oprot.writeStructEnd();
9925 private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
9927 public delVrf_argsTupleScheme getScheme() {
9928 return new delVrf_argsTupleScheme();
9932 private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
9935 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
9936 TTupleProtocol oprot = (TTupleProtocol) prot;
9937 BitSet optionals = new BitSet();
9938 if (struct.isSetRd()) {
9941 oprot.writeBitSet(optionals, 1);
9942 if (struct.isSetRd()) {
9943 oprot.writeString(struct.rd);
9948 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
9949 TTupleProtocol iprot = (TTupleProtocol) prot;
9950 BitSet incoming = iprot.readBitSet(1);
9951 if (incoming.get(0)) {
9952 struct.rd = iprot.readString();
9953 struct.setRdIsSet(true);
9960 public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result> {
9961 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
9963 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);
9965 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9967 schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
9968 schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
9971 public int success; // required
9973 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9974 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9975 SUCCESS((short)0, "success");
9977 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9980 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9981 byName.put(field.getFieldName(), field);
9986 * Find the _Fields constant that matches fieldId, or null if its not found.
9988 public static _Fields findByThriftId(int fieldId) {
9998 * Find the _Fields constant that matches fieldId, throwing an exception
9999 * if it is not found.
10001 public static _Fields findByThriftIdOrThrow(int fieldId) {
10002 _Fields fields = findByThriftId(fieldId);
10003 if (fields == null) {
10004 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10010 * Find the _Fields constant that matches name, or null if its not found.
10012 public static _Fields findByName(String name) {
10013 return byName.get(name);
10016 private final short _thriftId;
10017 private final String _fieldName;
10019 _Fields(short thriftId, String fieldName) {
10020 _thriftId = thriftId;
10021 _fieldName = fieldName;
10025 public short getThriftFieldId() {
10030 public String getFieldName() {
10035 // isset id assignments
10036 private static final int __SUCCESS_ISSET_ID = 0;
10037 private byte __isset_bitfield = 0;
10038 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10040 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10041 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10042 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10043 metaDataMap = Collections.unmodifiableMap(tmpMap);
10044 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
10047 public delVrf_result() {
10050 public delVrf_result(
10054 this.success = success;
10055 setSuccessIsSet(true);
10059 * Performs a deep copy on <i>other</i>.
10061 public delVrf_result(delVrf_result other) {
10062 __isset_bitfield = other.__isset_bitfield;
10063 this.success = other.success;
10067 public delVrf_result deepCopy() {
10068 return new delVrf_result(this);
10072 public void clear() {
10073 setSuccessIsSet(false);
10077 public int getSuccess() {
10078 return this.success;
10081 public delVrf_result setSuccess(int success) {
10082 this.success = success;
10083 setSuccessIsSet(true);
10087 public void unsetSuccess() {
10088 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10091 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10092 public boolean isSetSuccess() {
10093 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10096 public void setSuccessIsSet(boolean value) {
10097 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10101 public void setFieldValue(_Fields field, Object value) {
10104 if (value == null) {
10107 setSuccess((Integer)value);
10115 public Object getFieldValue(_Fields field) {
10118 return Integer.valueOf(getSuccess());
10121 throw new IllegalStateException();
10124 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10126 public boolean isSet(_Fields field) {
10127 if (field == null) {
10128 throw new IllegalArgumentException();
10133 return isSetSuccess();
10135 throw new IllegalStateException();
10139 public boolean equals(Object that) {
10140 if (that == null) {
10143 if (that instanceof delVrf_result) {
10144 return this.equals((delVrf_result)that);
10149 public boolean equals(delVrf_result that) {
10150 if (that == null) {
10154 boolean this_present_success = true;
10155 boolean that_present_success = true;
10156 if (this_present_success || that_present_success) {
10157 if (!(this_present_success && that_present_success)) {
10160 if (this.success != that.success) {
10169 public int hashCode() {
10170 List<Object> list = new ArrayList<Object>();
10172 boolean present_success = true;
10173 list.add(present_success);
10174 if (present_success)
10176 return list.hashCode();
10180 public int compareTo(delVrf_result other) {
10181 if (!getClass().equals(other.getClass())) {
10182 return getClass().getName().compareTo(other.getClass().getName());
10185 int lastComparison = 0;
10187 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10188 if (lastComparison != 0) {
10189 return lastComparison;
10191 if (isSetSuccess()) {
10192 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10193 if (lastComparison != 0) {
10194 return lastComparison;
10201 public _Fields fieldForId(int fieldId) {
10202 return _Fields.findByThriftId(fieldId);
10206 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10207 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10211 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10212 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10216 public String toString() {
10217 StringBuilder sb = new StringBuilder("delVrf_result(");
10218 boolean first = true;
10220 sb.append("success:");
10221 sb.append(this.success);
10224 return sb.toString();
10227 public void validate() throws org.apache.thrift.TException {
10228 // check for required fields
10229 // check for sub-struct validity
10232 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10234 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10235 } catch (org.apache.thrift.TException te) {
10236 throw new java.io.IOException(te);
10240 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10242 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10243 __isset_bitfield = 0;
10244 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10245 } catch (org.apache.thrift.TException te) {
10246 throw new java.io.IOException(te);
10250 private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
10252 public delVrf_resultStandardScheme getScheme() {
10253 return new delVrf_resultStandardScheme();
10257 private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
10260 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
10261 org.apache.thrift.protocol.TField schemeField;
10262 iprot.readStructBegin();
10265 schemeField = iprot.readFieldBegin();
10266 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10269 switch (schemeField.id) {
10271 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10272 struct.success = iprot.readI32();
10273 struct.setSuccessIsSet(true);
10275 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10279 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10281 iprot.readFieldEnd();
10283 iprot.readStructEnd();
10285 // check for required fields of primitive type, which can't be checked in the validate method
10290 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
10293 oprot.writeStructBegin(STRUCT_DESC);
10294 if (struct.isSetSuccess()) {
10295 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10296 oprot.writeI32(struct.success);
10297 oprot.writeFieldEnd();
10299 oprot.writeFieldStop();
10300 oprot.writeStructEnd();
10305 private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
10307 public delVrf_resultTupleScheme getScheme() {
10308 return new delVrf_resultTupleScheme();
10312 private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
10315 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10316 TTupleProtocol oprot = (TTupleProtocol) prot;
10317 BitSet optionals = new BitSet();
10318 if (struct.isSetSuccess()) {
10321 oprot.writeBitSet(optionals, 1);
10322 if (struct.isSetSuccess()) {
10323 oprot.writeI32(struct.success);
10328 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10329 TTupleProtocol iprot = (TTupleProtocol) prot;
10330 BitSet incoming = iprot.readBitSet(1);
10331 if (incoming.get(0)) {
10332 struct.success = iprot.readI32();
10333 struct.setSuccessIsSet(true);
10340 public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args> {
10341 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
10343 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);
10344 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);
10345 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);
10346 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);
10347 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);
10348 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);
10349 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);
10350 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);
10351 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);
10352 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);
10353 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);
10354 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)12);
10356 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10358 schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
10359 schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
10364 * @see protocol_type
10366 public protocol_type p_type; // required
10367 public String prefix; // required
10368 public String nexthop; // required
10369 public String rd; // required
10370 public int ethtag; // required
10371 public String esi; // required
10372 public String macaddress; // required
10373 public int l3label; // required
10374 public int l2label; // required
10379 public encap_type enc_type; // required
10380 public String routermac; // required
10385 public af_afi afi; // required
10387 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10388 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10391 * @see protocol_type
10393 P_TYPE((short)1, "p_type"),
10394 PREFIX((short)2, "prefix"),
10395 NEXTHOP((short)3, "nexthop"),
10396 RD((short)4, "rd"),
10397 ETHTAG((short)5, "ethtag"),
10398 ESI((short)6, "esi"),
10399 MACADDRESS((short)7, "macaddress"),
10400 L3LABEL((short)8, "l3label"),
10401 L2LABEL((short)9, "l2label"),
10406 ENC_TYPE((short)10, "enc_type"),
10407 ROUTERMAC((short)11, "routermac"),
10412 AFI((short)12, "afi");
10414 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10417 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10418 byName.put(field.getFieldName(), field);
10423 * Find the _Fields constant that matches fieldId, or null if its not found.
10425 public static _Fields findByThriftId(int fieldId) {
10439 case 7: // MACADDRESS
10445 case 10: // ENC_TYPE
10447 case 11: // ROUTERMAC
10457 * Find the _Fields constant that matches fieldId, throwing an exception
10458 * if it is not found.
10460 public static _Fields findByThriftIdOrThrow(int fieldId) {
10461 _Fields fields = findByThriftId(fieldId);
10462 if (fields == null) {
10463 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10469 * Find the _Fields constant that matches name, or null if its not found.
10471 public static _Fields findByName(String name) {
10472 return byName.get(name);
10475 private final short _thriftId;
10476 private final String _fieldName;
10478 _Fields(short thriftId, String fieldName) {
10479 _thriftId = thriftId;
10480 _fieldName = fieldName;
10484 public short getThriftFieldId() {
10489 public String getFieldName() {
10494 // isset id assignments
10495 private static final int __ETHTAG_ISSET_ID = 0;
10496 private static final int __L3LABEL_ISSET_ID = 1;
10497 private static final int __L2LABEL_ISSET_ID = 2;
10498 private byte __isset_bitfield = 0;
10499 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10501 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10502 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10503 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
10504 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
10505 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10506 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
10507 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10508 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
10509 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10510 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
10511 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10512 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10513 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10514 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
10515 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10516 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10517 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10518 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10519 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10520 tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10521 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
10522 tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
10523 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10524 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10525 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
10526 metaDataMap = Collections.unmodifiableMap(tmpMap);
10527 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
10530 public pushRoute_args() {
10533 public pushRoute_args(
10534 protocol_type p_type,
10543 encap_type enc_type,
10548 this.p_type = p_type;
10549 this.prefix = prefix;
10550 this.nexthop = nexthop;
10552 this.ethtag = ethtag;
10553 setEthtagIsSet(true);
10555 this.macaddress = macaddress;
10556 this.l3label = l3label;
10557 setL3labelIsSet(true);
10558 this.l2label = l2label;
10559 setL2labelIsSet(true);
10560 this.enc_type = enc_type;
10561 this.routermac = routermac;
10566 * Performs a deep copy on <i>other</i>.
10568 public pushRoute_args(pushRoute_args other) {
10569 __isset_bitfield = other.__isset_bitfield;
10570 if (other.isSetP_type()) {
10571 this.p_type = other.p_type;
10573 if (other.isSetPrefix()) {
10574 this.prefix = other.prefix;
10576 if (other.isSetNexthop()) {
10577 this.nexthop = other.nexthop;
10579 if (other.isSetRd()) {
10580 this.rd = other.rd;
10582 this.ethtag = other.ethtag;
10583 if (other.isSetEsi()) {
10584 this.esi = other.esi;
10586 if (other.isSetMacaddress()) {
10587 this.macaddress = other.macaddress;
10589 this.l3label = other.l3label;
10590 this.l2label = other.l2label;
10591 if (other.isSetEnc_type()) {
10592 this.enc_type = other.enc_type;
10594 if (other.isSetRoutermac()) {
10595 this.routermac = other.routermac;
10597 if (other.isSetAfi()) {
10598 this.afi = other.afi;
10603 public pushRoute_args deepCopy() {
10604 return new pushRoute_args(this);
10608 public void clear() {
10609 this.p_type = null;
10610 this.prefix = null;
10611 this.nexthop = null;
10613 setEthtagIsSet(false);
10616 this.macaddress = null;
10617 setL3labelIsSet(false);
10619 setL2labelIsSet(false);
10621 this.enc_type = null;
10622 this.routermac = null;
10628 * @see protocol_type
10630 public protocol_type getP_type() {
10631 return this.p_type;
10636 * @see protocol_type
10638 public pushRoute_args setP_type(protocol_type p_type) {
10639 this.p_type = p_type;
10643 public void unsetP_type() {
10644 this.p_type = null;
10647 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
10648 public boolean isSetP_type() {
10649 return this.p_type != null;
10652 public void setP_typeIsSet(boolean value) {
10654 this.p_type = null;
10658 public String getPrefix() {
10659 return this.prefix;
10662 public pushRoute_args setPrefix(String prefix) {
10663 this.prefix = prefix;
10667 public void unsetPrefix() {
10668 this.prefix = null;
10671 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
10672 public boolean isSetPrefix() {
10673 return this.prefix != null;
10676 public void setPrefixIsSet(boolean value) {
10678 this.prefix = null;
10682 public String getNexthop() {
10683 return this.nexthop;
10686 public pushRoute_args setNexthop(String nexthop) {
10687 this.nexthop = nexthop;
10691 public void unsetNexthop() {
10692 this.nexthop = null;
10695 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
10696 public boolean isSetNexthop() {
10697 return this.nexthop != null;
10700 public void setNexthopIsSet(boolean value) {
10702 this.nexthop = null;
10706 public String getRd() {
10710 public pushRoute_args setRd(String rd) {
10715 public void unsetRd() {
10719 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
10720 public boolean isSetRd() {
10721 return this.rd != null;
10724 public void setRdIsSet(boolean value) {
10730 public int getEthtag() {
10731 return this.ethtag;
10734 public pushRoute_args setEthtag(int ethtag) {
10735 this.ethtag = ethtag;
10736 setEthtagIsSet(true);
10740 public void unsetEthtag() {
10741 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
10744 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
10745 public boolean isSetEthtag() {
10746 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
10749 public void setEthtagIsSet(boolean value) {
10750 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
10753 public String getEsi() {
10757 public pushRoute_args setEsi(String esi) {
10762 public void unsetEsi() {
10766 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
10767 public boolean isSetEsi() {
10768 return this.esi != null;
10771 public void setEsiIsSet(boolean value) {
10777 public String getMacaddress() {
10778 return this.macaddress;
10781 public pushRoute_args setMacaddress(String macaddress) {
10782 this.macaddress = macaddress;
10786 public void unsetMacaddress() {
10787 this.macaddress = null;
10790 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
10791 public boolean isSetMacaddress() {
10792 return this.macaddress != null;
10795 public void setMacaddressIsSet(boolean value) {
10797 this.macaddress = null;
10801 public int getL3label() {
10802 return this.l3label;
10805 public pushRoute_args setL3label(int l3label) {
10806 this.l3label = l3label;
10807 setL3labelIsSet(true);
10811 public void unsetL3label() {
10812 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
10815 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
10816 public boolean isSetL3label() {
10817 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
10820 public void setL3labelIsSet(boolean value) {
10821 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
10824 public int getL2label() {
10825 return this.l2label;
10828 public pushRoute_args setL2label(int l2label) {
10829 this.l2label = l2label;
10830 setL2labelIsSet(true);
10834 public void unsetL2label() {
10835 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
10838 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
10839 public boolean isSetL2label() {
10840 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
10843 public void setL2labelIsSet(boolean value) {
10844 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
10851 public encap_type getEnc_type() {
10852 return this.enc_type;
10859 public pushRoute_args setEnc_type(encap_type enc_type) {
10860 this.enc_type = enc_type;
10864 public void unsetEnc_type() {
10865 this.enc_type = null;
10868 /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
10869 public boolean isSetEnc_type() {
10870 return this.enc_type != null;
10873 public void setEnc_typeIsSet(boolean value) {
10875 this.enc_type = null;
10879 public String getRoutermac() {
10880 return this.routermac;
10883 public pushRoute_args setRoutermac(String routermac) {
10884 this.routermac = routermac;
10888 public void unsetRoutermac() {
10889 this.routermac = null;
10892 /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
10893 public boolean isSetRoutermac() {
10894 return this.routermac != null;
10897 public void setRoutermacIsSet(boolean value) {
10899 this.routermac = null;
10907 public af_afi getAfi() {
10915 public pushRoute_args setAfi(af_afi afi) {
10920 public void unsetAfi() {
10924 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
10925 public boolean isSetAfi() {
10926 return this.afi != null;
10929 public void setAfiIsSet(boolean value) {
10936 public void setFieldValue(_Fields field, Object value) {
10939 if (value == null) {
10942 setP_type((protocol_type)value);
10947 if (value == null) {
10950 setPrefix((String)value);
10955 if (value == null) {
10958 setNexthop((String)value);
10963 if (value == null) {
10966 setRd((String)value);
10971 if (value == null) {
10974 setEthtag((Integer)value);
10979 if (value == null) {
10982 setEsi((String)value);
10987 if (value == null) {
10990 setMacaddress((String)value);
10995 if (value == null) {
10998 setL3label((Integer)value);
11003 if (value == null) {
11006 setL2label((Integer)value);
11011 if (value == null) {
11014 setEnc_type((encap_type)value);
11019 if (value == null) {
11022 setRoutermac((String)value);
11027 if (value == null) {
11030 setAfi((af_afi)value);
11038 public Object getFieldValue(_Fields field) {
11041 return getP_type();
11044 return getPrefix();
11047 return getNexthop();
11053 return Integer.valueOf(getEthtag());
11059 return getMacaddress();
11062 return Integer.valueOf(getL3label());
11065 return Integer.valueOf(getL2label());
11068 return getEnc_type();
11071 return getRoutermac();
11077 throw new IllegalStateException();
11080 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11082 public boolean isSet(_Fields field) {
11083 if (field == null) {
11084 throw new IllegalArgumentException();
11089 return isSetP_type();
11091 return isSetPrefix();
11093 return isSetNexthop();
11097 return isSetEthtag();
11101 return isSetMacaddress();
11103 return isSetL3label();
11105 return isSetL2label();
11107 return isSetEnc_type();
11109 return isSetRoutermac();
11113 throw new IllegalStateException();
11117 public boolean equals(Object that) {
11118 if (that == null) {
11121 if (that instanceof pushRoute_args) {
11122 return this.equals((pushRoute_args)that);
11127 public boolean equals(pushRoute_args that) {
11128 if (that == null) {
11132 boolean this_present_p_type = true && this.isSetP_type();
11133 boolean that_present_p_type = true && that.isSetP_type();
11134 if (this_present_p_type || that_present_p_type) {
11135 if (!(this_present_p_type && that_present_p_type)) {
11138 if (!this.p_type.equals(that.p_type)) {
11143 boolean this_present_prefix = true && this.isSetPrefix();
11144 boolean that_present_prefix = true && that.isSetPrefix();
11145 if (this_present_prefix || that_present_prefix) {
11146 if (!(this_present_prefix && that_present_prefix)) {
11149 if (!this.prefix.equals(that.prefix)) {
11154 boolean this_present_nexthop = true && this.isSetNexthop();
11155 boolean that_present_nexthop = true && that.isSetNexthop();
11156 if (this_present_nexthop || that_present_nexthop) {
11157 if (!(this_present_nexthop && that_present_nexthop)) {
11160 if (!this.nexthop.equals(that.nexthop)) {
11165 boolean this_present_rd = true && this.isSetRd();
11166 boolean that_present_rd = true && that.isSetRd();
11167 if (this_present_rd || that_present_rd) {
11168 if (!(this_present_rd && that_present_rd)) {
11171 if (!this.rd.equals(that.rd)) {
11176 boolean this_present_ethtag = true;
11177 boolean that_present_ethtag = true;
11178 if (this_present_ethtag || that_present_ethtag) {
11179 if (!(this_present_ethtag && that_present_ethtag)) {
11182 if (this.ethtag != that.ethtag) {
11187 boolean this_present_esi = true && this.isSetEsi();
11188 boolean that_present_esi = true && that.isSetEsi();
11189 if (this_present_esi || that_present_esi) {
11190 if (!(this_present_esi && that_present_esi)) {
11193 if (!this.esi.equals(that.esi)) {
11198 boolean this_present_macaddress = true && this.isSetMacaddress();
11199 boolean that_present_macaddress = true && that.isSetMacaddress();
11200 if (this_present_macaddress || that_present_macaddress) {
11201 if (!(this_present_macaddress && that_present_macaddress)) {
11204 if (!this.macaddress.equals(that.macaddress)) {
11209 boolean this_present_l3label = true;
11210 boolean that_present_l3label = true;
11211 if (this_present_l3label || that_present_l3label) {
11212 if (!(this_present_l3label && that_present_l3label)) {
11215 if (this.l3label != that.l3label) {
11220 boolean this_present_l2label = true;
11221 boolean that_present_l2label = true;
11222 if (this_present_l2label || that_present_l2label) {
11223 if (!(this_present_l2label && that_present_l2label)) {
11226 if (this.l2label != that.l2label) {
11231 boolean this_present_enc_type = true && this.isSetEnc_type();
11232 boolean that_present_enc_type = true && that.isSetEnc_type();
11233 if (this_present_enc_type || that_present_enc_type) {
11234 if (!(this_present_enc_type && that_present_enc_type)) {
11237 if (!this.enc_type.equals(that.enc_type)) {
11242 boolean this_present_routermac = true && this.isSetRoutermac();
11243 boolean that_present_routermac = true && that.isSetRoutermac();
11244 if (this_present_routermac || that_present_routermac) {
11245 if (!(this_present_routermac && that_present_routermac)) {
11248 if (!this.routermac.equals(that.routermac)) {
11253 boolean this_present_afi = true && this.isSetAfi();
11254 boolean that_present_afi = true && that.isSetAfi();
11255 if (this_present_afi || that_present_afi) {
11256 if (!(this_present_afi && that_present_afi)) {
11259 if (!this.afi.equals(that.afi)) {
11268 public int hashCode() {
11269 List<Object> list = new ArrayList<Object>();
11270 boolean present_p_type = true && (isSetP_type());
11271 list.add(present_p_type);
11272 if (present_p_type)
11273 list.add(p_type.getValue());
11274 boolean present_prefix = true && (isSetPrefix());
11275 list.add(present_prefix);
11276 if (present_prefix)
11278 boolean present_nexthop = true && (isSetNexthop());
11279 list.add(present_nexthop);
11280 if (present_nexthop)
11282 boolean present_rd = true && (isSetRd());
11283 list.add(present_rd);
11286 boolean present_ethtag = true;
11287 list.add(present_ethtag);
11288 if (present_ethtag)
11290 boolean present_esi = true && (isSetEsi());
11291 list.add(present_esi);
11294 boolean present_macaddress = true && (isSetMacaddress());
11295 list.add(present_macaddress);
11296 if (present_macaddress)
11297 list.add(macaddress);
11298 boolean present_l3label = true;
11299 list.add(present_l3label);
11300 if (present_l3label)
11302 boolean present_l2label = true;
11303 list.add(present_l2label);
11304 if (present_l2label)
11306 boolean present_enc_type = true && (isSetEnc_type());
11307 list.add(present_enc_type);
11308 if (present_enc_type)
11309 list.add(enc_type.getValue());
11310 boolean present_routermac = true && (isSetRoutermac());
11311 list.add(present_routermac);
11312 if (present_routermac)
11313 list.add(routermac);
11314 boolean present_afi = true && (isSetAfi());
11315 list.add(present_afi);
11317 list.add(afi.getValue());
11318 return list.hashCode();
11322 public int compareTo(pushRoute_args other) {
11323 if (!getClass().equals(other.getClass())) {
11324 return getClass().getName().compareTo(other.getClass().getName());
11327 int lastComparison = 0;
11329 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11330 if (lastComparison != 0) {
11331 return lastComparison;
11333 if (isSetP_type()) {
11334 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11335 if (lastComparison != 0) {
11336 return lastComparison;
11339 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11340 if (lastComparison != 0) {
11341 return lastComparison;
11343 if (isSetPrefix()) {
11344 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11345 if (lastComparison != 0) {
11346 return lastComparison;
11349 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
11350 if (lastComparison != 0) {
11351 return lastComparison;
11353 if (isSetNexthop()) {
11354 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
11355 if (lastComparison != 0) {
11356 return lastComparison;
11359 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11360 if (lastComparison != 0) {
11361 return lastComparison;
11364 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11365 if (lastComparison != 0) {
11366 return lastComparison;
11369 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11370 if (lastComparison != 0) {
11371 return lastComparison;
11373 if (isSetEthtag()) {
11374 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11375 if (lastComparison != 0) {
11376 return lastComparison;
11379 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11380 if (lastComparison != 0) {
11381 return lastComparison;
11384 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11385 if (lastComparison != 0) {
11386 return lastComparison;
11389 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11390 if (lastComparison != 0) {
11391 return lastComparison;
11393 if (isSetMacaddress()) {
11394 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11395 if (lastComparison != 0) {
11396 return lastComparison;
11399 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
11400 if (lastComparison != 0) {
11401 return lastComparison;
11403 if (isSetL3label()) {
11404 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
11405 if (lastComparison != 0) {
11406 return lastComparison;
11409 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
11410 if (lastComparison != 0) {
11411 return lastComparison;
11413 if (isSetL2label()) {
11414 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
11415 if (lastComparison != 0) {
11416 return lastComparison;
11419 lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
11420 if (lastComparison != 0) {
11421 return lastComparison;
11423 if (isSetEnc_type()) {
11424 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
11425 if (lastComparison != 0) {
11426 return lastComparison;
11429 lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
11430 if (lastComparison != 0) {
11431 return lastComparison;
11433 if (isSetRoutermac()) {
11434 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
11435 if (lastComparison != 0) {
11436 return lastComparison;
11439 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
11440 if (lastComparison != 0) {
11441 return lastComparison;
11444 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
11445 if (lastComparison != 0) {
11446 return lastComparison;
11453 public _Fields fieldForId(int fieldId) {
11454 return _Fields.findByThriftId(fieldId);
11458 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11459 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11463 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11464 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11468 public String toString() {
11469 StringBuilder sb = new StringBuilder("pushRoute_args(");
11470 boolean first = true;
11472 sb.append("p_type:");
11473 if (this.p_type == null) {
11476 sb.append(this.p_type);
11482 sb.append("prefix:");
11483 if (this.prefix == null) {
11486 sb.append(this.prefix);
11492 sb.append("nexthop:");
11493 if (this.nexthop == null) {
11496 sb.append(this.nexthop);
11503 if (this.rd == null) {
11506 sb.append(this.rd);
11512 sb.append("ethtag:");
11513 sb.append(this.ethtag);
11519 if (this.esi == null) {
11522 sb.append(this.esi);
11528 sb.append("macaddress:");
11529 if (this.macaddress == null) {
11532 sb.append(this.macaddress);
11538 sb.append("l3label:");
11539 sb.append(this.l3label);
11544 sb.append("l2label:");
11545 sb.append(this.l2label);
11550 sb.append("enc_type:");
11551 if (this.enc_type == null) {
11554 sb.append(this.enc_type);
11560 sb.append("routermac:");
11561 if (this.routermac == null) {
11564 sb.append(this.routermac);
11571 if (this.afi == null) {
11574 sb.append(this.afi);
11578 return sb.toString();
11581 public void validate() throws org.apache.thrift.TException {
11582 // check for required fields
11583 // check for sub-struct validity
11586 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11588 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11589 } catch (org.apache.thrift.TException te) {
11590 throw new java.io.IOException(te);
11594 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11596 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11597 __isset_bitfield = 0;
11598 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11599 } catch (org.apache.thrift.TException te) {
11600 throw new java.io.IOException(te);
11604 private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
11606 public pushRoute_argsStandardScheme getScheme() {
11607 return new pushRoute_argsStandardScheme();
11611 private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
11614 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
11615 org.apache.thrift.protocol.TField schemeField;
11616 iprot.readStructBegin();
11619 schemeField = iprot.readFieldBegin();
11620 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
11623 switch (schemeField.id) {
11625 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11626 struct.p_type = protocol_type.findByValue(iprot.readI32());
11627 struct.setP_typeIsSet(true);
11629 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11633 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11634 struct.prefix = iprot.readString();
11635 struct.setPrefixIsSet(true);
11637 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11641 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11642 struct.nexthop = iprot.readString();
11643 struct.setNexthopIsSet(true);
11645 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11649 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11650 struct.rd = iprot.readString();
11651 struct.setRdIsSet(true);
11653 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11657 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11658 struct.ethtag = iprot.readI32();
11659 struct.setEthtagIsSet(true);
11661 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11665 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11666 struct.esi = iprot.readString();
11667 struct.setEsiIsSet(true);
11669 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11672 case 7: // MACADDRESS
11673 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11674 struct.macaddress = iprot.readString();
11675 struct.setMacaddressIsSet(true);
11677 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11681 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11682 struct.l3label = iprot.readI32();
11683 struct.setL3labelIsSet(true);
11685 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11689 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11690 struct.l2label = iprot.readI32();
11691 struct.setL2labelIsSet(true);
11693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11696 case 10: // ENC_TYPE
11697 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11698 struct.enc_type = encap_type.findByValue(iprot.readI32());
11699 struct.setEnc_typeIsSet(true);
11701 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11704 case 11: // ROUTERMAC
11705 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
11706 struct.routermac = iprot.readString();
11707 struct.setRoutermacIsSet(true);
11709 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11713 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
11714 struct.afi = af_afi.findByValue(iprot.readI32());
11715 struct.setAfiIsSet(true);
11717 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11721 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
11723 iprot.readFieldEnd();
11725 iprot.readStructEnd();
11727 // check for required fields of primitive type, which can't be checked in the validate method
11732 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
11735 oprot.writeStructBegin(STRUCT_DESC);
11736 if (struct.p_type != null) {
11737 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
11738 oprot.writeI32(struct.p_type.getValue());
11739 oprot.writeFieldEnd();
11741 if (struct.prefix != null) {
11742 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
11743 oprot.writeString(struct.prefix);
11744 oprot.writeFieldEnd();
11746 if (struct.nexthop != null) {
11747 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
11748 oprot.writeString(struct.nexthop);
11749 oprot.writeFieldEnd();
11751 if (struct.rd != null) {
11752 oprot.writeFieldBegin(RD_FIELD_DESC);
11753 oprot.writeString(struct.rd);
11754 oprot.writeFieldEnd();
11756 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
11757 oprot.writeI32(struct.ethtag);
11758 oprot.writeFieldEnd();
11759 if (struct.esi != null) {
11760 oprot.writeFieldBegin(ESI_FIELD_DESC);
11761 oprot.writeString(struct.esi);
11762 oprot.writeFieldEnd();
11764 if (struct.macaddress != null) {
11765 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
11766 oprot.writeString(struct.macaddress);
11767 oprot.writeFieldEnd();
11769 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
11770 oprot.writeI32(struct.l3label);
11771 oprot.writeFieldEnd();
11772 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
11773 oprot.writeI32(struct.l2label);
11774 oprot.writeFieldEnd();
11775 if (struct.enc_type != null) {
11776 oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
11777 oprot.writeI32(struct.enc_type.getValue());
11778 oprot.writeFieldEnd();
11780 if (struct.routermac != null) {
11781 oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
11782 oprot.writeString(struct.routermac);
11783 oprot.writeFieldEnd();
11785 if (struct.afi != null) {
11786 oprot.writeFieldBegin(AFI_FIELD_DESC);
11787 oprot.writeI32(struct.afi.getValue());
11788 oprot.writeFieldEnd();
11790 oprot.writeFieldStop();
11791 oprot.writeStructEnd();
11796 private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
11798 public pushRoute_argsTupleScheme getScheme() {
11799 return new pushRoute_argsTupleScheme();
11803 private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
11806 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
11807 TTupleProtocol oprot = (TTupleProtocol) prot;
11808 BitSet optionals = new BitSet();
11809 if (struct.isSetP_type()) {
11812 if (struct.isSetPrefix()) {
11815 if (struct.isSetNexthop()) {
11818 if (struct.isSetRd()) {
11821 if (struct.isSetEthtag()) {
11824 if (struct.isSetEsi()) {
11827 if (struct.isSetMacaddress()) {
11830 if (struct.isSetL3label()) {
11833 if (struct.isSetL2label()) {
11836 if (struct.isSetEnc_type()) {
11839 if (struct.isSetRoutermac()) {
11842 if (struct.isSetAfi()) {
11845 oprot.writeBitSet(optionals, 12);
11846 if (struct.isSetP_type()) {
11847 oprot.writeI32(struct.p_type.getValue());
11849 if (struct.isSetPrefix()) {
11850 oprot.writeString(struct.prefix);
11852 if (struct.isSetNexthop()) {
11853 oprot.writeString(struct.nexthop);
11855 if (struct.isSetRd()) {
11856 oprot.writeString(struct.rd);
11858 if (struct.isSetEthtag()) {
11859 oprot.writeI32(struct.ethtag);
11861 if (struct.isSetEsi()) {
11862 oprot.writeString(struct.esi);
11864 if (struct.isSetMacaddress()) {
11865 oprot.writeString(struct.macaddress);
11867 if (struct.isSetL3label()) {
11868 oprot.writeI32(struct.l3label);
11870 if (struct.isSetL2label()) {
11871 oprot.writeI32(struct.l2label);
11873 if (struct.isSetEnc_type()) {
11874 oprot.writeI32(struct.enc_type.getValue());
11876 if (struct.isSetRoutermac()) {
11877 oprot.writeString(struct.routermac);
11879 if (struct.isSetAfi()) {
11880 oprot.writeI32(struct.afi.getValue());
11885 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
11886 TTupleProtocol iprot = (TTupleProtocol) prot;
11887 BitSet incoming = iprot.readBitSet(12);
11888 if (incoming.get(0)) {
11889 struct.p_type = protocol_type.findByValue(iprot.readI32());
11890 struct.setP_typeIsSet(true);
11892 if (incoming.get(1)) {
11893 struct.prefix = iprot.readString();
11894 struct.setPrefixIsSet(true);
11896 if (incoming.get(2)) {
11897 struct.nexthop = iprot.readString();
11898 struct.setNexthopIsSet(true);
11900 if (incoming.get(3)) {
11901 struct.rd = iprot.readString();
11902 struct.setRdIsSet(true);
11904 if (incoming.get(4)) {
11905 struct.ethtag = iprot.readI32();
11906 struct.setEthtagIsSet(true);
11908 if (incoming.get(5)) {
11909 struct.esi = iprot.readString();
11910 struct.setEsiIsSet(true);
11912 if (incoming.get(6)) {
11913 struct.macaddress = iprot.readString();
11914 struct.setMacaddressIsSet(true);
11916 if (incoming.get(7)) {
11917 struct.l3label = iprot.readI32();
11918 struct.setL3labelIsSet(true);
11920 if (incoming.get(8)) {
11921 struct.l2label = iprot.readI32();
11922 struct.setL2labelIsSet(true);
11924 if (incoming.get(9)) {
11925 struct.enc_type = encap_type.findByValue(iprot.readI32());
11926 struct.setEnc_typeIsSet(true);
11928 if (incoming.get(10)) {
11929 struct.routermac = iprot.readString();
11930 struct.setRoutermacIsSet(true);
11932 if (incoming.get(11)) {
11933 struct.afi = af_afi.findByValue(iprot.readI32());
11934 struct.setAfiIsSet(true);
11941 public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result> {
11942 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
11944 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);
11946 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
11948 schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
11949 schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
11952 public int success; // required
11954 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11955 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11956 SUCCESS((short)0, "success");
11958 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11961 for (_Fields field : EnumSet.allOf(_Fields.class)) {
11962 byName.put(field.getFieldName(), field);
11967 * Find the _Fields constant that matches fieldId, or null if its not found.
11969 public static _Fields findByThriftId(int fieldId) {
11979 * Find the _Fields constant that matches fieldId, throwing an exception
11980 * if it is not found.
11982 public static _Fields findByThriftIdOrThrow(int fieldId) {
11983 _Fields fields = findByThriftId(fieldId);
11984 if (fields == null) {
11985 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11991 * Find the _Fields constant that matches name, or null if its not found.
11993 public static _Fields findByName(String name) {
11994 return byName.get(name);
11997 private final short _thriftId;
11998 private final String _fieldName;
12000 _Fields(short thriftId, String fieldName) {
12001 _thriftId = thriftId;
12002 _fieldName = fieldName;
12006 public short getThriftFieldId() {
12011 public String getFieldName() {
12016 // isset id assignments
12017 private static final int __SUCCESS_ISSET_ID = 0;
12018 private byte __isset_bitfield = 0;
12019 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12021 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12022 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12023 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12024 metaDataMap = Collections.unmodifiableMap(tmpMap);
12025 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
12028 public pushRoute_result() {
12031 public pushRoute_result(
12035 this.success = success;
12036 setSuccessIsSet(true);
12040 * Performs a deep copy on <i>other</i>.
12042 public pushRoute_result(pushRoute_result other) {
12043 __isset_bitfield = other.__isset_bitfield;
12044 this.success = other.success;
12048 public pushRoute_result deepCopy() {
12049 return new pushRoute_result(this);
12053 public void clear() {
12054 setSuccessIsSet(false);
12058 public int getSuccess() {
12059 return this.success;
12062 public pushRoute_result setSuccess(int success) {
12063 this.success = success;
12064 setSuccessIsSet(true);
12068 public void unsetSuccess() {
12069 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12072 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12073 public boolean isSetSuccess() {
12074 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12077 public void setSuccessIsSet(boolean value) {
12078 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12082 public void setFieldValue(_Fields field, Object value) {
12085 if (value == null) {
12088 setSuccess((Integer)value);
12096 public Object getFieldValue(_Fields field) {
12099 return Integer.valueOf(getSuccess());
12102 throw new IllegalStateException();
12105 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12107 public boolean isSet(_Fields field) {
12108 if (field == null) {
12109 throw new IllegalArgumentException();
12114 return isSetSuccess();
12116 throw new IllegalStateException();
12120 public boolean equals(Object that) {
12121 if (that == null) {
12124 if (that instanceof pushRoute_result) {
12125 return this.equals((pushRoute_result)that);
12130 public boolean equals(pushRoute_result that) {
12131 if (that == null) {
12135 boolean this_present_success = true;
12136 boolean that_present_success = true;
12137 if (this_present_success || that_present_success) {
12138 if (!(this_present_success && that_present_success)) {
12141 if (this.success != that.success) {
12150 public int hashCode() {
12151 List<Object> list = new ArrayList<Object>();
12153 boolean present_success = true;
12154 list.add(present_success);
12155 if (present_success)
12157 return list.hashCode();
12161 public int compareTo(pushRoute_result other) {
12162 if (!getClass().equals(other.getClass())) {
12163 return getClass().getName().compareTo(other.getClass().getName());
12166 int lastComparison = 0;
12168 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12169 if (lastComparison != 0) {
12170 return lastComparison;
12172 if (isSetSuccess()) {
12173 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12174 if (lastComparison != 0) {
12175 return lastComparison;
12182 public _Fields fieldForId(int fieldId) {
12183 return _Fields.findByThriftId(fieldId);
12187 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12188 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12192 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12193 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12197 public String toString() {
12198 StringBuilder sb = new StringBuilder("pushRoute_result(");
12199 boolean first = true;
12201 sb.append("success:");
12202 sb.append(this.success);
12205 return sb.toString();
12208 public void validate() throws org.apache.thrift.TException {
12209 // check for required fields
12210 // check for sub-struct validity
12213 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12215 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12216 } catch (org.apache.thrift.TException te) {
12217 throw new java.io.IOException(te);
12221 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12223 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12224 __isset_bitfield = 0;
12225 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12226 } catch (org.apache.thrift.TException te) {
12227 throw new java.io.IOException(te);
12231 private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
12233 public pushRoute_resultStandardScheme getScheme() {
12234 return new pushRoute_resultStandardScheme();
12238 private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
12241 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
12242 org.apache.thrift.protocol.TField schemeField;
12243 iprot.readStructBegin();
12246 schemeField = iprot.readFieldBegin();
12247 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12250 switch (schemeField.id) {
12252 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12253 struct.success = iprot.readI32();
12254 struct.setSuccessIsSet(true);
12256 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12260 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12262 iprot.readFieldEnd();
12264 iprot.readStructEnd();
12266 // check for required fields of primitive type, which can't be checked in the validate method
12271 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
12274 oprot.writeStructBegin(STRUCT_DESC);
12275 if (struct.isSetSuccess()) {
12276 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12277 oprot.writeI32(struct.success);
12278 oprot.writeFieldEnd();
12280 oprot.writeFieldStop();
12281 oprot.writeStructEnd();
12286 private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
12288 public pushRoute_resultTupleScheme getScheme() {
12289 return new pushRoute_resultTupleScheme();
12293 private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
12296 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12297 TTupleProtocol oprot = (TTupleProtocol) prot;
12298 BitSet optionals = new BitSet();
12299 if (struct.isSetSuccess()) {
12302 oprot.writeBitSet(optionals, 1);
12303 if (struct.isSetSuccess()) {
12304 oprot.writeI32(struct.success);
12309 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12310 TTupleProtocol iprot = (TTupleProtocol) prot;
12311 BitSet incoming = iprot.readBitSet(1);
12312 if (incoming.get(0)) {
12313 struct.success = iprot.readI32();
12314 struct.setSuccessIsSet(true);
12321 public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args> {
12322 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
12324 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);
12325 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);
12326 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);
12327 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);
12328 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);
12329 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);
12330 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)7);
12332 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12334 schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
12335 schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
12340 * @see protocol_type
12342 public protocol_type p_type; // required
12343 public String prefix; // required
12344 public String rd; // required
12345 public int ethtag; // required
12346 public String esi; // required
12347 public String macaddress; // required
12352 public af_afi afi; // required
12354 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12355 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12358 * @see protocol_type
12360 P_TYPE((short)1, "p_type"),
12361 PREFIX((short)2, "prefix"),
12362 RD((short)3, "rd"),
12363 ETHTAG((short)4, "ethtag"),
12364 ESI((short)5, "esi"),
12365 MACADDRESS((short)6, "macaddress"),
12370 AFI((short)7, "afi");
12372 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12375 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12376 byName.put(field.getFieldName(), field);
12381 * Find the _Fields constant that matches fieldId, or null if its not found.
12383 public static _Fields findByThriftId(int fieldId) {
12395 case 6: // MACADDRESS
12405 * Find the _Fields constant that matches fieldId, throwing an exception
12406 * if it is not found.
12408 public static _Fields findByThriftIdOrThrow(int fieldId) {
12409 _Fields fields = findByThriftId(fieldId);
12410 if (fields == null) {
12411 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12417 * Find the _Fields constant that matches name, or null if its not found.
12419 public static _Fields findByName(String name) {
12420 return byName.get(name);
12423 private final short _thriftId;
12424 private final String _fieldName;
12426 _Fields(short thriftId, String fieldName) {
12427 _thriftId = thriftId;
12428 _fieldName = fieldName;
12432 public short getThriftFieldId() {
12437 public String getFieldName() {
12442 // isset id assignments
12443 private static final int __ETHTAG_ISSET_ID = 0;
12444 private byte __isset_bitfield = 0;
12445 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12447 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12448 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
12449 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
12450 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
12451 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12452 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
12453 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12454 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
12455 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12456 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12457 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12458 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
12459 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12460 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12461 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12462 metaDataMap = Collections.unmodifiableMap(tmpMap);
12463 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
12466 public withdrawRoute_args() {
12469 public withdrawRoute_args(
12470 protocol_type p_type,
12479 this.p_type = p_type;
12480 this.prefix = prefix;
12482 this.ethtag = ethtag;
12483 setEthtagIsSet(true);
12485 this.macaddress = macaddress;
12490 * Performs a deep copy on <i>other</i>.
12492 public withdrawRoute_args(withdrawRoute_args other) {
12493 __isset_bitfield = other.__isset_bitfield;
12494 if (other.isSetP_type()) {
12495 this.p_type = other.p_type;
12497 if (other.isSetPrefix()) {
12498 this.prefix = other.prefix;
12500 if (other.isSetRd()) {
12501 this.rd = other.rd;
12503 this.ethtag = other.ethtag;
12504 if (other.isSetEsi()) {
12505 this.esi = other.esi;
12507 if (other.isSetMacaddress()) {
12508 this.macaddress = other.macaddress;
12510 if (other.isSetAfi()) {
12511 this.afi = other.afi;
12516 public withdrawRoute_args deepCopy() {
12517 return new withdrawRoute_args(this);
12521 public void clear() {
12522 this.p_type = null;
12523 this.prefix = null;
12525 setEthtagIsSet(false);
12528 this.macaddress = null;
12534 * @see protocol_type
12536 public protocol_type getP_type() {
12537 return this.p_type;
12542 * @see protocol_type
12544 public withdrawRoute_args setP_type(protocol_type p_type) {
12545 this.p_type = p_type;
12549 public void unsetP_type() {
12550 this.p_type = null;
12553 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
12554 public boolean isSetP_type() {
12555 return this.p_type != null;
12558 public void setP_typeIsSet(boolean value) {
12560 this.p_type = null;
12564 public String getPrefix() {
12565 return this.prefix;
12568 public withdrawRoute_args setPrefix(String prefix) {
12569 this.prefix = prefix;
12573 public void unsetPrefix() {
12574 this.prefix = null;
12577 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
12578 public boolean isSetPrefix() {
12579 return this.prefix != null;
12582 public void setPrefixIsSet(boolean value) {
12584 this.prefix = null;
12588 public String getRd() {
12592 public withdrawRoute_args setRd(String rd) {
12597 public void unsetRd() {
12601 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
12602 public boolean isSetRd() {
12603 return this.rd != null;
12606 public void setRdIsSet(boolean value) {
12612 public int getEthtag() {
12613 return this.ethtag;
12616 public withdrawRoute_args setEthtag(int ethtag) {
12617 this.ethtag = ethtag;
12618 setEthtagIsSet(true);
12622 public void unsetEthtag() {
12623 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
12626 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
12627 public boolean isSetEthtag() {
12628 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
12631 public void setEthtagIsSet(boolean value) {
12632 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
12635 public String getEsi() {
12639 public withdrawRoute_args setEsi(String esi) {
12644 public void unsetEsi() {
12648 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
12649 public boolean isSetEsi() {
12650 return this.esi != null;
12653 public void setEsiIsSet(boolean value) {
12659 public String getMacaddress() {
12660 return this.macaddress;
12663 public withdrawRoute_args setMacaddress(String macaddress) {
12664 this.macaddress = macaddress;
12668 public void unsetMacaddress() {
12669 this.macaddress = null;
12672 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
12673 public boolean isSetMacaddress() {
12674 return this.macaddress != null;
12677 public void setMacaddressIsSet(boolean value) {
12679 this.macaddress = null;
12687 public af_afi getAfi() {
12695 public withdrawRoute_args setAfi(af_afi afi) {
12700 public void unsetAfi() {
12704 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
12705 public boolean isSetAfi() {
12706 return this.afi != null;
12709 public void setAfiIsSet(boolean value) {
12716 public void setFieldValue(_Fields field, Object value) {
12719 if (value == null) {
12722 setP_type((protocol_type)value);
12727 if (value == null) {
12730 setPrefix((String)value);
12735 if (value == null) {
12738 setRd((String)value);
12743 if (value == null) {
12746 setEthtag((Integer)value);
12751 if (value == null) {
12754 setEsi((String)value);
12759 if (value == null) {
12762 setMacaddress((String)value);
12767 if (value == null) {
12770 setAfi((af_afi)value);
12778 public Object getFieldValue(_Fields field) {
12781 return getP_type();
12784 return getPrefix();
12790 return Integer.valueOf(getEthtag());
12796 return getMacaddress();
12802 throw new IllegalStateException();
12805 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12807 public boolean isSet(_Fields field) {
12808 if (field == null) {
12809 throw new IllegalArgumentException();
12814 return isSetP_type();
12816 return isSetPrefix();
12820 return isSetEthtag();
12824 return isSetMacaddress();
12828 throw new IllegalStateException();
12832 public boolean equals(Object that) {
12833 if (that == null) {
12836 if (that instanceof withdrawRoute_args) {
12837 return this.equals((withdrawRoute_args)that);
12842 public boolean equals(withdrawRoute_args that) {
12843 if (that == null) {
12847 boolean this_present_p_type = true && this.isSetP_type();
12848 boolean that_present_p_type = true && that.isSetP_type();
12849 if (this_present_p_type || that_present_p_type) {
12850 if (!(this_present_p_type && that_present_p_type)) {
12853 if (!this.p_type.equals(that.p_type)) {
12858 boolean this_present_prefix = true && this.isSetPrefix();
12859 boolean that_present_prefix = true && that.isSetPrefix();
12860 if (this_present_prefix || that_present_prefix) {
12861 if (!(this_present_prefix && that_present_prefix)) {
12864 if (!this.prefix.equals(that.prefix)) {
12869 boolean this_present_rd = true && this.isSetRd();
12870 boolean that_present_rd = true && that.isSetRd();
12871 if (this_present_rd || that_present_rd) {
12872 if (!(this_present_rd && that_present_rd)) {
12875 if (!this.rd.equals(that.rd)) {
12880 boolean this_present_ethtag = true;
12881 boolean that_present_ethtag = true;
12882 if (this_present_ethtag || that_present_ethtag) {
12883 if (!(this_present_ethtag && that_present_ethtag)) {
12886 if (this.ethtag != that.ethtag) {
12891 boolean this_present_esi = true && this.isSetEsi();
12892 boolean that_present_esi = true && that.isSetEsi();
12893 if (this_present_esi || that_present_esi) {
12894 if (!(this_present_esi && that_present_esi)) {
12897 if (!this.esi.equals(that.esi)) {
12902 boolean this_present_macaddress = true && this.isSetMacaddress();
12903 boolean that_present_macaddress = true && that.isSetMacaddress();
12904 if (this_present_macaddress || that_present_macaddress) {
12905 if (!(this_present_macaddress && that_present_macaddress)) {
12908 if (!this.macaddress.equals(that.macaddress)) {
12913 boolean this_present_afi = true && this.isSetAfi();
12914 boolean that_present_afi = true && that.isSetAfi();
12915 if (this_present_afi || that_present_afi) {
12916 if (!(this_present_afi && that_present_afi)) {
12919 if (!this.afi.equals(that.afi)) {
12928 public int hashCode() {
12929 List<Object> list = new ArrayList<Object>();
12930 boolean present_p_type = true && (isSetP_type());
12931 list.add(present_p_type);
12932 if (present_p_type)
12933 list.add(p_type.getValue());
12934 boolean present_prefix = true && (isSetPrefix());
12935 list.add(present_prefix);
12936 if (present_prefix)
12938 boolean present_rd = true && (isSetRd());
12939 list.add(present_rd);
12942 boolean present_ethtag = true;
12943 list.add(present_ethtag);
12944 if (present_ethtag)
12946 boolean present_esi = true && (isSetEsi());
12947 list.add(present_esi);
12950 boolean present_macaddress = true && (isSetMacaddress());
12951 list.add(present_macaddress);
12952 if (present_macaddress)
12953 list.add(macaddress);
12954 boolean present_afi = true && (isSetAfi());
12955 list.add(present_afi);
12957 list.add(afi.getValue());
12958 return list.hashCode();
12962 public int compareTo(withdrawRoute_args other) {
12963 if (!getClass().equals(other.getClass())) {
12964 return getClass().getName().compareTo(other.getClass().getName());
12967 int lastComparison = 0;
12969 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
12970 if (lastComparison != 0) {
12971 return lastComparison;
12973 if (isSetP_type()) {
12974 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
12975 if (lastComparison != 0) {
12976 return lastComparison;
12979 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
12980 if (lastComparison != 0) {
12981 return lastComparison;
12983 if (isSetPrefix()) {
12984 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
12985 if (lastComparison != 0) {
12986 return lastComparison;
12989 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
12990 if (lastComparison != 0) {
12991 return lastComparison;
12994 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
12995 if (lastComparison != 0) {
12996 return lastComparison;
12999 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
13000 if (lastComparison != 0) {
13001 return lastComparison;
13003 if (isSetEthtag()) {
13004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
13005 if (lastComparison != 0) {
13006 return lastComparison;
13009 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
13010 if (lastComparison != 0) {
13011 return lastComparison;
13014 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
13015 if (lastComparison != 0) {
13016 return lastComparison;
13019 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
13020 if (lastComparison != 0) {
13021 return lastComparison;
13023 if (isSetMacaddress()) {
13024 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
13025 if (lastComparison != 0) {
13026 return lastComparison;
13029 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13030 if (lastComparison != 0) {
13031 return lastComparison;
13034 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13035 if (lastComparison != 0) {
13036 return lastComparison;
13043 public _Fields fieldForId(int fieldId) {
13044 return _Fields.findByThriftId(fieldId);
13048 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13049 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13053 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13054 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13058 public String toString() {
13059 StringBuilder sb = new StringBuilder("withdrawRoute_args(");
13060 boolean first = true;
13062 sb.append("p_type:");
13063 if (this.p_type == null) {
13066 sb.append(this.p_type);
13072 sb.append("prefix:");
13073 if (this.prefix == null) {
13076 sb.append(this.prefix);
13083 if (this.rd == null) {
13086 sb.append(this.rd);
13092 sb.append("ethtag:");
13093 sb.append(this.ethtag);
13099 if (this.esi == null) {
13102 sb.append(this.esi);
13108 sb.append("macaddress:");
13109 if (this.macaddress == null) {
13112 sb.append(this.macaddress);
13119 if (this.afi == null) {
13122 sb.append(this.afi);
13126 return sb.toString();
13129 public void validate() throws org.apache.thrift.TException {
13130 // check for required fields
13131 // check for sub-struct validity
13134 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13136 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13137 } catch (org.apache.thrift.TException te) {
13138 throw new java.io.IOException(te);
13142 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13144 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13145 __isset_bitfield = 0;
13146 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13147 } catch (org.apache.thrift.TException te) {
13148 throw new java.io.IOException(te);
13152 private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
13154 public withdrawRoute_argsStandardScheme getScheme() {
13155 return new withdrawRoute_argsStandardScheme();
13159 private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
13162 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13163 org.apache.thrift.protocol.TField schemeField;
13164 iprot.readStructBegin();
13167 schemeField = iprot.readFieldBegin();
13168 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13171 switch (schemeField.id) {
13173 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13174 struct.p_type = protocol_type.findByValue(iprot.readI32());
13175 struct.setP_typeIsSet(true);
13177 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13181 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13182 struct.prefix = iprot.readString();
13183 struct.setPrefixIsSet(true);
13185 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13189 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13190 struct.rd = iprot.readString();
13191 struct.setRdIsSet(true);
13193 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13197 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13198 struct.ethtag = iprot.readI32();
13199 struct.setEthtagIsSet(true);
13201 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13205 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13206 struct.esi = iprot.readString();
13207 struct.setEsiIsSet(true);
13209 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13212 case 6: // MACADDRESS
13213 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13214 struct.macaddress = iprot.readString();
13215 struct.setMacaddressIsSet(true);
13217 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13221 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13222 struct.afi = af_afi.findByValue(iprot.readI32());
13223 struct.setAfiIsSet(true);
13225 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13229 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13231 iprot.readFieldEnd();
13233 iprot.readStructEnd();
13235 // check for required fields of primitive type, which can't be checked in the validate method
13240 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13243 oprot.writeStructBegin(STRUCT_DESC);
13244 if (struct.p_type != null) {
13245 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
13246 oprot.writeI32(struct.p_type.getValue());
13247 oprot.writeFieldEnd();
13249 if (struct.prefix != null) {
13250 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
13251 oprot.writeString(struct.prefix);
13252 oprot.writeFieldEnd();
13254 if (struct.rd != null) {
13255 oprot.writeFieldBegin(RD_FIELD_DESC);
13256 oprot.writeString(struct.rd);
13257 oprot.writeFieldEnd();
13259 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
13260 oprot.writeI32(struct.ethtag);
13261 oprot.writeFieldEnd();
13262 if (struct.esi != null) {
13263 oprot.writeFieldBegin(ESI_FIELD_DESC);
13264 oprot.writeString(struct.esi);
13265 oprot.writeFieldEnd();
13267 if (struct.macaddress != null) {
13268 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
13269 oprot.writeString(struct.macaddress);
13270 oprot.writeFieldEnd();
13272 if (struct.afi != null) {
13273 oprot.writeFieldBegin(AFI_FIELD_DESC);
13274 oprot.writeI32(struct.afi.getValue());
13275 oprot.writeFieldEnd();
13277 oprot.writeFieldStop();
13278 oprot.writeStructEnd();
13283 private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
13285 public withdrawRoute_argsTupleScheme getScheme() {
13286 return new withdrawRoute_argsTupleScheme();
13290 private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
13293 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13294 TTupleProtocol oprot = (TTupleProtocol) prot;
13295 BitSet optionals = new BitSet();
13296 if (struct.isSetP_type()) {
13299 if (struct.isSetPrefix()) {
13302 if (struct.isSetRd()) {
13305 if (struct.isSetEthtag()) {
13308 if (struct.isSetEsi()) {
13311 if (struct.isSetMacaddress()) {
13314 if (struct.isSetAfi()) {
13317 oprot.writeBitSet(optionals, 7);
13318 if (struct.isSetP_type()) {
13319 oprot.writeI32(struct.p_type.getValue());
13321 if (struct.isSetPrefix()) {
13322 oprot.writeString(struct.prefix);
13324 if (struct.isSetRd()) {
13325 oprot.writeString(struct.rd);
13327 if (struct.isSetEthtag()) {
13328 oprot.writeI32(struct.ethtag);
13330 if (struct.isSetEsi()) {
13331 oprot.writeString(struct.esi);
13333 if (struct.isSetMacaddress()) {
13334 oprot.writeString(struct.macaddress);
13336 if (struct.isSetAfi()) {
13337 oprot.writeI32(struct.afi.getValue());
13342 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13343 TTupleProtocol iprot = (TTupleProtocol) prot;
13344 BitSet incoming = iprot.readBitSet(7);
13345 if (incoming.get(0)) {
13346 struct.p_type = protocol_type.findByValue(iprot.readI32());
13347 struct.setP_typeIsSet(true);
13349 if (incoming.get(1)) {
13350 struct.prefix = iprot.readString();
13351 struct.setPrefixIsSet(true);
13353 if (incoming.get(2)) {
13354 struct.rd = iprot.readString();
13355 struct.setRdIsSet(true);
13357 if (incoming.get(3)) {
13358 struct.ethtag = iprot.readI32();
13359 struct.setEthtagIsSet(true);
13361 if (incoming.get(4)) {
13362 struct.esi = iprot.readString();
13363 struct.setEsiIsSet(true);
13365 if (incoming.get(5)) {
13366 struct.macaddress = iprot.readString();
13367 struct.setMacaddressIsSet(true);
13369 if (incoming.get(6)) {
13370 struct.afi = af_afi.findByValue(iprot.readI32());
13371 struct.setAfiIsSet(true);
13378 public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result> {
13379 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
13381 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);
13383 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13385 schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
13386 schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
13389 public int success; // required
13391 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13392 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13393 SUCCESS((short)0, "success");
13395 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13398 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13399 byName.put(field.getFieldName(), field);
13404 * Find the _Fields constant that matches fieldId, or null if its not found.
13406 public static _Fields findByThriftId(int fieldId) {
13416 * Find the _Fields constant that matches fieldId, throwing an exception
13417 * if it is not found.
13419 public static _Fields findByThriftIdOrThrow(int fieldId) {
13420 _Fields fields = findByThriftId(fieldId);
13421 if (fields == null) {
13422 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13428 * Find the _Fields constant that matches name, or null if its not found.
13430 public static _Fields findByName(String name) {
13431 return byName.get(name);
13434 private final short _thriftId;
13435 private final String _fieldName;
13437 _Fields(short thriftId, String fieldName) {
13438 _thriftId = thriftId;
13439 _fieldName = fieldName;
13443 public short getThriftFieldId() {
13448 public String getFieldName() {
13453 // isset id assignments
13454 private static final int __SUCCESS_ISSET_ID = 0;
13455 private byte __isset_bitfield = 0;
13456 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13458 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13459 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13460 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13461 metaDataMap = Collections.unmodifiableMap(tmpMap);
13462 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
13465 public withdrawRoute_result() {
13468 public withdrawRoute_result(
13472 this.success = success;
13473 setSuccessIsSet(true);
13477 * Performs a deep copy on <i>other</i>.
13479 public withdrawRoute_result(withdrawRoute_result other) {
13480 __isset_bitfield = other.__isset_bitfield;
13481 this.success = other.success;
13485 public withdrawRoute_result deepCopy() {
13486 return new withdrawRoute_result(this);
13490 public void clear() {
13491 setSuccessIsSet(false);
13495 public int getSuccess() {
13496 return this.success;
13499 public withdrawRoute_result setSuccess(int success) {
13500 this.success = success;
13501 setSuccessIsSet(true);
13505 public void unsetSuccess() {
13506 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13509 /** Returns true if field success is set (has been assigned a value) and false otherwise */
13510 public boolean isSetSuccess() {
13511 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13514 public void setSuccessIsSet(boolean value) {
13515 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13519 public void setFieldValue(_Fields field, Object value) {
13522 if (value == null) {
13525 setSuccess((Integer)value);
13533 public Object getFieldValue(_Fields field) {
13536 return Integer.valueOf(getSuccess());
13539 throw new IllegalStateException();
13542 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13544 public boolean isSet(_Fields field) {
13545 if (field == null) {
13546 throw new IllegalArgumentException();
13551 return isSetSuccess();
13553 throw new IllegalStateException();
13557 public boolean equals(Object that) {
13558 if (that == null) {
13561 if (that instanceof withdrawRoute_result) {
13562 return this.equals((withdrawRoute_result)that);
13567 public boolean equals(withdrawRoute_result that) {
13568 if (that == null) {
13572 boolean this_present_success = true;
13573 boolean that_present_success = true;
13574 if (this_present_success || that_present_success) {
13575 if (!(this_present_success && that_present_success)) {
13578 if (this.success != that.success) {
13587 public int hashCode() {
13588 List<Object> list = new ArrayList<Object>();
13590 boolean present_success = true;
13591 list.add(present_success);
13592 if (present_success)
13594 return list.hashCode();
13598 public int compareTo(withdrawRoute_result other) {
13599 if (!getClass().equals(other.getClass())) {
13600 return getClass().getName().compareTo(other.getClass().getName());
13603 int lastComparison = 0;
13605 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
13606 if (lastComparison != 0) {
13607 return lastComparison;
13609 if (isSetSuccess()) {
13610 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
13611 if (lastComparison != 0) {
13612 return lastComparison;
13619 public _Fields fieldForId(int fieldId) {
13620 return _Fields.findByThriftId(fieldId);
13624 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13625 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13629 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13630 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13634 public String toString() {
13635 StringBuilder sb = new StringBuilder("withdrawRoute_result(");
13636 boolean first = true;
13638 sb.append("success:");
13639 sb.append(this.success);
13642 return sb.toString();
13645 public void validate() throws org.apache.thrift.TException {
13646 // check for required fields
13647 // check for sub-struct validity
13650 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13652 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13653 } catch (org.apache.thrift.TException te) {
13654 throw new java.io.IOException(te);
13658 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13660 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13661 __isset_bitfield = 0;
13662 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13663 } catch (org.apache.thrift.TException te) {
13664 throw new java.io.IOException(te);
13668 private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
13670 public withdrawRoute_resultStandardScheme getScheme() {
13671 return new withdrawRoute_resultStandardScheme();
13675 private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
13678 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13679 org.apache.thrift.protocol.TField schemeField;
13680 iprot.readStructBegin();
13683 schemeField = iprot.readFieldBegin();
13684 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13687 switch (schemeField.id) {
13689 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13690 struct.success = iprot.readI32();
13691 struct.setSuccessIsSet(true);
13693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13697 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13699 iprot.readFieldEnd();
13701 iprot.readStructEnd();
13703 // check for required fields of primitive type, which can't be checked in the validate method
13708 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13711 oprot.writeStructBegin(STRUCT_DESC);
13712 if (struct.isSetSuccess()) {
13713 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13714 oprot.writeI32(struct.success);
13715 oprot.writeFieldEnd();
13717 oprot.writeFieldStop();
13718 oprot.writeStructEnd();
13723 private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
13725 public withdrawRoute_resultTupleScheme getScheme() {
13726 return new withdrawRoute_resultTupleScheme();
13730 private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
13733 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13734 TTupleProtocol oprot = (TTupleProtocol) prot;
13735 BitSet optionals = new BitSet();
13736 if (struct.isSetSuccess()) {
13739 oprot.writeBitSet(optionals, 1);
13740 if (struct.isSetSuccess()) {
13741 oprot.writeI32(struct.success);
13746 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
13747 TTupleProtocol iprot = (TTupleProtocol) prot;
13748 BitSet incoming = iprot.readBitSet(1);
13749 if (incoming.get(0)) {
13750 struct.success = iprot.readI32();
13751 struct.setSuccessIsSet(true);
13758 public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args> {
13759 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
13761 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);
13762 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);
13764 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13766 schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
13767 schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
13770 public String peerIp; // required
13771 public int nHops; // required
13773 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13774 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13775 PEER_IP((short)1, "peerIp"),
13776 N_HOPS((short)2, "nHops");
13778 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13781 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13782 byName.put(field.getFieldName(), field);
13787 * Find the _Fields constant that matches fieldId, or null if its not found.
13789 public static _Fields findByThriftId(int fieldId) {
13801 * Find the _Fields constant that matches fieldId, throwing an exception
13802 * if it is not found.
13804 public static _Fields findByThriftIdOrThrow(int fieldId) {
13805 _Fields fields = findByThriftId(fieldId);
13806 if (fields == null) {
13807 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13813 * Find the _Fields constant that matches name, or null if its not found.
13815 public static _Fields findByName(String name) {
13816 return byName.get(name);
13819 private final short _thriftId;
13820 private final String _fieldName;
13822 _Fields(short thriftId, String fieldName) {
13823 _thriftId = thriftId;
13824 _fieldName = fieldName;
13828 public short getThriftFieldId() {
13833 public String getFieldName() {
13838 // isset id assignments
13839 private static final int __NHOPS_ISSET_ID = 0;
13840 private byte __isset_bitfield = 0;
13841 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13843 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13844 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
13845 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13846 tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
13847 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13848 metaDataMap = Collections.unmodifiableMap(tmpMap);
13849 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
13852 public setEbgpMultihop_args() {
13855 public setEbgpMultihop_args(
13860 this.peerIp = peerIp;
13861 this.nHops = nHops;
13862 setNHopsIsSet(true);
13866 * Performs a deep copy on <i>other</i>.
13868 public setEbgpMultihop_args(setEbgpMultihop_args other) {
13869 __isset_bitfield = other.__isset_bitfield;
13870 if (other.isSetPeerIp()) {
13871 this.peerIp = other.peerIp;
13873 this.nHops = other.nHops;
13877 public setEbgpMultihop_args deepCopy() {
13878 return new setEbgpMultihop_args(this);
13882 public void clear() {
13883 this.peerIp = null;
13884 setNHopsIsSet(false);
13888 public String getPeerIp() {
13889 return this.peerIp;
13892 public setEbgpMultihop_args setPeerIp(String peerIp) {
13893 this.peerIp = peerIp;
13897 public void unsetPeerIp() {
13898 this.peerIp = null;
13901 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
13902 public boolean isSetPeerIp() {
13903 return this.peerIp != null;
13906 public void setPeerIpIsSet(boolean value) {
13908 this.peerIp = null;
13912 public int getNHops() {
13916 public setEbgpMultihop_args setNHops(int nHops) {
13917 this.nHops = nHops;
13918 setNHopsIsSet(true);
13922 public void unsetNHops() {
13923 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
13926 /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
13927 public boolean isSetNHops() {
13928 return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
13931 public void setNHopsIsSet(boolean value) {
13932 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
13936 public void setFieldValue(_Fields field, Object value) {
13939 if (value == null) {
13942 setPeerIp((String)value);
13947 if (value == null) {
13950 setNHops((Integer)value);
13958 public Object getFieldValue(_Fields field) {
13961 return getPeerIp();
13964 return Integer.valueOf(getNHops());
13967 throw new IllegalStateException();
13970 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13972 public boolean isSet(_Fields field) {
13973 if (field == null) {
13974 throw new IllegalArgumentException();
13979 return isSetPeerIp();
13981 return isSetNHops();
13983 throw new IllegalStateException();
13987 public boolean equals(Object that) {
13988 if (that == null) {
13991 if (that instanceof setEbgpMultihop_args) {
13992 return this.equals((setEbgpMultihop_args)that);
13997 public boolean equals(setEbgpMultihop_args that) {
13998 if (that == null) {
14002 boolean this_present_peerIp = true && this.isSetPeerIp();
14003 boolean that_present_peerIp = true && that.isSetPeerIp();
14004 if (this_present_peerIp || that_present_peerIp) {
14005 if (!(this_present_peerIp && that_present_peerIp)) {
14008 if (!this.peerIp.equals(that.peerIp)) {
14013 boolean this_present_nHops = true;
14014 boolean that_present_nHops = true;
14015 if (this_present_nHops || that_present_nHops) {
14016 if (!(this_present_nHops && that_present_nHops)) {
14019 if (this.nHops != that.nHops) {
14028 public int hashCode() {
14029 List<Object> list = new ArrayList<Object>();
14031 boolean present_peerIp = true && (isSetPeerIp());
14032 list.add(present_peerIp);
14033 if (present_peerIp)
14035 boolean present_nHops = true;
14036 list.add(present_nHops);
14039 return list.hashCode();
14043 public int compareTo(setEbgpMultihop_args other) {
14044 if (!getClass().equals(other.getClass())) {
14045 return getClass().getName().compareTo(other.getClass().getName());
14048 int lastComparison = 0;
14050 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14051 if (lastComparison != 0) {
14052 return lastComparison;
14054 if (isSetPeerIp()) {
14055 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14056 if (lastComparison != 0) {
14057 return lastComparison;
14060 lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
14061 if (lastComparison != 0) {
14062 return lastComparison;
14064 if (isSetNHops()) {
14065 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
14066 if (lastComparison != 0) {
14067 return lastComparison;
14074 public _Fields fieldForId(int fieldId) {
14075 return _Fields.findByThriftId(fieldId);
14079 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14080 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14084 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14085 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14089 public String toString() {
14090 StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
14091 boolean first = true;
14093 sb.append("peerIp:");
14094 if (this.peerIp == null) {
14097 sb.append(this.peerIp);
14103 sb.append("nHops:");
14104 sb.append(this.nHops);
14107 return sb.toString();
14110 public void validate() throws org.apache.thrift.TException {
14111 // check for required fields
14112 // check for sub-struct validity
14115 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14117 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14118 } catch (org.apache.thrift.TException te) {
14119 throw new java.io.IOException(te);
14123 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14125 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14126 __isset_bitfield = 0;
14127 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14128 } catch (org.apache.thrift.TException te) {
14129 throw new java.io.IOException(te);
14133 private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14135 public setEbgpMultihop_argsStandardScheme getScheme() {
14136 return new setEbgpMultihop_argsStandardScheme();
14140 private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
14143 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14144 org.apache.thrift.protocol.TField schemeField;
14145 iprot.readStructBegin();
14148 schemeField = iprot.readFieldBegin();
14149 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14152 switch (schemeField.id) {
14154 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14155 struct.peerIp = iprot.readString();
14156 struct.setPeerIpIsSet(true);
14158 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14162 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14163 struct.nHops = iprot.readI32();
14164 struct.setNHopsIsSet(true);
14166 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14170 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14172 iprot.readFieldEnd();
14174 iprot.readStructEnd();
14176 // check for required fields of primitive type, which can't be checked in the validate method
14181 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14184 oprot.writeStructBegin(STRUCT_DESC);
14185 if (struct.peerIp != null) {
14186 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14187 oprot.writeString(struct.peerIp);
14188 oprot.writeFieldEnd();
14190 oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
14191 oprot.writeI32(struct.nHops);
14192 oprot.writeFieldEnd();
14193 oprot.writeFieldStop();
14194 oprot.writeStructEnd();
14199 private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14201 public setEbgpMultihop_argsTupleScheme getScheme() {
14202 return new setEbgpMultihop_argsTupleScheme();
14206 private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
14209 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14210 TTupleProtocol oprot = (TTupleProtocol) prot;
14211 BitSet optionals = new BitSet();
14212 if (struct.isSetPeerIp()) {
14215 if (struct.isSetNHops()) {
14218 oprot.writeBitSet(optionals, 2);
14219 if (struct.isSetPeerIp()) {
14220 oprot.writeString(struct.peerIp);
14222 if (struct.isSetNHops()) {
14223 oprot.writeI32(struct.nHops);
14228 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14229 TTupleProtocol iprot = (TTupleProtocol) prot;
14230 BitSet incoming = iprot.readBitSet(2);
14231 if (incoming.get(0)) {
14232 struct.peerIp = iprot.readString();
14233 struct.setPeerIpIsSet(true);
14235 if (incoming.get(1)) {
14236 struct.nHops = iprot.readI32();
14237 struct.setNHopsIsSet(true);
14244 public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result> {
14245 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
14247 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);
14249 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14251 schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
14252 schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
14255 public int success; // required
14257 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14258 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14259 SUCCESS((short)0, "success");
14261 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14264 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14265 byName.put(field.getFieldName(), field);
14270 * Find the _Fields constant that matches fieldId, or null if its not found.
14272 public static _Fields findByThriftId(int fieldId) {
14282 * Find the _Fields constant that matches fieldId, throwing an exception
14283 * if it is not found.
14285 public static _Fields findByThriftIdOrThrow(int fieldId) {
14286 _Fields fields = findByThriftId(fieldId);
14287 if (fields == null) {
14288 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14294 * Find the _Fields constant that matches name, or null if its not found.
14296 public static _Fields findByName(String name) {
14297 return byName.get(name);
14300 private final short _thriftId;
14301 private final String _fieldName;
14303 _Fields(short thriftId, String fieldName) {
14304 _thriftId = thriftId;
14305 _fieldName = fieldName;
14309 public short getThriftFieldId() {
14314 public String getFieldName() {
14319 // isset id assignments
14320 private static final int __SUCCESS_ISSET_ID = 0;
14321 private byte __isset_bitfield = 0;
14322 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14324 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14325 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14326 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14327 metaDataMap = Collections.unmodifiableMap(tmpMap);
14328 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
14331 public setEbgpMultihop_result() {
14334 public setEbgpMultihop_result(
14338 this.success = success;
14339 setSuccessIsSet(true);
14343 * Performs a deep copy on <i>other</i>.
14345 public setEbgpMultihop_result(setEbgpMultihop_result other) {
14346 __isset_bitfield = other.__isset_bitfield;
14347 this.success = other.success;
14351 public setEbgpMultihop_result deepCopy() {
14352 return new setEbgpMultihop_result(this);
14356 public void clear() {
14357 setSuccessIsSet(false);
14361 public int getSuccess() {
14362 return this.success;
14365 public setEbgpMultihop_result setSuccess(int success) {
14366 this.success = success;
14367 setSuccessIsSet(true);
14371 public void unsetSuccess() {
14372 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14375 /** Returns true if field success is set (has been assigned a value) and false otherwise */
14376 public boolean isSetSuccess() {
14377 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14380 public void setSuccessIsSet(boolean value) {
14381 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14385 public void setFieldValue(_Fields field, Object value) {
14388 if (value == null) {
14391 setSuccess((Integer)value);
14399 public Object getFieldValue(_Fields field) {
14402 return Integer.valueOf(getSuccess());
14405 throw new IllegalStateException();
14408 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14410 public boolean isSet(_Fields field) {
14411 if (field == null) {
14412 throw new IllegalArgumentException();
14417 return isSetSuccess();
14419 throw new IllegalStateException();
14423 public boolean equals(Object that) {
14424 if (that == null) {
14427 if (that instanceof setEbgpMultihop_result) {
14428 return this.equals((setEbgpMultihop_result)that);
14433 public boolean equals(setEbgpMultihop_result that) {
14434 if (that == null) {
14438 boolean this_present_success = true;
14439 boolean that_present_success = true;
14440 if (this_present_success || that_present_success) {
14441 if (!(this_present_success && that_present_success)) {
14444 if (this.success != that.success) {
14453 public int hashCode() {
14454 List<Object> list = new ArrayList<Object>();
14456 boolean present_success = true;
14457 list.add(present_success);
14458 if (present_success)
14460 return list.hashCode();
14464 public int compareTo(setEbgpMultihop_result other) {
14465 if (!getClass().equals(other.getClass())) {
14466 return getClass().getName().compareTo(other.getClass().getName());
14469 int lastComparison = 0;
14471 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14472 if (lastComparison != 0) {
14473 return lastComparison;
14475 if (isSetSuccess()) {
14476 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14477 if (lastComparison != 0) {
14478 return lastComparison;
14485 public _Fields fieldForId(int fieldId) {
14486 return _Fields.findByThriftId(fieldId);
14490 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14491 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14495 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14496 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14500 public String toString() {
14501 StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
14502 boolean first = true;
14504 sb.append("success:");
14505 sb.append(this.success);
14508 return sb.toString();
14511 public void validate() throws org.apache.thrift.TException {
14512 // check for required fields
14513 // check for sub-struct validity
14516 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14518 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14519 } catch (org.apache.thrift.TException te) {
14520 throw new java.io.IOException(te);
14524 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14526 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14527 __isset_bitfield = 0;
14528 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14529 } catch (org.apache.thrift.TException te) {
14530 throw new java.io.IOException(te);
14534 private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
14536 public setEbgpMultihop_resultStandardScheme getScheme() {
14537 return new setEbgpMultihop_resultStandardScheme();
14541 private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
14544 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14545 org.apache.thrift.protocol.TField schemeField;
14546 iprot.readStructBegin();
14549 schemeField = iprot.readFieldBegin();
14550 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14553 switch (schemeField.id) {
14555 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14556 struct.success = iprot.readI32();
14557 struct.setSuccessIsSet(true);
14559 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14563 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14565 iprot.readFieldEnd();
14567 iprot.readStructEnd();
14569 // check for required fields of primitive type, which can't be checked in the validate method
14574 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14577 oprot.writeStructBegin(STRUCT_DESC);
14578 if (struct.isSetSuccess()) {
14579 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14580 oprot.writeI32(struct.success);
14581 oprot.writeFieldEnd();
14583 oprot.writeFieldStop();
14584 oprot.writeStructEnd();
14589 private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
14591 public setEbgpMultihop_resultTupleScheme getScheme() {
14592 return new setEbgpMultihop_resultTupleScheme();
14596 private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
14599 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14600 TTupleProtocol oprot = (TTupleProtocol) prot;
14601 BitSet optionals = new BitSet();
14602 if (struct.isSetSuccess()) {
14605 oprot.writeBitSet(optionals, 1);
14606 if (struct.isSetSuccess()) {
14607 oprot.writeI32(struct.success);
14612 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14613 TTupleProtocol iprot = (TTupleProtocol) prot;
14614 BitSet incoming = iprot.readBitSet(1);
14615 if (incoming.get(0)) {
14616 struct.success = iprot.readI32();
14617 struct.setSuccessIsSet(true);
14624 public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args> {
14625 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
14627 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);
14629 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14631 schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
14632 schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
14635 public String peerIp; // required
14637 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14638 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14639 PEER_IP((short)1, "peerIp");
14641 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14644 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14645 byName.put(field.getFieldName(), field);
14650 * Find the _Fields constant that matches fieldId, or null if its not found.
14652 public static _Fields findByThriftId(int fieldId) {
14662 * Find the _Fields constant that matches fieldId, throwing an exception
14663 * if it is not found.
14665 public static _Fields findByThriftIdOrThrow(int fieldId) {
14666 _Fields fields = findByThriftId(fieldId);
14667 if (fields == null) {
14668 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14674 * Find the _Fields constant that matches name, or null if its not found.
14676 public static _Fields findByName(String name) {
14677 return byName.get(name);
14680 private final short _thriftId;
14681 private final String _fieldName;
14683 _Fields(short thriftId, String fieldName) {
14684 _thriftId = thriftId;
14685 _fieldName = fieldName;
14689 public short getThriftFieldId() {
14694 public String getFieldName() {
14699 // isset id assignments
14700 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14702 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14703 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
14704 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14705 metaDataMap = Collections.unmodifiableMap(tmpMap);
14706 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
14709 public unsetEbgpMultihop_args() {
14712 public unsetEbgpMultihop_args(
14716 this.peerIp = peerIp;
14720 * Performs a deep copy on <i>other</i>.
14722 public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
14723 if (other.isSetPeerIp()) {
14724 this.peerIp = other.peerIp;
14729 public unsetEbgpMultihop_args deepCopy() {
14730 return new unsetEbgpMultihop_args(this);
14734 public void clear() {
14735 this.peerIp = null;
14738 public String getPeerIp() {
14739 return this.peerIp;
14742 public unsetEbgpMultihop_args setPeerIp(String peerIp) {
14743 this.peerIp = peerIp;
14747 public void unsetPeerIp() {
14748 this.peerIp = null;
14751 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14752 public boolean isSetPeerIp() {
14753 return this.peerIp != null;
14756 public void setPeerIpIsSet(boolean value) {
14758 this.peerIp = null;
14763 public void setFieldValue(_Fields field, Object value) {
14766 if (value == null) {
14769 setPeerIp((String)value);
14777 public Object getFieldValue(_Fields field) {
14780 return getPeerIp();
14783 throw new IllegalStateException();
14786 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14788 public boolean isSet(_Fields field) {
14789 if (field == null) {
14790 throw new IllegalArgumentException();
14795 return isSetPeerIp();
14797 throw new IllegalStateException();
14801 public boolean equals(Object that) {
14802 if (that == null) {
14805 if (that instanceof unsetEbgpMultihop_args) {
14806 return this.equals((unsetEbgpMultihop_args)that);
14811 public boolean equals(unsetEbgpMultihop_args that) {
14812 if (that == null) {
14816 boolean this_present_peerIp = true && this.isSetPeerIp();
14817 boolean that_present_peerIp = true && that.isSetPeerIp();
14818 if (this_present_peerIp || that_present_peerIp) {
14819 if (!(this_present_peerIp && that_present_peerIp)) {
14822 if (!this.peerIp.equals(that.peerIp)) {
14831 public int hashCode() {
14832 List<Object> list = new ArrayList<Object>();
14834 boolean present_peerIp = true && (isSetPeerIp());
14835 list.add(present_peerIp);
14836 if (present_peerIp)
14838 return list.hashCode();
14842 public int compareTo(unsetEbgpMultihop_args other) {
14843 if (!getClass().equals(other.getClass())) {
14844 return getClass().getName().compareTo(other.getClass().getName());
14847 int lastComparison = 0;
14849 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14850 if (lastComparison != 0) {
14851 return lastComparison;
14853 if (isSetPeerIp()) {
14854 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14855 if (lastComparison != 0) {
14856 return lastComparison;
14863 public _Fields fieldForId(int fieldId) {
14864 return _Fields.findByThriftId(fieldId);
14868 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14869 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14873 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14874 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14878 public String toString() {
14879 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
14880 boolean first = true;
14882 sb.append("peerIp:");
14883 if (this.peerIp == null) {
14886 sb.append(this.peerIp);
14890 return sb.toString();
14893 public void validate() throws org.apache.thrift.TException {
14894 // check for required fields
14895 // check for sub-struct validity
14898 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14900 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14901 } catch (org.apache.thrift.TException te) {
14902 throw new java.io.IOException(te);
14906 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14908 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14909 } catch (org.apache.thrift.TException te) {
14910 throw new java.io.IOException(te);
14914 private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14916 public unsetEbgpMultihop_argsStandardScheme getScheme() {
14917 return new unsetEbgpMultihop_argsStandardScheme();
14921 private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
14924 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14925 org.apache.thrift.protocol.TField schemeField;
14926 iprot.readStructBegin();
14929 schemeField = iprot.readFieldBegin();
14930 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14933 switch (schemeField.id) {
14935 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14936 struct.peerIp = iprot.readString();
14937 struct.setPeerIpIsSet(true);
14939 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14943 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14945 iprot.readFieldEnd();
14947 iprot.readStructEnd();
14949 // check for required fields of primitive type, which can't be checked in the validate method
14954 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14957 oprot.writeStructBegin(STRUCT_DESC);
14958 if (struct.peerIp != null) {
14959 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14960 oprot.writeString(struct.peerIp);
14961 oprot.writeFieldEnd();
14963 oprot.writeFieldStop();
14964 oprot.writeStructEnd();
14969 private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14971 public unsetEbgpMultihop_argsTupleScheme getScheme() {
14972 return new unsetEbgpMultihop_argsTupleScheme();
14976 private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
14979 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14980 TTupleProtocol oprot = (TTupleProtocol) prot;
14981 BitSet optionals = new BitSet();
14982 if (struct.isSetPeerIp()) {
14985 oprot.writeBitSet(optionals, 1);
14986 if (struct.isSetPeerIp()) {
14987 oprot.writeString(struct.peerIp);
14992 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
14993 TTupleProtocol iprot = (TTupleProtocol) prot;
14994 BitSet incoming = iprot.readBitSet(1);
14995 if (incoming.get(0)) {
14996 struct.peerIp = iprot.readString();
14997 struct.setPeerIpIsSet(true);
15004 public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result> {
15005 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
15007 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);
15009 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15011 schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
15012 schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
15015 public int success; // required
15017 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15018 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15019 SUCCESS((short)0, "success");
15021 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15024 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15025 byName.put(field.getFieldName(), field);
15030 * Find the _Fields constant that matches fieldId, or null if its not found.
15032 public static _Fields findByThriftId(int fieldId) {
15042 * Find the _Fields constant that matches fieldId, throwing an exception
15043 * if it is not found.
15045 public static _Fields findByThriftIdOrThrow(int fieldId) {
15046 _Fields fields = findByThriftId(fieldId);
15047 if (fields == null) {
15048 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15054 * Find the _Fields constant that matches name, or null if its not found.
15056 public static _Fields findByName(String name) {
15057 return byName.get(name);
15060 private final short _thriftId;
15061 private final String _fieldName;
15063 _Fields(short thriftId, String fieldName) {
15064 _thriftId = thriftId;
15065 _fieldName = fieldName;
15069 public short getThriftFieldId() {
15074 public String getFieldName() {
15079 // isset id assignments
15080 private static final int __SUCCESS_ISSET_ID = 0;
15081 private byte __isset_bitfield = 0;
15082 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15084 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15085 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15086 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15087 metaDataMap = Collections.unmodifiableMap(tmpMap);
15088 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
15091 public unsetEbgpMultihop_result() {
15094 public unsetEbgpMultihop_result(
15098 this.success = success;
15099 setSuccessIsSet(true);
15103 * Performs a deep copy on <i>other</i>.
15105 public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
15106 __isset_bitfield = other.__isset_bitfield;
15107 this.success = other.success;
15111 public unsetEbgpMultihop_result deepCopy() {
15112 return new unsetEbgpMultihop_result(this);
15116 public void clear() {
15117 setSuccessIsSet(false);
15121 public int getSuccess() {
15122 return this.success;
15125 public unsetEbgpMultihop_result setSuccess(int success) {
15126 this.success = success;
15127 setSuccessIsSet(true);
15131 public void unsetSuccess() {
15132 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15135 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15136 public boolean isSetSuccess() {
15137 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15140 public void setSuccessIsSet(boolean value) {
15141 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15145 public void setFieldValue(_Fields field, Object value) {
15148 if (value == null) {
15151 setSuccess((Integer)value);
15159 public Object getFieldValue(_Fields field) {
15162 return Integer.valueOf(getSuccess());
15165 throw new IllegalStateException();
15168 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15170 public boolean isSet(_Fields field) {
15171 if (field == null) {
15172 throw new IllegalArgumentException();
15177 return isSetSuccess();
15179 throw new IllegalStateException();
15183 public boolean equals(Object that) {
15184 if (that == null) {
15187 if (that instanceof unsetEbgpMultihop_result) {
15188 return this.equals((unsetEbgpMultihop_result)that);
15193 public boolean equals(unsetEbgpMultihop_result that) {
15194 if (that == null) {
15198 boolean this_present_success = true;
15199 boolean that_present_success = true;
15200 if (this_present_success || that_present_success) {
15201 if (!(this_present_success && that_present_success)) {
15204 if (this.success != that.success) {
15213 public int hashCode() {
15214 List<Object> list = new ArrayList<Object>();
15216 boolean present_success = true;
15217 list.add(present_success);
15218 if (present_success)
15220 return list.hashCode();
15224 public int compareTo(unsetEbgpMultihop_result other) {
15225 if (!getClass().equals(other.getClass())) {
15226 return getClass().getName().compareTo(other.getClass().getName());
15229 int lastComparison = 0;
15231 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15232 if (lastComparison != 0) {
15233 return lastComparison;
15235 if (isSetSuccess()) {
15236 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15237 if (lastComparison != 0) {
15238 return lastComparison;
15245 public _Fields fieldForId(int fieldId) {
15246 return _Fields.findByThriftId(fieldId);
15250 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15251 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15255 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15256 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15260 public String toString() {
15261 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
15262 boolean first = true;
15264 sb.append("success:");
15265 sb.append(this.success);
15268 return sb.toString();
15271 public void validate() throws org.apache.thrift.TException {
15272 // check for required fields
15273 // check for sub-struct validity
15276 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15278 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15279 } catch (org.apache.thrift.TException te) {
15280 throw new java.io.IOException(te);
15284 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15286 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15287 __isset_bitfield = 0;
15288 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15289 } catch (org.apache.thrift.TException te) {
15290 throw new java.io.IOException(te);
15294 private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
15296 public unsetEbgpMultihop_resultStandardScheme getScheme() {
15297 return new unsetEbgpMultihop_resultStandardScheme();
15301 private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
15304 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15305 org.apache.thrift.protocol.TField schemeField;
15306 iprot.readStructBegin();
15309 schemeField = iprot.readFieldBegin();
15310 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15313 switch (schemeField.id) {
15315 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15316 struct.success = iprot.readI32();
15317 struct.setSuccessIsSet(true);
15319 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15323 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15325 iprot.readFieldEnd();
15327 iprot.readStructEnd();
15329 // check for required fields of primitive type, which can't be checked in the validate method
15334 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15337 oprot.writeStructBegin(STRUCT_DESC);
15338 if (struct.isSetSuccess()) {
15339 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15340 oprot.writeI32(struct.success);
15341 oprot.writeFieldEnd();
15343 oprot.writeFieldStop();
15344 oprot.writeStructEnd();
15349 private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15351 public unsetEbgpMultihop_resultTupleScheme getScheme() {
15352 return new unsetEbgpMultihop_resultTupleScheme();
15356 private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
15359 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15360 TTupleProtocol oprot = (TTupleProtocol) prot;
15361 BitSet optionals = new BitSet();
15362 if (struct.isSetSuccess()) {
15365 oprot.writeBitSet(optionals, 1);
15366 if (struct.isSetSuccess()) {
15367 oprot.writeI32(struct.success);
15372 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15373 TTupleProtocol iprot = (TTupleProtocol) prot;
15374 BitSet incoming = iprot.readBitSet(1);
15375 if (incoming.get(0)) {
15376 struct.success = iprot.readI32();
15377 struct.setSuccessIsSet(true);
15384 public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args> {
15385 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
15387 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);
15388 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);
15390 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15392 schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
15393 schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
15396 public String peerIp; // required
15397 public String srcIp; // required
15399 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15400 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15401 PEER_IP((short)1, "peerIp"),
15402 SRC_IP((short)2, "srcIp");
15404 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15407 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15408 byName.put(field.getFieldName(), field);
15413 * Find the _Fields constant that matches fieldId, or null if its not found.
15415 public static _Fields findByThriftId(int fieldId) {
15427 * Find the _Fields constant that matches fieldId, throwing an exception
15428 * if it is not found.
15430 public static _Fields findByThriftIdOrThrow(int fieldId) {
15431 _Fields fields = findByThriftId(fieldId);
15432 if (fields == null) {
15433 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15439 * Find the _Fields constant that matches name, or null if its not found.
15441 public static _Fields findByName(String name) {
15442 return byName.get(name);
15445 private final short _thriftId;
15446 private final String _fieldName;
15448 _Fields(short thriftId, String fieldName) {
15449 _thriftId = thriftId;
15450 _fieldName = fieldName;
15454 public short getThriftFieldId() {
15459 public String getFieldName() {
15464 // isset id assignments
15465 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15467 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15468 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15469 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15470 tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15471 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15472 metaDataMap = Collections.unmodifiableMap(tmpMap);
15473 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
15476 public setUpdateSource_args() {
15479 public setUpdateSource_args(
15484 this.peerIp = peerIp;
15485 this.srcIp = srcIp;
15489 * Performs a deep copy on <i>other</i>.
15491 public setUpdateSource_args(setUpdateSource_args other) {
15492 if (other.isSetPeerIp()) {
15493 this.peerIp = other.peerIp;
15495 if (other.isSetSrcIp()) {
15496 this.srcIp = other.srcIp;
15501 public setUpdateSource_args deepCopy() {
15502 return new setUpdateSource_args(this);
15506 public void clear() {
15507 this.peerIp = null;
15511 public String getPeerIp() {
15512 return this.peerIp;
15515 public setUpdateSource_args setPeerIp(String peerIp) {
15516 this.peerIp = peerIp;
15520 public void unsetPeerIp() {
15521 this.peerIp = null;
15524 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15525 public boolean isSetPeerIp() {
15526 return this.peerIp != null;
15529 public void setPeerIpIsSet(boolean value) {
15531 this.peerIp = null;
15535 public String getSrcIp() {
15539 public setUpdateSource_args setSrcIp(String srcIp) {
15540 this.srcIp = srcIp;
15544 public void unsetSrcIp() {
15548 /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
15549 public boolean isSetSrcIp() {
15550 return this.srcIp != null;
15553 public void setSrcIpIsSet(boolean value) {
15560 public void setFieldValue(_Fields field, Object value) {
15563 if (value == null) {
15566 setPeerIp((String)value);
15571 if (value == null) {
15574 setSrcIp((String)value);
15582 public Object getFieldValue(_Fields field) {
15585 return getPeerIp();
15591 throw new IllegalStateException();
15594 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15596 public boolean isSet(_Fields field) {
15597 if (field == null) {
15598 throw new IllegalArgumentException();
15603 return isSetPeerIp();
15605 return isSetSrcIp();
15607 throw new IllegalStateException();
15611 public boolean equals(Object that) {
15612 if (that == null) {
15615 if (that instanceof setUpdateSource_args) {
15616 return this.equals((setUpdateSource_args)that);
15621 public boolean equals(setUpdateSource_args that) {
15622 if (that == null) {
15626 boolean this_present_peerIp = true && this.isSetPeerIp();
15627 boolean that_present_peerIp = true && that.isSetPeerIp();
15628 if (this_present_peerIp || that_present_peerIp) {
15629 if (!(this_present_peerIp && that_present_peerIp)) {
15632 if (!this.peerIp.equals(that.peerIp)) {
15637 boolean this_present_srcIp = true && this.isSetSrcIp();
15638 boolean that_present_srcIp = true && that.isSetSrcIp();
15639 if (this_present_srcIp || that_present_srcIp) {
15640 if (!(this_present_srcIp && that_present_srcIp)) {
15643 if (!this.srcIp.equals(that.srcIp)) {
15652 public int hashCode() {
15653 List<Object> list = new ArrayList<Object>();
15655 boolean present_peerIp = true && (isSetPeerIp());
15656 list.add(present_peerIp);
15657 if (present_peerIp)
15659 boolean present_srcIp = true && (isSetSrcIp());
15660 list.add(present_srcIp);
15663 return list.hashCode();
15667 public int compareTo(setUpdateSource_args other) {
15668 if (!getClass().equals(other.getClass())) {
15669 return getClass().getName().compareTo(other.getClass().getName());
15672 int lastComparison = 0;
15674 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15675 if (lastComparison != 0) {
15676 return lastComparison;
15678 if (isSetPeerIp()) {
15679 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15680 if (lastComparison != 0) {
15681 return lastComparison;
15684 lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
15685 if (lastComparison != 0) {
15686 return lastComparison;
15688 if (isSetSrcIp()) {
15689 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
15690 if (lastComparison != 0) {
15691 return lastComparison;
15698 public _Fields fieldForId(int fieldId) {
15699 return _Fields.findByThriftId(fieldId);
15703 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15704 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15708 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15709 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15713 public String toString() {
15714 StringBuilder sb = new StringBuilder("setUpdateSource_args(");
15715 boolean first = true;
15717 sb.append("peerIp:");
15718 if (this.peerIp == null) {
15721 sb.append(this.peerIp);
15727 sb.append("srcIp:");
15728 if (this.srcIp == null) {
15731 sb.append(this.srcIp);
15735 return sb.toString();
15738 public void validate() throws org.apache.thrift.TException {
15739 // check for required fields
15740 // check for sub-struct validity
15743 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15745 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15746 } catch (org.apache.thrift.TException te) {
15747 throw new java.io.IOException(te);
15751 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15753 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15754 } catch (org.apache.thrift.TException te) {
15755 throw new java.io.IOException(te);
15759 private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
15761 public setUpdateSource_argsStandardScheme getScheme() {
15762 return new setUpdateSource_argsStandardScheme();
15766 private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
15769 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15770 org.apache.thrift.protocol.TField schemeField;
15771 iprot.readStructBegin();
15774 schemeField = iprot.readFieldBegin();
15775 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15778 switch (schemeField.id) {
15780 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15781 struct.peerIp = iprot.readString();
15782 struct.setPeerIpIsSet(true);
15784 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15788 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15789 struct.srcIp = iprot.readString();
15790 struct.setSrcIpIsSet(true);
15792 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15796 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15798 iprot.readFieldEnd();
15800 iprot.readStructEnd();
15802 // check for required fields of primitive type, which can't be checked in the validate method
15807 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15810 oprot.writeStructBegin(STRUCT_DESC);
15811 if (struct.peerIp != null) {
15812 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15813 oprot.writeString(struct.peerIp);
15814 oprot.writeFieldEnd();
15816 if (struct.srcIp != null) {
15817 oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
15818 oprot.writeString(struct.srcIp);
15819 oprot.writeFieldEnd();
15821 oprot.writeFieldStop();
15822 oprot.writeStructEnd();
15827 private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
15829 public setUpdateSource_argsTupleScheme getScheme() {
15830 return new setUpdateSource_argsTupleScheme();
15834 private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
15837 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15838 TTupleProtocol oprot = (TTupleProtocol) prot;
15839 BitSet optionals = new BitSet();
15840 if (struct.isSetPeerIp()) {
15843 if (struct.isSetSrcIp()) {
15846 oprot.writeBitSet(optionals, 2);
15847 if (struct.isSetPeerIp()) {
15848 oprot.writeString(struct.peerIp);
15850 if (struct.isSetSrcIp()) {
15851 oprot.writeString(struct.srcIp);
15856 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
15857 TTupleProtocol iprot = (TTupleProtocol) prot;
15858 BitSet incoming = iprot.readBitSet(2);
15859 if (incoming.get(0)) {
15860 struct.peerIp = iprot.readString();
15861 struct.setPeerIpIsSet(true);
15863 if (incoming.get(1)) {
15864 struct.srcIp = iprot.readString();
15865 struct.setSrcIpIsSet(true);
15872 public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result> {
15873 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
15875 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);
15877 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15879 schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
15880 schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
15883 public int success; // required
15885 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15886 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15887 SUCCESS((short)0, "success");
15889 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15892 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15893 byName.put(field.getFieldName(), field);
15898 * Find the _Fields constant that matches fieldId, or null if its not found.
15900 public static _Fields findByThriftId(int fieldId) {
15910 * Find the _Fields constant that matches fieldId, throwing an exception
15911 * if it is not found.
15913 public static _Fields findByThriftIdOrThrow(int fieldId) {
15914 _Fields fields = findByThriftId(fieldId);
15915 if (fields == null) {
15916 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15922 * Find the _Fields constant that matches name, or null if its not found.
15924 public static _Fields findByName(String name) {
15925 return byName.get(name);
15928 private final short _thriftId;
15929 private final String _fieldName;
15931 _Fields(short thriftId, String fieldName) {
15932 _thriftId = thriftId;
15933 _fieldName = fieldName;
15937 public short getThriftFieldId() {
15942 public String getFieldName() {
15947 // isset id assignments
15948 private static final int __SUCCESS_ISSET_ID = 0;
15949 private byte __isset_bitfield = 0;
15950 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15952 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15953 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15954 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15955 metaDataMap = Collections.unmodifiableMap(tmpMap);
15956 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
15959 public setUpdateSource_result() {
15962 public setUpdateSource_result(
15966 this.success = success;
15967 setSuccessIsSet(true);
15971 * Performs a deep copy on <i>other</i>.
15973 public setUpdateSource_result(setUpdateSource_result other) {
15974 __isset_bitfield = other.__isset_bitfield;
15975 this.success = other.success;
15979 public setUpdateSource_result deepCopy() {
15980 return new setUpdateSource_result(this);
15984 public void clear() {
15985 setSuccessIsSet(false);
15989 public int getSuccess() {
15990 return this.success;
15993 public setUpdateSource_result setSuccess(int success) {
15994 this.success = success;
15995 setSuccessIsSet(true);
15999 public void unsetSuccess() {
16000 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16003 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16004 public boolean isSetSuccess() {
16005 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16008 public void setSuccessIsSet(boolean value) {
16009 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16013 public void setFieldValue(_Fields field, Object value) {
16016 if (value == null) {
16019 setSuccess((Integer)value);
16027 public Object getFieldValue(_Fields field) {
16030 return Integer.valueOf(getSuccess());
16033 throw new IllegalStateException();
16036 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16038 public boolean isSet(_Fields field) {
16039 if (field == null) {
16040 throw new IllegalArgumentException();
16045 return isSetSuccess();
16047 throw new IllegalStateException();
16051 public boolean equals(Object that) {
16052 if (that == null) {
16055 if (that instanceof setUpdateSource_result) {
16056 return this.equals((setUpdateSource_result)that);
16061 public boolean equals(setUpdateSource_result that) {
16062 if (that == null) {
16066 boolean this_present_success = true;
16067 boolean that_present_success = true;
16068 if (this_present_success || that_present_success) {
16069 if (!(this_present_success && that_present_success)) {
16072 if (this.success != that.success) {
16081 public int hashCode() {
16082 List<Object> list = new ArrayList<Object>();
16084 boolean present_success = true;
16085 list.add(present_success);
16086 if (present_success)
16088 return list.hashCode();
16092 public int compareTo(setUpdateSource_result other) {
16093 if (!getClass().equals(other.getClass())) {
16094 return getClass().getName().compareTo(other.getClass().getName());
16097 int lastComparison = 0;
16099 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16100 if (lastComparison != 0) {
16101 return lastComparison;
16103 if (isSetSuccess()) {
16104 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16105 if (lastComparison != 0) {
16106 return lastComparison;
16113 public _Fields fieldForId(int fieldId) {
16114 return _Fields.findByThriftId(fieldId);
16118 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16119 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16123 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16124 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16128 public String toString() {
16129 StringBuilder sb = new StringBuilder("setUpdateSource_result(");
16130 boolean first = true;
16132 sb.append("success:");
16133 sb.append(this.success);
16136 return sb.toString();
16139 public void validate() throws org.apache.thrift.TException {
16140 // check for required fields
16141 // check for sub-struct validity
16144 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16146 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16147 } catch (org.apache.thrift.TException te) {
16148 throw new java.io.IOException(te);
16152 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16154 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16155 __isset_bitfield = 0;
16156 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16157 } catch (org.apache.thrift.TException te) {
16158 throw new java.io.IOException(te);
16162 private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16164 public setUpdateSource_resultStandardScheme getScheme() {
16165 return new setUpdateSource_resultStandardScheme();
16169 private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
16172 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16173 org.apache.thrift.protocol.TField schemeField;
16174 iprot.readStructBegin();
16177 schemeField = iprot.readFieldBegin();
16178 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16181 switch (schemeField.id) {
16183 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16184 struct.success = iprot.readI32();
16185 struct.setSuccessIsSet(true);
16187 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16191 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16193 iprot.readFieldEnd();
16195 iprot.readStructEnd();
16197 // check for required fields of primitive type, which can't be checked in the validate method
16202 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16205 oprot.writeStructBegin(STRUCT_DESC);
16206 if (struct.isSetSuccess()) {
16207 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16208 oprot.writeI32(struct.success);
16209 oprot.writeFieldEnd();
16211 oprot.writeFieldStop();
16212 oprot.writeStructEnd();
16217 private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16219 public setUpdateSource_resultTupleScheme getScheme() {
16220 return new setUpdateSource_resultTupleScheme();
16224 private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
16227 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16228 TTupleProtocol oprot = (TTupleProtocol) prot;
16229 BitSet optionals = new BitSet();
16230 if (struct.isSetSuccess()) {
16233 oprot.writeBitSet(optionals, 1);
16234 if (struct.isSetSuccess()) {
16235 oprot.writeI32(struct.success);
16240 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16241 TTupleProtocol iprot = (TTupleProtocol) prot;
16242 BitSet incoming = iprot.readBitSet(1);
16243 if (incoming.get(0)) {
16244 struct.success = iprot.readI32();
16245 struct.setSuccessIsSet(true);
16252 public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args> {
16253 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
16255 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);
16257 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16259 schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
16260 schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
16263 public String peerIp; // required
16265 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16266 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16267 PEER_IP((short)1, "peerIp");
16269 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16272 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16273 byName.put(field.getFieldName(), field);
16278 * Find the _Fields constant that matches fieldId, or null if its not found.
16280 public static _Fields findByThriftId(int fieldId) {
16290 * Find the _Fields constant that matches fieldId, throwing an exception
16291 * if it is not found.
16293 public static _Fields findByThriftIdOrThrow(int fieldId) {
16294 _Fields fields = findByThriftId(fieldId);
16295 if (fields == null) {
16296 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16302 * Find the _Fields constant that matches name, or null if its not found.
16304 public static _Fields findByName(String name) {
16305 return byName.get(name);
16308 private final short _thriftId;
16309 private final String _fieldName;
16311 _Fields(short thriftId, String fieldName) {
16312 _thriftId = thriftId;
16313 _fieldName = fieldName;
16317 public short getThriftFieldId() {
16322 public String getFieldName() {
16327 // isset id assignments
16328 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16330 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16331 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16332 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16333 metaDataMap = Collections.unmodifiableMap(tmpMap);
16334 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
16337 public unsetUpdateSource_args() {
16340 public unsetUpdateSource_args(
16344 this.peerIp = peerIp;
16348 * Performs a deep copy on <i>other</i>.
16350 public unsetUpdateSource_args(unsetUpdateSource_args other) {
16351 if (other.isSetPeerIp()) {
16352 this.peerIp = other.peerIp;
16357 public unsetUpdateSource_args deepCopy() {
16358 return new unsetUpdateSource_args(this);
16362 public void clear() {
16363 this.peerIp = null;
16366 public String getPeerIp() {
16367 return this.peerIp;
16370 public unsetUpdateSource_args setPeerIp(String peerIp) {
16371 this.peerIp = peerIp;
16375 public void unsetPeerIp() {
16376 this.peerIp = null;
16379 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16380 public boolean isSetPeerIp() {
16381 return this.peerIp != null;
16384 public void setPeerIpIsSet(boolean value) {
16386 this.peerIp = null;
16391 public void setFieldValue(_Fields field, Object value) {
16394 if (value == null) {
16397 setPeerIp((String)value);
16405 public Object getFieldValue(_Fields field) {
16408 return getPeerIp();
16411 throw new IllegalStateException();
16414 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16416 public boolean isSet(_Fields field) {
16417 if (field == null) {
16418 throw new IllegalArgumentException();
16423 return isSetPeerIp();
16425 throw new IllegalStateException();
16429 public boolean equals(Object that) {
16430 if (that == null) {
16433 if (that instanceof unsetUpdateSource_args) {
16434 return this.equals((unsetUpdateSource_args)that);
16439 public boolean equals(unsetUpdateSource_args that) {
16440 if (that == null) {
16444 boolean this_present_peerIp = true && this.isSetPeerIp();
16445 boolean that_present_peerIp = true && that.isSetPeerIp();
16446 if (this_present_peerIp || that_present_peerIp) {
16447 if (!(this_present_peerIp && that_present_peerIp)) {
16450 if (!this.peerIp.equals(that.peerIp)) {
16459 public int hashCode() {
16460 List<Object> list = new ArrayList<Object>();
16462 boolean present_peerIp = true && (isSetPeerIp());
16463 list.add(present_peerIp);
16464 if (present_peerIp)
16466 return list.hashCode();
16470 public int compareTo(unsetUpdateSource_args other) {
16471 if (!getClass().equals(other.getClass())) {
16472 return getClass().getName().compareTo(other.getClass().getName());
16475 int lastComparison = 0;
16477 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16478 if (lastComparison != 0) {
16479 return lastComparison;
16481 if (isSetPeerIp()) {
16482 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16483 if (lastComparison != 0) {
16484 return lastComparison;
16491 public _Fields fieldForId(int fieldId) {
16492 return _Fields.findByThriftId(fieldId);
16496 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16497 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16501 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16502 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16506 public String toString() {
16507 StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
16508 boolean first = true;
16510 sb.append("peerIp:");
16511 if (this.peerIp == null) {
16514 sb.append(this.peerIp);
16518 return sb.toString();
16521 public void validate() throws org.apache.thrift.TException {
16522 // check for required fields
16523 // check for sub-struct validity
16526 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16528 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16529 } catch (org.apache.thrift.TException te) {
16530 throw new java.io.IOException(te);
16534 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16536 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16537 } catch (org.apache.thrift.TException te) {
16538 throw new java.io.IOException(te);
16542 private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16544 public unsetUpdateSource_argsStandardScheme getScheme() {
16545 return new unsetUpdateSource_argsStandardScheme();
16549 private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
16552 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16553 org.apache.thrift.protocol.TField schemeField;
16554 iprot.readStructBegin();
16557 schemeField = iprot.readFieldBegin();
16558 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16561 switch (schemeField.id) {
16563 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16564 struct.peerIp = iprot.readString();
16565 struct.setPeerIpIsSet(true);
16567 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16571 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16573 iprot.readFieldEnd();
16575 iprot.readStructEnd();
16577 // check for required fields of primitive type, which can't be checked in the validate method
16582 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16585 oprot.writeStructBegin(STRUCT_DESC);
16586 if (struct.peerIp != null) {
16587 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16588 oprot.writeString(struct.peerIp);
16589 oprot.writeFieldEnd();
16591 oprot.writeFieldStop();
16592 oprot.writeStructEnd();
16597 private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
16599 public unsetUpdateSource_argsTupleScheme getScheme() {
16600 return new unsetUpdateSource_argsTupleScheme();
16604 private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
16607 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16608 TTupleProtocol oprot = (TTupleProtocol) prot;
16609 BitSet optionals = new BitSet();
16610 if (struct.isSetPeerIp()) {
16613 oprot.writeBitSet(optionals, 1);
16614 if (struct.isSetPeerIp()) {
16615 oprot.writeString(struct.peerIp);
16620 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16621 TTupleProtocol iprot = (TTupleProtocol) prot;
16622 BitSet incoming = iprot.readBitSet(1);
16623 if (incoming.get(0)) {
16624 struct.peerIp = iprot.readString();
16625 struct.setPeerIpIsSet(true);
16632 public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result> {
16633 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
16635 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);
16637 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16639 schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
16640 schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
16643 public int success; // required
16645 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16646 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16647 SUCCESS((short)0, "success");
16649 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16652 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16653 byName.put(field.getFieldName(), field);
16658 * Find the _Fields constant that matches fieldId, or null if its not found.
16660 public static _Fields findByThriftId(int fieldId) {
16670 * Find the _Fields constant that matches fieldId, throwing an exception
16671 * if it is not found.
16673 public static _Fields findByThriftIdOrThrow(int fieldId) {
16674 _Fields fields = findByThriftId(fieldId);
16675 if (fields == null) {
16676 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16682 * Find the _Fields constant that matches name, or null if its not found.
16684 public static _Fields findByName(String name) {
16685 return byName.get(name);
16688 private final short _thriftId;
16689 private final String _fieldName;
16691 _Fields(short thriftId, String fieldName) {
16692 _thriftId = thriftId;
16693 _fieldName = fieldName;
16697 public short getThriftFieldId() {
16702 public String getFieldName() {
16707 // isset id assignments
16708 private static final int __SUCCESS_ISSET_ID = 0;
16709 private byte __isset_bitfield = 0;
16710 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16712 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16713 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16714 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16715 metaDataMap = Collections.unmodifiableMap(tmpMap);
16716 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
16719 public unsetUpdateSource_result() {
16722 public unsetUpdateSource_result(
16726 this.success = success;
16727 setSuccessIsSet(true);
16731 * Performs a deep copy on <i>other</i>.
16733 public unsetUpdateSource_result(unsetUpdateSource_result other) {
16734 __isset_bitfield = other.__isset_bitfield;
16735 this.success = other.success;
16739 public unsetUpdateSource_result deepCopy() {
16740 return new unsetUpdateSource_result(this);
16744 public void clear() {
16745 setSuccessIsSet(false);
16749 public int getSuccess() {
16750 return this.success;
16753 public unsetUpdateSource_result setSuccess(int success) {
16754 this.success = success;
16755 setSuccessIsSet(true);
16759 public void unsetSuccess() {
16760 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16763 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16764 public boolean isSetSuccess() {
16765 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16768 public void setSuccessIsSet(boolean value) {
16769 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16773 public void setFieldValue(_Fields field, Object value) {
16776 if (value == null) {
16779 setSuccess((Integer)value);
16787 public Object getFieldValue(_Fields field) {
16790 return Integer.valueOf(getSuccess());
16793 throw new IllegalStateException();
16796 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16798 public boolean isSet(_Fields field) {
16799 if (field == null) {
16800 throw new IllegalArgumentException();
16805 return isSetSuccess();
16807 throw new IllegalStateException();
16811 public boolean equals(Object that) {
16812 if (that == null) {
16815 if (that instanceof unsetUpdateSource_result) {
16816 return this.equals((unsetUpdateSource_result)that);
16821 public boolean equals(unsetUpdateSource_result that) {
16822 if (that == null) {
16826 boolean this_present_success = true;
16827 boolean that_present_success = true;
16828 if (this_present_success || that_present_success) {
16829 if (!(this_present_success && that_present_success)) {
16832 if (this.success != that.success) {
16841 public int hashCode() {
16842 List<Object> list = new ArrayList<Object>();
16844 boolean present_success = true;
16845 list.add(present_success);
16846 if (present_success)
16848 return list.hashCode();
16852 public int compareTo(unsetUpdateSource_result other) {
16853 if (!getClass().equals(other.getClass())) {
16854 return getClass().getName().compareTo(other.getClass().getName());
16857 int lastComparison = 0;
16859 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16860 if (lastComparison != 0) {
16861 return lastComparison;
16863 if (isSetSuccess()) {
16864 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16865 if (lastComparison != 0) {
16866 return lastComparison;
16873 public _Fields fieldForId(int fieldId) {
16874 return _Fields.findByThriftId(fieldId);
16878 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16879 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16883 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16884 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16888 public String toString() {
16889 StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
16890 boolean first = true;
16892 sb.append("success:");
16893 sb.append(this.success);
16896 return sb.toString();
16899 public void validate() throws org.apache.thrift.TException {
16900 // check for required fields
16901 // check for sub-struct validity
16904 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16906 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16907 } catch (org.apache.thrift.TException te) {
16908 throw new java.io.IOException(te);
16912 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16914 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16915 __isset_bitfield = 0;
16916 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16917 } catch (org.apache.thrift.TException te) {
16918 throw new java.io.IOException(te);
16922 private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16924 public unsetUpdateSource_resultStandardScheme getScheme() {
16925 return new unsetUpdateSource_resultStandardScheme();
16929 private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
16932 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16933 org.apache.thrift.protocol.TField schemeField;
16934 iprot.readStructBegin();
16937 schemeField = iprot.readFieldBegin();
16938 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16941 switch (schemeField.id) {
16943 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16944 struct.success = iprot.readI32();
16945 struct.setSuccessIsSet(true);
16947 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16951 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16953 iprot.readFieldEnd();
16955 iprot.readStructEnd();
16957 // check for required fields of primitive type, which can't be checked in the validate method
16962 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16965 oprot.writeStructBegin(STRUCT_DESC);
16966 if (struct.isSetSuccess()) {
16967 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16968 oprot.writeI32(struct.success);
16969 oprot.writeFieldEnd();
16971 oprot.writeFieldStop();
16972 oprot.writeStructEnd();
16977 private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16979 public unsetUpdateSource_resultTupleScheme getScheme() {
16980 return new unsetUpdateSource_resultTupleScheme();
16984 private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
16987 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
16988 TTupleProtocol oprot = (TTupleProtocol) prot;
16989 BitSet optionals = new BitSet();
16990 if (struct.isSetSuccess()) {
16993 oprot.writeBitSet(optionals, 1);
16994 if (struct.isSetSuccess()) {
16995 oprot.writeI32(struct.success);
17000 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17001 TTupleProtocol iprot = (TTupleProtocol) prot;
17002 BitSet incoming = iprot.readBitSet(1);
17003 if (incoming.get(0)) {
17004 struct.success = iprot.readI32();
17005 struct.setSuccessIsSet(true);
17012 public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args> {
17013 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
17015 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);
17016 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);
17017 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);
17019 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17021 schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
17022 schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
17025 public String peerIp; // required
17030 public af_afi afi; // required
17035 public af_safi safi; // required
17037 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17038 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17039 PEER_IP((short)1, "peerIp"),
17044 AFI((short)2, "afi"),
17049 SAFI((short)3, "safi");
17051 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17054 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17055 byName.put(field.getFieldName(), field);
17060 * Find the _Fields constant that matches fieldId, or null if its not found.
17062 public static _Fields findByThriftId(int fieldId) {
17076 * Find the _Fields constant that matches fieldId, throwing an exception
17077 * if it is not found.
17079 public static _Fields findByThriftIdOrThrow(int fieldId) {
17080 _Fields fields = findByThriftId(fieldId);
17081 if (fields == null) {
17082 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17088 * Find the _Fields constant that matches name, or null if its not found.
17090 public static _Fields findByName(String name) {
17091 return byName.get(name);
17094 private final short _thriftId;
17095 private final String _fieldName;
17097 _Fields(short thriftId, String fieldName) {
17098 _thriftId = thriftId;
17099 _fieldName = fieldName;
17103 public short getThriftFieldId() {
17108 public String getFieldName() {
17113 // isset id assignments
17114 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17116 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17117 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
17118 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17119 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17120 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
17121 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17122 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
17123 metaDataMap = Collections.unmodifiableMap(tmpMap);
17124 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
17127 public enableAddressFamily_args() {
17130 public enableAddressFamily_args(
17136 this.peerIp = peerIp;
17142 * Performs a deep copy on <i>other</i>.
17144 public enableAddressFamily_args(enableAddressFamily_args other) {
17145 if (other.isSetPeerIp()) {
17146 this.peerIp = other.peerIp;
17148 if (other.isSetAfi()) {
17149 this.afi = other.afi;
17151 if (other.isSetSafi()) {
17152 this.safi = other.safi;
17157 public enableAddressFamily_args deepCopy() {
17158 return new enableAddressFamily_args(this);
17162 public void clear() {
17163 this.peerIp = null;
17168 public String getPeerIp() {
17169 return this.peerIp;
17172 public enableAddressFamily_args setPeerIp(String peerIp) {
17173 this.peerIp = peerIp;
17177 public void unsetPeerIp() {
17178 this.peerIp = null;
17181 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
17182 public boolean isSetPeerIp() {
17183 return this.peerIp != null;
17186 public void setPeerIpIsSet(boolean value) {
17188 this.peerIp = null;
17196 public af_afi getAfi() {
17204 public enableAddressFamily_args setAfi(af_afi afi) {
17209 public void unsetAfi() {
17213 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
17214 public boolean isSetAfi() {
17215 return this.afi != null;
17218 public void setAfiIsSet(boolean value) {
17228 public af_safi getSafi() {
17236 public enableAddressFamily_args setSafi(af_safi safi) {
17241 public void unsetSafi() {
17245 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
17246 public boolean isSetSafi() {
17247 return this.safi != null;
17250 public void setSafiIsSet(boolean value) {
17257 public void setFieldValue(_Fields field, Object value) {
17260 if (value == null) {
17263 setPeerIp((String)value);
17268 if (value == null) {
17271 setAfi((af_afi)value);
17276 if (value == null) {
17279 setSafi((af_safi)value);
17287 public Object getFieldValue(_Fields field) {
17290 return getPeerIp();
17299 throw new IllegalStateException();
17302 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17304 public boolean isSet(_Fields field) {
17305 if (field == null) {
17306 throw new IllegalArgumentException();
17311 return isSetPeerIp();
17315 return isSetSafi();
17317 throw new IllegalStateException();
17321 public boolean equals(Object that) {
17322 if (that == null) {
17325 if (that instanceof enableAddressFamily_args) {
17326 return this.equals((enableAddressFamily_args)that);
17331 public boolean equals(enableAddressFamily_args that) {
17332 if (that == null) {
17336 boolean this_present_peerIp = true && this.isSetPeerIp();
17337 boolean that_present_peerIp = true && that.isSetPeerIp();
17338 if (this_present_peerIp || that_present_peerIp) {
17339 if (!(this_present_peerIp && that_present_peerIp)) {
17342 if (!this.peerIp.equals(that.peerIp)) {
17347 boolean this_present_afi = true && this.isSetAfi();
17348 boolean that_present_afi = true && that.isSetAfi();
17349 if (this_present_afi || that_present_afi) {
17350 if (!(this_present_afi && that_present_afi)) {
17353 if (!this.afi.equals(that.afi)) {
17358 boolean this_present_safi = true && this.isSetSafi();
17359 boolean that_present_safi = true && that.isSetSafi();
17360 if (this_present_safi || that_present_safi) {
17361 if (!(this_present_safi && that_present_safi)) {
17364 if (!this.safi.equals(that.safi)) {
17373 public int hashCode() {
17374 List<Object> list = new ArrayList<Object>();
17376 boolean present_peerIp = true && (isSetPeerIp());
17377 list.add(present_peerIp);
17378 if (present_peerIp)
17380 boolean present_afi = true && (isSetAfi());
17381 list.add(present_afi);
17383 list.add(afi.getValue());
17384 boolean present_safi = true && (isSetSafi());
17385 list.add(present_safi);
17387 list.add(safi.getValue());
17388 return list.hashCode();
17392 public int compareTo(enableAddressFamily_args other) {
17393 if (!getClass().equals(other.getClass())) {
17394 return getClass().getName().compareTo(other.getClass().getName());
17397 int lastComparison = 0;
17399 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
17400 if (lastComparison != 0) {
17401 return lastComparison;
17403 if (isSetPeerIp()) {
17404 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
17405 if (lastComparison != 0) {
17406 return lastComparison;
17409 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
17410 if (lastComparison != 0) {
17411 return lastComparison;
17414 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
17415 if (lastComparison != 0) {
17416 return lastComparison;
17419 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
17420 if (lastComparison != 0) {
17421 return lastComparison;
17424 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
17425 if (lastComparison != 0) {
17426 return lastComparison;
17433 public _Fields fieldForId(int fieldId) {
17434 return _Fields.findByThriftId(fieldId);
17438 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17439 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17443 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17444 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17448 public String toString() {
17449 StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
17450 boolean first = true;
17452 sb.append("peerIp:");
17453 if (this.peerIp == null) {
17456 sb.append(this.peerIp);
17463 if (this.afi == null) {
17466 sb.append(this.afi);
17472 sb.append("safi:");
17473 if (this.safi == null) {
17476 sb.append(this.safi);
17480 return sb.toString();
17483 public void validate() throws org.apache.thrift.TException {
17484 // check for required fields
17485 // check for sub-struct validity
17488 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17490 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17491 } catch (org.apache.thrift.TException te) {
17492 throw new java.io.IOException(te);
17496 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17498 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17499 } catch (org.apache.thrift.TException te) {
17500 throw new java.io.IOException(te);
17504 private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
17506 public enableAddressFamily_argsStandardScheme getScheme() {
17507 return new enableAddressFamily_argsStandardScheme();
17511 private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
17514 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17515 org.apache.thrift.protocol.TField schemeField;
17516 iprot.readStructBegin();
17519 schemeField = iprot.readFieldBegin();
17520 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17523 switch (schemeField.id) {
17525 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17526 struct.peerIp = iprot.readString();
17527 struct.setPeerIpIsSet(true);
17529 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17533 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17534 struct.afi = af_afi.findByValue(iprot.readI32());
17535 struct.setAfiIsSet(true);
17537 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17541 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17542 struct.safi = af_safi.findByValue(iprot.readI32());
17543 struct.setSafiIsSet(true);
17545 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17549 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17551 iprot.readFieldEnd();
17553 iprot.readStructEnd();
17555 // check for required fields of primitive type, which can't be checked in the validate method
17560 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17563 oprot.writeStructBegin(STRUCT_DESC);
17564 if (struct.peerIp != null) {
17565 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17566 oprot.writeString(struct.peerIp);
17567 oprot.writeFieldEnd();
17569 if (struct.afi != null) {
17570 oprot.writeFieldBegin(AFI_FIELD_DESC);
17571 oprot.writeI32(struct.afi.getValue());
17572 oprot.writeFieldEnd();
17574 if (struct.safi != null) {
17575 oprot.writeFieldBegin(SAFI_FIELD_DESC);
17576 oprot.writeI32(struct.safi.getValue());
17577 oprot.writeFieldEnd();
17579 oprot.writeFieldStop();
17580 oprot.writeStructEnd();
17585 private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
17587 public enableAddressFamily_argsTupleScheme getScheme() {
17588 return new enableAddressFamily_argsTupleScheme();
17592 private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
17595 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17596 TTupleProtocol oprot = (TTupleProtocol) prot;
17597 BitSet optionals = new BitSet();
17598 if (struct.isSetPeerIp()) {
17601 if (struct.isSetAfi()) {
17604 if (struct.isSetSafi()) {
17607 oprot.writeBitSet(optionals, 3);
17608 if (struct.isSetPeerIp()) {
17609 oprot.writeString(struct.peerIp);
17611 if (struct.isSetAfi()) {
17612 oprot.writeI32(struct.afi.getValue());
17614 if (struct.isSetSafi()) {
17615 oprot.writeI32(struct.safi.getValue());
17620 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17621 TTupleProtocol iprot = (TTupleProtocol) prot;
17622 BitSet incoming = iprot.readBitSet(3);
17623 if (incoming.get(0)) {
17624 struct.peerIp = iprot.readString();
17625 struct.setPeerIpIsSet(true);
17627 if (incoming.get(1)) {
17628 struct.afi = af_afi.findByValue(iprot.readI32());
17629 struct.setAfiIsSet(true);
17631 if (incoming.get(2)) {
17632 struct.safi = af_safi.findByValue(iprot.readI32());
17633 struct.setSafiIsSet(true);
17640 public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result> {
17641 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
17643 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);
17645 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17647 schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
17648 schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
17651 public int success; // required
17653 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17654 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17655 SUCCESS((short)0, "success");
17657 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17660 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17661 byName.put(field.getFieldName(), field);
17666 * Find the _Fields constant that matches fieldId, or null if its not found.
17668 public static _Fields findByThriftId(int fieldId) {
17678 * Find the _Fields constant that matches fieldId, throwing an exception
17679 * if it is not found.
17681 public static _Fields findByThriftIdOrThrow(int fieldId) {
17682 _Fields fields = findByThriftId(fieldId);
17683 if (fields == null) {
17684 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17690 * Find the _Fields constant that matches name, or null if its not found.
17692 public static _Fields findByName(String name) {
17693 return byName.get(name);
17696 private final short _thriftId;
17697 private final String _fieldName;
17699 _Fields(short thriftId, String fieldName) {
17700 _thriftId = thriftId;
17701 _fieldName = fieldName;
17705 public short getThriftFieldId() {
17710 public String getFieldName() {
17715 // isset id assignments
17716 private static final int __SUCCESS_ISSET_ID = 0;
17717 private byte __isset_bitfield = 0;
17718 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17720 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17721 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17722 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17723 metaDataMap = Collections.unmodifiableMap(tmpMap);
17724 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
17727 public enableAddressFamily_result() {
17730 public enableAddressFamily_result(
17734 this.success = success;
17735 setSuccessIsSet(true);
17739 * Performs a deep copy on <i>other</i>.
17741 public enableAddressFamily_result(enableAddressFamily_result other) {
17742 __isset_bitfield = other.__isset_bitfield;
17743 this.success = other.success;
17747 public enableAddressFamily_result deepCopy() {
17748 return new enableAddressFamily_result(this);
17752 public void clear() {
17753 setSuccessIsSet(false);
17757 public int getSuccess() {
17758 return this.success;
17761 public enableAddressFamily_result setSuccess(int success) {
17762 this.success = success;
17763 setSuccessIsSet(true);
17767 public void unsetSuccess() {
17768 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17771 /** Returns true if field success is set (has been assigned a value) and false otherwise */
17772 public boolean isSetSuccess() {
17773 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17776 public void setSuccessIsSet(boolean value) {
17777 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17781 public void setFieldValue(_Fields field, Object value) {
17784 if (value == null) {
17787 setSuccess((Integer)value);
17795 public Object getFieldValue(_Fields field) {
17798 return Integer.valueOf(getSuccess());
17801 throw new IllegalStateException();
17804 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17806 public boolean isSet(_Fields field) {
17807 if (field == null) {
17808 throw new IllegalArgumentException();
17813 return isSetSuccess();
17815 throw new IllegalStateException();
17819 public boolean equals(Object that) {
17820 if (that == null) {
17823 if (that instanceof enableAddressFamily_result) {
17824 return this.equals((enableAddressFamily_result)that);
17829 public boolean equals(enableAddressFamily_result that) {
17830 if (that == null) {
17834 boolean this_present_success = true;
17835 boolean that_present_success = true;
17836 if (this_present_success || that_present_success) {
17837 if (!(this_present_success && that_present_success)) {
17840 if (this.success != that.success) {
17849 public int hashCode() {
17850 List<Object> list = new ArrayList<Object>();
17852 boolean present_success = true;
17853 list.add(present_success);
17854 if (present_success)
17856 return list.hashCode();
17860 public int compareTo(enableAddressFamily_result other) {
17861 if (!getClass().equals(other.getClass())) {
17862 return getClass().getName().compareTo(other.getClass().getName());
17865 int lastComparison = 0;
17867 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17868 if (lastComparison != 0) {
17869 return lastComparison;
17871 if (isSetSuccess()) {
17872 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17873 if (lastComparison != 0) {
17874 return lastComparison;
17881 public _Fields fieldForId(int fieldId) {
17882 return _Fields.findByThriftId(fieldId);
17886 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17887 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17891 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17892 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17896 public String toString() {
17897 StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
17898 boolean first = true;
17900 sb.append("success:");
17901 sb.append(this.success);
17904 return sb.toString();
17907 public void validate() throws org.apache.thrift.TException {
17908 // check for required fields
17909 // check for sub-struct validity
17912 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17914 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17915 } catch (org.apache.thrift.TException te) {
17916 throw new java.io.IOException(te);
17920 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17922 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17923 __isset_bitfield = 0;
17924 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17925 } catch (org.apache.thrift.TException te) {
17926 throw new java.io.IOException(te);
17930 private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
17932 public enableAddressFamily_resultStandardScheme getScheme() {
17933 return new enableAddressFamily_resultStandardScheme();
17937 private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
17940 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17941 org.apache.thrift.protocol.TField schemeField;
17942 iprot.readStructBegin();
17945 schemeField = iprot.readFieldBegin();
17946 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17949 switch (schemeField.id) {
17951 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17952 struct.success = iprot.readI32();
17953 struct.setSuccessIsSet(true);
17955 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17959 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17961 iprot.readFieldEnd();
17963 iprot.readStructEnd();
17965 // check for required fields of primitive type, which can't be checked in the validate method
17970 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17973 oprot.writeStructBegin(STRUCT_DESC);
17974 if (struct.isSetSuccess()) {
17975 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17976 oprot.writeI32(struct.success);
17977 oprot.writeFieldEnd();
17979 oprot.writeFieldStop();
17980 oprot.writeStructEnd();
17985 private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
17987 public enableAddressFamily_resultTupleScheme getScheme() {
17988 return new enableAddressFamily_resultTupleScheme();
17992 private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
17995 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
17996 TTupleProtocol oprot = (TTupleProtocol) prot;
17997 BitSet optionals = new BitSet();
17998 if (struct.isSetSuccess()) {
18001 oprot.writeBitSet(optionals, 1);
18002 if (struct.isSetSuccess()) {
18003 oprot.writeI32(struct.success);
18008 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18009 TTupleProtocol iprot = (TTupleProtocol) prot;
18010 BitSet incoming = iprot.readBitSet(1);
18011 if (incoming.get(0)) {
18012 struct.success = iprot.readI32();
18013 struct.setSuccessIsSet(true);
18020 public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args> {
18021 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
18023 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);
18024 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);
18025 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);
18027 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18029 schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
18030 schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
18033 public String peerIp; // required
18038 public af_afi afi; // required
18043 public af_safi safi; // required
18045 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18046 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18047 PEER_IP((short)1, "peerIp"),
18052 AFI((short)2, "afi"),
18057 SAFI((short)3, "safi");
18059 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18062 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18063 byName.put(field.getFieldName(), field);
18068 * Find the _Fields constant that matches fieldId, or null if its not found.
18070 public static _Fields findByThriftId(int fieldId) {
18084 * Find the _Fields constant that matches fieldId, throwing an exception
18085 * if it is not found.
18087 public static _Fields findByThriftIdOrThrow(int fieldId) {
18088 _Fields fields = findByThriftId(fieldId);
18089 if (fields == null) {
18090 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18096 * Find the _Fields constant that matches name, or null if its not found.
18098 public static _Fields findByName(String name) {
18099 return byName.get(name);
18102 private final short _thriftId;
18103 private final String _fieldName;
18105 _Fields(short thriftId, String fieldName) {
18106 _thriftId = thriftId;
18107 _fieldName = fieldName;
18111 public short getThriftFieldId() {
18116 public String getFieldName() {
18121 // isset id assignments
18122 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18124 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18125 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
18126 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18127 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18128 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
18129 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18130 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
18131 metaDataMap = Collections.unmodifiableMap(tmpMap);
18132 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
18135 public disableAddressFamily_args() {
18138 public disableAddressFamily_args(
18144 this.peerIp = peerIp;
18150 * Performs a deep copy on <i>other</i>.
18152 public disableAddressFamily_args(disableAddressFamily_args other) {
18153 if (other.isSetPeerIp()) {
18154 this.peerIp = other.peerIp;
18156 if (other.isSetAfi()) {
18157 this.afi = other.afi;
18159 if (other.isSetSafi()) {
18160 this.safi = other.safi;
18165 public disableAddressFamily_args deepCopy() {
18166 return new disableAddressFamily_args(this);
18170 public void clear() {
18171 this.peerIp = null;
18176 public String getPeerIp() {
18177 return this.peerIp;
18180 public disableAddressFamily_args setPeerIp(String peerIp) {
18181 this.peerIp = peerIp;
18185 public void unsetPeerIp() {
18186 this.peerIp = null;
18189 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
18190 public boolean isSetPeerIp() {
18191 return this.peerIp != null;
18194 public void setPeerIpIsSet(boolean value) {
18196 this.peerIp = null;
18204 public af_afi getAfi() {
18212 public disableAddressFamily_args setAfi(af_afi afi) {
18217 public void unsetAfi() {
18221 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
18222 public boolean isSetAfi() {
18223 return this.afi != null;
18226 public void setAfiIsSet(boolean value) {
18236 public af_safi getSafi() {
18244 public disableAddressFamily_args setSafi(af_safi safi) {
18249 public void unsetSafi() {
18253 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
18254 public boolean isSetSafi() {
18255 return this.safi != null;
18258 public void setSafiIsSet(boolean value) {
18265 public void setFieldValue(_Fields field, Object value) {
18268 if (value == null) {
18271 setPeerIp((String)value);
18276 if (value == null) {
18279 setAfi((af_afi)value);
18284 if (value == null) {
18287 setSafi((af_safi)value);
18295 public Object getFieldValue(_Fields field) {
18298 return getPeerIp();
18307 throw new IllegalStateException();
18310 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18312 public boolean isSet(_Fields field) {
18313 if (field == null) {
18314 throw new IllegalArgumentException();
18319 return isSetPeerIp();
18323 return isSetSafi();
18325 throw new IllegalStateException();
18329 public boolean equals(Object that) {
18330 if (that == null) {
18333 if (that instanceof disableAddressFamily_args) {
18334 return this.equals((disableAddressFamily_args)that);
18339 public boolean equals(disableAddressFamily_args that) {
18340 if (that == null) {
18344 boolean this_present_peerIp = true && this.isSetPeerIp();
18345 boolean that_present_peerIp = true && that.isSetPeerIp();
18346 if (this_present_peerIp || that_present_peerIp) {
18347 if (!(this_present_peerIp && that_present_peerIp)) {
18350 if (!this.peerIp.equals(that.peerIp)) {
18355 boolean this_present_afi = true && this.isSetAfi();
18356 boolean that_present_afi = true && that.isSetAfi();
18357 if (this_present_afi || that_present_afi) {
18358 if (!(this_present_afi && that_present_afi)) {
18361 if (!this.afi.equals(that.afi)) {
18366 boolean this_present_safi = true && this.isSetSafi();
18367 boolean that_present_safi = true && that.isSetSafi();
18368 if (this_present_safi || that_present_safi) {
18369 if (!(this_present_safi && that_present_safi)) {
18372 if (!this.safi.equals(that.safi)) {
18381 public int hashCode() {
18382 List<Object> list = new ArrayList<Object>();
18384 boolean present_peerIp = true && (isSetPeerIp());
18385 list.add(present_peerIp);
18386 if (present_peerIp)
18388 boolean present_afi = true && (isSetAfi());
18389 list.add(present_afi);
18391 list.add(afi.getValue());
18392 boolean present_safi = true && (isSetSafi());
18393 list.add(present_safi);
18395 list.add(safi.getValue());
18396 return list.hashCode();
18400 public int compareTo(disableAddressFamily_args other) {
18401 if (!getClass().equals(other.getClass())) {
18402 return getClass().getName().compareTo(other.getClass().getName());
18405 int lastComparison = 0;
18407 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
18408 if (lastComparison != 0) {
18409 return lastComparison;
18411 if (isSetPeerIp()) {
18412 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
18413 if (lastComparison != 0) {
18414 return lastComparison;
18417 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
18418 if (lastComparison != 0) {
18419 return lastComparison;
18422 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
18423 if (lastComparison != 0) {
18424 return lastComparison;
18427 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
18428 if (lastComparison != 0) {
18429 return lastComparison;
18432 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
18433 if (lastComparison != 0) {
18434 return lastComparison;
18441 public _Fields fieldForId(int fieldId) {
18442 return _Fields.findByThriftId(fieldId);
18446 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18447 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18451 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18452 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18456 public String toString() {
18457 StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
18458 boolean first = true;
18460 sb.append("peerIp:");
18461 if (this.peerIp == null) {
18464 sb.append(this.peerIp);
18471 if (this.afi == null) {
18474 sb.append(this.afi);
18480 sb.append("safi:");
18481 if (this.safi == null) {
18484 sb.append(this.safi);
18488 return sb.toString();
18491 public void validate() throws org.apache.thrift.TException {
18492 // check for required fields
18493 // check for sub-struct validity
18496 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18498 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18499 } catch (org.apache.thrift.TException te) {
18500 throw new java.io.IOException(te);
18504 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18506 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18507 } catch (org.apache.thrift.TException te) {
18508 throw new java.io.IOException(te);
18512 private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
18514 public disableAddressFamily_argsStandardScheme getScheme() {
18515 return new disableAddressFamily_argsStandardScheme();
18519 private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
18522 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18523 org.apache.thrift.protocol.TField schemeField;
18524 iprot.readStructBegin();
18527 schemeField = iprot.readFieldBegin();
18528 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18531 switch (schemeField.id) {
18533 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18534 struct.peerIp = iprot.readString();
18535 struct.setPeerIpIsSet(true);
18537 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18541 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18542 struct.afi = af_afi.findByValue(iprot.readI32());
18543 struct.setAfiIsSet(true);
18545 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18549 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18550 struct.safi = af_safi.findByValue(iprot.readI32());
18551 struct.setSafiIsSet(true);
18553 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18557 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18559 iprot.readFieldEnd();
18561 iprot.readStructEnd();
18563 // check for required fields of primitive type, which can't be checked in the validate method
18568 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18571 oprot.writeStructBegin(STRUCT_DESC);
18572 if (struct.peerIp != null) {
18573 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
18574 oprot.writeString(struct.peerIp);
18575 oprot.writeFieldEnd();
18577 if (struct.afi != null) {
18578 oprot.writeFieldBegin(AFI_FIELD_DESC);
18579 oprot.writeI32(struct.afi.getValue());
18580 oprot.writeFieldEnd();
18582 if (struct.safi != null) {
18583 oprot.writeFieldBegin(SAFI_FIELD_DESC);
18584 oprot.writeI32(struct.safi.getValue());
18585 oprot.writeFieldEnd();
18587 oprot.writeFieldStop();
18588 oprot.writeStructEnd();
18593 private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
18595 public disableAddressFamily_argsTupleScheme getScheme() {
18596 return new disableAddressFamily_argsTupleScheme();
18600 private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
18603 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18604 TTupleProtocol oprot = (TTupleProtocol) prot;
18605 BitSet optionals = new BitSet();
18606 if (struct.isSetPeerIp()) {
18609 if (struct.isSetAfi()) {
18612 if (struct.isSetSafi()) {
18615 oprot.writeBitSet(optionals, 3);
18616 if (struct.isSetPeerIp()) {
18617 oprot.writeString(struct.peerIp);
18619 if (struct.isSetAfi()) {
18620 oprot.writeI32(struct.afi.getValue());
18622 if (struct.isSetSafi()) {
18623 oprot.writeI32(struct.safi.getValue());
18628 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18629 TTupleProtocol iprot = (TTupleProtocol) prot;
18630 BitSet incoming = iprot.readBitSet(3);
18631 if (incoming.get(0)) {
18632 struct.peerIp = iprot.readString();
18633 struct.setPeerIpIsSet(true);
18635 if (incoming.get(1)) {
18636 struct.afi = af_afi.findByValue(iprot.readI32());
18637 struct.setAfiIsSet(true);
18639 if (incoming.get(2)) {
18640 struct.safi = af_safi.findByValue(iprot.readI32());
18641 struct.setSafiIsSet(true);
18648 public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result> {
18649 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
18651 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);
18653 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18655 schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
18656 schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
18659 public int success; // required
18661 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18662 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18663 SUCCESS((short)0, "success");
18665 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18668 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18669 byName.put(field.getFieldName(), field);
18674 * Find the _Fields constant that matches fieldId, or null if its not found.
18676 public static _Fields findByThriftId(int fieldId) {
18686 * Find the _Fields constant that matches fieldId, throwing an exception
18687 * if it is not found.
18689 public static _Fields findByThriftIdOrThrow(int fieldId) {
18690 _Fields fields = findByThriftId(fieldId);
18691 if (fields == null) {
18692 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18698 * Find the _Fields constant that matches name, or null if its not found.
18700 public static _Fields findByName(String name) {
18701 return byName.get(name);
18704 private final short _thriftId;
18705 private final String _fieldName;
18707 _Fields(short thriftId, String fieldName) {
18708 _thriftId = thriftId;
18709 _fieldName = fieldName;
18713 public short getThriftFieldId() {
18718 public String getFieldName() {
18723 // isset id assignments
18724 private static final int __SUCCESS_ISSET_ID = 0;
18725 private byte __isset_bitfield = 0;
18726 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18728 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18729 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18730 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18731 metaDataMap = Collections.unmodifiableMap(tmpMap);
18732 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
18735 public disableAddressFamily_result() {
18738 public disableAddressFamily_result(
18742 this.success = success;
18743 setSuccessIsSet(true);
18747 * Performs a deep copy on <i>other</i>.
18749 public disableAddressFamily_result(disableAddressFamily_result other) {
18750 __isset_bitfield = other.__isset_bitfield;
18751 this.success = other.success;
18755 public disableAddressFamily_result deepCopy() {
18756 return new disableAddressFamily_result(this);
18760 public void clear() {
18761 setSuccessIsSet(false);
18765 public int getSuccess() {
18766 return this.success;
18769 public disableAddressFamily_result setSuccess(int success) {
18770 this.success = success;
18771 setSuccessIsSet(true);
18775 public void unsetSuccess() {
18776 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18779 /** Returns true if field success is set (has been assigned a value) and false otherwise */
18780 public boolean isSetSuccess() {
18781 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18784 public void setSuccessIsSet(boolean value) {
18785 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18789 public void setFieldValue(_Fields field, Object value) {
18792 if (value == null) {
18795 setSuccess((Integer)value);
18803 public Object getFieldValue(_Fields field) {
18806 return Integer.valueOf(getSuccess());
18809 throw new IllegalStateException();
18812 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18814 public boolean isSet(_Fields field) {
18815 if (field == null) {
18816 throw new IllegalArgumentException();
18821 return isSetSuccess();
18823 throw new IllegalStateException();
18827 public boolean equals(Object that) {
18828 if (that == null) {
18831 if (that instanceof disableAddressFamily_result) {
18832 return this.equals((disableAddressFamily_result)that);
18837 public boolean equals(disableAddressFamily_result that) {
18838 if (that == null) {
18842 boolean this_present_success = true;
18843 boolean that_present_success = true;
18844 if (this_present_success || that_present_success) {
18845 if (!(this_present_success && that_present_success)) {
18848 if (this.success != that.success) {
18857 public int hashCode() {
18858 List<Object> list = new ArrayList<Object>();
18860 boolean present_success = true;
18861 list.add(present_success);
18862 if (present_success)
18864 return list.hashCode();
18868 public int compareTo(disableAddressFamily_result other) {
18869 if (!getClass().equals(other.getClass())) {
18870 return getClass().getName().compareTo(other.getClass().getName());
18873 int lastComparison = 0;
18875 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18876 if (lastComparison != 0) {
18877 return lastComparison;
18879 if (isSetSuccess()) {
18880 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18881 if (lastComparison != 0) {
18882 return lastComparison;
18889 public _Fields fieldForId(int fieldId) {
18890 return _Fields.findByThriftId(fieldId);
18894 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18895 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18899 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18900 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18904 public String toString() {
18905 StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
18906 boolean first = true;
18908 sb.append("success:");
18909 sb.append(this.success);
18912 return sb.toString();
18915 public void validate() throws org.apache.thrift.TException {
18916 // check for required fields
18917 // check for sub-struct validity
18920 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18922 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18923 } catch (org.apache.thrift.TException te) {
18924 throw new java.io.IOException(te);
18928 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18930 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18931 __isset_bitfield = 0;
18932 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18933 } catch (org.apache.thrift.TException te) {
18934 throw new java.io.IOException(te);
18938 private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
18940 public disableAddressFamily_resultStandardScheme getScheme() {
18941 return new disableAddressFamily_resultStandardScheme();
18945 private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
18948 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
18949 org.apache.thrift.protocol.TField schemeField;
18950 iprot.readStructBegin();
18953 schemeField = iprot.readFieldBegin();
18954 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18957 switch (schemeField.id) {
18959 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18960 struct.success = iprot.readI32();
18961 struct.setSuccessIsSet(true);
18963 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18967 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18969 iprot.readFieldEnd();
18971 iprot.readStructEnd();
18973 // check for required fields of primitive type, which can't be checked in the validate method
18978 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
18981 oprot.writeStructBegin(STRUCT_DESC);
18982 if (struct.isSetSuccess()) {
18983 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18984 oprot.writeI32(struct.success);
18985 oprot.writeFieldEnd();
18987 oprot.writeFieldStop();
18988 oprot.writeStructEnd();
18993 private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
18995 public disableAddressFamily_resultTupleScheme getScheme() {
18996 return new disableAddressFamily_resultTupleScheme();
19000 private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
19003 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19004 TTupleProtocol oprot = (TTupleProtocol) prot;
19005 BitSet optionals = new BitSet();
19006 if (struct.isSetSuccess()) {
19009 oprot.writeBitSet(optionals, 1);
19010 if (struct.isSetSuccess()) {
19011 oprot.writeI32(struct.success);
19016 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19017 TTupleProtocol iprot = (TTupleProtocol) prot;
19018 BitSet incoming = iprot.readBitSet(1);
19019 if (incoming.get(0)) {
19020 struct.success = iprot.readI32();
19021 struct.setSuccessIsSet(true);
19028 public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args> {
19029 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
19031 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);
19032 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);
19034 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19036 schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
19037 schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
19040 public String logFileName; // required
19041 public String logLevel; // required
19043 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19044 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19045 LOG_FILE_NAME((short)1, "logFileName"),
19046 LOG_LEVEL((short)2, "logLevel");
19048 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19051 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19052 byName.put(field.getFieldName(), field);
19057 * Find the _Fields constant that matches fieldId, or null if its not found.
19059 public static _Fields findByThriftId(int fieldId) {
19061 case 1: // LOG_FILE_NAME
19062 return LOG_FILE_NAME;
19063 case 2: // LOG_LEVEL
19071 * Find the _Fields constant that matches fieldId, throwing an exception
19072 * if it is not found.
19074 public static _Fields findByThriftIdOrThrow(int fieldId) {
19075 _Fields fields = findByThriftId(fieldId);
19076 if (fields == null) {
19077 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19083 * Find the _Fields constant that matches name, or null if its not found.
19085 public static _Fields findByName(String name) {
19086 return byName.get(name);
19089 private final short _thriftId;
19090 private final String _fieldName;
19092 _Fields(short thriftId, String fieldName) {
19093 _thriftId = thriftId;
19094 _fieldName = fieldName;
19098 public short getThriftFieldId() {
19103 public String getFieldName() {
19108 // isset id assignments
19109 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19111 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19112 tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19113 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19114 tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
19115 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19116 metaDataMap = Collections.unmodifiableMap(tmpMap);
19117 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
19120 public setLogConfig_args() {
19123 public setLogConfig_args(
19124 String logFileName,
19128 this.logFileName = logFileName;
19129 this.logLevel = logLevel;
19133 * Performs a deep copy on <i>other</i>.
19135 public setLogConfig_args(setLogConfig_args other) {
19136 if (other.isSetLogFileName()) {
19137 this.logFileName = other.logFileName;
19139 if (other.isSetLogLevel()) {
19140 this.logLevel = other.logLevel;
19145 public setLogConfig_args deepCopy() {
19146 return new setLogConfig_args(this);
19150 public void clear() {
19151 this.logFileName = null;
19152 this.logLevel = null;
19155 public String getLogFileName() {
19156 return this.logFileName;
19159 public setLogConfig_args setLogFileName(String logFileName) {
19160 this.logFileName = logFileName;
19164 public void unsetLogFileName() {
19165 this.logFileName = null;
19168 /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
19169 public boolean isSetLogFileName() {
19170 return this.logFileName != null;
19173 public void setLogFileNameIsSet(boolean value) {
19175 this.logFileName = null;
19179 public String getLogLevel() {
19180 return this.logLevel;
19183 public setLogConfig_args setLogLevel(String logLevel) {
19184 this.logLevel = logLevel;
19188 public void unsetLogLevel() {
19189 this.logLevel = null;
19192 /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
19193 public boolean isSetLogLevel() {
19194 return this.logLevel != null;
19197 public void setLogLevelIsSet(boolean value) {
19199 this.logLevel = null;
19204 public void setFieldValue(_Fields field, Object value) {
19206 case LOG_FILE_NAME:
19207 if (value == null) {
19208 unsetLogFileName();
19210 setLogFileName((String)value);
19215 if (value == null) {
19218 setLogLevel((String)value);
19226 public Object getFieldValue(_Fields field) {
19228 case LOG_FILE_NAME:
19229 return getLogFileName();
19232 return getLogLevel();
19235 throw new IllegalStateException();
19238 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19240 public boolean isSet(_Fields field) {
19241 if (field == null) {
19242 throw new IllegalArgumentException();
19246 case LOG_FILE_NAME:
19247 return isSetLogFileName();
19249 return isSetLogLevel();
19251 throw new IllegalStateException();
19255 public boolean equals(Object that) {
19256 if (that == null) {
19259 if (that instanceof setLogConfig_args) {
19260 return this.equals((setLogConfig_args)that);
19265 public boolean equals(setLogConfig_args that) {
19266 if (that == null) {
19270 boolean this_present_logFileName = true && this.isSetLogFileName();
19271 boolean that_present_logFileName = true && that.isSetLogFileName();
19272 if (this_present_logFileName || that_present_logFileName) {
19273 if (!(this_present_logFileName && that_present_logFileName)) {
19276 if (!this.logFileName.equals(that.logFileName)) {
19281 boolean this_present_logLevel = true && this.isSetLogLevel();
19282 boolean that_present_logLevel = true && that.isSetLogLevel();
19283 if (this_present_logLevel || that_present_logLevel) {
19284 if (!(this_present_logLevel && that_present_logLevel)) {
19287 if (!this.logLevel.equals(that.logLevel)) {
19296 public int hashCode() {
19297 List<Object> list = new ArrayList<Object>();
19299 boolean present_logFileName = true && (isSetLogFileName());
19300 list.add(present_logFileName);
19301 if (present_logFileName)
19302 list.add(logFileName);
19303 boolean present_logLevel = true && (isSetLogLevel());
19304 list.add(present_logLevel);
19305 if (present_logLevel)
19306 list.add(logLevel);
19307 return list.hashCode();
19311 public int compareTo(setLogConfig_args other) {
19312 if (!getClass().equals(other.getClass())) {
19313 return getClass().getName().compareTo(other.getClass().getName());
19316 int lastComparison = 0;
19318 lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
19319 if (lastComparison != 0) {
19320 return lastComparison;
19322 if (isSetLogFileName()) {
19323 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
19324 if (lastComparison != 0) {
19325 return lastComparison;
19328 lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
19329 if (lastComparison != 0) {
19330 return lastComparison;
19332 if (isSetLogLevel()) {
19333 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
19334 if (lastComparison != 0) {
19335 return lastComparison;
19342 public _Fields fieldForId(int fieldId) {
19343 return _Fields.findByThriftId(fieldId);
19347 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19348 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19352 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19353 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19357 public String toString() {
19358 StringBuilder sb = new StringBuilder("setLogConfig_args(");
19359 boolean first = true;
19361 sb.append("logFileName:");
19362 if (this.logFileName == null) {
19365 sb.append(this.logFileName);
19371 sb.append("logLevel:");
19372 if (this.logLevel == null) {
19375 sb.append(this.logLevel);
19379 return sb.toString();
19382 public void validate() throws org.apache.thrift.TException {
19383 // check for required fields
19384 // check for sub-struct validity
19387 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19389 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19390 } catch (org.apache.thrift.TException te) {
19391 throw new java.io.IOException(te);
19395 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19397 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19398 } catch (org.apache.thrift.TException te) {
19399 throw new java.io.IOException(te);
19403 private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
19405 public setLogConfig_argsStandardScheme getScheme() {
19406 return new setLogConfig_argsStandardScheme();
19410 private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
19413 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19414 org.apache.thrift.protocol.TField schemeField;
19415 iprot.readStructBegin();
19418 schemeField = iprot.readFieldBegin();
19419 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19422 switch (schemeField.id) {
19423 case 1: // LOG_FILE_NAME
19424 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19425 struct.logFileName = iprot.readString();
19426 struct.setLogFileNameIsSet(true);
19428 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19431 case 2: // LOG_LEVEL
19432 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19433 struct.logLevel = iprot.readString();
19434 struct.setLogLevelIsSet(true);
19436 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19440 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19442 iprot.readFieldEnd();
19444 iprot.readStructEnd();
19446 // check for required fields of primitive type, which can't be checked in the validate method
19451 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19454 oprot.writeStructBegin(STRUCT_DESC);
19455 if (struct.logFileName != null) {
19456 oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
19457 oprot.writeString(struct.logFileName);
19458 oprot.writeFieldEnd();
19460 if (struct.logLevel != null) {
19461 oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
19462 oprot.writeString(struct.logLevel);
19463 oprot.writeFieldEnd();
19465 oprot.writeFieldStop();
19466 oprot.writeStructEnd();
19471 private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
19473 public setLogConfig_argsTupleScheme getScheme() {
19474 return new setLogConfig_argsTupleScheme();
19478 private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
19481 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19482 TTupleProtocol oprot = (TTupleProtocol) prot;
19483 BitSet optionals = new BitSet();
19484 if (struct.isSetLogFileName()) {
19487 if (struct.isSetLogLevel()) {
19490 oprot.writeBitSet(optionals, 2);
19491 if (struct.isSetLogFileName()) {
19492 oprot.writeString(struct.logFileName);
19494 if (struct.isSetLogLevel()) {
19495 oprot.writeString(struct.logLevel);
19500 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19501 TTupleProtocol iprot = (TTupleProtocol) prot;
19502 BitSet incoming = iprot.readBitSet(2);
19503 if (incoming.get(0)) {
19504 struct.logFileName = iprot.readString();
19505 struct.setLogFileNameIsSet(true);
19507 if (incoming.get(1)) {
19508 struct.logLevel = iprot.readString();
19509 struct.setLogLevelIsSet(true);
19516 public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result> {
19517 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
19519 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);
19521 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19523 schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
19524 schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
19527 public int success; // required
19529 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19530 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19531 SUCCESS((short)0, "success");
19533 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19536 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19537 byName.put(field.getFieldName(), field);
19542 * Find the _Fields constant that matches fieldId, or null if its not found.
19544 public static _Fields findByThriftId(int fieldId) {
19554 * Find the _Fields constant that matches fieldId, throwing an exception
19555 * if it is not found.
19557 public static _Fields findByThriftIdOrThrow(int fieldId) {
19558 _Fields fields = findByThriftId(fieldId);
19559 if (fields == null) {
19560 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19566 * Find the _Fields constant that matches name, or null if its not found.
19568 public static _Fields findByName(String name) {
19569 return byName.get(name);
19572 private final short _thriftId;
19573 private final String _fieldName;
19575 _Fields(short thriftId, String fieldName) {
19576 _thriftId = thriftId;
19577 _fieldName = fieldName;
19581 public short getThriftFieldId() {
19586 public String getFieldName() {
19591 // isset id assignments
19592 private static final int __SUCCESS_ISSET_ID = 0;
19593 private byte __isset_bitfield = 0;
19594 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19596 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19597 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19598 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19599 metaDataMap = Collections.unmodifiableMap(tmpMap);
19600 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
19603 public setLogConfig_result() {
19606 public setLogConfig_result(
19610 this.success = success;
19611 setSuccessIsSet(true);
19615 * Performs a deep copy on <i>other</i>.
19617 public setLogConfig_result(setLogConfig_result other) {
19618 __isset_bitfield = other.__isset_bitfield;
19619 this.success = other.success;
19623 public setLogConfig_result deepCopy() {
19624 return new setLogConfig_result(this);
19628 public void clear() {
19629 setSuccessIsSet(false);
19633 public int getSuccess() {
19634 return this.success;
19637 public setLogConfig_result setSuccess(int success) {
19638 this.success = success;
19639 setSuccessIsSet(true);
19643 public void unsetSuccess() {
19644 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19647 /** Returns true if field success is set (has been assigned a value) and false otherwise */
19648 public boolean isSetSuccess() {
19649 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19652 public void setSuccessIsSet(boolean value) {
19653 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19657 public void setFieldValue(_Fields field, Object value) {
19660 if (value == null) {
19663 setSuccess((Integer)value);
19671 public Object getFieldValue(_Fields field) {
19674 return Integer.valueOf(getSuccess());
19677 throw new IllegalStateException();
19680 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19682 public boolean isSet(_Fields field) {
19683 if (field == null) {
19684 throw new IllegalArgumentException();
19689 return isSetSuccess();
19691 throw new IllegalStateException();
19695 public boolean equals(Object that) {
19696 if (that == null) {
19699 if (that instanceof setLogConfig_result) {
19700 return this.equals((setLogConfig_result)that);
19705 public boolean equals(setLogConfig_result that) {
19706 if (that == null) {
19710 boolean this_present_success = true;
19711 boolean that_present_success = true;
19712 if (this_present_success || that_present_success) {
19713 if (!(this_present_success && that_present_success)) {
19716 if (this.success != that.success) {
19725 public int hashCode() {
19726 List<Object> list = new ArrayList<Object>();
19728 boolean present_success = true;
19729 list.add(present_success);
19730 if (present_success)
19732 return list.hashCode();
19736 public int compareTo(setLogConfig_result other) {
19737 if (!getClass().equals(other.getClass())) {
19738 return getClass().getName().compareTo(other.getClass().getName());
19741 int lastComparison = 0;
19743 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19744 if (lastComparison != 0) {
19745 return lastComparison;
19747 if (isSetSuccess()) {
19748 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19749 if (lastComparison != 0) {
19750 return lastComparison;
19757 public _Fields fieldForId(int fieldId) {
19758 return _Fields.findByThriftId(fieldId);
19762 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19763 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19767 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19768 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19772 public String toString() {
19773 StringBuilder sb = new StringBuilder("setLogConfig_result(");
19774 boolean first = true;
19776 sb.append("success:");
19777 sb.append(this.success);
19780 return sb.toString();
19783 public void validate() throws org.apache.thrift.TException {
19784 // check for required fields
19785 // check for sub-struct validity
19788 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19790 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19791 } catch (org.apache.thrift.TException te) {
19792 throw new java.io.IOException(te);
19796 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19798 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19799 __isset_bitfield = 0;
19800 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19801 } catch (org.apache.thrift.TException te) {
19802 throw new java.io.IOException(te);
19806 private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
19808 public setLogConfig_resultStandardScheme getScheme() {
19809 return new setLogConfig_resultStandardScheme();
19813 private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
19816 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
19817 org.apache.thrift.protocol.TField schemeField;
19818 iprot.readStructBegin();
19821 schemeField = iprot.readFieldBegin();
19822 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19825 switch (schemeField.id) {
19827 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19828 struct.success = iprot.readI32();
19829 struct.setSuccessIsSet(true);
19831 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19835 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19837 iprot.readFieldEnd();
19839 iprot.readStructEnd();
19841 // check for required fields of primitive type, which can't be checked in the validate method
19846 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
19849 oprot.writeStructBegin(STRUCT_DESC);
19850 if (struct.isSetSuccess()) {
19851 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19852 oprot.writeI32(struct.success);
19853 oprot.writeFieldEnd();
19855 oprot.writeFieldStop();
19856 oprot.writeStructEnd();
19861 private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
19863 public setLogConfig_resultTupleScheme getScheme() {
19864 return new setLogConfig_resultTupleScheme();
19868 private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
19871 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
19872 TTupleProtocol oprot = (TTupleProtocol) prot;
19873 BitSet optionals = new BitSet();
19874 if (struct.isSetSuccess()) {
19877 oprot.writeBitSet(optionals, 1);
19878 if (struct.isSetSuccess()) {
19879 oprot.writeI32(struct.success);
19884 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
19885 TTupleProtocol iprot = (TTupleProtocol) prot;
19886 BitSet incoming = iprot.readBitSet(1);
19887 if (incoming.get(0)) {
19888 struct.success = iprot.readI32();
19889 struct.setSuccessIsSet(true);
19896 public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args> {
19897 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
19899 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);
19901 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19903 schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
19904 schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
19907 public int stalepathTime; // required
19909 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19910 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19911 STALEPATH_TIME((short)1, "stalepathTime");
19913 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19916 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19917 byName.put(field.getFieldName(), field);
19922 * Find the _Fields constant that matches fieldId, or null if its not found.
19924 public static _Fields findByThriftId(int fieldId) {
19926 case 1: // STALEPATH_TIME
19927 return STALEPATH_TIME;
19934 * Find the _Fields constant that matches fieldId, throwing an exception
19935 * if it is not found.
19937 public static _Fields findByThriftIdOrThrow(int fieldId) {
19938 _Fields fields = findByThriftId(fieldId);
19939 if (fields == null) {
19940 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19946 * Find the _Fields constant that matches name, or null if its not found.
19948 public static _Fields findByName(String name) {
19949 return byName.get(name);
19952 private final short _thriftId;
19953 private final String _fieldName;
19955 _Fields(short thriftId, String fieldName) {
19956 _thriftId = thriftId;
19957 _fieldName = fieldName;
19961 public short getThriftFieldId() {
19966 public String getFieldName() {
19971 // isset id assignments
19972 private static final int __STALEPATHTIME_ISSET_ID = 0;
19973 private byte __isset_bitfield = 0;
19974 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19976 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19977 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
19978 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19979 metaDataMap = Collections.unmodifiableMap(tmpMap);
19980 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
19983 public enableGracefulRestart_args() {
19986 public enableGracefulRestart_args(
19990 this.stalepathTime = stalepathTime;
19991 setStalepathTimeIsSet(true);
19995 * Performs a deep copy on <i>other</i>.
19997 public enableGracefulRestart_args(enableGracefulRestart_args other) {
19998 __isset_bitfield = other.__isset_bitfield;
19999 this.stalepathTime = other.stalepathTime;
20003 public enableGracefulRestart_args deepCopy() {
20004 return new enableGracefulRestart_args(this);
20008 public void clear() {
20009 setStalepathTimeIsSet(false);
20010 this.stalepathTime = 0;
20013 public int getStalepathTime() {
20014 return this.stalepathTime;
20017 public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
20018 this.stalepathTime = stalepathTime;
20019 setStalepathTimeIsSet(true);
20023 public void unsetStalepathTime() {
20024 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20027 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
20028 public boolean isSetStalepathTime() {
20029 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20032 public void setStalepathTimeIsSet(boolean value) {
20033 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
20037 public void setFieldValue(_Fields field, Object value) {
20039 case STALEPATH_TIME:
20040 if (value == null) {
20041 unsetStalepathTime();
20043 setStalepathTime((Integer)value);
20051 public Object getFieldValue(_Fields field) {
20053 case STALEPATH_TIME:
20054 return Integer.valueOf(getStalepathTime());
20057 throw new IllegalStateException();
20060 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20062 public boolean isSet(_Fields field) {
20063 if (field == null) {
20064 throw new IllegalArgumentException();
20068 case STALEPATH_TIME:
20069 return isSetStalepathTime();
20071 throw new IllegalStateException();
20075 public boolean equals(Object that) {
20076 if (that == null) {
20079 if (that instanceof enableGracefulRestart_args) {
20080 return this.equals((enableGracefulRestart_args)that);
20085 public boolean equals(enableGracefulRestart_args that) {
20086 if (that == null) {
20090 boolean this_present_stalepathTime = true;
20091 boolean that_present_stalepathTime = true;
20092 if (this_present_stalepathTime || that_present_stalepathTime) {
20093 if (!(this_present_stalepathTime && that_present_stalepathTime)) {
20096 if (this.stalepathTime != that.stalepathTime) {
20105 public int hashCode() {
20106 List<Object> list = new ArrayList<Object>();
20108 boolean present_stalepathTime = true;
20109 list.add(present_stalepathTime);
20110 if (present_stalepathTime)
20111 list.add(stalepathTime);
20112 return list.hashCode();
20116 public int compareTo(enableGracefulRestart_args other) {
20117 if (!getClass().equals(other.getClass())) {
20118 return getClass().getName().compareTo(other.getClass().getName());
20121 int lastComparison = 0;
20123 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
20124 if (lastComparison != 0) {
20125 return lastComparison;
20127 if (isSetStalepathTime()) {
20128 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
20129 if (lastComparison != 0) {
20130 return lastComparison;
20137 public _Fields fieldForId(int fieldId) {
20138 return _Fields.findByThriftId(fieldId);
20142 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20143 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20147 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20148 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20152 public String toString() {
20153 StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
20154 boolean first = true;
20156 sb.append("stalepathTime:");
20157 sb.append(this.stalepathTime);
20160 return sb.toString();
20163 public void validate() throws org.apache.thrift.TException {
20164 // check for required fields
20165 // check for sub-struct validity
20168 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20170 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20171 } catch (org.apache.thrift.TException te) {
20172 throw new java.io.IOException(te);
20176 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20178 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20179 __isset_bitfield = 0;
20180 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20181 } catch (org.apache.thrift.TException te) {
20182 throw new java.io.IOException(te);
20186 private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20188 public enableGracefulRestart_argsStandardScheme getScheme() {
20189 return new enableGracefulRestart_argsStandardScheme();
20193 private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
20196 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20197 org.apache.thrift.protocol.TField schemeField;
20198 iprot.readStructBegin();
20201 schemeField = iprot.readFieldBegin();
20202 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20205 switch (schemeField.id) {
20206 case 1: // STALEPATH_TIME
20207 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20208 struct.stalepathTime = iprot.readI32();
20209 struct.setStalepathTimeIsSet(true);
20211 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20215 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20217 iprot.readFieldEnd();
20219 iprot.readStructEnd();
20221 // check for required fields of primitive type, which can't be checked in the validate method
20226 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20229 oprot.writeStructBegin(STRUCT_DESC);
20230 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
20231 oprot.writeI32(struct.stalepathTime);
20232 oprot.writeFieldEnd();
20233 oprot.writeFieldStop();
20234 oprot.writeStructEnd();
20239 private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20241 public enableGracefulRestart_argsTupleScheme getScheme() {
20242 return new enableGracefulRestart_argsTupleScheme();
20246 private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
20249 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20250 TTupleProtocol oprot = (TTupleProtocol) prot;
20251 BitSet optionals = new BitSet();
20252 if (struct.isSetStalepathTime()) {
20255 oprot.writeBitSet(optionals, 1);
20256 if (struct.isSetStalepathTime()) {
20257 oprot.writeI32(struct.stalepathTime);
20262 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20263 TTupleProtocol iprot = (TTupleProtocol) prot;
20264 BitSet incoming = iprot.readBitSet(1);
20265 if (incoming.get(0)) {
20266 struct.stalepathTime = iprot.readI32();
20267 struct.setStalepathTimeIsSet(true);
20274 public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result> {
20275 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
20277 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);
20279 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20281 schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
20282 schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
20285 public int success; // required
20287 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20288 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20289 SUCCESS((short)0, "success");
20291 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20294 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20295 byName.put(field.getFieldName(), field);
20300 * Find the _Fields constant that matches fieldId, or null if its not found.
20302 public static _Fields findByThriftId(int fieldId) {
20312 * Find the _Fields constant that matches fieldId, throwing an exception
20313 * if it is not found.
20315 public static _Fields findByThriftIdOrThrow(int fieldId) {
20316 _Fields fields = findByThriftId(fieldId);
20317 if (fields == null) {
20318 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20324 * Find the _Fields constant that matches name, or null if its not found.
20326 public static _Fields findByName(String name) {
20327 return byName.get(name);
20330 private final short _thriftId;
20331 private final String _fieldName;
20333 _Fields(short thriftId, String fieldName) {
20334 _thriftId = thriftId;
20335 _fieldName = fieldName;
20339 public short getThriftFieldId() {
20344 public String getFieldName() {
20349 // isset id assignments
20350 private static final int __SUCCESS_ISSET_ID = 0;
20351 private byte __isset_bitfield = 0;
20352 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20354 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20355 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20356 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20357 metaDataMap = Collections.unmodifiableMap(tmpMap);
20358 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
20361 public enableGracefulRestart_result() {
20364 public enableGracefulRestart_result(
20368 this.success = success;
20369 setSuccessIsSet(true);
20373 * Performs a deep copy on <i>other</i>.
20375 public enableGracefulRestart_result(enableGracefulRestart_result other) {
20376 __isset_bitfield = other.__isset_bitfield;
20377 this.success = other.success;
20381 public enableGracefulRestart_result deepCopy() {
20382 return new enableGracefulRestart_result(this);
20386 public void clear() {
20387 setSuccessIsSet(false);
20391 public int getSuccess() {
20392 return this.success;
20395 public enableGracefulRestart_result setSuccess(int success) {
20396 this.success = success;
20397 setSuccessIsSet(true);
20401 public void unsetSuccess() {
20402 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20405 /** Returns true if field success is set (has been assigned a value) and false otherwise */
20406 public boolean isSetSuccess() {
20407 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20410 public void setSuccessIsSet(boolean value) {
20411 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20415 public void setFieldValue(_Fields field, Object value) {
20418 if (value == null) {
20421 setSuccess((Integer)value);
20429 public Object getFieldValue(_Fields field) {
20432 return Integer.valueOf(getSuccess());
20435 throw new IllegalStateException();
20438 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20440 public boolean isSet(_Fields field) {
20441 if (field == null) {
20442 throw new IllegalArgumentException();
20447 return isSetSuccess();
20449 throw new IllegalStateException();
20453 public boolean equals(Object that) {
20454 if (that == null) {
20457 if (that instanceof enableGracefulRestart_result) {
20458 return this.equals((enableGracefulRestart_result)that);
20463 public boolean equals(enableGracefulRestart_result that) {
20464 if (that == null) {
20468 boolean this_present_success = true;
20469 boolean that_present_success = true;
20470 if (this_present_success || that_present_success) {
20471 if (!(this_present_success && that_present_success)) {
20474 if (this.success != that.success) {
20483 public int hashCode() {
20484 List<Object> list = new ArrayList<Object>();
20486 boolean present_success = true;
20487 list.add(present_success);
20488 if (present_success)
20490 return list.hashCode();
20494 public int compareTo(enableGracefulRestart_result other) {
20495 if (!getClass().equals(other.getClass())) {
20496 return getClass().getName().compareTo(other.getClass().getName());
20499 int lastComparison = 0;
20501 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20502 if (lastComparison != 0) {
20503 return lastComparison;
20505 if (isSetSuccess()) {
20506 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20507 if (lastComparison != 0) {
20508 return lastComparison;
20515 public _Fields fieldForId(int fieldId) {
20516 return _Fields.findByThriftId(fieldId);
20520 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20521 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20525 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20526 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20530 public String toString() {
20531 StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
20532 boolean first = true;
20534 sb.append("success:");
20535 sb.append(this.success);
20538 return sb.toString();
20541 public void validate() throws org.apache.thrift.TException {
20542 // check for required fields
20543 // check for sub-struct validity
20546 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20548 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20549 } catch (org.apache.thrift.TException te) {
20550 throw new java.io.IOException(te);
20554 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20556 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20557 __isset_bitfield = 0;
20558 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20559 } catch (org.apache.thrift.TException te) {
20560 throw new java.io.IOException(te);
20564 private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
20566 public enableGracefulRestart_resultStandardScheme getScheme() {
20567 return new enableGracefulRestart_resultStandardScheme();
20571 private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
20574 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20575 org.apache.thrift.protocol.TField schemeField;
20576 iprot.readStructBegin();
20579 schemeField = iprot.readFieldBegin();
20580 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20583 switch (schemeField.id) {
20585 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20586 struct.success = iprot.readI32();
20587 struct.setSuccessIsSet(true);
20589 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20593 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20595 iprot.readFieldEnd();
20597 iprot.readStructEnd();
20599 // check for required fields of primitive type, which can't be checked in the validate method
20604 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20607 oprot.writeStructBegin(STRUCT_DESC);
20608 if (struct.isSetSuccess()) {
20609 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20610 oprot.writeI32(struct.success);
20611 oprot.writeFieldEnd();
20613 oprot.writeFieldStop();
20614 oprot.writeStructEnd();
20619 private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
20621 public enableGracefulRestart_resultTupleScheme getScheme() {
20622 return new enableGracefulRestart_resultTupleScheme();
20626 private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
20629 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20630 TTupleProtocol oprot = (TTupleProtocol) prot;
20631 BitSet optionals = new BitSet();
20632 if (struct.isSetSuccess()) {
20635 oprot.writeBitSet(optionals, 1);
20636 if (struct.isSetSuccess()) {
20637 oprot.writeI32(struct.success);
20642 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20643 TTupleProtocol iprot = (TTupleProtocol) prot;
20644 BitSet incoming = iprot.readBitSet(1);
20645 if (incoming.get(0)) {
20646 struct.success = iprot.readI32();
20647 struct.setSuccessIsSet(true);
20654 public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args> {
20655 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
20658 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20660 schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
20661 schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
20665 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20666 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20669 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20672 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20673 byName.put(field.getFieldName(), field);
20678 * Find the _Fields constant that matches fieldId, or null if its not found.
20680 public static _Fields findByThriftId(int fieldId) {
20688 * Find the _Fields constant that matches fieldId, throwing an exception
20689 * if it is not found.
20691 public static _Fields findByThriftIdOrThrow(int fieldId) {
20692 _Fields fields = findByThriftId(fieldId);
20693 if (fields == null) {
20694 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20700 * Find the _Fields constant that matches name, or null if its not found.
20702 public static _Fields findByName(String name) {
20703 return byName.get(name);
20706 private final short _thriftId;
20707 private final String _fieldName;
20709 _Fields(short thriftId, String fieldName) {
20710 _thriftId = thriftId;
20711 _fieldName = fieldName;
20715 public short getThriftFieldId() {
20720 public String getFieldName() {
20724 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20726 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20727 metaDataMap = Collections.unmodifiableMap(tmpMap);
20728 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
20731 public disableGracefulRestart_args() {
20735 * Performs a deep copy on <i>other</i>.
20737 public disableGracefulRestart_args(disableGracefulRestart_args other) {
20741 public disableGracefulRestart_args deepCopy() {
20742 return new disableGracefulRestart_args(this);
20746 public void clear() {
20750 public void setFieldValue(_Fields field, Object value) {
20756 public Object getFieldValue(_Fields field) {
20759 throw new IllegalStateException();
20762 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20764 public boolean isSet(_Fields field) {
20765 if (field == null) {
20766 throw new IllegalArgumentException();
20771 throw new IllegalStateException();
20775 public boolean equals(Object that) {
20776 if (that == null) {
20779 if (that instanceof disableGracefulRestart_args) {
20780 return this.equals((disableGracefulRestart_args)that);
20785 public boolean equals(disableGracefulRestart_args that) {
20786 if (that == null) {
20794 public int hashCode() {
20795 List<Object> list = new ArrayList<Object>();
20797 return list.hashCode();
20801 public int compareTo(disableGracefulRestart_args other) {
20802 if (!getClass().equals(other.getClass())) {
20803 return getClass().getName().compareTo(other.getClass().getName());
20806 int lastComparison = 0;
20812 public _Fields fieldForId(int fieldId) {
20813 return _Fields.findByThriftId(fieldId);
20817 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20818 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20822 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20823 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20827 public String toString() {
20828 StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
20829 boolean first = true;
20832 return sb.toString();
20835 public void validate() throws org.apache.thrift.TException {
20836 // check for required fields
20837 // check for sub-struct validity
20840 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20842 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20843 } catch (org.apache.thrift.TException te) {
20844 throw new java.io.IOException(te);
20848 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20850 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20851 } catch (org.apache.thrift.TException te) {
20852 throw new java.io.IOException(te);
20856 private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20858 public disableGracefulRestart_argsStandardScheme getScheme() {
20859 return new disableGracefulRestart_argsStandardScheme();
20863 private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
20866 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20867 org.apache.thrift.protocol.TField schemeField;
20868 iprot.readStructBegin();
20871 schemeField = iprot.readFieldBegin();
20872 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20875 switch (schemeField.id) {
20877 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20879 iprot.readFieldEnd();
20881 iprot.readStructEnd();
20883 // check for required fields of primitive type, which can't be checked in the validate method
20888 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20891 oprot.writeStructBegin(STRUCT_DESC);
20892 oprot.writeFieldStop();
20893 oprot.writeStructEnd();
20898 private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20900 public disableGracefulRestart_argsTupleScheme getScheme() {
20901 return new disableGracefulRestart_argsTupleScheme();
20905 private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
20908 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20909 TTupleProtocol oprot = (TTupleProtocol) prot;
20913 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
20914 TTupleProtocol iprot = (TTupleProtocol) prot;
20920 public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result> {
20921 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
20923 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);
20925 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20927 schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
20928 schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
20931 public int success; // required
20933 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20934 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20935 SUCCESS((short)0, "success");
20937 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20940 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20941 byName.put(field.getFieldName(), field);
20946 * Find the _Fields constant that matches fieldId, or null if its not found.
20948 public static _Fields findByThriftId(int fieldId) {
20958 * Find the _Fields constant that matches fieldId, throwing an exception
20959 * if it is not found.
20961 public static _Fields findByThriftIdOrThrow(int fieldId) {
20962 _Fields fields = findByThriftId(fieldId);
20963 if (fields == null) {
20964 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20970 * Find the _Fields constant that matches name, or null if its not found.
20972 public static _Fields findByName(String name) {
20973 return byName.get(name);
20976 private final short _thriftId;
20977 private final String _fieldName;
20979 _Fields(short thriftId, String fieldName) {
20980 _thriftId = thriftId;
20981 _fieldName = fieldName;
20985 public short getThriftFieldId() {
20990 public String getFieldName() {
20995 // isset id assignments
20996 private static final int __SUCCESS_ISSET_ID = 0;
20997 private byte __isset_bitfield = 0;
20998 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21000 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21001 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21002 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21003 metaDataMap = Collections.unmodifiableMap(tmpMap);
21004 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
21007 public disableGracefulRestart_result() {
21010 public disableGracefulRestart_result(
21014 this.success = success;
21015 setSuccessIsSet(true);
21019 * Performs a deep copy on <i>other</i>.
21021 public disableGracefulRestart_result(disableGracefulRestart_result other) {
21022 __isset_bitfield = other.__isset_bitfield;
21023 this.success = other.success;
21027 public disableGracefulRestart_result deepCopy() {
21028 return new disableGracefulRestart_result(this);
21032 public void clear() {
21033 setSuccessIsSet(false);
21037 public int getSuccess() {
21038 return this.success;
21041 public disableGracefulRestart_result setSuccess(int success) {
21042 this.success = success;
21043 setSuccessIsSet(true);
21047 public void unsetSuccess() {
21048 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21051 /** Returns true if field success is set (has been assigned a value) and false otherwise */
21052 public boolean isSetSuccess() {
21053 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21056 public void setSuccessIsSet(boolean value) {
21057 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21061 public void setFieldValue(_Fields field, Object value) {
21064 if (value == null) {
21067 setSuccess((Integer)value);
21075 public Object getFieldValue(_Fields field) {
21078 return Integer.valueOf(getSuccess());
21081 throw new IllegalStateException();
21084 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21086 public boolean isSet(_Fields field) {
21087 if (field == null) {
21088 throw new IllegalArgumentException();
21093 return isSetSuccess();
21095 throw new IllegalStateException();
21099 public boolean equals(Object that) {
21100 if (that == null) {
21103 if (that instanceof disableGracefulRestart_result) {
21104 return this.equals((disableGracefulRestart_result)that);
21109 public boolean equals(disableGracefulRestart_result that) {
21110 if (that == null) {
21114 boolean this_present_success = true;
21115 boolean that_present_success = true;
21116 if (this_present_success || that_present_success) {
21117 if (!(this_present_success && that_present_success)) {
21120 if (this.success != that.success) {
21129 public int hashCode() {
21130 List<Object> list = new ArrayList<Object>();
21132 boolean present_success = true;
21133 list.add(present_success);
21134 if (present_success)
21136 return list.hashCode();
21140 public int compareTo(disableGracefulRestart_result other) {
21141 if (!getClass().equals(other.getClass())) {
21142 return getClass().getName().compareTo(other.getClass().getName());
21145 int lastComparison = 0;
21147 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21148 if (lastComparison != 0) {
21149 return lastComparison;
21151 if (isSetSuccess()) {
21152 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21153 if (lastComparison != 0) {
21154 return lastComparison;
21161 public _Fields fieldForId(int fieldId) {
21162 return _Fields.findByThriftId(fieldId);
21166 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21167 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21171 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21172 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21176 public String toString() {
21177 StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
21178 boolean first = true;
21180 sb.append("success:");
21181 sb.append(this.success);
21184 return sb.toString();
21187 public void validate() throws org.apache.thrift.TException {
21188 // check for required fields
21189 // check for sub-struct validity
21192 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21194 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21195 } catch (org.apache.thrift.TException te) {
21196 throw new java.io.IOException(te);
21200 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21202 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21203 __isset_bitfield = 0;
21204 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21205 } catch (org.apache.thrift.TException te) {
21206 throw new java.io.IOException(te);
21210 private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
21212 public disableGracefulRestart_resultStandardScheme getScheme() {
21213 return new disableGracefulRestart_resultStandardScheme();
21217 private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
21220 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21221 org.apache.thrift.protocol.TField schemeField;
21222 iprot.readStructBegin();
21225 schemeField = iprot.readFieldBegin();
21226 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21229 switch (schemeField.id) {
21231 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21232 struct.success = iprot.readI32();
21233 struct.setSuccessIsSet(true);
21235 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21239 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21241 iprot.readFieldEnd();
21243 iprot.readStructEnd();
21245 // check for required fields of primitive type, which can't be checked in the validate method
21250 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21253 oprot.writeStructBegin(STRUCT_DESC);
21254 if (struct.isSetSuccess()) {
21255 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21256 oprot.writeI32(struct.success);
21257 oprot.writeFieldEnd();
21259 oprot.writeFieldStop();
21260 oprot.writeStructEnd();
21265 private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21267 public disableGracefulRestart_resultTupleScheme getScheme() {
21268 return new disableGracefulRestart_resultTupleScheme();
21272 private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
21275 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21276 TTupleProtocol oprot = (TTupleProtocol) prot;
21277 BitSet optionals = new BitSet();
21278 if (struct.isSetSuccess()) {
21281 oprot.writeBitSet(optionals, 1);
21282 if (struct.isSetSuccess()) {
21283 oprot.writeI32(struct.success);
21288 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21289 TTupleProtocol iprot = (TTupleProtocol) prot;
21290 BitSet incoming = iprot.readBitSet(1);
21291 if (incoming.get(0)) {
21292 struct.success = iprot.readI32();
21293 struct.setSuccessIsSet(true);
21300 public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args> {
21301 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
21303 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);
21304 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);
21305 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);
21306 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)4);
21308 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21310 schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
21311 schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
21316 * @see protocol_type
21318 public protocol_type p_type; // required
21319 public int optype; // required
21320 public int winSize; // required
21325 public af_afi afi; // required
21327 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21328 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21331 * @see protocol_type
21333 P_TYPE((short)1, "p_type"),
21334 OPTYPE((short)2, "optype"),
21335 WIN_SIZE((short)3, "winSize"),
21340 AFI((short)4, "afi");
21342 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21345 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21346 byName.put(field.getFieldName(), field);
21351 * Find the _Fields constant that matches fieldId, or null if its not found.
21353 public static _Fields findByThriftId(int fieldId) {
21359 case 3: // WIN_SIZE
21369 * Find the _Fields constant that matches fieldId, throwing an exception
21370 * if it is not found.
21372 public static _Fields findByThriftIdOrThrow(int fieldId) {
21373 _Fields fields = findByThriftId(fieldId);
21374 if (fields == null) {
21375 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21381 * Find the _Fields constant that matches name, or null if its not found.
21383 public static _Fields findByName(String name) {
21384 return byName.get(name);
21387 private final short _thriftId;
21388 private final String _fieldName;
21390 _Fields(short thriftId, String fieldName) {
21391 _thriftId = thriftId;
21392 _fieldName = fieldName;
21396 public short getThriftFieldId() {
21401 public String getFieldName() {
21406 // isset id assignments
21407 private static final int __OPTYPE_ISSET_ID = 0;
21408 private static final int __WINSIZE_ISSET_ID = 1;
21409 private byte __isset_bitfield = 0;
21410 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21412 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21413 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
21414 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
21415 tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
21416 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21417 tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
21418 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21419 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21420 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21421 metaDataMap = Collections.unmodifiableMap(tmpMap);
21422 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
21425 public getRoutes_args() {
21428 public getRoutes_args(
21429 protocol_type p_type,
21435 this.p_type = p_type;
21436 this.optype = optype;
21437 setOptypeIsSet(true);
21438 this.winSize = winSize;
21439 setWinSizeIsSet(true);
21444 * Performs a deep copy on <i>other</i>.
21446 public getRoutes_args(getRoutes_args other) {
21447 __isset_bitfield = other.__isset_bitfield;
21448 if (other.isSetP_type()) {
21449 this.p_type = other.p_type;
21451 this.optype = other.optype;
21452 this.winSize = other.winSize;
21453 if (other.isSetAfi()) {
21454 this.afi = other.afi;
21459 public getRoutes_args deepCopy() {
21460 return new getRoutes_args(this);
21464 public void clear() {
21465 this.p_type = null;
21466 setOptypeIsSet(false);
21468 setWinSizeIsSet(false);
21475 * @see protocol_type
21477 public protocol_type getP_type() {
21478 return this.p_type;
21483 * @see protocol_type
21485 public getRoutes_args setP_type(protocol_type p_type) {
21486 this.p_type = p_type;
21490 public void unsetP_type() {
21491 this.p_type = null;
21494 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
21495 public boolean isSetP_type() {
21496 return this.p_type != null;
21499 public void setP_typeIsSet(boolean value) {
21501 this.p_type = null;
21505 public int getOptype() {
21506 return this.optype;
21509 public getRoutes_args setOptype(int optype) {
21510 this.optype = optype;
21511 setOptypeIsSet(true);
21515 public void unsetOptype() {
21516 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21519 /** Returns true if field optype is set (has been assigned a value) and false otherwise */
21520 public boolean isSetOptype() {
21521 return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21524 public void setOptypeIsSet(boolean value) {
21525 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
21528 public int getWinSize() {
21529 return this.winSize;
21532 public getRoutes_args setWinSize(int winSize) {
21533 this.winSize = winSize;
21534 setWinSizeIsSet(true);
21538 public void unsetWinSize() {
21539 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21542 /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
21543 public boolean isSetWinSize() {
21544 return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21547 public void setWinSizeIsSet(boolean value) {
21548 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
21555 public af_afi getAfi() {
21563 public getRoutes_args setAfi(af_afi afi) {
21568 public void unsetAfi() {
21572 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21573 public boolean isSetAfi() {
21574 return this.afi != null;
21577 public void setAfiIsSet(boolean value) {
21584 public void setFieldValue(_Fields field, Object value) {
21587 if (value == null) {
21590 setP_type((protocol_type)value);
21595 if (value == null) {
21598 setOptype((Integer)value);
21603 if (value == null) {
21606 setWinSize((Integer)value);
21611 if (value == null) {
21614 setAfi((af_afi)value);
21622 public Object getFieldValue(_Fields field) {
21625 return getP_type();
21628 return Integer.valueOf(getOptype());
21631 return Integer.valueOf(getWinSize());
21637 throw new IllegalStateException();
21640 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21642 public boolean isSet(_Fields field) {
21643 if (field == null) {
21644 throw new IllegalArgumentException();
21649 return isSetP_type();
21651 return isSetOptype();
21653 return isSetWinSize();
21657 throw new IllegalStateException();
21661 public boolean equals(Object that) {
21662 if (that == null) {
21665 if (that instanceof getRoutes_args) {
21666 return this.equals((getRoutes_args)that);
21671 public boolean equals(getRoutes_args that) {
21672 if (that == null) {
21676 boolean this_present_p_type = true && this.isSetP_type();
21677 boolean that_present_p_type = true && that.isSetP_type();
21678 if (this_present_p_type || that_present_p_type) {
21679 if (!(this_present_p_type && that_present_p_type)) {
21682 if (!this.p_type.equals(that.p_type)) {
21687 boolean this_present_optype = true;
21688 boolean that_present_optype = true;
21689 if (this_present_optype || that_present_optype) {
21690 if (!(this_present_optype && that_present_optype)) {
21693 if (this.optype != that.optype) {
21698 boolean this_present_winSize = true;
21699 boolean that_present_winSize = true;
21700 if (this_present_winSize || that_present_winSize) {
21701 if (!(this_present_winSize && that_present_winSize)) {
21704 if (this.winSize != that.winSize) {
21709 boolean this_present_afi = true && this.isSetAfi();
21710 boolean that_present_afi = true && that.isSetAfi();
21711 if (this_present_afi || that_present_afi) {
21712 if (!(this_present_afi && that_present_afi)) {
21715 if (!this.afi.equals(that.afi)) {
21724 public int hashCode() {
21725 List<Object> list = new ArrayList<Object>();
21727 boolean present_p_type = true && (isSetP_type());
21728 list.add(present_p_type);
21729 if (present_p_type)
21730 list.add(p_type.getValue());
21731 boolean present_optype = true;
21732 list.add(present_optype);
21733 if (present_optype)
21735 boolean present_winSize = true;
21736 list.add(present_winSize);
21737 if (present_winSize)
21739 boolean present_afi = true && (isSetAfi());
21740 list.add(present_afi);
21742 list.add(afi.getValue());
21743 return list.hashCode();
21747 public int compareTo(getRoutes_args other) {
21748 if (!getClass().equals(other.getClass())) {
21749 return getClass().getName().compareTo(other.getClass().getName());
21752 int lastComparison = 0;
21754 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
21755 if (lastComparison != 0) {
21756 return lastComparison;
21758 if (isSetP_type()) {
21759 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
21760 if (lastComparison != 0) {
21761 return lastComparison;
21764 lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
21765 if (lastComparison != 0) {
21766 return lastComparison;
21768 if (isSetOptype()) {
21769 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
21770 if (lastComparison != 0) {
21771 return lastComparison;
21774 lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
21775 if (lastComparison != 0) {
21776 return lastComparison;
21778 if (isSetWinSize()) {
21779 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
21780 if (lastComparison != 0) {
21781 return lastComparison;
21784 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
21785 if (lastComparison != 0) {
21786 return lastComparison;
21789 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
21790 if (lastComparison != 0) {
21791 return lastComparison;
21798 public _Fields fieldForId(int fieldId) {
21799 return _Fields.findByThriftId(fieldId);
21803 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21804 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21808 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21809 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21813 public String toString() {
21814 StringBuilder sb = new StringBuilder("getRoutes_args(");
21815 boolean first = true;
21817 sb.append("p_type:");
21818 if (this.p_type == null) {
21821 sb.append(this.p_type);
21827 sb.append("optype:");
21828 sb.append(this.optype);
21833 sb.append("winSize:");
21834 sb.append(this.winSize);
21840 if (this.afi == null) {
21843 sb.append(this.afi);
21847 return sb.toString();
21850 public void validate() throws org.apache.thrift.TException {
21851 // check for required fields
21852 // check for sub-struct validity
21855 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21857 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21858 } catch (org.apache.thrift.TException te) {
21859 throw new java.io.IOException(te);
21863 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21865 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21866 __isset_bitfield = 0;
21867 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21868 } catch (org.apache.thrift.TException te) {
21869 throw new java.io.IOException(te);
21873 private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
21875 public getRoutes_argsStandardScheme getScheme() {
21876 return new getRoutes_argsStandardScheme();
21880 private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
21883 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
21884 org.apache.thrift.protocol.TField schemeField;
21885 iprot.readStructBegin();
21888 schemeField = iprot.readFieldBegin();
21889 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21892 switch (schemeField.id) {
21894 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21895 struct.p_type = protocol_type.findByValue(iprot.readI32());
21896 struct.setP_typeIsSet(true);
21898 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21902 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21903 struct.optype = iprot.readI32();
21904 struct.setOptypeIsSet(true);
21906 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21909 case 3: // WIN_SIZE
21910 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21911 struct.winSize = iprot.readI32();
21912 struct.setWinSizeIsSet(true);
21914 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21918 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21919 struct.afi = af_afi.findByValue(iprot.readI32());
21920 struct.setAfiIsSet(true);
21922 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21926 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21928 iprot.readFieldEnd();
21930 iprot.readStructEnd();
21932 // check for required fields of primitive type, which can't be checked in the validate method
21937 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
21940 oprot.writeStructBegin(STRUCT_DESC);
21941 if (struct.p_type != null) {
21942 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
21943 oprot.writeI32(struct.p_type.getValue());
21944 oprot.writeFieldEnd();
21946 oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
21947 oprot.writeI32(struct.optype);
21948 oprot.writeFieldEnd();
21949 oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
21950 oprot.writeI32(struct.winSize);
21951 oprot.writeFieldEnd();
21952 if (struct.afi != null) {
21953 oprot.writeFieldBegin(AFI_FIELD_DESC);
21954 oprot.writeI32(struct.afi.getValue());
21955 oprot.writeFieldEnd();
21957 oprot.writeFieldStop();
21958 oprot.writeStructEnd();
21963 private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
21965 public getRoutes_argsTupleScheme getScheme() {
21966 return new getRoutes_argsTupleScheme();
21970 private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
21973 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
21974 TTupleProtocol oprot = (TTupleProtocol) prot;
21975 BitSet optionals = new BitSet();
21976 if (struct.isSetP_type()) {
21979 if (struct.isSetOptype()) {
21982 if (struct.isSetWinSize()) {
21985 if (struct.isSetAfi()) {
21988 oprot.writeBitSet(optionals, 4);
21989 if (struct.isSetP_type()) {
21990 oprot.writeI32(struct.p_type.getValue());
21992 if (struct.isSetOptype()) {
21993 oprot.writeI32(struct.optype);
21995 if (struct.isSetWinSize()) {
21996 oprot.writeI32(struct.winSize);
21998 if (struct.isSetAfi()) {
21999 oprot.writeI32(struct.afi.getValue());
22004 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22005 TTupleProtocol iprot = (TTupleProtocol) prot;
22006 BitSet incoming = iprot.readBitSet(4);
22007 if (incoming.get(0)) {
22008 struct.p_type = protocol_type.findByValue(iprot.readI32());
22009 struct.setP_typeIsSet(true);
22011 if (incoming.get(1)) {
22012 struct.optype = iprot.readI32();
22013 struct.setOptypeIsSet(true);
22015 if (incoming.get(2)) {
22016 struct.winSize = iprot.readI32();
22017 struct.setWinSizeIsSet(true);
22019 if (incoming.get(3)) {
22020 struct.afi = af_afi.findByValue(iprot.readI32());
22021 struct.setAfiIsSet(true);
22028 public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result> {
22029 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
22031 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);
22033 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22035 schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
22036 schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
22039 public Routes success; // required
22041 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22042 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22043 SUCCESS((short)0, "success");
22045 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22048 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22049 byName.put(field.getFieldName(), field);
22054 * Find the _Fields constant that matches fieldId, or null if its not found.
22056 public static _Fields findByThriftId(int fieldId) {
22066 * Find the _Fields constant that matches fieldId, throwing an exception
22067 * if it is not found.
22069 public static _Fields findByThriftIdOrThrow(int fieldId) {
22070 _Fields fields = findByThriftId(fieldId);
22071 if (fields == null) {
22072 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22078 * Find the _Fields constant that matches name, or null if its not found.
22080 public static _Fields findByName(String name) {
22081 return byName.get(name);
22084 private final short _thriftId;
22085 private final String _fieldName;
22087 _Fields(short thriftId, String fieldName) {
22088 _thriftId = thriftId;
22089 _fieldName = fieldName;
22093 public short getThriftFieldId() {
22098 public String getFieldName() {
22103 // isset id assignments
22104 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22106 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22107 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22108 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
22109 metaDataMap = Collections.unmodifiableMap(tmpMap);
22110 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
22113 public getRoutes_result() {
22116 public getRoutes_result(
22120 this.success = success;
22124 * Performs a deep copy on <i>other</i>.
22126 public getRoutes_result(getRoutes_result other) {
22127 if (other.isSetSuccess()) {
22128 this.success = new Routes(other.success);
22133 public getRoutes_result deepCopy() {
22134 return new getRoutes_result(this);
22138 public void clear() {
22139 this.success = null;
22142 public Routes getSuccess() {
22143 return this.success;
22146 public getRoutes_result setSuccess(Routes success) {
22147 this.success = success;
22151 public void unsetSuccess() {
22152 this.success = null;
22155 /** Returns true if field success is set (has been assigned a value) and false otherwise */
22156 public boolean isSetSuccess() {
22157 return this.success != null;
22160 public void setSuccessIsSet(boolean value) {
22162 this.success = null;
22167 public void setFieldValue(_Fields field, Object value) {
22170 if (value == null) {
22173 setSuccess((Routes)value);
22181 public Object getFieldValue(_Fields field) {
22184 return getSuccess();
22187 throw new IllegalStateException();
22190 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22192 public boolean isSet(_Fields field) {
22193 if (field == null) {
22194 throw new IllegalArgumentException();
22199 return isSetSuccess();
22201 throw new IllegalStateException();
22205 public boolean equals(Object that) {
22206 if (that == null) {
22209 if (that instanceof getRoutes_result) {
22210 return this.equals((getRoutes_result)that);
22215 public boolean equals(getRoutes_result that) {
22216 if (that == null) {
22220 boolean this_present_success = true && this.isSetSuccess();
22221 boolean that_present_success = true && that.isSetSuccess();
22222 if (this_present_success || that_present_success) {
22223 if (!(this_present_success && that_present_success)) {
22226 if (!this.success.equals(that.success)) {
22235 public int hashCode() {
22236 List<Object> list = new ArrayList<Object>();
22238 boolean present_success = true && (isSetSuccess());
22239 list.add(present_success);
22240 if (present_success)
22242 return list.hashCode();
22246 public int compareTo(getRoutes_result other) {
22247 if (!getClass().equals(other.getClass())) {
22248 return getClass().getName().compareTo(other.getClass().getName());
22251 int lastComparison = 0;
22253 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22254 if (lastComparison != 0) {
22255 return lastComparison;
22257 if (isSetSuccess()) {
22258 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22259 if (lastComparison != 0) {
22260 return lastComparison;
22267 public _Fields fieldForId(int fieldId) {
22268 return _Fields.findByThriftId(fieldId);
22272 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22273 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22277 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22278 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22282 public String toString() {
22283 StringBuilder sb = new StringBuilder("getRoutes_result(");
22284 boolean first = true;
22286 sb.append("success:");
22287 if (this.success == null) {
22290 sb.append(this.success);
22294 return sb.toString();
22297 public void validate() throws org.apache.thrift.TException {
22298 // check for required fields
22299 // check for sub-struct validity
22300 if (success != null) {
22301 success.validate();
22305 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22307 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22308 } catch (org.apache.thrift.TException te) {
22309 throw new java.io.IOException(te);
22313 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22315 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22316 } catch (org.apache.thrift.TException te) {
22317 throw new java.io.IOException(te);
22321 private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
22323 public getRoutes_resultStandardScheme getScheme() {
22324 return new getRoutes_resultStandardScheme();
22328 private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
22331 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
22332 org.apache.thrift.protocol.TField schemeField;
22333 iprot.readStructBegin();
22336 schemeField = iprot.readFieldBegin();
22337 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22340 switch (schemeField.id) {
22342 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22343 struct.success = new Routes();
22344 struct.success.read(iprot);
22345 struct.setSuccessIsSet(true);
22347 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22351 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22353 iprot.readFieldEnd();
22355 iprot.readStructEnd();
22357 // check for required fields of primitive type, which can't be checked in the validate method
22362 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
22365 oprot.writeStructBegin(STRUCT_DESC);
22366 if (struct.success != null) {
22367 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22368 struct.success.write(oprot);
22369 oprot.writeFieldEnd();
22371 oprot.writeFieldStop();
22372 oprot.writeStructEnd();
22377 private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
22379 public getRoutes_resultTupleScheme getScheme() {
22380 return new getRoutes_resultTupleScheme();
22384 private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
22387 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22388 TTupleProtocol oprot = (TTupleProtocol) prot;
22389 BitSet optionals = new BitSet();
22390 if (struct.isSetSuccess()) {
22393 oprot.writeBitSet(optionals, 1);
22394 if (struct.isSetSuccess()) {
22395 struct.success.write(oprot);
22400 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22401 TTupleProtocol iprot = (TTupleProtocol) prot;
22402 BitSet incoming = iprot.readBitSet(1);
22403 if (incoming.get(0)) {
22404 struct.success = new Routes();
22405 struct.success.read(iprot);
22406 struct.setSuccessIsSet(true);
22413 public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args> {
22414 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
22416 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);
22417 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);
22419 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22421 schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
22422 schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
22429 public af_afi afi; // required
22434 public af_safi safi; // required
22436 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22437 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22442 AFI((short)1, "afi"),
22447 SAFI((short)2, "safi");
22449 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22452 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22453 byName.put(field.getFieldName(), field);
22458 * Find the _Fields constant that matches fieldId, or null if its not found.
22460 public static _Fields findByThriftId(int fieldId) {
22472 * Find the _Fields constant that matches fieldId, throwing an exception
22473 * if it is not found.
22475 public static _Fields findByThriftIdOrThrow(int fieldId) {
22476 _Fields fields = findByThriftId(fieldId);
22477 if (fields == null) {
22478 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22484 * Find the _Fields constant that matches name, or null if its not found.
22486 public static _Fields findByName(String name) {
22487 return byName.get(name);
22490 private final short _thriftId;
22491 private final String _fieldName;
22493 _Fields(short thriftId, String fieldName) {
22494 _thriftId = thriftId;
22495 _fieldName = fieldName;
22499 public short getThriftFieldId() {
22504 public String getFieldName() {
22509 // isset id assignments
22510 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22512 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22513 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22514 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
22515 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22516 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
22517 metaDataMap = Collections.unmodifiableMap(tmpMap);
22518 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
22521 public enableMultipath_args() {
22524 public enableMultipath_args(
22534 * Performs a deep copy on <i>other</i>.
22536 public enableMultipath_args(enableMultipath_args other) {
22537 if (other.isSetAfi()) {
22538 this.afi = other.afi;
22540 if (other.isSetSafi()) {
22541 this.safi = other.safi;
22546 public enableMultipath_args deepCopy() {
22547 return new enableMultipath_args(this);
22551 public void clear() {
22560 public af_afi getAfi() {
22568 public enableMultipath_args setAfi(af_afi afi) {
22573 public void unsetAfi() {
22577 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
22578 public boolean isSetAfi() {
22579 return this.afi != null;
22582 public void setAfiIsSet(boolean value) {
22592 public af_safi getSafi() {
22600 public enableMultipath_args setSafi(af_safi safi) {
22605 public void unsetSafi() {
22609 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
22610 public boolean isSetSafi() {
22611 return this.safi != null;
22614 public void setSafiIsSet(boolean value) {
22621 public void setFieldValue(_Fields field, Object value) {
22624 if (value == null) {
22627 setAfi((af_afi)value);
22632 if (value == null) {
22635 setSafi((af_safi)value);
22643 public Object getFieldValue(_Fields field) {
22652 throw new IllegalStateException();
22655 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22657 public boolean isSet(_Fields field) {
22658 if (field == null) {
22659 throw new IllegalArgumentException();
22666 return isSetSafi();
22668 throw new IllegalStateException();
22672 public boolean equals(Object that) {
22673 if (that == null) {
22676 if (that instanceof enableMultipath_args) {
22677 return this.equals((enableMultipath_args)that);
22682 public boolean equals(enableMultipath_args that) {
22683 if (that == null) {
22687 boolean this_present_afi = true && this.isSetAfi();
22688 boolean that_present_afi = true && that.isSetAfi();
22689 if (this_present_afi || that_present_afi) {
22690 if (!(this_present_afi && that_present_afi)) {
22693 if (!this.afi.equals(that.afi)) {
22698 boolean this_present_safi = true && this.isSetSafi();
22699 boolean that_present_safi = true && that.isSetSafi();
22700 if (this_present_safi || that_present_safi) {
22701 if (!(this_present_safi && that_present_safi)) {
22704 if (!this.safi.equals(that.safi)) {
22713 public int hashCode() {
22714 List<Object> list = new ArrayList<Object>();
22716 boolean present_afi = true && (isSetAfi());
22717 list.add(present_afi);
22719 list.add(afi.getValue());
22720 boolean present_safi = true && (isSetSafi());
22721 list.add(present_safi);
22723 list.add(safi.getValue());
22724 return list.hashCode();
22728 public int compareTo(enableMultipath_args other) {
22729 if (!getClass().equals(other.getClass())) {
22730 return getClass().getName().compareTo(other.getClass().getName());
22733 int lastComparison = 0;
22735 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
22736 if (lastComparison != 0) {
22737 return lastComparison;
22740 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
22741 if (lastComparison != 0) {
22742 return lastComparison;
22745 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
22746 if (lastComparison != 0) {
22747 return lastComparison;
22750 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
22751 if (lastComparison != 0) {
22752 return lastComparison;
22759 public _Fields fieldForId(int fieldId) {
22760 return _Fields.findByThriftId(fieldId);
22764 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22765 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22769 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22770 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22774 public String toString() {
22775 StringBuilder sb = new StringBuilder("enableMultipath_args(");
22776 boolean first = true;
22779 if (this.afi == null) {
22782 sb.append(this.afi);
22788 sb.append("safi:");
22789 if (this.safi == null) {
22792 sb.append(this.safi);
22796 return sb.toString();
22799 public void validate() throws org.apache.thrift.TException {
22800 // check for required fields
22801 // check for sub-struct validity
22804 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22806 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22807 } catch (org.apache.thrift.TException te) {
22808 throw new java.io.IOException(te);
22812 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22814 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22815 } catch (org.apache.thrift.TException te) {
22816 throw new java.io.IOException(te);
22820 private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
22822 public enableMultipath_argsStandardScheme getScheme() {
22823 return new enableMultipath_argsStandardScheme();
22827 private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
22830 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
22831 org.apache.thrift.protocol.TField schemeField;
22832 iprot.readStructBegin();
22835 schemeField = iprot.readFieldBegin();
22836 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22839 switch (schemeField.id) {
22841 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22842 struct.afi = af_afi.findByValue(iprot.readI32());
22843 struct.setAfiIsSet(true);
22845 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22849 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22850 struct.safi = af_safi.findByValue(iprot.readI32());
22851 struct.setSafiIsSet(true);
22853 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22857 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22859 iprot.readFieldEnd();
22861 iprot.readStructEnd();
22863 // check for required fields of primitive type, which can't be checked in the validate method
22868 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
22871 oprot.writeStructBegin(STRUCT_DESC);
22872 if (struct.afi != null) {
22873 oprot.writeFieldBegin(AFI_FIELD_DESC);
22874 oprot.writeI32(struct.afi.getValue());
22875 oprot.writeFieldEnd();
22877 if (struct.safi != null) {
22878 oprot.writeFieldBegin(SAFI_FIELD_DESC);
22879 oprot.writeI32(struct.safi.getValue());
22880 oprot.writeFieldEnd();
22882 oprot.writeFieldStop();
22883 oprot.writeStructEnd();
22888 private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
22890 public enableMultipath_argsTupleScheme getScheme() {
22891 return new enableMultipath_argsTupleScheme();
22895 private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
22898 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
22899 TTupleProtocol oprot = (TTupleProtocol) prot;
22900 BitSet optionals = new BitSet();
22901 if (struct.isSetAfi()) {
22904 if (struct.isSetSafi()) {
22907 oprot.writeBitSet(optionals, 2);
22908 if (struct.isSetAfi()) {
22909 oprot.writeI32(struct.afi.getValue());
22911 if (struct.isSetSafi()) {
22912 oprot.writeI32(struct.safi.getValue());
22917 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
22918 TTupleProtocol iprot = (TTupleProtocol) prot;
22919 BitSet incoming = iprot.readBitSet(2);
22920 if (incoming.get(0)) {
22921 struct.afi = af_afi.findByValue(iprot.readI32());
22922 struct.setAfiIsSet(true);
22924 if (incoming.get(1)) {
22925 struct.safi = af_safi.findByValue(iprot.readI32());
22926 struct.setSafiIsSet(true);
22933 public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result> {
22934 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
22936 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);
22938 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22940 schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
22941 schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
22944 public int success; // required
22946 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22947 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22948 SUCCESS((short)0, "success");
22950 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22953 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22954 byName.put(field.getFieldName(), field);
22959 * Find the _Fields constant that matches fieldId, or null if its not found.
22961 public static _Fields findByThriftId(int fieldId) {
22971 * Find the _Fields constant that matches fieldId, throwing an exception
22972 * if it is not found.
22974 public static _Fields findByThriftIdOrThrow(int fieldId) {
22975 _Fields fields = findByThriftId(fieldId);
22976 if (fields == null) {
22977 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22983 * Find the _Fields constant that matches name, or null if its not found.
22985 public static _Fields findByName(String name) {
22986 return byName.get(name);
22989 private final short _thriftId;
22990 private final String _fieldName;
22992 _Fields(short thriftId, String fieldName) {
22993 _thriftId = thriftId;
22994 _fieldName = fieldName;
22998 public short getThriftFieldId() {
23003 public String getFieldName() {
23008 // isset id assignments
23009 private static final int __SUCCESS_ISSET_ID = 0;
23010 private byte __isset_bitfield = 0;
23011 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23013 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23014 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23015 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23016 metaDataMap = Collections.unmodifiableMap(tmpMap);
23017 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
23020 public enableMultipath_result() {
23023 public enableMultipath_result(
23027 this.success = success;
23028 setSuccessIsSet(true);
23032 * Performs a deep copy on <i>other</i>.
23034 public enableMultipath_result(enableMultipath_result other) {
23035 __isset_bitfield = other.__isset_bitfield;
23036 this.success = other.success;
23040 public enableMultipath_result deepCopy() {
23041 return new enableMultipath_result(this);
23045 public void clear() {
23046 setSuccessIsSet(false);
23050 public int getSuccess() {
23051 return this.success;
23054 public enableMultipath_result setSuccess(int success) {
23055 this.success = success;
23056 setSuccessIsSet(true);
23060 public void unsetSuccess() {
23061 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23064 /** Returns true if field success is set (has been assigned a value) and false otherwise */
23065 public boolean isSetSuccess() {
23066 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23069 public void setSuccessIsSet(boolean value) {
23070 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23074 public void setFieldValue(_Fields field, Object value) {
23077 if (value == null) {
23080 setSuccess((Integer)value);
23088 public Object getFieldValue(_Fields field) {
23091 return Integer.valueOf(getSuccess());
23094 throw new IllegalStateException();
23097 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23099 public boolean isSet(_Fields field) {
23100 if (field == null) {
23101 throw new IllegalArgumentException();
23106 return isSetSuccess();
23108 throw new IllegalStateException();
23112 public boolean equals(Object that) {
23113 if (that == null) {
23116 if (that instanceof enableMultipath_result) {
23117 return this.equals((enableMultipath_result)that);
23122 public boolean equals(enableMultipath_result that) {
23123 if (that == null) {
23127 boolean this_present_success = true;
23128 boolean that_present_success = true;
23129 if (this_present_success || that_present_success) {
23130 if (!(this_present_success && that_present_success)) {
23133 if (this.success != that.success) {
23142 public int hashCode() {
23143 List<Object> list = new ArrayList<Object>();
23145 boolean present_success = true;
23146 list.add(present_success);
23147 if (present_success)
23149 return list.hashCode();
23153 public int compareTo(enableMultipath_result other) {
23154 if (!getClass().equals(other.getClass())) {
23155 return getClass().getName().compareTo(other.getClass().getName());
23158 int lastComparison = 0;
23160 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
23161 if (lastComparison != 0) {
23162 return lastComparison;
23164 if (isSetSuccess()) {
23165 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
23166 if (lastComparison != 0) {
23167 return lastComparison;
23174 public _Fields fieldForId(int fieldId) {
23175 return _Fields.findByThriftId(fieldId);
23179 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23180 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23184 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23185 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23189 public String toString() {
23190 StringBuilder sb = new StringBuilder("enableMultipath_result(");
23191 boolean first = true;
23193 sb.append("success:");
23194 sb.append(this.success);
23197 return sb.toString();
23200 public void validate() throws org.apache.thrift.TException {
23201 // check for required fields
23202 // check for sub-struct validity
23205 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23207 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23208 } catch (org.apache.thrift.TException te) {
23209 throw new java.io.IOException(te);
23213 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23215 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23216 __isset_bitfield = 0;
23217 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23218 } catch (org.apache.thrift.TException te) {
23219 throw new java.io.IOException(te);
23223 private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
23225 public enableMultipath_resultStandardScheme getScheme() {
23226 return new enableMultipath_resultStandardScheme();
23230 private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
23233 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23234 org.apache.thrift.protocol.TField schemeField;
23235 iprot.readStructBegin();
23238 schemeField = iprot.readFieldBegin();
23239 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23242 switch (schemeField.id) {
23244 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23245 struct.success = iprot.readI32();
23246 struct.setSuccessIsSet(true);
23248 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23252 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23254 iprot.readFieldEnd();
23256 iprot.readStructEnd();
23258 // check for required fields of primitive type, which can't be checked in the validate method
23263 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23266 oprot.writeStructBegin(STRUCT_DESC);
23267 if (struct.isSetSuccess()) {
23268 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23269 oprot.writeI32(struct.success);
23270 oprot.writeFieldEnd();
23272 oprot.writeFieldStop();
23273 oprot.writeStructEnd();
23278 private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
23280 public enableMultipath_resultTupleScheme getScheme() {
23281 return new enableMultipath_resultTupleScheme();
23285 private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
23288 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23289 TTupleProtocol oprot = (TTupleProtocol) prot;
23290 BitSet optionals = new BitSet();
23291 if (struct.isSetSuccess()) {
23294 oprot.writeBitSet(optionals, 1);
23295 if (struct.isSetSuccess()) {
23296 oprot.writeI32(struct.success);
23301 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23302 TTupleProtocol iprot = (TTupleProtocol) prot;
23303 BitSet incoming = iprot.readBitSet(1);
23304 if (incoming.get(0)) {
23305 struct.success = iprot.readI32();
23306 struct.setSuccessIsSet(true);
23313 public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args> {
23314 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
23316 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);
23317 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);
23319 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23321 schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
23322 schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
23329 public af_afi afi; // required
23334 public af_safi safi; // required
23336 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23337 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23342 AFI((short)1, "afi"),
23347 SAFI((short)2, "safi");
23349 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23352 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23353 byName.put(field.getFieldName(), field);
23358 * Find the _Fields constant that matches fieldId, or null if its not found.
23360 public static _Fields findByThriftId(int fieldId) {
23372 * Find the _Fields constant that matches fieldId, throwing an exception
23373 * if it is not found.
23375 public static _Fields findByThriftIdOrThrow(int fieldId) {
23376 _Fields fields = findByThriftId(fieldId);
23377 if (fields == null) {
23378 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23384 * Find the _Fields constant that matches name, or null if its not found.
23386 public static _Fields findByName(String name) {
23387 return byName.get(name);
23390 private final short _thriftId;
23391 private final String _fieldName;
23393 _Fields(short thriftId, String fieldName) {
23394 _thriftId = thriftId;
23395 _fieldName = fieldName;
23399 public short getThriftFieldId() {
23404 public String getFieldName() {
23409 // isset id assignments
23410 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23412 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23413 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23414 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
23415 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23416 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
23417 metaDataMap = Collections.unmodifiableMap(tmpMap);
23418 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
23421 public disableMultipath_args() {
23424 public disableMultipath_args(
23434 * Performs a deep copy on <i>other</i>.
23436 public disableMultipath_args(disableMultipath_args other) {
23437 if (other.isSetAfi()) {
23438 this.afi = other.afi;
23440 if (other.isSetSafi()) {
23441 this.safi = other.safi;
23446 public disableMultipath_args deepCopy() {
23447 return new disableMultipath_args(this);
23451 public void clear() {
23460 public af_afi getAfi() {
23468 public disableMultipath_args setAfi(af_afi afi) {
23473 public void unsetAfi() {
23477 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
23478 public boolean isSetAfi() {
23479 return this.afi != null;
23482 public void setAfiIsSet(boolean value) {
23492 public af_safi getSafi() {
23500 public disableMultipath_args setSafi(af_safi safi) {
23505 public void unsetSafi() {
23509 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23510 public boolean isSetSafi() {
23511 return this.safi != null;
23514 public void setSafiIsSet(boolean value) {
23521 public void setFieldValue(_Fields field, Object value) {
23524 if (value == null) {
23527 setAfi((af_afi)value);
23532 if (value == null) {
23535 setSafi((af_safi)value);
23543 public Object getFieldValue(_Fields field) {
23552 throw new IllegalStateException();
23555 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23557 public boolean isSet(_Fields field) {
23558 if (field == null) {
23559 throw new IllegalArgumentException();
23566 return isSetSafi();
23568 throw new IllegalStateException();
23572 public boolean equals(Object that) {
23573 if (that == null) {
23576 if (that instanceof disableMultipath_args) {
23577 return this.equals((disableMultipath_args)that);
23582 public boolean equals(disableMultipath_args that) {
23583 if (that == null) {
23587 boolean this_present_afi = true && this.isSetAfi();
23588 boolean that_present_afi = true && that.isSetAfi();
23589 if (this_present_afi || that_present_afi) {
23590 if (!(this_present_afi && that_present_afi)) {
23593 if (!this.afi.equals(that.afi)) {
23598 boolean this_present_safi = true && this.isSetSafi();
23599 boolean that_present_safi = true && that.isSetSafi();
23600 if (this_present_safi || that_present_safi) {
23601 if (!(this_present_safi && that_present_safi)) {
23604 if (!this.safi.equals(that.safi)) {
23613 public int hashCode() {
23614 List<Object> list = new ArrayList<Object>();
23616 boolean present_afi = true && (isSetAfi());
23617 list.add(present_afi);
23619 list.add(afi.getValue());
23620 boolean present_safi = true && (isSetSafi());
23621 list.add(present_safi);
23623 list.add(safi.getValue());
23624 return list.hashCode();
23628 public int compareTo(disableMultipath_args other) {
23629 if (!getClass().equals(other.getClass())) {
23630 return getClass().getName().compareTo(other.getClass().getName());
23633 int lastComparison = 0;
23635 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
23636 if (lastComparison != 0) {
23637 return lastComparison;
23640 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
23641 if (lastComparison != 0) {
23642 return lastComparison;
23645 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
23646 if (lastComparison != 0) {
23647 return lastComparison;
23650 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
23651 if (lastComparison != 0) {
23652 return lastComparison;
23659 public _Fields fieldForId(int fieldId) {
23660 return _Fields.findByThriftId(fieldId);
23664 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23665 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23669 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23670 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23674 public String toString() {
23675 StringBuilder sb = new StringBuilder("disableMultipath_args(");
23676 boolean first = true;
23679 if (this.afi == null) {
23682 sb.append(this.afi);
23688 sb.append("safi:");
23689 if (this.safi == null) {
23692 sb.append(this.safi);
23696 return sb.toString();
23699 public void validate() throws org.apache.thrift.TException {
23700 // check for required fields
23701 // check for sub-struct validity
23704 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23706 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23707 } catch (org.apache.thrift.TException te) {
23708 throw new java.io.IOException(te);
23712 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23714 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23715 } catch (org.apache.thrift.TException te) {
23716 throw new java.io.IOException(te);
23720 private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
23722 public disableMultipath_argsStandardScheme getScheme() {
23723 return new disableMultipath_argsStandardScheme();
23727 private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
23730 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
23731 org.apache.thrift.protocol.TField schemeField;
23732 iprot.readStructBegin();
23735 schemeField = iprot.readFieldBegin();
23736 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23739 switch (schemeField.id) {
23741 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23742 struct.afi = af_afi.findByValue(iprot.readI32());
23743 struct.setAfiIsSet(true);
23745 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23749 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23750 struct.safi = af_safi.findByValue(iprot.readI32());
23751 struct.setSafiIsSet(true);
23753 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23757 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23759 iprot.readFieldEnd();
23761 iprot.readStructEnd();
23763 // check for required fields of primitive type, which can't be checked in the validate method
23768 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
23771 oprot.writeStructBegin(STRUCT_DESC);
23772 if (struct.afi != null) {
23773 oprot.writeFieldBegin(AFI_FIELD_DESC);
23774 oprot.writeI32(struct.afi.getValue());
23775 oprot.writeFieldEnd();
23777 if (struct.safi != null) {
23778 oprot.writeFieldBegin(SAFI_FIELD_DESC);
23779 oprot.writeI32(struct.safi.getValue());
23780 oprot.writeFieldEnd();
23782 oprot.writeFieldStop();
23783 oprot.writeStructEnd();
23788 private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
23790 public disableMultipath_argsTupleScheme getScheme() {
23791 return new disableMultipath_argsTupleScheme();
23795 private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
23798 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
23799 TTupleProtocol oprot = (TTupleProtocol) prot;
23800 BitSet optionals = new BitSet();
23801 if (struct.isSetAfi()) {
23804 if (struct.isSetSafi()) {
23807 oprot.writeBitSet(optionals, 2);
23808 if (struct.isSetAfi()) {
23809 oprot.writeI32(struct.afi.getValue());
23811 if (struct.isSetSafi()) {
23812 oprot.writeI32(struct.safi.getValue());
23817 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
23818 TTupleProtocol iprot = (TTupleProtocol) prot;
23819 BitSet incoming = iprot.readBitSet(2);
23820 if (incoming.get(0)) {
23821 struct.afi = af_afi.findByValue(iprot.readI32());
23822 struct.setAfiIsSet(true);
23824 if (incoming.get(1)) {
23825 struct.safi = af_safi.findByValue(iprot.readI32());
23826 struct.setSafiIsSet(true);
23833 public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result> {
23834 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
23836 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);
23838 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23840 schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
23841 schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
23844 public int success; // required
23846 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23847 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23848 SUCCESS((short)0, "success");
23850 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23853 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23854 byName.put(field.getFieldName(), field);
23859 * Find the _Fields constant that matches fieldId, or null if its not found.
23861 public static _Fields findByThriftId(int fieldId) {
23871 * Find the _Fields constant that matches fieldId, throwing an exception
23872 * if it is not found.
23874 public static _Fields findByThriftIdOrThrow(int fieldId) {
23875 _Fields fields = findByThriftId(fieldId);
23876 if (fields == null) {
23877 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23883 * Find the _Fields constant that matches name, or null if its not found.
23885 public static _Fields findByName(String name) {
23886 return byName.get(name);
23889 private final short _thriftId;
23890 private final String _fieldName;
23892 _Fields(short thriftId, String fieldName) {
23893 _thriftId = thriftId;
23894 _fieldName = fieldName;
23898 public short getThriftFieldId() {
23903 public String getFieldName() {
23908 // isset id assignments
23909 private static final int __SUCCESS_ISSET_ID = 0;
23910 private byte __isset_bitfield = 0;
23911 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23913 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23914 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23915 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23916 metaDataMap = Collections.unmodifiableMap(tmpMap);
23917 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
23920 public disableMultipath_result() {
23923 public disableMultipath_result(
23927 this.success = success;
23928 setSuccessIsSet(true);
23932 * Performs a deep copy on <i>other</i>.
23934 public disableMultipath_result(disableMultipath_result other) {
23935 __isset_bitfield = other.__isset_bitfield;
23936 this.success = other.success;
23940 public disableMultipath_result deepCopy() {
23941 return new disableMultipath_result(this);
23945 public void clear() {
23946 setSuccessIsSet(false);
23950 public int getSuccess() {
23951 return this.success;
23954 public disableMultipath_result setSuccess(int success) {
23955 this.success = success;
23956 setSuccessIsSet(true);
23960 public void unsetSuccess() {
23961 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23964 /** Returns true if field success is set (has been assigned a value) and false otherwise */
23965 public boolean isSetSuccess() {
23966 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23969 public void setSuccessIsSet(boolean value) {
23970 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23974 public void setFieldValue(_Fields field, Object value) {
23977 if (value == null) {
23980 setSuccess((Integer)value);
23988 public Object getFieldValue(_Fields field) {
23991 return Integer.valueOf(getSuccess());
23994 throw new IllegalStateException();
23997 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23999 public boolean isSet(_Fields field) {
24000 if (field == null) {
24001 throw new IllegalArgumentException();
24006 return isSetSuccess();
24008 throw new IllegalStateException();
24012 public boolean equals(Object that) {
24013 if (that == null) {
24016 if (that instanceof disableMultipath_result) {
24017 return this.equals((disableMultipath_result)that);
24022 public boolean equals(disableMultipath_result that) {
24023 if (that == null) {
24027 boolean this_present_success = true;
24028 boolean that_present_success = true;
24029 if (this_present_success || that_present_success) {
24030 if (!(this_present_success && that_present_success)) {
24033 if (this.success != that.success) {
24042 public int hashCode() {
24043 List<Object> list = new ArrayList<Object>();
24045 boolean present_success = true;
24046 list.add(present_success);
24047 if (present_success)
24049 return list.hashCode();
24053 public int compareTo(disableMultipath_result other) {
24054 if (!getClass().equals(other.getClass())) {
24055 return getClass().getName().compareTo(other.getClass().getName());
24058 int lastComparison = 0;
24060 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24061 if (lastComparison != 0) {
24062 return lastComparison;
24064 if (isSetSuccess()) {
24065 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24066 if (lastComparison != 0) {
24067 return lastComparison;
24074 public _Fields fieldForId(int fieldId) {
24075 return _Fields.findByThriftId(fieldId);
24079 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24080 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24084 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24085 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24089 public String toString() {
24090 StringBuilder sb = new StringBuilder("disableMultipath_result(");
24091 boolean first = true;
24093 sb.append("success:");
24094 sb.append(this.success);
24097 return sb.toString();
24100 public void validate() throws org.apache.thrift.TException {
24101 // check for required fields
24102 // check for sub-struct validity
24105 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24107 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24108 } catch (org.apache.thrift.TException te) {
24109 throw new java.io.IOException(te);
24113 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24115 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24116 __isset_bitfield = 0;
24117 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24118 } catch (org.apache.thrift.TException te) {
24119 throw new java.io.IOException(te);
24123 private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
24125 public disableMultipath_resultStandardScheme getScheme() {
24126 return new disableMultipath_resultStandardScheme();
24130 private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
24133 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24134 org.apache.thrift.protocol.TField schemeField;
24135 iprot.readStructBegin();
24138 schemeField = iprot.readFieldBegin();
24139 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24142 switch (schemeField.id) {
24144 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24145 struct.success = iprot.readI32();
24146 struct.setSuccessIsSet(true);
24148 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24152 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24154 iprot.readFieldEnd();
24156 iprot.readStructEnd();
24158 // check for required fields of primitive type, which can't be checked in the validate method
24163 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24166 oprot.writeStructBegin(STRUCT_DESC);
24167 if (struct.isSetSuccess()) {
24168 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24169 oprot.writeI32(struct.success);
24170 oprot.writeFieldEnd();
24172 oprot.writeFieldStop();
24173 oprot.writeStructEnd();
24178 private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
24180 public disableMultipath_resultTupleScheme getScheme() {
24181 return new disableMultipath_resultTupleScheme();
24185 private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
24188 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24189 TTupleProtocol oprot = (TTupleProtocol) prot;
24190 BitSet optionals = new BitSet();
24191 if (struct.isSetSuccess()) {
24194 oprot.writeBitSet(optionals, 1);
24195 if (struct.isSetSuccess()) {
24196 oprot.writeI32(struct.success);
24201 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24202 TTupleProtocol iprot = (TTupleProtocol) prot;
24203 BitSet incoming = iprot.readBitSet(1);
24204 if (incoming.get(0)) {
24205 struct.success = iprot.readI32();
24206 struct.setSuccessIsSet(true);
24213 public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args> {
24214 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
24216 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);
24217 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);
24219 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24221 schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
24222 schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
24225 public String rd; // required
24226 public int maxPath; // required
24228 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24229 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24230 RD((short)1, "rd"),
24231 MAX_PATH((short)2, "maxPath");
24233 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24236 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24237 byName.put(field.getFieldName(), field);
24242 * Find the _Fields constant that matches fieldId, or null if its not found.
24244 public static _Fields findByThriftId(int fieldId) {
24248 case 2: // MAX_PATH
24256 * Find the _Fields constant that matches fieldId, throwing an exception
24257 * if it is not found.
24259 public static _Fields findByThriftIdOrThrow(int fieldId) {
24260 _Fields fields = findByThriftId(fieldId);
24261 if (fields == null) {
24262 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24268 * Find the _Fields constant that matches name, or null if its not found.
24270 public static _Fields findByName(String name) {
24271 return byName.get(name);
24274 private final short _thriftId;
24275 private final String _fieldName;
24277 _Fields(short thriftId, String fieldName) {
24278 _thriftId = thriftId;
24279 _fieldName = fieldName;
24283 public short getThriftFieldId() {
24288 public String getFieldName() {
24293 // isset id assignments
24294 private static final int __MAXPATH_ISSET_ID = 0;
24295 private byte __isset_bitfield = 0;
24296 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24298 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24299 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
24300 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24301 tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
24302 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24303 metaDataMap = Collections.unmodifiableMap(tmpMap);
24304 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
24307 public multipaths_args() {
24310 public multipaths_args(
24316 this.maxPath = maxPath;
24317 setMaxPathIsSet(true);
24321 * Performs a deep copy on <i>other</i>.
24323 public multipaths_args(multipaths_args other) {
24324 __isset_bitfield = other.__isset_bitfield;
24325 if (other.isSetRd()) {
24326 this.rd = other.rd;
24328 this.maxPath = other.maxPath;
24332 public multipaths_args deepCopy() {
24333 return new multipaths_args(this);
24337 public void clear() {
24339 setMaxPathIsSet(false);
24343 public String getRd() {
24347 public multipaths_args setRd(String rd) {
24352 public void unsetRd() {
24356 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
24357 public boolean isSetRd() {
24358 return this.rd != null;
24361 public void setRdIsSet(boolean value) {
24367 public int getMaxPath() {
24368 return this.maxPath;
24371 public multipaths_args setMaxPath(int maxPath) {
24372 this.maxPath = maxPath;
24373 setMaxPathIsSet(true);
24377 public void unsetMaxPath() {
24378 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24381 /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
24382 public boolean isSetMaxPath() {
24383 return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24386 public void setMaxPathIsSet(boolean value) {
24387 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
24391 public void setFieldValue(_Fields field, Object value) {
24394 if (value == null) {
24397 setRd((String)value);
24402 if (value == null) {
24405 setMaxPath((Integer)value);
24413 public Object getFieldValue(_Fields field) {
24419 return Integer.valueOf(getMaxPath());
24422 throw new IllegalStateException();
24425 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24427 public boolean isSet(_Fields field) {
24428 if (field == null) {
24429 throw new IllegalArgumentException();
24436 return isSetMaxPath();
24438 throw new IllegalStateException();
24442 public boolean equals(Object that) {
24443 if (that == null) {
24446 if (that instanceof multipaths_args) {
24447 return this.equals((multipaths_args)that);
24452 public boolean equals(multipaths_args that) {
24453 if (that == null) {
24457 boolean this_present_rd = true && this.isSetRd();
24458 boolean that_present_rd = true && that.isSetRd();
24459 if (this_present_rd || that_present_rd) {
24460 if (!(this_present_rd && that_present_rd)) {
24463 if (!this.rd.equals(that.rd)) {
24468 boolean this_present_maxPath = true;
24469 boolean that_present_maxPath = true;
24470 if (this_present_maxPath || that_present_maxPath) {
24471 if (!(this_present_maxPath && that_present_maxPath)) {
24474 if (this.maxPath != that.maxPath) {
24483 public int hashCode() {
24484 List<Object> list = new ArrayList<Object>();
24485 boolean present_rd = true && (isSetRd());
24486 list.add(present_rd);
24489 boolean present_maxPath = true;
24490 list.add(present_maxPath);
24491 if (present_maxPath)
24493 return list.hashCode();
24497 public int compareTo(multipaths_args other) {
24498 if (!getClass().equals(other.getClass())) {
24499 return getClass().getName().compareTo(other.getClass().getName());
24502 int lastComparison = 0;
24504 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
24505 if (lastComparison != 0) {
24506 return lastComparison;
24509 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
24510 if (lastComparison != 0) {
24511 return lastComparison;
24514 lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
24515 if (lastComparison != 0) {
24516 return lastComparison;
24518 if (isSetMaxPath()) {
24519 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
24520 if (lastComparison != 0) {
24521 return lastComparison;
24528 public _Fields fieldForId(int fieldId) {
24529 return _Fields.findByThriftId(fieldId);
24533 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24534 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24538 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24539 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24543 public String toString() {
24544 StringBuilder sb = new StringBuilder("multipaths_args(");
24545 boolean first = true;
24548 if (this.rd == null) {
24551 sb.append(this.rd);
24557 sb.append("maxPath:");
24558 sb.append(this.maxPath);
24561 return sb.toString();
24564 public void validate() throws org.apache.thrift.TException {
24565 // check for required fields
24566 // check for sub-struct validity
24569 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24571 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24572 } catch (org.apache.thrift.TException te) {
24573 throw new java.io.IOException(te);
24577 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24579 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24580 __isset_bitfield = 0;
24581 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24582 } catch (org.apache.thrift.TException te) {
24583 throw new java.io.IOException(te);
24587 private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
24589 public multipaths_argsStandardScheme getScheme() {
24590 return new multipaths_argsStandardScheme();
24594 private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
24597 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
24598 org.apache.thrift.protocol.TField schemeField;
24599 iprot.readStructBegin();
24602 schemeField = iprot.readFieldBegin();
24603 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24606 switch (schemeField.id) {
24608 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
24609 struct.rd = iprot.readString();
24610 struct.setRdIsSet(true);
24612 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24615 case 2: // MAX_PATH
24616 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24617 struct.maxPath = iprot.readI32();
24618 struct.setMaxPathIsSet(true);
24620 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24626 iprot.readFieldEnd();
24628 iprot.readStructEnd();
24630 // check for required fields of primitive type, which can't be checked in the validate method
24635 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
24638 oprot.writeStructBegin(STRUCT_DESC);
24639 if (struct.rd != null) {
24640 oprot.writeFieldBegin(RD_FIELD_DESC);
24641 oprot.writeString(struct.rd);
24642 oprot.writeFieldEnd();
24644 oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
24645 oprot.writeI32(struct.maxPath);
24646 oprot.writeFieldEnd();
24647 oprot.writeFieldStop();
24648 oprot.writeStructEnd();
24653 private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
24655 public multipaths_argsTupleScheme getScheme() {
24656 return new multipaths_argsTupleScheme();
24660 private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
24663 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
24664 TTupleProtocol oprot = (TTupleProtocol) prot;
24665 BitSet optionals = new BitSet();
24666 if (struct.isSetRd()) {
24669 if (struct.isSetMaxPath()) {
24672 oprot.writeBitSet(optionals, 2);
24673 if (struct.isSetRd()) {
24674 oprot.writeString(struct.rd);
24676 if (struct.isSetMaxPath()) {
24677 oprot.writeI32(struct.maxPath);
24682 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
24683 TTupleProtocol iprot = (TTupleProtocol) prot;
24684 BitSet incoming = iprot.readBitSet(2);
24685 if (incoming.get(0)) {
24686 struct.rd = iprot.readString();
24687 struct.setRdIsSet(true);
24689 if (incoming.get(1)) {
24690 struct.maxPath = iprot.readI32();
24691 struct.setMaxPathIsSet(true);
24698 public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result> {
24699 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
24701 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);
24703 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24705 schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
24706 schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
24709 public int success; // required
24711 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24712 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24713 SUCCESS((short)0, "success");
24715 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24718 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24719 byName.put(field.getFieldName(), field);
24724 * Find the _Fields constant that matches fieldId, or null if its not found.
24726 public static _Fields findByThriftId(int fieldId) {
24736 * Find the _Fields constant that matches fieldId, throwing an exception
24737 * if it is not found.
24739 public static _Fields findByThriftIdOrThrow(int fieldId) {
24740 _Fields fields = findByThriftId(fieldId);
24741 if (fields == null) {
24742 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24748 * Find the _Fields constant that matches name, or null if its not found.
24750 public static _Fields findByName(String name) {
24751 return byName.get(name);
24754 private final short _thriftId;
24755 private final String _fieldName;
24757 _Fields(short thriftId, String fieldName) {
24758 _thriftId = thriftId;
24759 _fieldName = fieldName;
24763 public short getThriftFieldId() {
24768 public String getFieldName() {
24773 // isset id assignments
24774 private static final int __SUCCESS_ISSET_ID = 0;
24775 private byte __isset_bitfield = 0;
24776 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24778 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24779 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24780 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24781 metaDataMap = Collections.unmodifiableMap(tmpMap);
24782 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
24785 public multipaths_result() {
24788 public multipaths_result(
24792 this.success = success;
24793 setSuccessIsSet(true);
24797 * Performs a deep copy on <i>other</i>.
24799 public multipaths_result(multipaths_result other) {
24800 __isset_bitfield = other.__isset_bitfield;
24801 this.success = other.success;
24805 public multipaths_result deepCopy() {
24806 return new multipaths_result(this);
24810 public void clear() {
24811 setSuccessIsSet(false);
24815 public int getSuccess() {
24816 return this.success;
24819 public multipaths_result setSuccess(int success) {
24820 this.success = success;
24821 setSuccessIsSet(true);
24825 public void unsetSuccess() {
24826 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24829 /** Returns true if field success is set (has been assigned a value) and false otherwise */
24830 public boolean isSetSuccess() {
24831 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24834 public void setSuccessIsSet(boolean value) {
24835 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
24839 public void setFieldValue(_Fields field, Object value) {
24842 if (value == null) {
24845 setSuccess((Integer)value);
24853 public Object getFieldValue(_Fields field) {
24856 return Integer.valueOf(getSuccess());
24859 throw new IllegalStateException();
24862 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24864 public boolean isSet(_Fields field) {
24865 if (field == null) {
24866 throw new IllegalArgumentException();
24871 return isSetSuccess();
24873 throw new IllegalStateException();
24877 public boolean equals(Object that) {
24878 if (that == null) {
24881 if (that instanceof multipaths_result) {
24882 return this.equals((multipaths_result)that);
24887 public boolean equals(multipaths_result that) {
24888 if (that == null) {
24892 boolean this_present_success = true;
24893 boolean that_present_success = true;
24894 if (this_present_success || that_present_success) {
24895 if (!(this_present_success && that_present_success)) {
24898 if (this.success != that.success) {
24907 public int hashCode() {
24908 List<Object> list = new ArrayList<Object>();
24910 boolean present_success = true;
24911 list.add(present_success);
24912 if (present_success)
24914 return list.hashCode();
24918 public int compareTo(multipaths_result other) {
24919 if (!getClass().equals(other.getClass())) {
24920 return getClass().getName().compareTo(other.getClass().getName());
24923 int lastComparison = 0;
24925 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24926 if (lastComparison != 0) {
24927 return lastComparison;
24929 if (isSetSuccess()) {
24930 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24931 if (lastComparison != 0) {
24932 return lastComparison;
24939 public _Fields fieldForId(int fieldId) {
24940 return _Fields.findByThriftId(fieldId);
24944 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24945 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24949 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24950 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24954 public String toString() {
24955 StringBuilder sb = new StringBuilder("multipaths_result(");
24956 boolean first = true;
24958 sb.append("success:");
24959 sb.append(this.success);
24962 return sb.toString();
24965 public void validate() throws org.apache.thrift.TException {
24966 // check for required fields
24967 // check for sub-struct validity
24970 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24972 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24973 } catch (org.apache.thrift.TException te) {
24974 throw new java.io.IOException(te);
24978 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24980 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24981 __isset_bitfield = 0;
24982 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24983 } catch (org.apache.thrift.TException te) {
24984 throw new java.io.IOException(te);
24988 private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
24990 public multipaths_resultStandardScheme getScheme() {
24991 return new multipaths_resultStandardScheme();
24995 private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
24998 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
24999 org.apache.thrift.protocol.TField schemeField;
25000 iprot.readStructBegin();
25003 schemeField = iprot.readFieldBegin();
25004 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25007 switch (schemeField.id) {
25009 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25010 struct.success = iprot.readI32();
25011 struct.setSuccessIsSet(true);
25013 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25017 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25019 iprot.readFieldEnd();
25021 iprot.readStructEnd();
25023 // check for required fields of primitive type, which can't be checked in the validate method
25028 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
25031 oprot.writeStructBegin(STRUCT_DESC);
25032 if (struct.isSetSuccess()) {
25033 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25034 oprot.writeI32(struct.success);
25035 oprot.writeFieldEnd();
25037 oprot.writeFieldStop();
25038 oprot.writeStructEnd();
25043 private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
25045 public multipaths_resultTupleScheme getScheme() {
25046 return new multipaths_resultTupleScheme();
25050 private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
25053 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25054 TTupleProtocol oprot = (TTupleProtocol) prot;
25055 BitSet optionals = new BitSet();
25056 if (struct.isSetSuccess()) {
25059 oprot.writeBitSet(optionals, 1);
25060 if (struct.isSetSuccess()) {
25061 oprot.writeI32(struct.success);
25066 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25067 TTupleProtocol iprot = (TTupleProtocol) prot;
25068 BitSet incoming = iprot.readBitSet(1);
25069 if (incoming.get(0)) {
25070 struct.success = iprot.readI32();
25071 struct.setSuccessIsSet(true);
25078 public static class enableEORDelay_args implements org.apache.thrift.TBase<enableEORDelay_args, enableEORDelay_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_args> {
25079 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_args");
25081 private static final org.apache.thrift.protocol.TField DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("delay", org.apache.thrift.protocol.TType.I32, (short)1);
25083 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25085 schemes.put(StandardScheme.class, new enableEORDelay_argsStandardSchemeFactory());
25086 schemes.put(TupleScheme.class, new enableEORDelay_argsTupleSchemeFactory());
25089 public int delay; // required
25091 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25092 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25093 DELAY((short)1, "delay");
25095 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25098 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25099 byName.put(field.getFieldName(), field);
25104 * Find the _Fields constant that matches fieldId, or null if its not found.
25106 public static _Fields findByThriftId(int fieldId) {
25116 * Find the _Fields constant that matches fieldId, throwing an exception
25117 * if it is not found.
25119 public static _Fields findByThriftIdOrThrow(int fieldId) {
25120 _Fields fields = findByThriftId(fieldId);
25121 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25126 * Find the _Fields constant that matches name, or null if its not found.
25128 public static _Fields findByName(String name) {
25129 return byName.get(name);
25132 private final short _thriftId;
25133 private final String _fieldName;
25135 _Fields(short thriftId, String fieldName) {
25136 _thriftId = thriftId;
25137 _fieldName = fieldName;
25140 public short getThriftFieldId() {
25144 public String getFieldName() {
25149 // isset id assignments
25150 private static final int __DELAY_ISSET_ID = 0;
25151 private byte __isset_bitfield = 0;
25152 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25154 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25155 tmpMap.put(_Fields.DELAY, new org.apache.thrift.meta_data.FieldMetaData("delay", org.apache.thrift.TFieldRequirementType.DEFAULT,
25156 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25157 metaDataMap = Collections.unmodifiableMap(tmpMap);
25158 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_args.class, metaDataMap);
25161 public enableEORDelay_args() {
25164 public enableEORDelay_args(
25168 this.delay = delay;
25169 setDelayIsSet(true);
25173 * Performs a deep copy on <i>other</i>.
25175 public enableEORDelay_args(enableEORDelay_args other) {
25176 __isset_bitfield = other.__isset_bitfield;
25177 this.delay = other.delay;
25180 public enableEORDelay_args deepCopy() {
25181 return new enableEORDelay_args(this);
25185 public void clear() {
25186 setDelayIsSet(false);
25190 public int getDelay() {
25194 public enableEORDelay_args setDelay(int delay) {
25195 this.delay = delay;
25196 setDelayIsSet(true);
25200 public void unsetDelay() {
25201 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELAY_ISSET_ID);
25204 /** Returns true if field delay is set (has been assigned a value) and false otherwise */
25205 public boolean isSetDelay() {
25206 return EncodingUtils.testBit(__isset_bitfield, __DELAY_ISSET_ID);
25209 public void setDelayIsSet(boolean value) {
25210 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELAY_ISSET_ID, value);
25213 public void setFieldValue(_Fields field, Object value) {
25216 if (value == null) {
25219 setDelay((Integer)value);
25226 public Object getFieldValue(_Fields field) {
25229 return Integer.valueOf(getDelay());
25232 throw new IllegalStateException();
25235 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25236 public boolean isSet(_Fields field) {
25237 if (field == null) {
25238 throw new IllegalArgumentException();
25243 return isSetDelay();
25245 throw new IllegalStateException();
25249 public boolean equals(Object that) {
25252 if (that instanceof enableEORDelay_args)
25253 return this.equals((enableEORDelay_args)that);
25257 public boolean equals(enableEORDelay_args that) {
25261 boolean this_present_delay = true;
25262 boolean that_present_delay = true;
25263 if (this_present_delay || that_present_delay) {
25264 if (!(this_present_delay && that_present_delay))
25266 if (this.delay != that.delay)
25274 public int hashCode() {
25275 List<Object> list = new ArrayList<Object>();
25277 boolean present_delay = true;
25278 list.add(present_delay);
25281 return list.hashCode();
25285 public int compareTo(enableEORDelay_args other) {
25286 if (!getClass().equals(other.getClass())) {
25287 return getClass().getName().compareTo(other.getClass().getName());
25290 int lastComparison = 0;
25292 lastComparison = Boolean.valueOf(isSetDelay()).compareTo(other.isSetDelay());
25293 if (lastComparison != 0) {
25294 return lastComparison;
25296 if (isSetDelay()) {
25297 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delay, other.delay);
25298 if (lastComparison != 0) {
25299 return lastComparison;
25305 public _Fields fieldForId(int fieldId) {
25306 return _Fields.findByThriftId(fieldId);
25309 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25310 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25313 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25314 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25318 public String toString() {
25319 StringBuilder sb = new StringBuilder("enableEORDelay_args(");
25320 boolean first = true;
25322 sb.append("delay:");
25323 sb.append(this.delay);
25326 return sb.toString();
25329 public void validate() throws org.apache.thrift.TException {
25330 // check for required fields
25331 // check for sub-struct validity
25334 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25336 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25337 } catch (org.apache.thrift.TException te) {
25338 throw new java.io.IOException(te);
25342 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25344 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25345 __isset_bitfield = 0;
25346 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25347 } catch (org.apache.thrift.TException te) {
25348 throw new java.io.IOException(te);
25352 private static class enableEORDelay_argsStandardSchemeFactory implements SchemeFactory {
25353 public enableEORDelay_argsStandardScheme getScheme() {
25354 return new enableEORDelay_argsStandardScheme();
25358 private static class enableEORDelay_argsStandardScheme extends StandardScheme<enableEORDelay_args> {
25360 public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25361 org.apache.thrift.protocol.TField schemeField;
25362 iprot.readStructBegin();
25365 schemeField = iprot.readFieldBegin();
25366 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25369 switch (schemeField.id) {
25371 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25372 struct.delay = iprot.readI32();
25373 struct.setDelayIsSet(true);
25375 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25379 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25381 iprot.readFieldEnd();
25383 iprot.readStructEnd();
25385 // check for required fields of primitive type, which can't be checked in the validate method
25389 public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25392 oprot.writeStructBegin(STRUCT_DESC);
25393 oprot.writeFieldBegin(DELAY_FIELD_DESC);
25394 oprot.writeI32(struct.delay);
25395 oprot.writeFieldEnd();
25396 oprot.writeFieldStop();
25397 oprot.writeStructEnd();
25402 private static class enableEORDelay_argsTupleSchemeFactory implements SchemeFactory {
25403 public enableEORDelay_argsTupleScheme getScheme() {
25404 return new enableEORDelay_argsTupleScheme();
25408 private static class enableEORDelay_argsTupleScheme extends TupleScheme<enableEORDelay_args> {
25411 public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25412 TTupleProtocol oprot = (TTupleProtocol) prot;
25413 BitSet optionals = new BitSet();
25414 if (struct.isSetDelay()) {
25417 oprot.writeBitSet(optionals, 1);
25418 if (struct.isSetDelay()) {
25419 oprot.writeI32(struct.delay);
25424 public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25425 TTupleProtocol iprot = (TTupleProtocol) prot;
25426 BitSet incoming = iprot.readBitSet(1);
25427 if (incoming.get(0)) {
25428 struct.delay = iprot.readI32();
25429 struct.setDelayIsSet(true);
25436 public static class enableEORDelay_result implements org.apache.thrift.TBase<enableEORDelay_result, enableEORDelay_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_result> {
25437 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_result");
25439 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);
25441 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25443 schemes.put(StandardScheme.class, new enableEORDelay_resultStandardSchemeFactory());
25444 schemes.put(TupleScheme.class, new enableEORDelay_resultTupleSchemeFactory());
25447 public int success; // required
25449 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25450 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25451 SUCCESS((short)0, "success");
25453 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25456 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25457 byName.put(field.getFieldName(), field);
25462 * Find the _Fields constant that matches fieldId, or null if its not found.
25464 public static _Fields findByThriftId(int fieldId) {
25474 * Find the _Fields constant that matches fieldId, throwing an exception
25475 * if it is not found.
25477 public static _Fields findByThriftIdOrThrow(int fieldId) {
25478 _Fields fields = findByThriftId(fieldId);
25479 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25484 * Find the _Fields constant that matches name, or null if its not found.
25486 public static _Fields findByName(String name) {
25487 return byName.get(name);
25490 private final short _thriftId;
25491 private final String _fieldName;
25493 _Fields(short thriftId, String fieldName) {
25494 _thriftId = thriftId;
25495 _fieldName = fieldName;
25498 public short getThriftFieldId() {
25502 public String getFieldName() {
25507 // isset id assignments
25508 private static final int __SUCCESS_ISSET_ID = 0;
25509 private byte __isset_bitfield = 0;
25510 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25512 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25513 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25514 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25515 metaDataMap = Collections.unmodifiableMap(tmpMap);
25516 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_result.class, metaDataMap);
25519 public enableEORDelay_result() {
25522 public enableEORDelay_result(
25526 this.success = success;
25527 setSuccessIsSet(true);
25531 * Performs a deep copy on <i>other</i>.
25533 public enableEORDelay_result(enableEORDelay_result other) {
25534 __isset_bitfield = other.__isset_bitfield;
25535 this.success = other.success;
25538 public enableEORDelay_result deepCopy() {
25539 return new enableEORDelay_result(this);
25543 public void clear() {
25544 setSuccessIsSet(false);
25548 public int getSuccess() {
25549 return this.success;
25552 public enableEORDelay_result setSuccess(int success) {
25553 this.success = success;
25554 setSuccessIsSet(true);
25558 public void unsetSuccess() {
25559 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25562 /** Returns true if field success is set (has been assigned a value) and false otherwise */
25563 public boolean isSetSuccess() {
25564 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25567 public void setSuccessIsSet(boolean value) {
25568 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25571 public void setFieldValue(_Fields field, Object value) {
25574 if (value == null) {
25577 setSuccess((Integer)value);
25584 public Object getFieldValue(_Fields field) {
25587 return Integer.valueOf(getSuccess());
25590 throw new IllegalStateException();
25593 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25594 public boolean isSet(_Fields field) {
25595 if (field == null) {
25596 throw new IllegalArgumentException();
25601 return isSetSuccess();
25603 throw new IllegalStateException();
25607 public boolean equals(Object that) {
25610 if (that instanceof enableEORDelay_result)
25611 return this.equals((enableEORDelay_result)that);
25615 public boolean equals(enableEORDelay_result that) {
25619 boolean this_present_success = true;
25620 boolean that_present_success = true;
25621 if (this_present_success || that_present_success) {
25622 if (!(this_present_success && that_present_success))
25624 if (this.success != that.success)
25632 public int hashCode() {
25633 List<Object> list = new ArrayList<Object>();
25635 boolean present_success = true;
25636 list.add(present_success);
25637 if (present_success)
25639 return list.hashCode();
25643 public int compareTo(enableEORDelay_result other) {
25644 if (!getClass().equals(other.getClass())) {
25645 return getClass().getName().compareTo(other.getClass().getName());
25648 int lastComparison = 0;
25650 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
25651 if (lastComparison != 0) {
25652 return lastComparison;
25654 if (isSetSuccess()) {
25655 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
25656 if (lastComparison != 0) {
25657 return lastComparison;
25663 public _Fields fieldForId(int fieldId) {
25664 return _Fields.findByThriftId(fieldId);
25667 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25668 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25671 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25672 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25676 public String toString() {
25677 StringBuilder sb = new StringBuilder("enableEORDelay_result(");
25678 boolean first = true;
25680 sb.append("success:");
25681 sb.append(this.success);
25684 return sb.toString();
25687 public void validate() throws org.apache.thrift.TException {
25688 // check for required fields
25689 // check for sub-struct validity
25692 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25694 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25695 } catch (org.apache.thrift.TException te) {
25696 throw new java.io.IOException(te);
25700 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25702 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25703 __isset_bitfield = 0;
25704 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25705 } catch (org.apache.thrift.TException te) {
25706 throw new java.io.IOException(te);
25710 private static class enableEORDelay_resultStandardSchemeFactory implements SchemeFactory {
25711 public enableEORDelay_resultStandardScheme getScheme() {
25712 return new enableEORDelay_resultStandardScheme();
25716 private static class enableEORDelay_resultStandardScheme extends StandardScheme<enableEORDelay_result> {
25718 public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25719 org.apache.thrift.protocol.TField schemeField;
25720 iprot.readStructBegin();
25723 schemeField = iprot.readFieldBegin();
25724 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25727 switch (schemeField.id) {
25729 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25730 struct.success = iprot.readI32();
25731 struct.setSuccessIsSet(true);
25733 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25737 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25739 iprot.readFieldEnd();
25741 iprot.readStructEnd();
25743 // check for required fields of primitive type, which can't be checked in the validate method
25747 public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25750 oprot.writeStructBegin(STRUCT_DESC);
25751 if (struct.isSetSuccess()) {
25752 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25753 oprot.writeI32(struct.success);
25754 oprot.writeFieldEnd();
25756 oprot.writeFieldStop();
25757 oprot.writeStructEnd();
25762 private static class enableEORDelay_resultTupleSchemeFactory implements SchemeFactory {
25763 public enableEORDelay_resultTupleScheme getScheme() {
25764 return new enableEORDelay_resultTupleScheme();
25768 private static class enableEORDelay_resultTupleScheme extends TupleScheme<enableEORDelay_result> {
25771 public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25772 TTupleProtocol oprot = (TTupleProtocol) prot;
25773 BitSet optionals = new BitSet();
25774 if (struct.isSetSuccess()) {
25777 oprot.writeBitSet(optionals, 1);
25778 if (struct.isSetSuccess()) {
25779 oprot.writeI32(struct.success);
25784 public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
25785 TTupleProtocol iprot = (TTupleProtocol) prot;
25786 BitSet incoming = iprot.readBitSet(1);
25787 if (incoming.get(0)) {
25788 struct.success = iprot.readI32();
25789 struct.setSuccessIsSet(true);
25796 public static class sendEOR_args implements org.apache.thrift.TBase<sendEOR_args, sendEOR_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_args> {
25797 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_args");
25800 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25802 schemes.put(StandardScheme.class, new sendEOR_argsStandardSchemeFactory());
25803 schemes.put(TupleScheme.class, new sendEOR_argsTupleSchemeFactory());
25807 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25808 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25811 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25814 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25815 byName.put(field.getFieldName(), field);
25820 * Find the _Fields constant that matches fieldId, or null if its not found.
25822 public static _Fields findByThriftId(int fieldId) {
25830 * Find the _Fields constant that matches fieldId, throwing an exception
25831 * if it is not found.
25833 public static _Fields findByThriftIdOrThrow(int fieldId) {
25834 _Fields fields = findByThriftId(fieldId);
25835 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25840 * Find the _Fields constant that matches name, or null if its not found.
25842 public static _Fields findByName(String name) {
25843 return byName.get(name);
25846 private final short _thriftId;
25847 private final String _fieldName;
25849 _Fields(short thriftId, String fieldName) {
25850 _thriftId = thriftId;
25851 _fieldName = fieldName;
25854 public short getThriftFieldId() {
25858 public String getFieldName() {
25862 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25864 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25865 metaDataMap = Collections.unmodifiableMap(tmpMap);
25866 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_args.class, metaDataMap);
25869 public sendEOR_args() {
25873 * Performs a deep copy on <i>other</i>.
25875 public sendEOR_args(sendEOR_args other) {
25878 public sendEOR_args deepCopy() {
25879 return new sendEOR_args(this);
25883 public void clear() {
25886 public void setFieldValue(_Fields field, Object value) {
25891 public Object getFieldValue(_Fields field) {
25894 throw new IllegalStateException();
25897 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25898 public boolean isSet(_Fields field) {
25899 if (field == null) {
25900 throw new IllegalArgumentException();
25905 throw new IllegalStateException();
25909 public boolean equals(Object that) {
25912 if (that instanceof sendEOR_args)
25913 return this.equals((sendEOR_args)that);
25917 public boolean equals(sendEOR_args that) {
25925 public int hashCode() {
25926 List<Object> list = new ArrayList<Object>();
25928 return list.hashCode();
25932 public int compareTo(sendEOR_args other) {
25933 if (!getClass().equals(other.getClass())) {
25934 return getClass().getName().compareTo(other.getClass().getName());
25937 int lastComparison = 0;
25942 public _Fields fieldForId(int fieldId) {
25943 return _Fields.findByThriftId(fieldId);
25946 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25947 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25950 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25951 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25955 public String toString() {
25956 StringBuilder sb = new StringBuilder("sendEOR_args(");
25957 boolean first = true;
25960 return sb.toString();
25963 public void validate() throws org.apache.thrift.TException {
25964 // check for required fields
25965 // check for sub-struct validity
25968 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25970 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25971 } catch (org.apache.thrift.TException te) {
25972 throw new java.io.IOException(te);
25976 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25978 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25979 } catch (org.apache.thrift.TException te) {
25980 throw new java.io.IOException(te);
25984 private static class sendEOR_argsStandardSchemeFactory implements SchemeFactory {
25985 public sendEOR_argsStandardScheme getScheme() {
25986 return new sendEOR_argsStandardScheme();
25990 private static class sendEOR_argsStandardScheme extends StandardScheme<sendEOR_args> {
25992 public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_args struct) throws org.apache.thrift.TException {
25993 org.apache.thrift.protocol.TField schemeField;
25994 iprot.readStructBegin();
25997 schemeField = iprot.readFieldBegin();
25998 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26001 switch (schemeField.id) {
26003 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26005 iprot.readFieldEnd();
26007 iprot.readStructEnd();
26009 // check for required fields of primitive type, which can't be checked in the validate method
26013 public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_args struct) throws org.apache.thrift.TException {
26016 oprot.writeStructBegin(STRUCT_DESC);
26017 oprot.writeFieldStop();
26018 oprot.writeStructEnd();
26023 private static class sendEOR_argsTupleSchemeFactory implements SchemeFactory {
26024 public sendEOR_argsTupleScheme getScheme() {
26025 return new sendEOR_argsTupleScheme();
26029 private static class sendEOR_argsTupleScheme extends TupleScheme<sendEOR_args> {
26032 public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26033 TTupleProtocol oprot = (TTupleProtocol) prot;
26037 public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26038 TTupleProtocol iprot = (TTupleProtocol) prot;
26044 public static class sendEOR_result implements org.apache.thrift.TBase<sendEOR_result, sendEOR_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_result> {
26045 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_result");
26047 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);
26049 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
26051 schemes.put(StandardScheme.class, new sendEOR_resultStandardSchemeFactory());
26052 schemes.put(TupleScheme.class, new sendEOR_resultTupleSchemeFactory());
26055 public int success; // required
26057 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26058 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26059 SUCCESS((short)0, "success");
26061 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26064 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26065 byName.put(field.getFieldName(), field);
26070 * Find the _Fields constant that matches fieldId, or null if its not found.
26072 public static _Fields findByThriftId(int fieldId) {
26082 * Find the _Fields constant that matches fieldId, throwing an exception
26083 * if it is not found.
26085 public static _Fields findByThriftIdOrThrow(int fieldId) {
26086 _Fields fields = findByThriftId(fieldId);
26087 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26092 * Find the _Fields constant that matches name, or null if its not found.
26094 public static _Fields findByName(String name) {
26095 return byName.get(name);
26098 private final short _thriftId;
26099 private final String _fieldName;
26101 _Fields(short thriftId, String fieldName) {
26102 _thriftId = thriftId;
26103 _fieldName = fieldName;
26106 public short getThriftFieldId() {
26110 public String getFieldName() {
26115 // isset id assignments
26116 private static final int __SUCCESS_ISSET_ID = 0;
26117 private byte __isset_bitfield = 0;
26118 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26120 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26121 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26122 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
26123 metaDataMap = Collections.unmodifiableMap(tmpMap);
26124 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_result.class, metaDataMap);
26127 public sendEOR_result() {
26130 public sendEOR_result(
26134 this.success = success;
26135 setSuccessIsSet(true);
26139 * Performs a deep copy on <i>other</i>.
26141 public sendEOR_result(sendEOR_result other) {
26142 __isset_bitfield = other.__isset_bitfield;
26143 this.success = other.success;
26146 public sendEOR_result deepCopy() {
26147 return new sendEOR_result(this);
26151 public void clear() {
26152 setSuccessIsSet(false);
26156 public int getSuccess() {
26157 return this.success;
26160 public sendEOR_result setSuccess(int success) {
26161 this.success = success;
26162 setSuccessIsSet(true);
26166 public void unsetSuccess() {
26167 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26170 /** Returns true if field success is set (has been assigned a value) and false otherwise */
26171 public boolean isSetSuccess() {
26172 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26175 public void setSuccessIsSet(boolean value) {
26176 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
26179 public void setFieldValue(_Fields field, Object value) {
26182 if (value == null) {
26185 setSuccess((Integer)value);
26192 public Object getFieldValue(_Fields field) {
26195 return Integer.valueOf(getSuccess());
26198 throw new IllegalStateException();
26201 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26202 public boolean isSet(_Fields field) {
26203 if (field == null) {
26204 throw new IllegalArgumentException();
26209 return isSetSuccess();
26211 throw new IllegalStateException();
26215 public boolean equals(Object that) {
26218 if (that instanceof sendEOR_result)
26219 return this.equals((sendEOR_result)that);
26223 public boolean equals(sendEOR_result that) {
26227 boolean this_present_success = true;
26228 boolean that_present_success = true;
26229 if (this_present_success || that_present_success) {
26230 if (!(this_present_success && that_present_success))
26232 if (this.success != that.success)
26240 public int hashCode() {
26241 List<Object> list = new ArrayList<Object>();
26243 boolean present_success = true;
26244 list.add(present_success);
26245 if (present_success)
26247 return list.hashCode();
26251 public int compareTo(sendEOR_result other) {
26252 if (!getClass().equals(other.getClass())) {
26253 return getClass().getName().compareTo(other.getClass().getName());
26256 int lastComparison = 0;
26258 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26259 if (lastComparison != 0) {
26260 return lastComparison;
26262 if (isSetSuccess()) {
26263 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26264 if (lastComparison != 0) {
26265 return lastComparison;
26271 public _Fields fieldForId(int fieldId) {
26272 return _Fields.findByThriftId(fieldId);
26275 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26276 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26279 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26280 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26284 public String toString() {
26285 StringBuilder sb = new StringBuilder("sendEOR_result(");
26286 boolean first = true;
26288 sb.append("success:");
26289 sb.append(this.success);
26292 return sb.toString();
26295 public void validate() throws org.apache.thrift.TException {
26296 // check for required fields
26297 // check for sub-struct validity
26300 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26302 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26303 } catch (org.apache.thrift.TException te) {
26304 throw new java.io.IOException(te);
26308 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26310 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26311 __isset_bitfield = 0;
26312 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26313 } catch (org.apache.thrift.TException te) {
26314 throw new java.io.IOException(te);
26318 private static class sendEOR_resultStandardSchemeFactory implements SchemeFactory {
26319 public sendEOR_resultStandardScheme getScheme() {
26320 return new sendEOR_resultStandardScheme();
26324 private static class sendEOR_resultStandardScheme extends StandardScheme<sendEOR_result> {
26326 public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_result struct) throws org.apache.thrift.TException {
26327 org.apache.thrift.protocol.TField schemeField;
26328 iprot.readStructBegin();
26331 schemeField = iprot.readFieldBegin();
26332 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26335 switch (schemeField.id) {
26337 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26338 struct.success = iprot.readI32();
26339 struct.setSuccessIsSet(true);
26341 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26345 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26347 iprot.readFieldEnd();
26349 iprot.readStructEnd();
26351 // check for required fields of primitive type, which can't be checked in the validate method
26355 public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_result struct) throws org.apache.thrift.TException {
26358 oprot.writeStructBegin(STRUCT_DESC);
26359 if (struct.isSetSuccess()) {
26360 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26361 oprot.writeI32(struct.success);
26362 oprot.writeFieldEnd();
26364 oprot.writeFieldStop();
26365 oprot.writeStructEnd();
26370 private static class sendEOR_resultTupleSchemeFactory implements SchemeFactory {
26371 public sendEOR_resultTupleScheme getScheme() {
26372 return new sendEOR_resultTupleScheme();
26376 private static class sendEOR_resultTupleScheme extends TupleScheme<sendEOR_result> {
26379 public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26380 TTupleProtocol oprot = (TTupleProtocol) prot;
26381 BitSet optionals = new BitSet();
26382 if (struct.isSetSuccess()) {
26385 oprot.writeBitSet(optionals, 1);
26386 if (struct.isSetSuccess()) {
26387 oprot.writeI32(struct.success);
26392 public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26393 TTupleProtocol iprot = (TTupleProtocol) prot;
26394 BitSet incoming = iprot.readBitSet(1);
26395 if (incoming.get(0)) {
26396 struct.success = iprot.readI32();
26397 struct.setSuccessIsSet(true);