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, af_afi afi, af_safi safi) throws org.apache.thrift.TException;
53 public int delVrf(String rd, af_afi afi, af_safi safi) 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, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException;
105 public void delVrf(String rd, af_afi afi, af_safi safi, 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, af_afi afi, af_safi safi) throws org.apache.thrift.TException
296 send_addVrf(l_type, rd, irts, erts, afi, safi);
297 return recv_addVrf();
300 public void send_addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, af_afi afi, af_safi safi) throws org.apache.thrift.TException
302 addVrf_args args = new addVrf_args();
303 args.setL_type(l_type);
309 sendBase("addVrf", args);
312 public int recv_addVrf() throws org.apache.thrift.TException
314 addVrf_result result = new addVrf_result();
315 receiveBase(result, "addVrf");
316 if (result.isSetSuccess()) {
317 return result.success;
319 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addVrf failed: unknown result");
323 public int delVrf(String rd, af_afi afi, af_safi safi) throws org.apache.thrift.TException
325 send_delVrf(rd, afi, safi);
326 return recv_delVrf();
329 public void send_delVrf(String rd, af_afi afi, af_safi safi) throws org.apache.thrift.TException
331 delVrf_args args = new delVrf_args();
335 sendBase("delVrf", args);
338 public int recv_delVrf() throws org.apache.thrift.TException
340 delVrf_result result = new delVrf_result();
341 receiveBase(result, "delVrf");
342 if (result.isSetSuccess()) {
343 return result.success;
345 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "delVrf failed: unknown result");
349 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
351 send_pushRoute(p_type, prefix, nexthop, rd, ethtag, esi, macaddress, l3label, l2label, enc_type, routermac, afi);
352 return recv_pushRoute();
355 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
357 pushRoute_args args = new pushRoute_args();
358 args.setP_type(p_type);
359 args.setPrefix(prefix);
360 args.setNexthop(nexthop);
362 args.setEthtag(ethtag);
364 args.setMacaddress(macaddress);
365 args.setL3label(l3label);
366 args.setL2label(l2label);
367 args.setEnc_type(enc_type);
368 args.setRoutermac(routermac);
370 sendBase("pushRoute", args);
373 public int recv_pushRoute() throws org.apache.thrift.TException
375 pushRoute_result result = new pushRoute_result();
376 receiveBase(result, "pushRoute");
377 if (result.isSetSuccess()) {
378 return result.success;
380 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "pushRoute failed: unknown result");
384 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
386 send_withdrawRoute(p_type, prefix, rd, ethtag, esi, macaddress, afi);
387 return recv_withdrawRoute();
390 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
392 withdrawRoute_args args = new withdrawRoute_args();
393 args.setP_type(p_type);
394 args.setPrefix(prefix);
396 args.setEthtag(ethtag);
398 args.setMacaddress(macaddress);
400 sendBase("withdrawRoute", args);
403 public int recv_withdrawRoute() throws org.apache.thrift.TException
405 withdrawRoute_result result = new withdrawRoute_result();
406 receiveBase(result, "withdrawRoute");
407 if (result.isSetSuccess()) {
408 return result.success;
410 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "withdrawRoute failed: unknown result");
414 public int setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
416 send_setEbgpMultihop(peerIp, nHops);
417 return recv_setEbgpMultihop();
420 public void send_setEbgpMultihop(String peerIp, int nHops) throws org.apache.thrift.TException
422 setEbgpMultihop_args args = new setEbgpMultihop_args();
423 args.setPeerIp(peerIp);
424 args.setNHops(nHops);
425 sendBase("setEbgpMultihop", args);
428 public int recv_setEbgpMultihop() throws org.apache.thrift.TException
430 setEbgpMultihop_result result = new setEbgpMultihop_result();
431 receiveBase(result, "setEbgpMultihop");
432 if (result.isSetSuccess()) {
433 return result.success;
435 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setEbgpMultihop failed: unknown result");
439 public int unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
441 send_unsetEbgpMultihop(peerIp);
442 return recv_unsetEbgpMultihop();
445 public void send_unsetEbgpMultihop(String peerIp) throws org.apache.thrift.TException
447 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
448 args.setPeerIp(peerIp);
449 sendBase("unsetEbgpMultihop", args);
452 public int recv_unsetEbgpMultihop() throws org.apache.thrift.TException
454 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
455 receiveBase(result, "unsetEbgpMultihop");
456 if (result.isSetSuccess()) {
457 return result.success;
459 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetEbgpMultihop failed: unknown result");
463 public int setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
465 send_setUpdateSource(peerIp, srcIp);
466 return recv_setUpdateSource();
469 public void send_setUpdateSource(String peerIp, String srcIp) throws org.apache.thrift.TException
471 setUpdateSource_args args = new setUpdateSource_args();
472 args.setPeerIp(peerIp);
473 args.setSrcIp(srcIp);
474 sendBase("setUpdateSource", args);
477 public int recv_setUpdateSource() throws org.apache.thrift.TException
479 setUpdateSource_result result = new setUpdateSource_result();
480 receiveBase(result, "setUpdateSource");
481 if (result.isSetSuccess()) {
482 return result.success;
484 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setUpdateSource failed: unknown result");
488 public int unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
490 send_unsetUpdateSource(peerIp);
491 return recv_unsetUpdateSource();
494 public void send_unsetUpdateSource(String peerIp) throws org.apache.thrift.TException
496 unsetUpdateSource_args args = new unsetUpdateSource_args();
497 args.setPeerIp(peerIp);
498 sendBase("unsetUpdateSource", args);
501 public int recv_unsetUpdateSource() throws org.apache.thrift.TException
503 unsetUpdateSource_result result = new unsetUpdateSource_result();
504 receiveBase(result, "unsetUpdateSource");
505 if (result.isSetSuccess()) {
506 return result.success;
508 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "unsetUpdateSource failed: unknown result");
512 public int enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
514 send_enableAddressFamily(peerIp, afi, safi);
515 return recv_enableAddressFamily();
518 public void send_enableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
520 enableAddressFamily_args args = new enableAddressFamily_args();
521 args.setPeerIp(peerIp);
524 sendBase("enableAddressFamily", args);
527 public int recv_enableAddressFamily() throws org.apache.thrift.TException
529 enableAddressFamily_result result = new enableAddressFamily_result();
530 receiveBase(result, "enableAddressFamily");
531 if (result.isSetSuccess()) {
532 return result.success;
534 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableAddressFamily failed: unknown result");
538 public int disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
540 send_disableAddressFamily(peerIp, afi, safi);
541 return recv_disableAddressFamily();
544 public void send_disableAddressFamily(String peerIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException
546 disableAddressFamily_args args = new disableAddressFamily_args();
547 args.setPeerIp(peerIp);
550 sendBase("disableAddressFamily", args);
553 public int recv_disableAddressFamily() throws org.apache.thrift.TException
555 disableAddressFamily_result result = new disableAddressFamily_result();
556 receiveBase(result, "disableAddressFamily");
557 if (result.isSetSuccess()) {
558 return result.success;
560 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableAddressFamily failed: unknown result");
564 public int setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
566 send_setLogConfig(logFileName, logLevel);
567 return recv_setLogConfig();
570 public void send_setLogConfig(String logFileName, String logLevel) throws org.apache.thrift.TException
572 setLogConfig_args args = new setLogConfig_args();
573 args.setLogFileName(logFileName);
574 args.setLogLevel(logLevel);
575 sendBase("setLogConfig", args);
578 public int recv_setLogConfig() throws org.apache.thrift.TException
580 setLogConfig_result result = new setLogConfig_result();
581 receiveBase(result, "setLogConfig");
582 if (result.isSetSuccess()) {
583 return result.success;
585 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "setLogConfig failed: unknown result");
589 public int enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
591 send_enableGracefulRestart(stalepathTime);
592 return recv_enableGracefulRestart();
595 public void send_enableGracefulRestart(int stalepathTime) throws org.apache.thrift.TException
597 enableGracefulRestart_args args = new enableGracefulRestart_args();
598 args.setStalepathTime(stalepathTime);
599 sendBase("enableGracefulRestart", args);
602 public int recv_enableGracefulRestart() throws org.apache.thrift.TException
604 enableGracefulRestart_result result = new enableGracefulRestart_result();
605 receiveBase(result, "enableGracefulRestart");
606 if (result.isSetSuccess()) {
607 return result.success;
609 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableGracefulRestart failed: unknown result");
613 public int disableGracefulRestart() throws org.apache.thrift.TException
615 send_disableGracefulRestart();
616 return recv_disableGracefulRestart();
619 public void send_disableGracefulRestart() throws org.apache.thrift.TException
621 disableGracefulRestart_args args = new disableGracefulRestart_args();
622 sendBase("disableGracefulRestart", args);
625 public int recv_disableGracefulRestart() throws org.apache.thrift.TException
627 disableGracefulRestart_result result = new disableGracefulRestart_result();
628 receiveBase(result, "disableGracefulRestart");
629 if (result.isSetSuccess()) {
630 return result.success;
632 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableGracefulRestart failed: unknown result");
636 public Routes getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
638 send_getRoutes(p_type, optype, winSize, afi);
639 return recv_getRoutes();
642 public void send_getRoutes(protocol_type p_type, int optype, int winSize, af_afi afi) throws org.apache.thrift.TException
644 getRoutes_args args = new getRoutes_args();
645 args.setP_type(p_type);
646 args.setOptype(optype);
647 args.setWinSize(winSize);
649 sendBase("getRoutes", args);
652 public Routes recv_getRoutes() throws org.apache.thrift.TException
654 getRoutes_result result = new getRoutes_result();
655 receiveBase(result, "getRoutes");
656 if (result.isSetSuccess()) {
657 return result.success;
659 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoutes failed: unknown result");
663 public int enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
665 send_enableMultipath(afi, safi);
666 return recv_enableMultipath();
669 public void send_enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
671 enableMultipath_args args = new enableMultipath_args();
674 sendBase("enableMultipath", args);
677 public int recv_enableMultipath() throws org.apache.thrift.TException
679 enableMultipath_result result = new enableMultipath_result();
680 receiveBase(result, "enableMultipath");
681 if (result.isSetSuccess()) {
682 return result.success;
684 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableMultipath failed: unknown result");
688 public int disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
690 send_disableMultipath(afi, safi);
691 return recv_disableMultipath();
694 public void send_disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException
696 disableMultipath_args args = new disableMultipath_args();
699 sendBase("disableMultipath", args);
702 public int recv_disableMultipath() throws org.apache.thrift.TException
704 disableMultipath_result result = new disableMultipath_result();
705 receiveBase(result, "disableMultipath");
706 if (result.isSetSuccess()) {
707 return result.success;
709 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "disableMultipath failed: unknown result");
713 public int multipaths(String rd, int maxPath) throws org.apache.thrift.TException
715 send_multipaths(rd, maxPath);
716 return recv_multipaths();
719 public void send_multipaths(String rd, int maxPath) throws org.apache.thrift.TException
721 multipaths_args args = new multipaths_args();
723 args.setMaxPath(maxPath);
724 sendBase("multipaths", args);
727 public int recv_multipaths() throws org.apache.thrift.TException
729 multipaths_result result = new multipaths_result();
730 receiveBase(result, "multipaths");
731 if (result.isSetSuccess()) {
732 return result.success;
734 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "multipaths failed: unknown result");
737 public int enableEORDelay(int delay) throws org.apache.thrift.TException
739 send_enableEORDelay(delay);
740 return recv_enableEORDelay();
743 public void send_enableEORDelay(int delay) throws org.apache.thrift.TException
745 enableEORDelay_args args = new enableEORDelay_args();
746 args.setDelay(delay);
747 sendBase("enableEORDelay", args);
750 public int recv_enableEORDelay() throws org.apache.thrift.TException
752 enableEORDelay_result result = new enableEORDelay_result();
753 receiveBase(result, "enableEORDelay");
754 if (result.isSetSuccess()) {
755 return result.success;
757 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "enableEORDelay failed: unknown result");
760 public int sendEOR() throws org.apache.thrift.TException
763 return recv_sendEOR();
766 public void send_sendEOR() throws org.apache.thrift.TException
768 sendEOR_args args = new sendEOR_args();
769 sendBase("sendEOR", args);
772 public int recv_sendEOR() throws org.apache.thrift.TException
774 sendEOR_result result = new sendEOR_result();
775 receiveBase(result, "sendEOR");
776 if (result.isSetSuccess()) {
777 return result.success;
779 throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "sendEOR failed: unknown result");
783 public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
784 public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
785 private final org.apache.thrift.async.TAsyncClientManager clientManager;
786 private final org.apache.thrift.protocol.TProtocolFactory protocolFactory;
787 public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
788 this.clientManager = clientManager;
789 this.protocolFactory = protocolFactory;
792 public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
793 return new AsyncClient(protocolFactory, clientManager, transport);
797 public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
798 super(protocolFactory, clientManager, transport);
802 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 {
804 startBgp_call method_call = new startBgp_call(asNumber, routerId, port, holdTime, keepAliveTime, stalepathTime, announceFlush, resultHandler, this, ___protocolFactory, ___transport);
805 this.___currentMethod = method_call;
806 ___manager.call(method_call);
809 public static class startBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
810 private final long asNumber;
811 private final String routerId;
812 private final int port;
813 private final int holdTime;
814 private final int keepAliveTime;
815 private final int stalepathTime;
816 private final boolean announceFlush;
817 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 {
818 super(client, protocolFactory, transport, resultHandler, false);
819 this.asNumber = asNumber;
820 this.routerId = routerId;
822 this.holdTime = holdTime;
823 this.keepAliveTime = keepAliveTime;
824 this.stalepathTime = stalepathTime;
825 this.announceFlush = announceFlush;
829 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
830 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("startBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
831 startBgp_args args = new startBgp_args();
832 args.setAsNumber(asNumber);
833 args.setRouterId(routerId);
835 args.setHoldTime(holdTime);
836 args.setKeepAliveTime(keepAliveTime);
837 args.setStalepathTime(stalepathTime);
838 args.setAnnounceFlush(announceFlush);
840 prot.writeMessageEnd();
843 public int getResult() throws org.apache.thrift.TException {
844 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
845 throw new IllegalStateException("Method call not finished!");
847 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
848 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
849 return (new Client(prot)).recv_startBgp();
854 public void stopBgp(long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
856 stopBgp_call method_call = new stopBgp_call(asNumber, resultHandler, this, ___protocolFactory, ___transport);
857 this.___currentMethod = method_call;
858 ___manager.call(method_call);
861 public static class stopBgp_call extends org.apache.thrift.async.TAsyncMethodCall {
862 private final long asNumber;
863 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 {
864 super(client, protocolFactory, transport, resultHandler, false);
865 this.asNumber = asNumber;
869 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
870 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("stopBgp", org.apache.thrift.protocol.TMessageType.CALL, 0));
871 stopBgp_args args = new stopBgp_args();
872 args.setAsNumber(asNumber);
874 prot.writeMessageEnd();
877 public int getResult() throws org.apache.thrift.TException {
878 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
879 throw new IllegalStateException("Method call not finished!");
881 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
882 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
883 return (new Client(prot)).recv_stopBgp();
888 public void createPeer(String ipAddress, long asNumber, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
890 createPeer_call method_call = new createPeer_call(ipAddress, asNumber, resultHandler, this, ___protocolFactory, ___transport);
891 this.___currentMethod = method_call;
892 ___manager.call(method_call);
895 public static class createPeer_call extends org.apache.thrift.async.TAsyncMethodCall {
896 private final String ipAddress;
897 private final long asNumber;
898 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 {
899 super(client, protocolFactory, transport, resultHandler, false);
900 this.ipAddress = ipAddress;
901 this.asNumber = asNumber;
905 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
906 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
907 createPeer_args args = new createPeer_args();
908 args.setIpAddress(ipAddress);
909 args.setAsNumber(asNumber);
911 prot.writeMessageEnd();
914 public int getResult() throws org.apache.thrift.TException {
915 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
916 throw new IllegalStateException("Method call not finished!");
918 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
919 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
920 return (new Client(prot)).recv_createPeer();
925 public void setPeerSecret(String ipAddress, String rfc2385_sharedSecret, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
927 setPeerSecret_call method_call = new setPeerSecret_call(ipAddress, rfc2385_sharedSecret, resultHandler, this, ___protocolFactory, ___transport);
928 this.___currentMethod = method_call;
929 ___manager.call(method_call);
932 public static class setPeerSecret_call extends org.apache.thrift.async.TAsyncMethodCall {
933 private final String ipAddress;
934 private final String rfc2385_sharedSecret;
935 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 {
936 super(client, protocolFactory, transport, resultHandler, false);
937 this.ipAddress = ipAddress;
938 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
942 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
943 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setPeerSecret", org.apache.thrift.protocol.TMessageType.CALL, 0));
944 setPeerSecret_args args = new setPeerSecret_args();
945 args.setIpAddress(ipAddress);
946 args.setRfc2385_sharedSecret(rfc2385_sharedSecret);
948 prot.writeMessageEnd();
951 public int getResult() throws org.apache.thrift.TException {
952 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
953 throw new IllegalStateException("Method call not finished!");
955 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
956 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
957 return (new Client(prot)).recv_setPeerSecret();
962 public void deletePeer(String ipAddress, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
964 deletePeer_call method_call = new deletePeer_call(ipAddress, resultHandler, this, ___protocolFactory, ___transport);
965 this.___currentMethod = method_call;
966 ___manager.call(method_call);
969 public static class deletePeer_call extends org.apache.thrift.async.TAsyncMethodCall {
970 private final String ipAddress;
971 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 {
972 super(client, protocolFactory, transport, resultHandler, false);
973 this.ipAddress = ipAddress;
977 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
978 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deletePeer", org.apache.thrift.protocol.TMessageType.CALL, 0));
979 deletePeer_args args = new deletePeer_args();
980 args.setIpAddress(ipAddress);
982 prot.writeMessageEnd();
985 public int getResult() throws org.apache.thrift.TException {
986 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
987 throw new IllegalStateException("Method call not finished!");
989 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
990 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
991 return (new Client(prot)).recv_deletePeer();
996 public void addVrf(layer_type l_type, String rd, List<String> irts, List<String> erts, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
998 addVrf_call method_call = new addVrf_call(l_type, rd, irts, erts, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
999 this.___currentMethod = method_call;
1000 ___manager.call(method_call);
1003 public static class addVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1004 private layer_type l_type;
1006 private List<String> irts;
1007 private List<String> erts;
1009 private af_safi safi;
1010 public addVrf_call(layer_type l_type, String rd, List<String> irts, List<String> erts, 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 {
1011 super(client, protocolFactory, transport, resultHandler, false);
1012 this.l_type = l_type;
1021 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1022 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1023 addVrf_args args = new addVrf_args();
1024 args.setL_type(l_type);
1031 prot.writeMessageEnd();
1034 public int getResult() throws org.apache.thrift.TException {
1035 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1036 throw new IllegalStateException("Method call not finished!");
1038 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1039 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1040 return (new Client(prot)).recv_addVrf();
1045 public void delVrf(String rd, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1047 delVrf_call method_call = new delVrf_call(rd, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1048 this.___currentMethod = method_call;
1049 ___manager.call(method_call);
1052 public static class delVrf_call extends org.apache.thrift.async.TAsyncMethodCall {
1055 private af_safi safi;
1056 public delVrf_call(String rd, 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 {
1057 super(client, protocolFactory, transport, resultHandler, false);
1064 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1065 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("delVrf", org.apache.thrift.protocol.TMessageType.CALL, 0));
1066 delVrf_args args = new delVrf_args();
1071 prot.writeMessageEnd();
1074 public int getResult() throws org.apache.thrift.TException {
1075 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1076 throw new IllegalStateException("Method call not finished!");
1078 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1079 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1080 return (new Client(prot)).recv_delVrf();
1085 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 {
1087 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);
1088 this.___currentMethod = method_call;
1089 ___manager.call(method_call);
1092 public static class pushRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1093 private final protocol_type p_type;
1094 private final String prefix;
1095 private final String nexthop;
1096 private final String rd;
1097 private final int ethtag;
1098 private final String esi;
1099 private final String macaddress;
1100 private final int l3label;
1101 private final int l2label;
1102 private final encap_type enc_type;
1103 private final String routermac;
1104 private final af_afi afi;
1105 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 {
1106 super(client, protocolFactory, transport, resultHandler, false);
1107 this.p_type = p_type;
1108 this.prefix = prefix;
1109 this.nexthop = nexthop;
1111 this.ethtag = ethtag;
1113 this.macaddress = macaddress;
1114 this.l3label = l3label;
1115 this.l2label = l2label;
1116 this.enc_type = enc_type;
1117 this.routermac = routermac;
1122 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1123 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("pushRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1124 pushRoute_args args = new pushRoute_args();
1125 args.setP_type(p_type);
1126 args.setPrefix(prefix);
1127 args.setNexthop(nexthop);
1129 args.setEthtag(ethtag);
1131 args.setMacaddress(macaddress);
1132 args.setL3label(l3label);
1133 args.setL2label(l2label);
1134 args.setEnc_type(enc_type);
1135 args.setRoutermac(routermac);
1138 prot.writeMessageEnd();
1141 public int getResult() throws org.apache.thrift.TException {
1142 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1143 throw new IllegalStateException("Method call not finished!");
1145 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1146 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1147 return (new Client(prot)).recv_pushRoute();
1152 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 {
1154 withdrawRoute_call method_call = new withdrawRoute_call(p_type, prefix, rd, ethtag, esi, macaddress, afi, resultHandler, this, ___protocolFactory, ___transport);
1155 this.___currentMethod = method_call;
1156 ___manager.call(method_call);
1159 public static class withdrawRoute_call extends org.apache.thrift.async.TAsyncMethodCall {
1160 private final protocol_type p_type;
1161 private final String prefix;
1162 private final String rd;
1163 private final int ethtag;
1164 private final String esi;
1165 private final String macaddress;
1166 private final af_afi afi;
1167 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 {
1168 super(client, protocolFactory, transport, resultHandler, false);
1169 this.p_type = p_type;
1170 this.prefix = prefix;
1172 this.ethtag = ethtag;
1174 this.macaddress = macaddress;
1179 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1180 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("withdrawRoute", org.apache.thrift.protocol.TMessageType.CALL, 0));
1181 withdrawRoute_args args = new withdrawRoute_args();
1182 args.setP_type(p_type);
1183 args.setPrefix(prefix);
1185 args.setEthtag(ethtag);
1187 args.setMacaddress(macaddress);
1190 prot.writeMessageEnd();
1193 public int getResult() throws org.apache.thrift.TException {
1194 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1195 throw new IllegalStateException("Method call not finished!");
1197 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1198 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1199 return (new Client(prot)).recv_withdrawRoute();
1204 public void setEbgpMultihop(String peerIp, int nHops, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1206 setEbgpMultihop_call method_call = new setEbgpMultihop_call(peerIp, nHops, resultHandler, this, ___protocolFactory, ___transport);
1207 this.___currentMethod = method_call;
1208 ___manager.call(method_call);
1211 public static class setEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1212 private final String peerIp;
1213 private final int nHops;
1214 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 {
1215 super(client, protocolFactory, transport, resultHandler, false);
1216 this.peerIp = peerIp;
1221 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1222 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1223 setEbgpMultihop_args args = new setEbgpMultihop_args();
1224 args.setPeerIp(peerIp);
1225 args.setNHops(nHops);
1227 prot.writeMessageEnd();
1230 public int getResult() throws org.apache.thrift.TException {
1231 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1232 throw new IllegalStateException("Method call not finished!");
1234 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1235 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1236 return (new Client(prot)).recv_setEbgpMultihop();
1241 public void unsetEbgpMultihop(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1243 unsetEbgpMultihop_call method_call = new unsetEbgpMultihop_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1244 this.___currentMethod = method_call;
1245 ___manager.call(method_call);
1248 public static class unsetEbgpMultihop_call extends org.apache.thrift.async.TAsyncMethodCall {
1249 private final String peerIp;
1250 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 {
1251 super(client, protocolFactory, transport, resultHandler, false);
1252 this.peerIp = peerIp;
1256 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1257 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetEbgpMultihop", org.apache.thrift.protocol.TMessageType.CALL, 0));
1258 unsetEbgpMultihop_args args = new unsetEbgpMultihop_args();
1259 args.setPeerIp(peerIp);
1261 prot.writeMessageEnd();
1264 public int getResult() throws org.apache.thrift.TException {
1265 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1266 throw new IllegalStateException("Method call not finished!");
1268 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1269 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1270 return (new Client(prot)).recv_unsetEbgpMultihop();
1275 public void setUpdateSource(String peerIp, String srcIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1277 setUpdateSource_call method_call = new setUpdateSource_call(peerIp, srcIp, resultHandler, this, ___protocolFactory, ___transport);
1278 this.___currentMethod = method_call;
1279 ___manager.call(method_call);
1282 public static class setUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1283 private final String peerIp;
1284 private final String srcIp;
1285 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 {
1286 super(client, protocolFactory, transport, resultHandler, false);
1287 this.peerIp = peerIp;
1292 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1293 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1294 setUpdateSource_args args = new setUpdateSource_args();
1295 args.setPeerIp(peerIp);
1296 args.setSrcIp(srcIp);
1298 prot.writeMessageEnd();
1301 public int getResult() throws org.apache.thrift.TException {
1302 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1303 throw new IllegalStateException("Method call not finished!");
1305 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1306 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1307 return (new Client(prot)).recv_setUpdateSource();
1312 public void unsetUpdateSource(String peerIp, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1314 unsetUpdateSource_call method_call = new unsetUpdateSource_call(peerIp, resultHandler, this, ___protocolFactory, ___transport);
1315 this.___currentMethod = method_call;
1316 ___manager.call(method_call);
1319 public static class unsetUpdateSource_call extends org.apache.thrift.async.TAsyncMethodCall {
1320 private final String peerIp;
1321 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 {
1322 super(client, protocolFactory, transport, resultHandler, false);
1323 this.peerIp = peerIp;
1327 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1328 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unsetUpdateSource", org.apache.thrift.protocol.TMessageType.CALL, 0));
1329 unsetUpdateSource_args args = new unsetUpdateSource_args();
1330 args.setPeerIp(peerIp);
1332 prot.writeMessageEnd();
1335 public int getResult() throws org.apache.thrift.TException {
1336 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1337 throw new IllegalStateException("Method call not finished!");
1339 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1340 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1341 return (new Client(prot)).recv_unsetUpdateSource();
1346 public void enableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1348 enableAddressFamily_call method_call = new enableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1349 this.___currentMethod = method_call;
1350 ___manager.call(method_call);
1353 public static class enableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1354 private final String peerIp;
1355 private final af_afi afi;
1356 private final af_safi safi;
1357 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 {
1358 super(client, protocolFactory, transport, resultHandler, false);
1359 this.peerIp = peerIp;
1365 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1366 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1367 enableAddressFamily_args args = new enableAddressFamily_args();
1368 args.setPeerIp(peerIp);
1372 prot.writeMessageEnd();
1375 public int getResult() throws org.apache.thrift.TException {
1376 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1377 throw new IllegalStateException("Method call not finished!");
1379 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1380 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1381 return (new Client(prot)).recv_enableAddressFamily();
1386 public void disableAddressFamily(String peerIp, af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1388 disableAddressFamily_call method_call = new disableAddressFamily_call(peerIp, afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1389 this.___currentMethod = method_call;
1390 ___manager.call(method_call);
1393 public static class disableAddressFamily_call extends org.apache.thrift.async.TAsyncMethodCall {
1394 private final String peerIp;
1395 private final af_afi afi;
1396 private final af_safi safi;
1397 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 {
1398 super(client, protocolFactory, transport, resultHandler, false);
1399 this.peerIp = peerIp;
1405 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1406 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableAddressFamily", org.apache.thrift.protocol.TMessageType.CALL, 0));
1407 disableAddressFamily_args args = new disableAddressFamily_args();
1408 args.setPeerIp(peerIp);
1412 prot.writeMessageEnd();
1415 public int getResult() throws org.apache.thrift.TException {
1416 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1417 throw new IllegalStateException("Method call not finished!");
1419 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1420 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1421 return (new Client(prot)).recv_disableAddressFamily();
1426 public void setLogConfig(String logFileName, String logLevel, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1428 setLogConfig_call method_call = new setLogConfig_call(logFileName, logLevel, resultHandler, this, ___protocolFactory, ___transport);
1429 this.___currentMethod = method_call;
1430 ___manager.call(method_call);
1433 public static class setLogConfig_call extends org.apache.thrift.async.TAsyncMethodCall {
1434 private final String logFileName;
1435 private final String logLevel;
1436 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 {
1437 super(client, protocolFactory, transport, resultHandler, false);
1438 this.logFileName = logFileName;
1439 this.logLevel = logLevel;
1443 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1444 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setLogConfig", org.apache.thrift.protocol.TMessageType.CALL, 0));
1445 setLogConfig_args args = new setLogConfig_args();
1446 args.setLogFileName(logFileName);
1447 args.setLogLevel(logLevel);
1449 prot.writeMessageEnd();
1452 public int getResult() throws org.apache.thrift.TException {
1453 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1454 throw new IllegalStateException("Method call not finished!");
1456 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1457 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1458 return (new Client(prot)).recv_setLogConfig();
1463 public void enableGracefulRestart(int stalepathTime, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1465 enableGracefulRestart_call method_call = new enableGracefulRestart_call(stalepathTime, resultHandler, this, ___protocolFactory, ___transport);
1466 this.___currentMethod = method_call;
1467 ___manager.call(method_call);
1470 public static class enableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1471 private final int stalepathTime;
1472 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 {
1473 super(client, protocolFactory, transport, resultHandler, false);
1474 this.stalepathTime = stalepathTime;
1478 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1479 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1480 enableGracefulRestart_args args = new enableGracefulRestart_args();
1481 args.setStalepathTime(stalepathTime);
1483 prot.writeMessageEnd();
1486 public int getResult() throws org.apache.thrift.TException {
1487 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1488 throw new IllegalStateException("Method call not finished!");
1490 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1491 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1492 return (new Client(prot)).recv_enableGracefulRestart();
1497 public void disableGracefulRestart(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1499 disableGracefulRestart_call method_call = new disableGracefulRestart_call(resultHandler, this, ___protocolFactory, ___transport);
1500 this.___currentMethod = method_call;
1501 ___manager.call(method_call);
1504 public static class disableGracefulRestart_call extends org.apache.thrift.async.TAsyncMethodCall {
1505 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 {
1506 super(client, protocolFactory, transport, resultHandler, false);
1510 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1511 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableGracefulRestart", org.apache.thrift.protocol.TMessageType.CALL, 0));
1512 disableGracefulRestart_args args = new disableGracefulRestart_args();
1514 prot.writeMessageEnd();
1517 public int getResult() throws org.apache.thrift.TException {
1518 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1519 throw new IllegalStateException("Method call not finished!");
1521 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1522 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1523 return (new Client(prot)).recv_disableGracefulRestart();
1528 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 {
1530 getRoutes_call method_call = new getRoutes_call(p_type, optype, winSize, afi, resultHandler, this, ___protocolFactory, ___transport);
1531 this.___currentMethod = method_call;
1532 ___manager.call(method_call);
1535 public static class getRoutes_call extends org.apache.thrift.async.TAsyncMethodCall {
1536 private final protocol_type p_type;
1537 private final int optype;
1538 private final int winSize;
1539 private final af_afi afi;
1540 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 {
1541 super(client, protocolFactory, transport, resultHandler, false);
1542 this.p_type = p_type;
1543 this.optype = optype;
1544 this.winSize = winSize;
1549 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1550 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoutes", org.apache.thrift.protocol.TMessageType.CALL, 0));
1551 getRoutes_args args = new getRoutes_args();
1552 args.setP_type(p_type);
1553 args.setOptype(optype);
1554 args.setWinSize(winSize);
1557 prot.writeMessageEnd();
1560 public Routes getResult() throws org.apache.thrift.TException {
1561 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1562 throw new IllegalStateException("Method call not finished!");
1564 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1565 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1566 return (new Client(prot)).recv_getRoutes();
1571 public void enableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1573 enableMultipath_call method_call = new enableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1574 this.___currentMethod = method_call;
1575 ___manager.call(method_call);
1578 public static class enableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1579 private final af_afi afi;
1580 private final af_safi safi;
1581 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 {
1582 super(client, protocolFactory, transport, resultHandler, false);
1588 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1589 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1590 enableMultipath_args args = new enableMultipath_args();
1594 prot.writeMessageEnd();
1597 public int getResult() throws org.apache.thrift.TException {
1598 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1599 throw new IllegalStateException("Method call not finished!");
1601 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1602 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1603 return (new Client(prot)).recv_enableMultipath();
1608 public void disableMultipath(af_afi afi, af_safi safi, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1610 disableMultipath_call method_call = new disableMultipath_call(afi, safi, resultHandler, this, ___protocolFactory, ___transport);
1611 this.___currentMethod = method_call;
1612 ___manager.call(method_call);
1615 public static class disableMultipath_call extends org.apache.thrift.async.TAsyncMethodCall {
1616 private final af_afi afi;
1617 private final af_safi safi;
1618 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 {
1619 super(client, protocolFactory, transport, resultHandler, false);
1625 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1626 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("disableMultipath", org.apache.thrift.protocol.TMessageType.CALL, 0));
1627 disableMultipath_args args = new disableMultipath_args();
1631 prot.writeMessageEnd();
1634 public int getResult() throws org.apache.thrift.TException {
1635 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1636 throw new IllegalStateException("Method call not finished!");
1638 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1639 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1640 return (new Client(prot)).recv_disableMultipath();
1645 public void multipaths(String rd, int maxPath, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1647 multipaths_call method_call = new multipaths_call(rd, maxPath, resultHandler, this, ___protocolFactory, ___transport);
1648 this.___currentMethod = method_call;
1649 ___manager.call(method_call);
1652 public static class multipaths_call extends org.apache.thrift.async.TAsyncMethodCall {
1653 private final String rd;
1654 private final int maxPath;
1655 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 {
1656 super(client, protocolFactory, transport, resultHandler, false);
1658 this.maxPath = maxPath;
1662 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1663 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("multipaths", org.apache.thrift.protocol.TMessageType.CALL, 0));
1664 multipaths_args args = new multipaths_args();
1666 args.setMaxPath(maxPath);
1668 prot.writeMessageEnd();
1671 public int getResult() throws org.apache.thrift.TException {
1672 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1673 throw new IllegalStateException("Method call not finished!");
1675 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1676 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1677 return new Client(prot).recv_multipaths();
1681 public void enableEORDelay(int delay, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1683 enableEORDelay_call method_call = new enableEORDelay_call(delay, resultHandler, this, ___protocolFactory, ___transport);
1684 this.___currentMethod = method_call;
1685 ___manager.call(method_call);
1688 public static class enableEORDelay_call extends org.apache.thrift.async.TAsyncMethodCall {
1690 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 {
1691 super(client, protocolFactory, transport, resultHandler, false);
1695 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1696 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("enableEORDelay", org.apache.thrift.protocol.TMessageType.CALL, 0));
1697 enableEORDelay_args args = new enableEORDelay_args();
1698 args.setDelay(delay);
1700 prot.writeMessageEnd();
1703 public int getResult() throws org.apache.thrift.TException {
1704 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1705 throw new IllegalStateException("Method call not finished!");
1707 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1708 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1709 return new Client(prot).recv_enableEORDelay();
1713 public void sendEOR(org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException {
1715 sendEOR_call method_call = new sendEOR_call(resultHandler, this, ___protocolFactory, ___transport);
1716 this.___currentMethod = method_call;
1717 ___manager.call(method_call);
1720 public static class sendEOR_call extends org.apache.thrift.async.TAsyncMethodCall {
1721 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 {
1722 super(client, protocolFactory, transport, resultHandler, false);
1725 public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1726 prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendEOR", org.apache.thrift.protocol.TMessageType.CALL, 0));
1727 sendEOR_args args = new sendEOR_args();
1729 prot.writeMessageEnd();
1732 public int getResult() throws org.apache.thrift.TException {
1733 if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1734 throw new IllegalStateException("Method call not finished!");
1736 org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1737 org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1738 return (new Client(prot)).recv_sendEOR();
1744 public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor<I> implements org.apache.thrift.TProcessor {
1745 private static final Logger LOG = LoggerFactory.getLogger(Processor.class.getName());
1746 public Processor(I iface) {
1747 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1750 protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
1751 super(iface, getProcessMap(processMap));
1754 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) {
1755 processMap.put("startBgp", new startBgp());
1756 processMap.put("stopBgp", new stopBgp());
1757 processMap.put("createPeer", new createPeer());
1758 processMap.put("setPeerSecret", new setPeerSecret());
1759 processMap.put("deletePeer", new deletePeer());
1760 processMap.put("addVrf", new addVrf());
1761 processMap.put("delVrf", new delVrf());
1762 processMap.put("pushRoute", new pushRoute());
1763 processMap.put("withdrawRoute", new withdrawRoute());
1764 processMap.put("setEbgpMultihop", new setEbgpMultihop());
1765 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
1766 processMap.put("setUpdateSource", new setUpdateSource());
1767 processMap.put("unsetUpdateSource", new unsetUpdateSource());
1768 processMap.put("enableAddressFamily", new enableAddressFamily());
1769 processMap.put("disableAddressFamily", new disableAddressFamily());
1770 processMap.put("setLogConfig", new setLogConfig());
1771 processMap.put("enableGracefulRestart", new enableGracefulRestart());
1772 processMap.put("disableGracefulRestart", new disableGracefulRestart());
1773 processMap.put("getRoutes", new getRoutes());
1774 processMap.put("enableMultipath", new enableMultipath());
1775 processMap.put("disableMultipath", new disableMultipath());
1776 processMap.put("multipaths", new multipaths());
1777 processMap.put("enableEORDelay", new enableEORDelay());
1778 processMap.put("sendEOR", new sendEOR());
1782 public static class startBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, startBgp_args> {
1788 public startBgp_args getEmptyArgsInstance() {
1789 return new startBgp_args();
1793 protected boolean isOneway() {
1798 public startBgp_result getResult(I iface, startBgp_args args) throws org.apache.thrift.TException {
1799 startBgp_result result = new startBgp_result();
1800 result.success = iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush);
1801 result.setSuccessIsSet(true);
1806 public static class stopBgp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, stopBgp_args> {
1812 public stopBgp_args getEmptyArgsInstance() {
1813 return new stopBgp_args();
1817 protected boolean isOneway() {
1822 public stopBgp_result getResult(I iface, stopBgp_args args) throws org.apache.thrift.TException {
1823 stopBgp_result result = new stopBgp_result();
1824 result.success = iface.stopBgp(args.asNumber);
1825 result.setSuccessIsSet(true);
1830 public static class createPeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPeer_args> {
1831 public createPeer() {
1832 super("createPeer");
1836 public createPeer_args getEmptyArgsInstance() {
1837 return new createPeer_args();
1841 protected boolean isOneway() {
1846 public createPeer_result getResult(I iface, createPeer_args args) throws org.apache.thrift.TException {
1847 createPeer_result result = new createPeer_result();
1848 result.success = iface.createPeer(args.ipAddress, args.asNumber);
1849 result.setSuccessIsSet(true);
1854 public static class setPeerSecret<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setPeerSecret_args> {
1855 public setPeerSecret() {
1856 super("setPeerSecret");
1860 public setPeerSecret_args getEmptyArgsInstance() {
1861 return new setPeerSecret_args();
1865 protected boolean isOneway() {
1870 public setPeerSecret_result getResult(I iface, setPeerSecret_args args) throws org.apache.thrift.TException {
1871 setPeerSecret_result result = new setPeerSecret_result();
1872 result.success = iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret);
1873 result.setSuccessIsSet(true);
1878 public static class deletePeer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deletePeer_args> {
1879 public deletePeer() {
1880 super("deletePeer");
1884 public deletePeer_args getEmptyArgsInstance() {
1885 return new deletePeer_args();
1889 protected boolean isOneway() {
1894 public deletePeer_result getResult(I iface, deletePeer_args args) throws org.apache.thrift.TException {
1895 deletePeer_result result = new deletePeer_result();
1896 result.success = iface.deletePeer(args.ipAddress);
1897 result.setSuccessIsSet(true);
1902 public static class addVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addVrf_args> {
1908 public addVrf_args getEmptyArgsInstance() {
1909 return new addVrf_args();
1913 protected boolean isOneway() {
1918 public addVrf_result getResult(I iface, addVrf_args args) throws org.apache.thrift.TException {
1919 addVrf_result result = new addVrf_result();
1920 result.success = iface.addVrf(args.l_type, args.rd, args.irts, args.erts, args.afi, args.safi);
1921 result.setSuccessIsSet(true);
1926 public static class delVrf<I extends Iface> extends org.apache.thrift.ProcessFunction<I, delVrf_args> {
1932 public delVrf_args getEmptyArgsInstance() {
1933 return new delVrf_args();
1937 protected boolean isOneway() {
1942 public delVrf_result getResult(I iface, delVrf_args args) throws org.apache.thrift.TException {
1943 delVrf_result result = new delVrf_result();
1944 result.success = iface.delVrf(args.rd, args.afi, args.safi);
1945 result.setSuccessIsSet(true);
1950 public static class pushRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, pushRoute_args> {
1951 public pushRoute() {
1956 public pushRoute_args getEmptyArgsInstance() {
1957 return new pushRoute_args();
1961 protected boolean isOneway() {
1966 public pushRoute_result getResult(I iface, pushRoute_args args) throws org.apache.thrift.TException {
1967 pushRoute_result result = new pushRoute_result();
1968 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);
1969 result.setSuccessIsSet(true);
1974 public static class withdrawRoute<I extends Iface> extends org.apache.thrift.ProcessFunction<I, withdrawRoute_args> {
1975 public withdrawRoute() {
1976 super("withdrawRoute");
1980 public withdrawRoute_args getEmptyArgsInstance() {
1981 return new withdrawRoute_args();
1985 protected boolean isOneway() {
1990 public withdrawRoute_result getResult(I iface, withdrawRoute_args args) throws org.apache.thrift.TException {
1991 withdrawRoute_result result = new withdrawRoute_result();
1992 result.success = iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi);
1993 result.setSuccessIsSet(true);
1998 public static class setEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setEbgpMultihop_args> {
1999 public setEbgpMultihop() {
2000 super("setEbgpMultihop");
2004 public setEbgpMultihop_args getEmptyArgsInstance() {
2005 return new setEbgpMultihop_args();
2009 protected boolean isOneway() {
2014 public setEbgpMultihop_result getResult(I iface, setEbgpMultihop_args args) throws org.apache.thrift.TException {
2015 setEbgpMultihop_result result = new setEbgpMultihop_result();
2016 result.success = iface.setEbgpMultihop(args.peerIp, args.nHops);
2017 result.setSuccessIsSet(true);
2022 public static class unsetEbgpMultihop<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetEbgpMultihop_args> {
2023 public unsetEbgpMultihop() {
2024 super("unsetEbgpMultihop");
2028 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2029 return new unsetEbgpMultihop_args();
2033 protected boolean isOneway() {
2038 public unsetEbgpMultihop_result getResult(I iface, unsetEbgpMultihop_args args) throws org.apache.thrift.TException {
2039 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2040 result.success = iface.unsetEbgpMultihop(args.peerIp);
2041 result.setSuccessIsSet(true);
2046 public static class setUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setUpdateSource_args> {
2047 public setUpdateSource() {
2048 super("setUpdateSource");
2052 public setUpdateSource_args getEmptyArgsInstance() {
2053 return new setUpdateSource_args();
2057 protected boolean isOneway() {
2062 public setUpdateSource_result getResult(I iface, setUpdateSource_args args) throws org.apache.thrift.TException {
2063 setUpdateSource_result result = new setUpdateSource_result();
2064 result.success = iface.setUpdateSource(args.peerIp, args.srcIp);
2065 result.setSuccessIsSet(true);
2070 public static class unsetUpdateSource<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unsetUpdateSource_args> {
2071 public unsetUpdateSource() {
2072 super("unsetUpdateSource");
2076 public unsetUpdateSource_args getEmptyArgsInstance() {
2077 return new unsetUpdateSource_args();
2081 protected boolean isOneway() {
2086 public unsetUpdateSource_result getResult(I iface, unsetUpdateSource_args args) throws org.apache.thrift.TException {
2087 unsetUpdateSource_result result = new unsetUpdateSource_result();
2088 result.success = iface.unsetUpdateSource(args.peerIp);
2089 result.setSuccessIsSet(true);
2094 public static class enableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableAddressFamily_args> {
2095 public enableAddressFamily() {
2096 super("enableAddressFamily");
2100 public enableAddressFamily_args getEmptyArgsInstance() {
2101 return new enableAddressFamily_args();
2105 protected boolean isOneway() {
2110 public enableAddressFamily_result getResult(I iface, enableAddressFamily_args args) throws org.apache.thrift.TException {
2111 enableAddressFamily_result result = new enableAddressFamily_result();
2112 result.success = iface.enableAddressFamily(args.peerIp, args.afi, args.safi);
2113 result.setSuccessIsSet(true);
2118 public static class disableAddressFamily<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableAddressFamily_args> {
2119 public disableAddressFamily() {
2120 super("disableAddressFamily");
2124 public disableAddressFamily_args getEmptyArgsInstance() {
2125 return new disableAddressFamily_args();
2129 protected boolean isOneway() {
2134 public disableAddressFamily_result getResult(I iface, disableAddressFamily_args args) throws org.apache.thrift.TException {
2135 disableAddressFamily_result result = new disableAddressFamily_result();
2136 result.success = iface.disableAddressFamily(args.peerIp, args.afi, args.safi);
2137 result.setSuccessIsSet(true);
2142 public static class setLogConfig<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setLogConfig_args> {
2143 public setLogConfig() {
2144 super("setLogConfig");
2148 public setLogConfig_args getEmptyArgsInstance() {
2149 return new setLogConfig_args();
2153 protected boolean isOneway() {
2158 public setLogConfig_result getResult(I iface, setLogConfig_args args) throws org.apache.thrift.TException {
2159 setLogConfig_result result = new setLogConfig_result();
2160 result.success = iface.setLogConfig(args.logFileName, args.logLevel);
2161 result.setSuccessIsSet(true);
2166 public static class enableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableGracefulRestart_args> {
2167 public enableGracefulRestart() {
2168 super("enableGracefulRestart");
2172 public enableGracefulRestart_args getEmptyArgsInstance() {
2173 return new enableGracefulRestart_args();
2177 protected boolean isOneway() {
2182 public enableGracefulRestart_result getResult(I iface, enableGracefulRestart_args args) throws org.apache.thrift.TException {
2183 enableGracefulRestart_result result = new enableGracefulRestart_result();
2184 result.success = iface.enableGracefulRestart(args.stalepathTime);
2185 result.setSuccessIsSet(true);
2190 public static class disableGracefulRestart<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableGracefulRestart_args> {
2191 public disableGracefulRestart() {
2192 super("disableGracefulRestart");
2196 public disableGracefulRestart_args getEmptyArgsInstance() {
2197 return new disableGracefulRestart_args();
2201 protected boolean isOneway() {
2206 public disableGracefulRestart_result getResult(I iface, disableGracefulRestart_args args) throws org.apache.thrift.TException {
2207 disableGracefulRestart_result result = new disableGracefulRestart_result();
2208 result.success = iface.disableGracefulRestart();
2209 result.setSuccessIsSet(true);
2214 public static class getRoutes<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoutes_args> {
2215 public getRoutes() {
2220 public getRoutes_args getEmptyArgsInstance() {
2221 return new getRoutes_args();
2225 protected boolean isOneway() {
2230 public getRoutes_result getResult(I iface, getRoutes_args args) throws org.apache.thrift.TException {
2231 getRoutes_result result = new getRoutes_result();
2232 result.success = iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi);
2237 public static class enableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableMultipath_args> {
2238 public enableMultipath() {
2239 super("enableMultipath");
2243 public enableMultipath_args getEmptyArgsInstance() {
2244 return new enableMultipath_args();
2248 protected boolean isOneway() {
2253 public enableMultipath_result getResult(I iface, enableMultipath_args args) throws org.apache.thrift.TException {
2254 enableMultipath_result result = new enableMultipath_result();
2255 result.success = iface.enableMultipath(args.afi, args.safi);
2256 result.setSuccessIsSet(true);
2261 public static class disableMultipath<I extends Iface> extends org.apache.thrift.ProcessFunction<I, disableMultipath_args> {
2262 public disableMultipath() {
2263 super("disableMultipath");
2267 public disableMultipath_args getEmptyArgsInstance() {
2268 return new disableMultipath_args();
2272 protected boolean isOneway() {
2277 public disableMultipath_result getResult(I iface, disableMultipath_args args) throws org.apache.thrift.TException {
2278 disableMultipath_result result = new disableMultipath_result();
2279 result.success = iface.disableMultipath(args.afi, args.safi);
2280 result.setSuccessIsSet(true);
2285 public static class multipaths<I extends Iface> extends org.apache.thrift.ProcessFunction<I, multipaths_args> {
2286 public multipaths() {
2287 super("multipaths");
2291 public multipaths_args getEmptyArgsInstance() {
2292 return new multipaths_args();
2296 protected boolean isOneway() {
2301 public multipaths_result getResult(I iface, multipaths_args args) throws org.apache.thrift.TException {
2302 multipaths_result result = new multipaths_result();
2303 result.success = iface.multipaths(args.rd, args.maxPath);
2304 result.setSuccessIsSet(true);
2309 public static class enableEORDelay<I extends Iface> extends org.apache.thrift.ProcessFunction<I, enableEORDelay_args> {
2310 public enableEORDelay() {
2311 super("enableEORDelay");
2314 public enableEORDelay_args getEmptyArgsInstance() {
2315 return new enableEORDelay_args();
2318 protected boolean isOneway() {
2322 public enableEORDelay_result getResult(I iface, enableEORDelay_args args) throws org.apache.thrift.TException {
2323 enableEORDelay_result result = new enableEORDelay_result();
2324 result.success = iface.enableEORDelay(args.delay);
2325 result.setSuccessIsSet(true);
2330 public static class sendEOR<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendEOR_args> {
2335 public sendEOR_args getEmptyArgsInstance() {
2336 return new sendEOR_args();
2339 protected boolean isOneway() {
2343 public sendEOR_result getResult(I iface, sendEOR_args args) throws org.apache.thrift.TException {
2344 sendEOR_result result = new sendEOR_result();
2345 result.success = iface.sendEOR();
2346 result.setSuccessIsSet(true);
2353 public static class AsyncProcessor<I extends AsyncIface> extends org.apache.thrift.TBaseAsyncProcessor<I> {
2354 private static final Logger LOG = LoggerFactory.getLogger(AsyncProcessor.class.getName());
2355 public AsyncProcessor(I iface) {
2356 super(iface, getProcessMap(new HashMap<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>>()));
2359 protected AsyncProcessor(I iface, Map<String, org.apache.thrift.AsyncProcessFunction<I, ? extends org.apache.thrift.TBase, ?>> processMap) {
2360 super(iface, getProcessMap(processMap));
2363 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) {
2364 processMap.put("startBgp", new startBgp());
2365 processMap.put("stopBgp", new stopBgp());
2366 processMap.put("createPeer", new createPeer());
2367 processMap.put("setPeerSecret", new setPeerSecret());
2368 processMap.put("deletePeer", new deletePeer());
2369 processMap.put("addVrf", new addVrf());
2370 processMap.put("delVrf", new delVrf());
2371 processMap.put("pushRoute", new pushRoute());
2372 processMap.put("withdrawRoute", new withdrawRoute());
2373 processMap.put("setEbgpMultihop", new setEbgpMultihop());
2374 processMap.put("unsetEbgpMultihop", new unsetEbgpMultihop());
2375 processMap.put("setUpdateSource", new setUpdateSource());
2376 processMap.put("unsetUpdateSource", new unsetUpdateSource());
2377 processMap.put("enableAddressFamily", new enableAddressFamily());
2378 processMap.put("disableAddressFamily", new disableAddressFamily());
2379 processMap.put("setLogConfig", new setLogConfig());
2380 processMap.put("enableGracefulRestart", new enableGracefulRestart());
2381 processMap.put("disableGracefulRestart", new disableGracefulRestart());
2382 processMap.put("getRoutes", new getRoutes());
2383 processMap.put("enableMultipath", new enableMultipath());
2384 processMap.put("disableMultipath", new disableMultipath());
2385 processMap.put("multipaths", new multipaths());
2386 processMap.put("enableEORDelay", new enableEORDelay());
2387 processMap.put("sendEOR", new sendEOR());
2391 public static class startBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, startBgp_args, Integer> {
2397 public startBgp_args getEmptyArgsInstance() {
2398 return new startBgp_args();
2402 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2403 final org.apache.thrift.AsyncProcessFunction fcall = this;
2404 return new AsyncMethodCallback<Integer>() {
2406 public void onComplete(Integer o) {
2407 startBgp_result result = new startBgp_result();
2409 result.setSuccessIsSet(true);
2411 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2413 } catch (Exception e) {
2414 LOG.error("Exception writing to internal frame buffer", e);
2419 public void onError(Exception e) {
2420 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2421 org.apache.thrift.TBase msg;
2422 startBgp_result result = new startBgp_result();
2424 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2425 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2428 fcall.sendResponse(fb,msg,msgType,seqid);
2430 } catch (Exception ex) {
2431 LOG.error("Exception writing to internal frame buffer", ex);
2439 protected boolean isOneway() {
2444 public void start(I iface, startBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2445 iface.startBgp(args.asNumber, args.routerId, args.port, args.holdTime, args.keepAliveTime, args.stalepathTime, args.announceFlush,resultHandler);
2449 public static class stopBgp<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, stopBgp_args, Integer> {
2455 public stopBgp_args getEmptyArgsInstance() {
2456 return new stopBgp_args();
2460 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2461 final org.apache.thrift.AsyncProcessFunction fcall = this;
2462 return new AsyncMethodCallback<Integer>() {
2464 public void onComplete(Integer o) {
2465 stopBgp_result result = new stopBgp_result();
2467 result.setSuccessIsSet(true);
2469 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2471 } catch (Exception e) {
2472 LOG.error("Exception writing to internal frame buffer", e);
2477 public void onError(Exception e) {
2478 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2479 org.apache.thrift.TBase msg;
2480 stopBgp_result result = new stopBgp_result();
2482 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2483 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2486 fcall.sendResponse(fb,msg,msgType,seqid);
2488 } catch (Exception ex) {
2489 LOG.error("Exception writing to internal frame buffer", ex);
2497 protected boolean isOneway() {
2502 public void start(I iface, stopBgp_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2503 iface.stopBgp(args.asNumber,resultHandler);
2507 public static class createPeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, createPeer_args, Integer> {
2508 public createPeer() {
2509 super("createPeer");
2513 public createPeer_args getEmptyArgsInstance() {
2514 return new createPeer_args();
2518 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2519 final org.apache.thrift.AsyncProcessFunction fcall = this;
2520 return new AsyncMethodCallback<Integer>() {
2522 public void onComplete(Integer o) {
2523 createPeer_result result = new createPeer_result();
2525 result.setSuccessIsSet(true);
2527 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2529 } catch (Exception e) {
2530 LOG.error("Exception writing to internal frame buffer", e);
2535 public void onError(Exception e) {
2536 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2537 org.apache.thrift.TBase msg;
2538 createPeer_result result = new createPeer_result();
2540 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2541 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2544 fcall.sendResponse(fb,msg,msgType,seqid);
2546 } catch (Exception ex) {
2547 LOG.error("Exception writing to internal frame buffer", ex);
2555 protected boolean isOneway() {
2560 public void start(I iface, createPeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2561 iface.createPeer(args.ipAddress, args.asNumber,resultHandler);
2565 public static class setPeerSecret<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setPeerSecret_args, Integer> {
2566 public setPeerSecret() {
2567 super("setPeerSecret");
2571 public setPeerSecret_args getEmptyArgsInstance() {
2572 return new setPeerSecret_args();
2576 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2577 final org.apache.thrift.AsyncProcessFunction fcall = this;
2578 return new AsyncMethodCallback<Integer>() {
2580 public void onComplete(Integer o) {
2581 setPeerSecret_result result = new setPeerSecret_result();
2583 result.setSuccessIsSet(true);
2585 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2587 } catch (Exception e) {
2588 LOG.error("Exception writing to internal frame buffer", e);
2593 public void onError(Exception e) {
2594 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2595 org.apache.thrift.TBase msg;
2596 setPeerSecret_result result = new setPeerSecret_result();
2598 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2599 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2602 fcall.sendResponse(fb,msg,msgType,seqid);
2604 } catch (Exception ex) {
2605 LOG.error("Exception writing to internal frame buffer", ex);
2613 protected boolean isOneway() {
2618 public void start(I iface, setPeerSecret_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2619 iface.setPeerSecret(args.ipAddress, args.rfc2385_sharedSecret,resultHandler);
2623 public static class deletePeer<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, deletePeer_args, Integer> {
2624 public deletePeer() {
2625 super("deletePeer");
2629 public deletePeer_args getEmptyArgsInstance() {
2630 return new deletePeer_args();
2634 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2635 final org.apache.thrift.AsyncProcessFunction fcall = this;
2636 return new AsyncMethodCallback<Integer>() {
2638 public void onComplete(Integer o) {
2639 deletePeer_result result = new deletePeer_result();
2641 result.setSuccessIsSet(true);
2643 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2645 } catch (Exception e) {
2646 LOG.error("Exception writing to internal frame buffer", e);
2651 public void onError(Exception e) {
2652 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2653 org.apache.thrift.TBase msg;
2654 deletePeer_result result = new deletePeer_result();
2656 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2657 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2660 fcall.sendResponse(fb,msg,msgType,seqid);
2662 } catch (Exception ex) {
2663 LOG.error("Exception writing to internal frame buffer", ex);
2671 protected boolean isOneway() {
2676 public void start(I iface, deletePeer_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2677 iface.deletePeer(args.ipAddress,resultHandler);
2681 public static class addVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, addVrf_args, Integer> {
2687 public addVrf_args getEmptyArgsInstance() {
2688 return new addVrf_args();
2692 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2693 final org.apache.thrift.AsyncProcessFunction fcall = this;
2694 return new AsyncMethodCallback<Integer>() {
2696 public void onComplete(Integer o) {
2697 addVrf_result result = new addVrf_result();
2699 result.setSuccessIsSet(true);
2701 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2703 } catch (Exception e) {
2704 LOG.error("Exception writing to internal frame buffer", e);
2709 public void onError(Exception e) {
2710 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2711 org.apache.thrift.TBase msg;
2712 addVrf_result result = new addVrf_result();
2714 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2715 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2718 fcall.sendResponse(fb,msg,msgType,seqid);
2720 } catch (Exception ex) {
2721 LOG.error("Exception writing to internal frame buffer", ex);
2729 protected boolean isOneway() {
2734 public void start(I iface, addVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2735 iface.addVrf(args.l_type, args.rd, args.irts, args.erts, args.afi, args.safi,resultHandler);
2739 public static class delVrf<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, delVrf_args, Integer> {
2745 public delVrf_args getEmptyArgsInstance() {
2746 return new delVrf_args();
2750 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2751 final org.apache.thrift.AsyncProcessFunction fcall = this;
2752 return new AsyncMethodCallback<Integer>() {
2754 public void onComplete(Integer o) {
2755 delVrf_result result = new delVrf_result();
2757 result.setSuccessIsSet(true);
2759 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2761 } catch (Exception e) {
2762 LOG.error("Exception writing to internal frame buffer", e);
2767 public void onError(Exception e) {
2768 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2769 org.apache.thrift.TBase msg;
2770 delVrf_result result = new delVrf_result();
2772 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2773 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2776 fcall.sendResponse(fb,msg,msgType,seqid);
2778 } catch (Exception ex) {
2779 LOG.error("Exception writing to internal frame buffer", ex);
2787 protected boolean isOneway() {
2792 public void start(I iface, delVrf_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2793 iface.delVrf(args.rd, args.afi, args.safi,resultHandler);
2797 public static class pushRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, pushRoute_args, Integer> {
2798 public pushRoute() {
2803 public pushRoute_args getEmptyArgsInstance() {
2804 return new pushRoute_args();
2808 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2809 final org.apache.thrift.AsyncProcessFunction fcall = this;
2810 return new AsyncMethodCallback<Integer>() {
2812 public void onComplete(Integer o) {
2813 pushRoute_result result = new pushRoute_result();
2815 result.setSuccessIsSet(true);
2817 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2819 } catch (Exception e) {
2820 LOG.error("Exception writing to internal frame buffer", e);
2825 public void onError(Exception e) {
2826 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2827 org.apache.thrift.TBase msg;
2828 pushRoute_result result = new pushRoute_result();
2830 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2831 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2834 fcall.sendResponse(fb,msg,msgType,seqid);
2836 } catch (Exception ex) {
2837 LOG.error("Exception writing to internal frame buffer", ex);
2845 protected boolean isOneway() {
2850 public void start(I iface, pushRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2851 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);
2855 public static class withdrawRoute<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, withdrawRoute_args, Integer> {
2856 public withdrawRoute() {
2857 super("withdrawRoute");
2861 public withdrawRoute_args getEmptyArgsInstance() {
2862 return new withdrawRoute_args();
2866 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2867 final org.apache.thrift.AsyncProcessFunction fcall = this;
2868 return new AsyncMethodCallback<Integer>() {
2870 public void onComplete(Integer o) {
2871 withdrawRoute_result result = new withdrawRoute_result();
2873 result.setSuccessIsSet(true);
2875 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2877 } catch (Exception e) {
2878 LOG.error("Exception writing to internal frame buffer", e);
2883 public void onError(Exception e) {
2884 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2885 org.apache.thrift.TBase msg;
2886 withdrawRoute_result result = new withdrawRoute_result();
2888 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2889 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2892 fcall.sendResponse(fb,msg,msgType,seqid);
2894 } catch (Exception ex) {
2895 LOG.error("Exception writing to internal frame buffer", ex);
2903 protected boolean isOneway() {
2908 public void start(I iface, withdrawRoute_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2909 iface.withdrawRoute(args.p_type, args.prefix, args.rd, args.ethtag, args.esi, args.macaddress, args.afi,resultHandler);
2913 public static class setEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setEbgpMultihop_args, Integer> {
2914 public setEbgpMultihop() {
2915 super("setEbgpMultihop");
2919 public setEbgpMultihop_args getEmptyArgsInstance() {
2920 return new setEbgpMultihop_args();
2924 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2925 final org.apache.thrift.AsyncProcessFunction fcall = this;
2926 return new AsyncMethodCallback<Integer>() {
2928 public void onComplete(Integer o) {
2929 setEbgpMultihop_result result = new setEbgpMultihop_result();
2931 result.setSuccessIsSet(true);
2933 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2935 } catch (Exception e) {
2936 LOG.error("Exception writing to internal frame buffer", e);
2941 public void onError(Exception e) {
2942 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
2943 org.apache.thrift.TBase msg;
2944 setEbgpMultihop_result result = new setEbgpMultihop_result();
2946 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
2947 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
2950 fcall.sendResponse(fb,msg,msgType,seqid);
2952 } catch (Exception ex) {
2953 LOG.error("Exception writing to internal frame buffer", ex);
2961 protected boolean isOneway() {
2966 public void start(I iface, setEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
2967 iface.setEbgpMultihop(args.peerIp, args.nHops,resultHandler);
2971 public static class unsetEbgpMultihop<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetEbgpMultihop_args, Integer> {
2972 public unsetEbgpMultihop() {
2973 super("unsetEbgpMultihop");
2977 public unsetEbgpMultihop_args getEmptyArgsInstance() {
2978 return new unsetEbgpMultihop_args();
2982 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
2983 final org.apache.thrift.AsyncProcessFunction fcall = this;
2984 return new AsyncMethodCallback<Integer>() {
2986 public void onComplete(Integer o) {
2987 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
2989 result.setSuccessIsSet(true);
2991 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
2993 } catch (Exception e) {
2994 LOG.error("Exception writing to internal frame buffer", e);
2999 public void onError(Exception e) {
3000 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3001 org.apache.thrift.TBase msg;
3002 unsetEbgpMultihop_result result = new unsetEbgpMultihop_result();
3004 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3005 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3008 fcall.sendResponse(fb,msg,msgType,seqid);
3010 } catch (Exception ex) {
3011 LOG.error("Exception writing to internal frame buffer", ex);
3019 protected boolean isOneway() {
3024 public void start(I iface, unsetEbgpMultihop_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3025 iface.unsetEbgpMultihop(args.peerIp,resultHandler);
3029 public static class setUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setUpdateSource_args, Integer> {
3030 public setUpdateSource() {
3031 super("setUpdateSource");
3035 public setUpdateSource_args getEmptyArgsInstance() {
3036 return new setUpdateSource_args();
3040 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3041 final org.apache.thrift.AsyncProcessFunction fcall = this;
3042 return new AsyncMethodCallback<Integer>() {
3044 public void onComplete(Integer o) {
3045 setUpdateSource_result result = new setUpdateSource_result();
3047 result.setSuccessIsSet(true);
3049 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3051 } catch (Exception e) {
3052 LOG.error("Exception writing to internal frame buffer", e);
3057 public void onError(Exception e) {
3058 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3059 org.apache.thrift.TBase msg;
3060 setUpdateSource_result result = new setUpdateSource_result();
3062 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3063 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3066 fcall.sendResponse(fb,msg,msgType,seqid);
3068 } catch (Exception ex) {
3069 LOG.error("Exception writing to internal frame buffer", ex);
3077 protected boolean isOneway() {
3082 public void start(I iface, setUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3083 iface.setUpdateSource(args.peerIp, args.srcIp,resultHandler);
3087 public static class unsetUpdateSource<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, unsetUpdateSource_args, Integer> {
3088 public unsetUpdateSource() {
3089 super("unsetUpdateSource");
3093 public unsetUpdateSource_args getEmptyArgsInstance() {
3094 return new unsetUpdateSource_args();
3098 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3099 final org.apache.thrift.AsyncProcessFunction fcall = this;
3100 return new AsyncMethodCallback<Integer>() {
3102 public void onComplete(Integer o) {
3103 unsetUpdateSource_result result = new unsetUpdateSource_result();
3105 result.setSuccessIsSet(true);
3107 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3109 } catch (Exception e) {
3110 LOG.error("Exception writing to internal frame buffer", e);
3115 public void onError(Exception e) {
3116 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3117 org.apache.thrift.TBase msg;
3118 unsetUpdateSource_result result = new unsetUpdateSource_result();
3120 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3121 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3124 fcall.sendResponse(fb,msg,msgType,seqid);
3126 } catch (Exception ex) {
3127 LOG.error("Exception writing to internal frame buffer", ex);
3135 protected boolean isOneway() {
3140 public void start(I iface, unsetUpdateSource_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3141 iface.unsetUpdateSource(args.peerIp,resultHandler);
3145 public static class enableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableAddressFamily_args, Integer> {
3146 public enableAddressFamily() {
3147 super("enableAddressFamily");
3151 public enableAddressFamily_args getEmptyArgsInstance() {
3152 return new enableAddressFamily_args();
3156 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3157 final org.apache.thrift.AsyncProcessFunction fcall = this;
3158 return new AsyncMethodCallback<Integer>() {
3160 public void onComplete(Integer o) {
3161 enableAddressFamily_result result = new enableAddressFamily_result();
3163 result.setSuccessIsSet(true);
3165 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3167 } catch (Exception e) {
3168 LOG.error("Exception writing to internal frame buffer", e);
3173 public void onError(Exception e) {
3174 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3175 org.apache.thrift.TBase msg;
3176 enableAddressFamily_result result = new enableAddressFamily_result();
3178 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3179 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3182 fcall.sendResponse(fb,msg,msgType,seqid);
3184 } catch (Exception ex) {
3185 LOG.error("Exception writing to internal frame buffer", ex);
3193 protected boolean isOneway() {
3198 public void start(I iface, enableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3199 iface.enableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3203 public static class disableAddressFamily<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableAddressFamily_args, Integer> {
3204 public disableAddressFamily() {
3205 super("disableAddressFamily");
3209 public disableAddressFamily_args getEmptyArgsInstance() {
3210 return new disableAddressFamily_args();
3214 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3215 final org.apache.thrift.AsyncProcessFunction fcall = this;
3216 return new AsyncMethodCallback<Integer>() {
3218 public void onComplete(Integer o) {
3219 disableAddressFamily_result result = new disableAddressFamily_result();
3221 result.setSuccessIsSet(true);
3223 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3225 } catch (Exception e) {
3226 LOG.error("Exception writing to internal frame buffer", e);
3231 public void onError(Exception e) {
3232 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3233 org.apache.thrift.TBase msg;
3234 disableAddressFamily_result result = new disableAddressFamily_result();
3236 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3237 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3240 fcall.sendResponse(fb,msg,msgType,seqid);
3242 } catch (Exception ex) {
3243 LOG.error("Exception writing to internal frame buffer", ex);
3251 protected boolean isOneway() {
3256 public void start(I iface, disableAddressFamily_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3257 iface.disableAddressFamily(args.peerIp, args.afi, args.safi,resultHandler);
3261 public static class setLogConfig<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, setLogConfig_args, Integer> {
3262 public setLogConfig() {
3263 super("setLogConfig");
3267 public setLogConfig_args getEmptyArgsInstance() {
3268 return new setLogConfig_args();
3272 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3273 final org.apache.thrift.AsyncProcessFunction fcall = this;
3274 return new AsyncMethodCallback<Integer>() {
3276 public void onComplete(Integer o) {
3277 setLogConfig_result result = new setLogConfig_result();
3279 result.setSuccessIsSet(true);
3281 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3283 } catch (Exception e) {
3284 LOG.error("Exception writing to internal frame buffer", e);
3289 public void onError(Exception e) {
3290 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3291 org.apache.thrift.TBase msg;
3292 setLogConfig_result result = new setLogConfig_result();
3294 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3295 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3298 fcall.sendResponse(fb,msg,msgType,seqid);
3300 } catch (Exception ex) {
3301 LOG.error("Exception writing to internal frame buffer", ex);
3309 protected boolean isOneway() {
3314 public void start(I iface, setLogConfig_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3315 iface.setLogConfig(args.logFileName, args.logLevel,resultHandler);
3319 public static class enableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableGracefulRestart_args, Integer> {
3320 public enableGracefulRestart() {
3321 super("enableGracefulRestart");
3325 public enableGracefulRestart_args getEmptyArgsInstance() {
3326 return new enableGracefulRestart_args();
3330 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3331 final org.apache.thrift.AsyncProcessFunction fcall = this;
3332 return new AsyncMethodCallback<Integer>() {
3334 public void onComplete(Integer o) {
3335 enableGracefulRestart_result result = new enableGracefulRestart_result();
3337 result.setSuccessIsSet(true);
3339 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3341 } catch (Exception e) {
3342 LOG.error("Exception writing to internal frame buffer", e);
3347 public void onError(Exception e) {
3348 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3349 org.apache.thrift.TBase msg;
3350 enableGracefulRestart_result result = new enableGracefulRestart_result();
3352 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3353 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3356 fcall.sendResponse(fb,msg,msgType,seqid);
3358 } catch (Exception ex) {
3359 LOG.error("Exception writing to internal frame buffer", ex);
3367 protected boolean isOneway() {
3372 public void start(I iface, enableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3373 iface.enableGracefulRestart(args.stalepathTime,resultHandler);
3377 public static class disableGracefulRestart<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableGracefulRestart_args, Integer> {
3378 public disableGracefulRestart() {
3379 super("disableGracefulRestart");
3383 public disableGracefulRestart_args getEmptyArgsInstance() {
3384 return new disableGracefulRestart_args();
3388 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3389 final org.apache.thrift.AsyncProcessFunction fcall = this;
3390 return new AsyncMethodCallback<Integer>() {
3392 public void onComplete(Integer o) {
3393 disableGracefulRestart_result result = new disableGracefulRestart_result();
3395 result.setSuccessIsSet(true);
3397 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3399 } catch (Exception e) {
3400 LOG.error("Exception writing to internal frame buffer", e);
3405 public void onError(Exception e) {
3406 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3407 org.apache.thrift.TBase msg;
3408 disableGracefulRestart_result result = new disableGracefulRestart_result();
3410 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3411 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3414 fcall.sendResponse(fb,msg,msgType,seqid);
3416 } catch (Exception ex) {
3417 LOG.error("Exception writing to internal frame buffer", ex);
3425 protected boolean isOneway() {
3430 public void start(I iface, disableGracefulRestart_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3431 iface.disableGracefulRestart(resultHandler);
3435 public static class getRoutes<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, getRoutes_args, Routes> {
3436 public getRoutes() {
3441 public getRoutes_args getEmptyArgsInstance() {
3442 return new getRoutes_args();
3446 public AsyncMethodCallback<Routes> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3447 final org.apache.thrift.AsyncProcessFunction fcall = this;
3448 return new AsyncMethodCallback<Routes>() {
3450 public void onComplete(Routes o) {
3451 getRoutes_result result = new getRoutes_result();
3454 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3456 } catch (Exception e) {
3457 LOG.error("Exception writing to internal frame buffer", e);
3462 public void onError(Exception e) {
3463 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3464 org.apache.thrift.TBase msg;
3465 getRoutes_result result = new getRoutes_result();
3467 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3468 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3471 fcall.sendResponse(fb,msg,msgType,seqid);
3473 } catch (Exception ex) {
3474 LOG.error("Exception writing to internal frame buffer", ex);
3482 protected boolean isOneway() {
3487 public void start(I iface, getRoutes_args args, org.apache.thrift.async.AsyncMethodCallback<Routes> resultHandler) throws TException {
3488 iface.getRoutes(args.p_type, args.optype, args.winSize, args.afi,resultHandler);
3492 public static class enableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableMultipath_args, Integer> {
3493 public enableMultipath() {
3494 super("enableMultipath");
3498 public enableMultipath_args getEmptyArgsInstance() {
3499 return new enableMultipath_args();
3503 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3504 final org.apache.thrift.AsyncProcessFunction fcall = this;
3505 return new AsyncMethodCallback<Integer>() {
3507 public void onComplete(Integer o) {
3508 enableMultipath_result result = new enableMultipath_result();
3510 result.setSuccessIsSet(true);
3512 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3514 } catch (Exception e) {
3515 LOG.error("Exception writing to internal frame buffer", e);
3520 public void onError(Exception e) {
3521 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3522 org.apache.thrift.TBase msg;
3523 enableMultipath_result result = new enableMultipath_result();
3525 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3526 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3529 fcall.sendResponse(fb,msg,msgType,seqid);
3531 } catch (Exception ex) {
3532 LOG.error("Exception writing to internal frame buffer", ex);
3540 protected boolean isOneway() {
3545 public void start(I iface, enableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3546 iface.enableMultipath(args.afi, args.safi,resultHandler);
3550 public static class disableMultipath<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, disableMultipath_args, Integer> {
3551 public disableMultipath() {
3552 super("disableMultipath");
3556 public disableMultipath_args getEmptyArgsInstance() {
3557 return new disableMultipath_args();
3561 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3562 final org.apache.thrift.AsyncProcessFunction fcall = this;
3563 return new AsyncMethodCallback<Integer>() {
3565 public void onComplete(Integer o) {
3566 disableMultipath_result result = new disableMultipath_result();
3568 result.setSuccessIsSet(true);
3570 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3572 } catch (Exception e) {
3573 LOG.error("Exception writing to internal frame buffer", e);
3578 public void onError(Exception e) {
3579 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3580 org.apache.thrift.TBase msg;
3581 disableMultipath_result result = new disableMultipath_result();
3583 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3584 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3587 fcall.sendResponse(fb,msg,msgType,seqid);
3589 } catch (Exception ex) {
3590 LOG.error("Exception writing to internal frame buffer", ex);
3598 protected boolean isOneway() {
3603 public void start(I iface, disableMultipath_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3604 iface.disableMultipath(args.afi, args.safi,resultHandler);
3608 public static class multipaths<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, multipaths_args, Integer> {
3609 public multipaths() {
3610 super("multipaths");
3614 public multipaths_args getEmptyArgsInstance() {
3615 return new multipaths_args();
3619 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3620 final org.apache.thrift.AsyncProcessFunction fcall = this;
3621 return new AsyncMethodCallback<Integer>() {
3623 public void onComplete(Integer o) {
3624 multipaths_result result = new multipaths_result();
3626 result.setSuccessIsSet(true);
3628 fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3630 } catch (Exception e) {
3631 LOG.error("Exception writing to internal frame buffer", e);
3636 public void onError(Exception e) {
3637 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3638 org.apache.thrift.TBase msg;
3639 multipaths_result result = new multipaths_result();
3641 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3642 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3645 fcall.sendResponse(fb,msg,msgType,seqid);
3647 } catch (Exception ex) {
3648 LOG.error("Exception writing to internal frame buffer", ex);
3656 protected boolean isOneway() {
3661 public void start(I iface, multipaths_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws TException {
3662 iface.multipaths(args.rd, args.maxPath,resultHandler);
3666 public static class enableEORDelay<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, enableEORDelay_args, Integer> {
3667 public enableEORDelay() {
3668 super("enableEORDelay");
3671 public enableEORDelay_args getEmptyArgsInstance() {
3672 return new enableEORDelay_args();
3675 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3676 final org.apache.thrift.AsyncProcessFunction fcall = this;
3677 return new AsyncMethodCallback<Integer>() {
3679 public void onComplete(Integer o) {
3680 enableEORDelay_result result = new enableEORDelay_result();
3682 result.setSuccessIsSet(true);
3684 fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3686 } catch (Exception e) {
3687 LOG.error("Exception writing to internal frame buffer", e);
3692 public void onError(Exception e) {
3693 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3694 org.apache.thrift.TBase msg;
3695 enableEORDelay_result result = new enableEORDelay_result();
3697 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3698 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3701 fcall.sendResponse(fb,msg,msgType,seqid);
3703 } catch (Exception ex) {
3704 LOG.error("Exception writing to internal frame buffer", ex);
3711 protected boolean isOneway() {
3715 public void start(I iface, enableEORDelay_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws org.apache.thrift.TException {
3716 iface.enableEORDelay(args.delay,resultHandler);
3720 public static class sendEOR<I extends AsyncIface> extends org.apache.thrift.AsyncProcessFunction<I, sendEOR_args, Integer> {
3725 public sendEOR_args getEmptyArgsInstance() {
3726 return new sendEOR_args();
3729 public AsyncMethodCallback<Integer> getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
3730 final org.apache.thrift.AsyncProcessFunction fcall = this;
3731 return new AsyncMethodCallback<Integer>() {
3733 public void onComplete(Integer o) {
3734 sendEOR_result result = new sendEOR_result();
3736 result.setSuccessIsSet(true);
3738 fcall.sendResponse(fb, result, org.apache.thrift.protocol.TMessageType.REPLY,seqid);
3740 } catch (Exception e) {
3741 LOG.error("Exception writing to internal frame buffer", e);
3746 public void onError(Exception e) {
3747 byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
3748 org.apache.thrift.TBase msg;
3749 sendEOR_result result = new sendEOR_result();
3751 msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
3752 msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());
3755 fcall.sendResponse(fb,msg,msgType,seqid);
3757 } catch (Exception ex) {
3758 LOG.error("Exception writing to internal frame buffer", ex);
3765 protected boolean isOneway() {
3769 public void start(I iface, sendEOR_args args, org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws org.apache.thrift.TException {
3770 iface.sendEOR(resultHandler);
3776 public static class startBgp_args implements org.apache.thrift.TBase<startBgp_args, startBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_args> {
3777 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_args");
3779 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);
3780 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);
3781 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);
3782 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);
3783 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);
3784 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);
3785 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);
3787 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
3789 schemes.put(StandardScheme.class, new startBgp_argsStandardSchemeFactory());
3790 schemes.put(TupleScheme.class, new startBgp_argsTupleSchemeFactory());
3793 public long asNumber; // required
3794 public String routerId; // required
3795 public int port; // required
3796 public int holdTime; // required
3797 public int keepAliveTime; // required
3798 public int stalepathTime; // required
3799 public boolean announceFlush; // required
3801 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3802 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3803 AS_NUMBER((short)1, "asNumber"),
3804 ROUTER_ID((short)2, "routerId"),
3805 PORT((short)3, "port"),
3806 HOLD_TIME((short)4, "holdTime"),
3807 KEEP_ALIVE_TIME((short)5, "keepAliveTime"),
3808 STALEPATH_TIME((short)6, "stalepathTime"),
3809 ANNOUNCE_FLUSH((short)7, "announceFlush");
3811 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3814 for (_Fields field : EnumSet.allOf(_Fields.class)) {
3815 byName.put(field.getFieldName(), field);
3820 * Find the _Fields constant that matches fieldId, or null if its not found.
3822 public static _Fields findByThriftId(int fieldId) {
3824 case 1: // AS_NUMBER
3826 case 2: // ROUTER_ID
3830 case 4: // HOLD_TIME
3832 case 5: // KEEP_ALIVE_TIME
3833 return KEEP_ALIVE_TIME;
3834 case 6: // STALEPATH_TIME
3835 return STALEPATH_TIME;
3836 case 7: // ANNOUNCE_FLUSH
3837 return ANNOUNCE_FLUSH;
3844 * Find the _Fields constant that matches fieldId, throwing an exception
3845 * if it is not found.
3847 public static _Fields findByThriftIdOrThrow(int fieldId) {
3848 _Fields fields = findByThriftId(fieldId);
3849 if (fields == null) {
3850 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3856 * Find the _Fields constant that matches name, or null if its not found.
3858 public static _Fields findByName(String name) {
3859 return byName.get(name);
3862 private final short _thriftId;
3863 private final String _fieldName;
3865 _Fields(short thriftId, String fieldName) {
3866 _thriftId = thriftId;
3867 _fieldName = fieldName;
3871 public short getThriftFieldId() {
3876 public String getFieldName() {
3881 // isset id assignments
3882 private static final int __ASNUMBER_ISSET_ID = 0;
3883 private static final int __PORT_ISSET_ID = 1;
3884 private static final int __HOLDTIME_ISSET_ID = 2;
3885 private static final int __KEEPALIVETIME_ISSET_ID = 3;
3886 private static final int __STALEPATHTIME_ISSET_ID = 4;
3887 private static final int __ANNOUNCEFLUSH_ISSET_ID = 5;
3888 private byte __isset_bitfield = 0;
3889 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3891 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3892 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
3893 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3894 tmpMap.put(_Fields.ROUTER_ID, new org.apache.thrift.meta_data.FieldMetaData("routerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
3895 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3896 tmpMap.put(_Fields.PORT, new org.apache.thrift.meta_data.FieldMetaData("port", org.apache.thrift.TFieldRequirementType.DEFAULT,
3897 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3898 tmpMap.put(_Fields.HOLD_TIME, new org.apache.thrift.meta_data.FieldMetaData("holdTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3899 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3900 tmpMap.put(_Fields.KEEP_ALIVE_TIME, new org.apache.thrift.meta_data.FieldMetaData("keepAliveTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3901 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3902 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
3903 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
3904 tmpMap.put(_Fields.ANNOUNCE_FLUSH, new org.apache.thrift.meta_data.FieldMetaData("announceFlush", org.apache.thrift.TFieldRequirementType.DEFAULT,
3905 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3906 metaDataMap = Collections.unmodifiableMap(tmpMap);
3907 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_args.class, metaDataMap);
3910 public startBgp_args() {
3913 public startBgp_args(
3920 boolean announceFlush)
3923 this.asNumber = asNumber;
3924 setAsNumberIsSet(true);
3925 this.routerId = routerId;
3928 this.holdTime = holdTime;
3929 setHoldTimeIsSet(true);
3930 this.keepAliveTime = keepAliveTime;
3931 setKeepAliveTimeIsSet(true);
3932 this.stalepathTime = stalepathTime;
3933 setStalepathTimeIsSet(true);
3934 this.announceFlush = announceFlush;
3935 setAnnounceFlushIsSet(true);
3939 * Performs a deep copy on <i>other</i>.
3941 public startBgp_args(startBgp_args other) {
3942 __isset_bitfield = other.__isset_bitfield;
3943 this.asNumber = other.asNumber;
3944 if (other.isSetRouterId()) {
3945 this.routerId = other.routerId;
3947 this.port = other.port;
3948 this.holdTime = other.holdTime;
3949 this.keepAliveTime = other.keepAliveTime;
3950 this.stalepathTime = other.stalepathTime;
3951 this.announceFlush = other.announceFlush;
3955 public startBgp_args deepCopy() {
3956 return new startBgp_args(this);
3960 public void clear() {
3961 setAsNumberIsSet(false);
3963 this.routerId = null;
3964 setPortIsSet(false);
3966 setHoldTimeIsSet(false);
3968 setKeepAliveTimeIsSet(false);
3969 this.keepAliveTime = 0;
3970 setStalepathTimeIsSet(false);
3971 this.stalepathTime = 0;
3972 setAnnounceFlushIsSet(false);
3973 this.announceFlush = false;
3976 public long getAsNumber() {
3977 return this.asNumber;
3980 public startBgp_args setAsNumber(long asNumber) {
3981 this.asNumber = asNumber;
3982 setAsNumberIsSet(true);
3986 public void unsetAsNumber() {
3987 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3990 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
3991 public boolean isSetAsNumber() {
3992 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
3995 public void setAsNumberIsSet(boolean value) {
3996 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
3999 public String getRouterId() {
4000 return this.routerId;
4003 public startBgp_args setRouterId(String routerId) {
4004 this.routerId = routerId;
4008 public void unsetRouterId() {
4009 this.routerId = null;
4012 /** Returns true if field routerId is set (has been assigned a value) and false otherwise */
4013 public boolean isSetRouterId() {
4014 return this.routerId != null;
4017 public void setRouterIdIsSet(boolean value) {
4019 this.routerId = null;
4023 public int getPort() {
4027 public startBgp_args setPort(int port) {
4033 public void unsetPort() {
4034 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PORT_ISSET_ID);
4037 /** Returns true if field port is set (has been assigned a value) and false otherwise */
4038 public boolean isSetPort() {
4039 return EncodingUtils.testBit(__isset_bitfield, __PORT_ISSET_ID);
4042 public void setPortIsSet(boolean value) {
4043 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PORT_ISSET_ID, value);
4046 public int getHoldTime() {
4047 return this.holdTime;
4050 public startBgp_args setHoldTime(int holdTime) {
4051 this.holdTime = holdTime;
4052 setHoldTimeIsSet(true);
4056 public void unsetHoldTime() {
4057 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4060 /** Returns true if field holdTime is set (has been assigned a value) and false otherwise */
4061 public boolean isSetHoldTime() {
4062 return EncodingUtils.testBit(__isset_bitfield, __HOLDTIME_ISSET_ID);
4065 public void setHoldTimeIsSet(boolean value) {
4066 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __HOLDTIME_ISSET_ID, value);
4069 public int getKeepAliveTime() {
4070 return this.keepAliveTime;
4073 public startBgp_args setKeepAliveTime(int keepAliveTime) {
4074 this.keepAliveTime = keepAliveTime;
4075 setKeepAliveTimeIsSet(true);
4079 public void unsetKeepAliveTime() {
4080 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4083 /** Returns true if field keepAliveTime is set (has been assigned a value) and false otherwise */
4084 public boolean isSetKeepAliveTime() {
4085 return EncodingUtils.testBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID);
4088 public void setKeepAliveTimeIsSet(boolean value) {
4089 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEEPALIVETIME_ISSET_ID, value);
4092 public int getStalepathTime() {
4093 return this.stalepathTime;
4096 public startBgp_args setStalepathTime(int stalepathTime) {
4097 this.stalepathTime = stalepathTime;
4098 setStalepathTimeIsSet(true);
4102 public void unsetStalepathTime() {
4103 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4106 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
4107 public boolean isSetStalepathTime() {
4108 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
4111 public void setStalepathTimeIsSet(boolean value) {
4112 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
4115 public boolean isAnnounceFlush() {
4116 return this.announceFlush;
4119 public startBgp_args setAnnounceFlush(boolean announceFlush) {
4120 this.announceFlush = announceFlush;
4121 setAnnounceFlushIsSet(true);
4125 public void unsetAnnounceFlush() {
4126 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4129 /** Returns true if field announceFlush is set (has been assigned a value) and false otherwise */
4130 public boolean isSetAnnounceFlush() {
4131 return EncodingUtils.testBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID);
4134 public void setAnnounceFlushIsSet(boolean value) {
4135 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ANNOUNCEFLUSH_ISSET_ID, value);
4139 public void setFieldValue(_Fields field, Object value) {
4142 if (value == null) {
4145 setAsNumber((Long)value);
4150 if (value == null) {
4153 setRouterId((String)value);
4158 if (value == null) {
4161 setPort((Integer)value);
4166 if (value == null) {
4169 setHoldTime((Integer)value);
4173 case KEEP_ALIVE_TIME:
4174 if (value == null) {
4175 unsetKeepAliveTime();
4177 setKeepAliveTime((Integer)value);
4181 case STALEPATH_TIME:
4182 if (value == null) {
4183 unsetStalepathTime();
4185 setStalepathTime((Integer)value);
4189 case ANNOUNCE_FLUSH:
4190 if (value == null) {
4191 unsetAnnounceFlush();
4193 setAnnounceFlush((Boolean)value);
4201 public Object getFieldValue(_Fields field) {
4204 return Long.valueOf(getAsNumber());
4207 return getRouterId();
4210 return Integer.valueOf(getPort());
4213 return Integer.valueOf(getHoldTime());
4215 case KEEP_ALIVE_TIME:
4216 return Integer.valueOf(getKeepAliveTime());
4218 case STALEPATH_TIME:
4219 return Integer.valueOf(getStalepathTime());
4221 case ANNOUNCE_FLUSH:
4222 return Boolean.valueOf(isAnnounceFlush());
4225 throw new IllegalStateException();
4228 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4230 public boolean isSet(_Fields field) {
4231 if (field == null) {
4232 throw new IllegalArgumentException();
4237 return isSetAsNumber();
4239 return isSetRouterId();
4243 return isSetHoldTime();
4244 case KEEP_ALIVE_TIME:
4245 return isSetKeepAliveTime();
4246 case STALEPATH_TIME:
4247 return isSetStalepathTime();
4248 case ANNOUNCE_FLUSH:
4249 return isSetAnnounceFlush();
4251 throw new IllegalStateException();
4255 public boolean equals(Object that) {
4259 if (that instanceof startBgp_args) {
4260 return this.equals((startBgp_args)that);
4265 public boolean equals(startBgp_args that) {
4270 boolean this_present_asNumber = true;
4271 boolean that_present_asNumber = true;
4272 if (this_present_asNumber || that_present_asNumber) {
4273 if (!(this_present_asNumber && that_present_asNumber)) {
4276 if (this.asNumber != that.asNumber) {
4281 boolean this_present_routerId = true && this.isSetRouterId();
4282 boolean that_present_routerId = true && that.isSetRouterId();
4283 if (this_present_routerId || that_present_routerId) {
4284 if (!(this_present_routerId && that_present_routerId)) {
4287 if (!this.routerId.equals(that.routerId)) {
4292 boolean this_present_port = true;
4293 boolean that_present_port = true;
4294 if (this_present_port || that_present_port) {
4295 if (!(this_present_port && that_present_port)) {
4298 if (this.port != that.port) {
4303 boolean this_present_holdTime = true;
4304 boolean that_present_holdTime = true;
4305 if (this_present_holdTime || that_present_holdTime) {
4306 if (!(this_present_holdTime && that_present_holdTime)) {
4309 if (this.holdTime != that.holdTime) {
4314 boolean this_present_keepAliveTime = true;
4315 boolean that_present_keepAliveTime = true;
4316 if (this_present_keepAliveTime || that_present_keepAliveTime) {
4317 if (!(this_present_keepAliveTime && that_present_keepAliveTime)) {
4320 if (this.keepAliveTime != that.keepAliveTime) {
4325 boolean this_present_stalepathTime = true;
4326 boolean that_present_stalepathTime = true;
4327 if (this_present_stalepathTime || that_present_stalepathTime) {
4328 if (!(this_present_stalepathTime && that_present_stalepathTime)) {
4331 if (this.stalepathTime != that.stalepathTime) {
4336 boolean this_present_announceFlush = true;
4337 boolean that_present_announceFlush = true;
4338 if (this_present_announceFlush || that_present_announceFlush) {
4339 if (!(this_present_announceFlush && that_present_announceFlush)) {
4342 if (this.announceFlush != that.announceFlush) {
4351 public int hashCode() {
4352 List<Object> list = new ArrayList<Object>();
4354 boolean present_asNumber = true;
4355 list.add(present_asNumber);
4356 if (present_asNumber)
4358 boolean present_routerId = true && (isSetRouterId());
4359 list.add(present_routerId);
4360 if (present_routerId)
4362 boolean present_port = true;
4363 list.add(present_port);
4366 boolean present_holdTime = true;
4367 list.add(present_holdTime);
4368 if (present_holdTime)
4370 boolean present_keepAliveTime = true;
4371 list.add(present_keepAliveTime);
4372 if (present_keepAliveTime)
4373 list.add(keepAliveTime);
4374 boolean present_stalepathTime = true;
4375 list.add(present_stalepathTime);
4376 if (present_stalepathTime)
4377 list.add(stalepathTime);
4378 boolean present_announceFlush = true;
4379 list.add(present_announceFlush);
4380 if (present_announceFlush)
4381 list.add(announceFlush);
4382 return list.hashCode();
4386 public int compareTo(startBgp_args other) {
4387 if (!getClass().equals(other.getClass())) {
4388 return getClass().getName().compareTo(other.getClass().getName());
4391 int lastComparison = 0;
4393 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
4394 if (lastComparison != 0) {
4395 return lastComparison;
4397 if (isSetAsNumber()) {
4398 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
4399 if (lastComparison != 0) {
4400 return lastComparison;
4403 lastComparison = Boolean.valueOf(isSetRouterId()).compareTo(other.isSetRouterId());
4404 if (lastComparison != 0) {
4405 return lastComparison;
4407 if (isSetRouterId()) {
4408 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routerId, other.routerId);
4409 if (lastComparison != 0) {
4410 return lastComparison;
4413 lastComparison = Boolean.valueOf(isSetPort()).compareTo(other.isSetPort());
4414 if (lastComparison != 0) {
4415 return lastComparison;
4418 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.port, other.port);
4419 if (lastComparison != 0) {
4420 return lastComparison;
4423 lastComparison = Boolean.valueOf(isSetHoldTime()).compareTo(other.isSetHoldTime());
4424 if (lastComparison != 0) {
4425 return lastComparison;
4427 if (isSetHoldTime()) {
4428 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdTime, other.holdTime);
4429 if (lastComparison != 0) {
4430 return lastComparison;
4433 lastComparison = Boolean.valueOf(isSetKeepAliveTime()).compareTo(other.isSetKeepAliveTime());
4434 if (lastComparison != 0) {
4435 return lastComparison;
4437 if (isSetKeepAliveTime()) {
4438 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keepAliveTime, other.keepAliveTime);
4439 if (lastComparison != 0) {
4440 return lastComparison;
4443 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
4444 if (lastComparison != 0) {
4445 return lastComparison;
4447 if (isSetStalepathTime()) {
4448 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
4449 if (lastComparison != 0) {
4450 return lastComparison;
4453 lastComparison = Boolean.valueOf(isSetAnnounceFlush()).compareTo(other.isSetAnnounceFlush());
4454 if (lastComparison != 0) {
4455 return lastComparison;
4457 if (isSetAnnounceFlush()) {
4458 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.announceFlush, other.announceFlush);
4459 if (lastComparison != 0) {
4460 return lastComparison;
4467 public _Fields fieldForId(int fieldId) {
4468 return _Fields.findByThriftId(fieldId);
4472 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4473 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
4477 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4478 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
4482 public String toString() {
4483 StringBuilder sb = new StringBuilder("startBgp_args(");
4484 boolean first = true;
4486 sb.append("asNumber:");
4487 sb.append(this.asNumber);
4492 sb.append("routerId:");
4493 if (this.routerId == null) {
4496 sb.append(this.routerId);
4503 sb.append(this.port);
4508 sb.append("holdTime:");
4509 sb.append(this.holdTime);
4514 sb.append("keepAliveTime:");
4515 sb.append(this.keepAliveTime);
4520 sb.append("stalepathTime:");
4521 sb.append(this.stalepathTime);
4526 sb.append("announceFlush:");
4527 sb.append(this.announceFlush);
4530 return sb.toString();
4533 public void validate() throws org.apache.thrift.TException {
4534 // check for required fields
4535 // check for sub-struct validity
4538 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4540 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4541 } catch (org.apache.thrift.TException te) {
4542 throw new java.io.IOException(te);
4546 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4548 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4549 __isset_bitfield = 0;
4550 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4551 } catch (org.apache.thrift.TException te) {
4552 throw new java.io.IOException(te);
4556 private static class startBgp_argsStandardSchemeFactory implements SchemeFactory {
4558 public startBgp_argsStandardScheme getScheme() {
4559 return new startBgp_argsStandardScheme();
4563 private static class startBgp_argsStandardScheme extends StandardScheme<startBgp_args> {
4566 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_args struct) throws org.apache.thrift.TException {
4567 org.apache.thrift.protocol.TField schemeField;
4568 iprot.readStructBegin();
4571 schemeField = iprot.readFieldBegin();
4572 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
4575 switch (schemeField.id) {
4576 case 1: // AS_NUMBER
4577 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
4578 struct.asNumber = iprot.readI64();
4579 struct.setAsNumberIsSet(true);
4581 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4584 case 2: // ROUTER_ID
4585 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
4586 struct.routerId = iprot.readString();
4587 struct.setRouterIdIsSet(true);
4589 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4593 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4594 struct.port = iprot.readI32();
4595 struct.setPortIsSet(true);
4597 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4600 case 4: // HOLD_TIME
4601 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4602 struct.holdTime = iprot.readI32();
4603 struct.setHoldTimeIsSet(true);
4605 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4608 case 5: // KEEP_ALIVE_TIME
4609 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4610 struct.keepAliveTime = iprot.readI32();
4611 struct.setKeepAliveTimeIsSet(true);
4613 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4616 case 6: // STALEPATH_TIME
4617 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
4618 struct.stalepathTime = iprot.readI32();
4619 struct.setStalepathTimeIsSet(true);
4621 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4624 case 7: // ANNOUNCE_FLUSH
4625 if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) {
4626 struct.announceFlush = iprot.readBool();
4627 struct.setAnnounceFlushIsSet(true);
4629 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4633 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
4635 iprot.readFieldEnd();
4637 iprot.readStructEnd();
4639 // check for required fields of primitive type, which can't be checked in the validate method
4644 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_args struct) throws org.apache.thrift.TException {
4647 oprot.writeStructBegin(STRUCT_DESC);
4648 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
4649 oprot.writeI64(struct.asNumber);
4650 oprot.writeFieldEnd();
4651 if (struct.routerId != null) {
4652 oprot.writeFieldBegin(ROUTER_ID_FIELD_DESC);
4653 oprot.writeString(struct.routerId);
4654 oprot.writeFieldEnd();
4656 oprot.writeFieldBegin(PORT_FIELD_DESC);
4657 oprot.writeI32(struct.port);
4658 oprot.writeFieldEnd();
4659 oprot.writeFieldBegin(HOLD_TIME_FIELD_DESC);
4660 oprot.writeI32(struct.holdTime);
4661 oprot.writeFieldEnd();
4662 oprot.writeFieldBegin(KEEP_ALIVE_TIME_FIELD_DESC);
4663 oprot.writeI32(struct.keepAliveTime);
4664 oprot.writeFieldEnd();
4665 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
4666 oprot.writeI32(struct.stalepathTime);
4667 oprot.writeFieldEnd();
4668 oprot.writeFieldBegin(ANNOUNCE_FLUSH_FIELD_DESC);
4669 oprot.writeBool(struct.announceFlush);
4670 oprot.writeFieldEnd();
4671 oprot.writeFieldStop();
4672 oprot.writeStructEnd();
4677 private static class startBgp_argsTupleSchemeFactory implements SchemeFactory {
4679 public startBgp_argsTupleScheme getScheme() {
4680 return new startBgp_argsTupleScheme();
4684 private static class startBgp_argsTupleScheme extends TupleScheme<startBgp_args> {
4687 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4688 TTupleProtocol oprot = (TTupleProtocol) prot;
4689 BitSet optionals = new BitSet();
4690 if (struct.isSetAsNumber()) {
4693 if (struct.isSetRouterId()) {
4696 if (struct.isSetPort()) {
4699 if (struct.isSetHoldTime()) {
4702 if (struct.isSetKeepAliveTime()) {
4705 if (struct.isSetStalepathTime()) {
4708 if (struct.isSetAnnounceFlush()) {
4711 oprot.writeBitSet(optionals, 7);
4712 if (struct.isSetAsNumber()) {
4713 oprot.writeI64(struct.asNumber);
4715 if (struct.isSetRouterId()) {
4716 oprot.writeString(struct.routerId);
4718 if (struct.isSetPort()) {
4719 oprot.writeI32(struct.port);
4721 if (struct.isSetHoldTime()) {
4722 oprot.writeI32(struct.holdTime);
4724 if (struct.isSetKeepAliveTime()) {
4725 oprot.writeI32(struct.keepAliveTime);
4727 if (struct.isSetStalepathTime()) {
4728 oprot.writeI32(struct.stalepathTime);
4730 if (struct.isSetAnnounceFlush()) {
4731 oprot.writeBool(struct.announceFlush);
4736 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_args struct) throws org.apache.thrift.TException {
4737 TTupleProtocol iprot = (TTupleProtocol) prot;
4738 BitSet incoming = iprot.readBitSet(7);
4739 if (incoming.get(0)) {
4740 struct.asNumber = iprot.readI64();
4741 struct.setAsNumberIsSet(true);
4743 if (incoming.get(1)) {
4744 struct.routerId = iprot.readString();
4745 struct.setRouterIdIsSet(true);
4747 if (incoming.get(2)) {
4748 struct.port = iprot.readI32();
4749 struct.setPortIsSet(true);
4751 if (incoming.get(3)) {
4752 struct.holdTime = iprot.readI32();
4753 struct.setHoldTimeIsSet(true);
4755 if (incoming.get(4)) {
4756 struct.keepAliveTime = iprot.readI32();
4757 struct.setKeepAliveTimeIsSet(true);
4759 if (incoming.get(5)) {
4760 struct.stalepathTime = iprot.readI32();
4761 struct.setStalepathTimeIsSet(true);
4763 if (incoming.get(6)) {
4764 struct.announceFlush = iprot.readBool();
4765 struct.setAnnounceFlushIsSet(true);
4772 public static class startBgp_result implements org.apache.thrift.TBase<startBgp_result, startBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<startBgp_result> {
4773 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("startBgp_result");
4775 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);
4777 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
4779 schemes.put(StandardScheme.class, new startBgp_resultStandardSchemeFactory());
4780 schemes.put(TupleScheme.class, new startBgp_resultTupleSchemeFactory());
4783 public int success; // required
4785 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4786 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4787 SUCCESS((short)0, "success");
4789 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4792 for (_Fields field : EnumSet.allOf(_Fields.class)) {
4793 byName.put(field.getFieldName(), field);
4798 * Find the _Fields constant that matches fieldId, or null if its not found.
4800 public static _Fields findByThriftId(int fieldId) {
4810 * Find the _Fields constant that matches fieldId, throwing an exception
4811 * if it is not found.
4813 public static _Fields findByThriftIdOrThrow(int fieldId) {
4814 _Fields fields = findByThriftId(fieldId);
4815 if (fields == null) {
4816 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4822 * Find the _Fields constant that matches name, or null if its not found.
4824 public static _Fields findByName(String name) {
4825 return byName.get(name);
4828 private final short _thriftId;
4829 private final String _fieldName;
4831 _Fields(short thriftId, String fieldName) {
4832 _thriftId = thriftId;
4833 _fieldName = fieldName;
4837 public short getThriftFieldId() {
4842 public String getFieldName() {
4847 // isset id assignments
4848 private static final int __SUCCESS_ISSET_ID = 0;
4849 private byte __isset_bitfield = 0;
4850 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4852 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4853 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
4854 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4855 metaDataMap = Collections.unmodifiableMap(tmpMap);
4856 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(startBgp_result.class, metaDataMap);
4859 public startBgp_result() {
4862 public startBgp_result(
4866 this.success = success;
4867 setSuccessIsSet(true);
4871 * Performs a deep copy on <i>other</i>.
4873 public startBgp_result(startBgp_result other) {
4874 __isset_bitfield = other.__isset_bitfield;
4875 this.success = other.success;
4879 public startBgp_result deepCopy() {
4880 return new startBgp_result(this);
4884 public void clear() {
4885 setSuccessIsSet(false);
4889 public int getSuccess() {
4890 return this.success;
4893 public startBgp_result setSuccess(int success) {
4894 this.success = success;
4895 setSuccessIsSet(true);
4899 public void unsetSuccess() {
4900 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4903 /** Returns true if field success is set (has been assigned a value) and false otherwise */
4904 public boolean isSetSuccess() {
4905 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
4908 public void setSuccessIsSet(boolean value) {
4909 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
4913 public void setFieldValue(_Fields field, Object value) {
4916 if (value == null) {
4919 setSuccess((Integer)value);
4927 public Object getFieldValue(_Fields field) {
4930 return Integer.valueOf(getSuccess());
4933 throw new IllegalStateException();
4936 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4938 public boolean isSet(_Fields field) {
4939 if (field == null) {
4940 throw new IllegalArgumentException();
4945 return isSetSuccess();
4947 throw new IllegalStateException();
4951 public boolean equals(Object that) {
4955 if (that instanceof startBgp_result) {
4956 return this.equals((startBgp_result)that);
4961 public boolean equals(startBgp_result that) {
4966 boolean this_present_success = true;
4967 boolean that_present_success = true;
4968 if (this_present_success || that_present_success) {
4969 if (!(this_present_success && that_present_success)) {
4972 if (this.success != that.success) {
4981 public int hashCode() {
4982 List<Object> list = new ArrayList<Object>();
4984 boolean present_success = true;
4985 list.add(present_success);
4986 if (present_success)
4988 return list.hashCode();
4992 public int compareTo(startBgp_result other) {
4993 if (!getClass().equals(other.getClass())) {
4994 return getClass().getName().compareTo(other.getClass().getName());
4997 int lastComparison = 0;
4999 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5000 if (lastComparison != 0) {
5001 return lastComparison;
5003 if (isSetSuccess()) {
5004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5005 if (lastComparison != 0) {
5006 return lastComparison;
5013 public _Fields fieldForId(int fieldId) {
5014 return _Fields.findByThriftId(fieldId);
5018 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5019 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5023 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5024 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5028 public String toString() {
5029 StringBuilder sb = new StringBuilder("startBgp_result(");
5030 boolean first = true;
5032 sb.append("success:");
5033 sb.append(this.success);
5036 return sb.toString();
5039 public void validate() throws org.apache.thrift.TException {
5040 // check for required fields
5041 // check for sub-struct validity
5044 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5046 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5047 } catch (org.apache.thrift.TException te) {
5048 throw new java.io.IOException(te);
5052 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5054 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5055 __isset_bitfield = 0;
5056 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5057 } catch (org.apache.thrift.TException te) {
5058 throw new java.io.IOException(te);
5062 private static class startBgp_resultStandardSchemeFactory implements SchemeFactory {
5064 public startBgp_resultStandardScheme getScheme() {
5065 return new startBgp_resultStandardScheme();
5069 private static class startBgp_resultStandardScheme extends StandardScheme<startBgp_result> {
5072 public void read(org.apache.thrift.protocol.TProtocol iprot, startBgp_result struct) throws org.apache.thrift.TException {
5073 org.apache.thrift.protocol.TField schemeField;
5074 iprot.readStructBegin();
5077 schemeField = iprot.readFieldBegin();
5078 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5081 switch (schemeField.id) {
5083 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5084 struct.success = iprot.readI32();
5085 struct.setSuccessIsSet(true);
5087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5091 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5093 iprot.readFieldEnd();
5095 iprot.readStructEnd();
5097 // check for required fields of primitive type, which can't be checked in the validate method
5102 public void write(org.apache.thrift.protocol.TProtocol oprot, startBgp_result struct) throws org.apache.thrift.TException {
5105 oprot.writeStructBegin(STRUCT_DESC);
5106 if (struct.isSetSuccess()) {
5107 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5108 oprot.writeI32(struct.success);
5109 oprot.writeFieldEnd();
5111 oprot.writeFieldStop();
5112 oprot.writeStructEnd();
5117 private static class startBgp_resultTupleSchemeFactory implements SchemeFactory {
5119 public startBgp_resultTupleScheme getScheme() {
5120 return new startBgp_resultTupleScheme();
5124 private static class startBgp_resultTupleScheme extends TupleScheme<startBgp_result> {
5127 public void write(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5128 TTupleProtocol oprot = (TTupleProtocol) prot;
5129 BitSet optionals = new BitSet();
5130 if (struct.isSetSuccess()) {
5133 oprot.writeBitSet(optionals, 1);
5134 if (struct.isSetSuccess()) {
5135 oprot.writeI32(struct.success);
5140 public void read(org.apache.thrift.protocol.TProtocol prot, startBgp_result struct) throws org.apache.thrift.TException {
5141 TTupleProtocol iprot = (TTupleProtocol) prot;
5142 BitSet incoming = iprot.readBitSet(1);
5143 if (incoming.get(0)) {
5144 struct.success = iprot.readI32();
5145 struct.setSuccessIsSet(true);
5152 public static class stopBgp_args implements org.apache.thrift.TBase<stopBgp_args, stopBgp_args._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_args> {
5153 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_args");
5155 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);
5157 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5159 schemes.put(StandardScheme.class, new stopBgp_argsStandardSchemeFactory());
5160 schemes.put(TupleScheme.class, new stopBgp_argsTupleSchemeFactory());
5163 public long asNumber; // required
5165 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5166 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5167 AS_NUMBER((short)1, "asNumber");
5169 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5172 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5173 byName.put(field.getFieldName(), field);
5178 * Find the _Fields constant that matches fieldId, or null if its not found.
5180 public static _Fields findByThriftId(int fieldId) {
5182 case 1: // AS_NUMBER
5190 * Find the _Fields constant that matches fieldId, throwing an exception
5191 * if it is not found.
5193 public static _Fields findByThriftIdOrThrow(int fieldId) {
5194 _Fields fields = findByThriftId(fieldId);
5195 if (fields == null) {
5196 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5202 * Find the _Fields constant that matches name, or null if its not found.
5204 public static _Fields findByName(String name) {
5205 return byName.get(name);
5208 private final short _thriftId;
5209 private final String _fieldName;
5211 _Fields(short thriftId, String fieldName) {
5212 _thriftId = thriftId;
5213 _fieldName = fieldName;
5217 public short getThriftFieldId() {
5222 public String getFieldName() {
5227 // isset id assignments
5228 private static final int __ASNUMBER_ISSET_ID = 0;
5229 private byte __isset_bitfield = 0;
5230 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5232 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5233 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5234 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5235 metaDataMap = Collections.unmodifiableMap(tmpMap);
5236 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_args.class, metaDataMap);
5239 public stopBgp_args() {
5242 public stopBgp_args(
5246 this.asNumber = asNumber;
5247 setAsNumberIsSet(true);
5251 * Performs a deep copy on <i>other</i>.
5253 public stopBgp_args(stopBgp_args other) {
5254 __isset_bitfield = other.__isset_bitfield;
5255 this.asNumber = other.asNumber;
5259 public stopBgp_args deepCopy() {
5260 return new stopBgp_args(this);
5264 public void clear() {
5265 setAsNumberIsSet(false);
5269 public long getAsNumber() {
5270 return this.asNumber;
5273 public stopBgp_args setAsNumber(long asNumber) {
5274 this.asNumber = asNumber;
5275 setAsNumberIsSet(true);
5279 public void unsetAsNumber() {
5280 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5283 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
5284 public boolean isSetAsNumber() {
5285 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
5288 public void setAsNumberIsSet(boolean value) {
5289 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
5293 public void setFieldValue(_Fields field, Object value) {
5296 if (value == null) {
5299 setAsNumber((Long)value);
5307 public Object getFieldValue(_Fields field) {
5310 return Long.valueOf(getAsNumber());
5313 throw new IllegalStateException();
5316 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5318 public boolean isSet(_Fields field) {
5319 if (field == null) {
5320 throw new IllegalArgumentException();
5325 return isSetAsNumber();
5327 throw new IllegalStateException();
5331 public boolean equals(Object that) {
5335 if (that instanceof stopBgp_args) {
5336 return this.equals((stopBgp_args)that);
5341 public boolean equals(stopBgp_args that) {
5346 boolean this_present_asNumber = true;
5347 boolean that_present_asNumber = true;
5348 if (this_present_asNumber || that_present_asNumber) {
5349 if (!(this_present_asNumber && that_present_asNumber)) {
5352 if (this.asNumber != that.asNumber) {
5361 public int hashCode() {
5362 List<Object> list = new ArrayList<Object>();
5364 boolean present_asNumber = true;
5365 list.add(present_asNumber);
5366 if (present_asNumber)
5368 return list.hashCode();
5372 public int compareTo(stopBgp_args other) {
5373 if (!getClass().equals(other.getClass())) {
5374 return getClass().getName().compareTo(other.getClass().getName());
5377 int lastComparison = 0;
5379 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
5380 if (lastComparison != 0) {
5381 return lastComparison;
5383 if (isSetAsNumber()) {
5384 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
5385 if (lastComparison != 0) {
5386 return lastComparison;
5393 public _Fields fieldForId(int fieldId) {
5394 return _Fields.findByThriftId(fieldId);
5398 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5399 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5403 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5404 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5408 public String toString() {
5409 StringBuilder sb = new StringBuilder("stopBgp_args(");
5410 boolean first = true;
5412 sb.append("asNumber:");
5413 sb.append(this.asNumber);
5416 return sb.toString();
5419 public void validate() throws org.apache.thrift.TException {
5420 // check for required fields
5421 // check for sub-struct validity
5424 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5426 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5427 } catch (org.apache.thrift.TException te) {
5428 throw new java.io.IOException(te);
5432 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5434 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5435 __isset_bitfield = 0;
5436 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5437 } catch (org.apache.thrift.TException te) {
5438 throw new java.io.IOException(te);
5442 private static class stopBgp_argsStandardSchemeFactory implements SchemeFactory {
5444 public stopBgp_argsStandardScheme getScheme() {
5445 return new stopBgp_argsStandardScheme();
5449 private static class stopBgp_argsStandardScheme extends StandardScheme<stopBgp_args> {
5452 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_args struct) throws org.apache.thrift.TException {
5453 org.apache.thrift.protocol.TField schemeField;
5454 iprot.readStructBegin();
5457 schemeField = iprot.readFieldBegin();
5458 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5461 switch (schemeField.id) {
5462 case 1: // AS_NUMBER
5463 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
5464 struct.asNumber = iprot.readI64();
5465 struct.setAsNumberIsSet(true);
5467 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5471 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5473 iprot.readFieldEnd();
5475 iprot.readStructEnd();
5477 // check for required fields of primitive type, which can't be checked in the validate method
5482 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_args struct) throws org.apache.thrift.TException {
5485 oprot.writeStructBegin(STRUCT_DESC);
5486 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
5487 oprot.writeI64(struct.asNumber);
5488 oprot.writeFieldEnd();
5489 oprot.writeFieldStop();
5490 oprot.writeStructEnd();
5495 private static class stopBgp_argsTupleSchemeFactory implements SchemeFactory {
5497 public stopBgp_argsTupleScheme getScheme() {
5498 return new stopBgp_argsTupleScheme();
5502 private static class stopBgp_argsTupleScheme extends TupleScheme<stopBgp_args> {
5505 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5506 TTupleProtocol oprot = (TTupleProtocol) prot;
5507 BitSet optionals = new BitSet();
5508 if (struct.isSetAsNumber()) {
5511 oprot.writeBitSet(optionals, 1);
5512 if (struct.isSetAsNumber()) {
5513 oprot.writeI64(struct.asNumber);
5518 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_args struct) throws org.apache.thrift.TException {
5519 TTupleProtocol iprot = (TTupleProtocol) prot;
5520 BitSet incoming = iprot.readBitSet(1);
5521 if (incoming.get(0)) {
5522 struct.asNumber = iprot.readI64();
5523 struct.setAsNumberIsSet(true);
5530 public static class stopBgp_result implements org.apache.thrift.TBase<stopBgp_result, stopBgp_result._Fields>, java.io.Serializable, Cloneable, Comparable<stopBgp_result> {
5531 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("stopBgp_result");
5533 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);
5535 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5537 schemes.put(StandardScheme.class, new stopBgp_resultStandardSchemeFactory());
5538 schemes.put(TupleScheme.class, new stopBgp_resultTupleSchemeFactory());
5541 public int success; // required
5543 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5544 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5545 SUCCESS((short)0, "success");
5547 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5550 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5551 byName.put(field.getFieldName(), field);
5556 * Find the _Fields constant that matches fieldId, or null if its not found.
5558 public static _Fields findByThriftId(int fieldId) {
5568 * Find the _Fields constant that matches fieldId, throwing an exception
5569 * if it is not found.
5571 public static _Fields findByThriftIdOrThrow(int fieldId) {
5572 _Fields fields = findByThriftId(fieldId);
5573 if (fields == null) {
5574 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5580 * Find the _Fields constant that matches name, or null if its not found.
5582 public static _Fields findByName(String name) {
5583 return byName.get(name);
5586 private final short _thriftId;
5587 private final String _fieldName;
5589 _Fields(short thriftId, String fieldName) {
5590 _thriftId = thriftId;
5591 _fieldName = fieldName;
5595 public short getThriftFieldId() {
5600 public String getFieldName() {
5605 // isset id assignments
5606 private static final int __SUCCESS_ISSET_ID = 0;
5607 private byte __isset_bitfield = 0;
5608 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5610 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5611 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
5612 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
5613 metaDataMap = Collections.unmodifiableMap(tmpMap);
5614 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(stopBgp_result.class, metaDataMap);
5617 public stopBgp_result() {
5620 public stopBgp_result(
5624 this.success = success;
5625 setSuccessIsSet(true);
5629 * Performs a deep copy on <i>other</i>.
5631 public stopBgp_result(stopBgp_result other) {
5632 __isset_bitfield = other.__isset_bitfield;
5633 this.success = other.success;
5637 public stopBgp_result deepCopy() {
5638 return new stopBgp_result(this);
5642 public void clear() {
5643 setSuccessIsSet(false);
5647 public int getSuccess() {
5648 return this.success;
5651 public stopBgp_result setSuccess(int success) {
5652 this.success = success;
5653 setSuccessIsSet(true);
5657 public void unsetSuccess() {
5658 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5661 /** Returns true if field success is set (has been assigned a value) and false otherwise */
5662 public boolean isSetSuccess() {
5663 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
5666 public void setSuccessIsSet(boolean value) {
5667 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
5671 public void setFieldValue(_Fields field, Object value) {
5674 if (value == null) {
5677 setSuccess((Integer)value);
5685 public Object getFieldValue(_Fields field) {
5688 return Integer.valueOf(getSuccess());
5691 throw new IllegalStateException();
5694 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5696 public boolean isSet(_Fields field) {
5697 if (field == null) {
5698 throw new IllegalArgumentException();
5703 return isSetSuccess();
5705 throw new IllegalStateException();
5709 public boolean equals(Object that) {
5713 if (that instanceof stopBgp_result) {
5714 return this.equals((stopBgp_result)that);
5719 public boolean equals(stopBgp_result that) {
5724 boolean this_present_success = true;
5725 boolean that_present_success = true;
5726 if (this_present_success || that_present_success) {
5727 if (!(this_present_success && that_present_success)) {
5730 if (this.success != that.success) {
5739 public int hashCode() {
5740 List<Object> list = new ArrayList<Object>();
5742 boolean present_success = true;
5743 list.add(present_success);
5744 if (present_success)
5746 return list.hashCode();
5750 public int compareTo(stopBgp_result other) {
5751 if (!getClass().equals(other.getClass())) {
5752 return getClass().getName().compareTo(other.getClass().getName());
5755 int lastComparison = 0;
5757 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
5758 if (lastComparison != 0) {
5759 return lastComparison;
5761 if (isSetSuccess()) {
5762 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
5763 if (lastComparison != 0) {
5764 return lastComparison;
5771 public _Fields fieldForId(int fieldId) {
5772 return _Fields.findByThriftId(fieldId);
5776 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5777 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
5781 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5782 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
5786 public String toString() {
5787 StringBuilder sb = new StringBuilder("stopBgp_result(");
5788 boolean first = true;
5790 sb.append("success:");
5791 sb.append(this.success);
5794 return sb.toString();
5797 public void validate() throws org.apache.thrift.TException {
5798 // check for required fields
5799 // check for sub-struct validity
5802 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5804 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5805 } catch (org.apache.thrift.TException te) {
5806 throw new java.io.IOException(te);
5810 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5812 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5813 __isset_bitfield = 0;
5814 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5815 } catch (org.apache.thrift.TException te) {
5816 throw new java.io.IOException(te);
5820 private static class stopBgp_resultStandardSchemeFactory implements SchemeFactory {
5822 public stopBgp_resultStandardScheme getScheme() {
5823 return new stopBgp_resultStandardScheme();
5827 private static class stopBgp_resultStandardScheme extends StandardScheme<stopBgp_result> {
5830 public void read(org.apache.thrift.protocol.TProtocol iprot, stopBgp_result struct) throws org.apache.thrift.TException {
5831 org.apache.thrift.protocol.TField schemeField;
5832 iprot.readStructBegin();
5835 schemeField = iprot.readFieldBegin();
5836 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
5839 switch (schemeField.id) {
5841 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
5842 struct.success = iprot.readI32();
5843 struct.setSuccessIsSet(true);
5845 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5849 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
5851 iprot.readFieldEnd();
5853 iprot.readStructEnd();
5855 // check for required fields of primitive type, which can't be checked in the validate method
5860 public void write(org.apache.thrift.protocol.TProtocol oprot, stopBgp_result struct) throws org.apache.thrift.TException {
5863 oprot.writeStructBegin(STRUCT_DESC);
5864 if (struct.isSetSuccess()) {
5865 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5866 oprot.writeI32(struct.success);
5867 oprot.writeFieldEnd();
5869 oprot.writeFieldStop();
5870 oprot.writeStructEnd();
5875 private static class stopBgp_resultTupleSchemeFactory implements SchemeFactory {
5877 public stopBgp_resultTupleScheme getScheme() {
5878 return new stopBgp_resultTupleScheme();
5882 private static class stopBgp_resultTupleScheme extends TupleScheme<stopBgp_result> {
5885 public void write(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5886 TTupleProtocol oprot = (TTupleProtocol) prot;
5887 BitSet optionals = new BitSet();
5888 if (struct.isSetSuccess()) {
5891 oprot.writeBitSet(optionals, 1);
5892 if (struct.isSetSuccess()) {
5893 oprot.writeI32(struct.success);
5898 public void read(org.apache.thrift.protocol.TProtocol prot, stopBgp_result struct) throws org.apache.thrift.TException {
5899 TTupleProtocol iprot = (TTupleProtocol) prot;
5900 BitSet incoming = iprot.readBitSet(1);
5901 if (incoming.get(0)) {
5902 struct.success = iprot.readI32();
5903 struct.setSuccessIsSet(true);
5910 public static class createPeer_args implements org.apache.thrift.TBase<createPeer_args, createPeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_args> {
5911 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_args");
5913 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);
5914 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);
5916 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
5918 schemes.put(StandardScheme.class, new createPeer_argsStandardSchemeFactory());
5919 schemes.put(TupleScheme.class, new createPeer_argsTupleSchemeFactory());
5922 public String ipAddress; // required
5923 public long asNumber; // required
5925 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5926 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5927 IP_ADDRESS((short)1, "ipAddress"),
5928 AS_NUMBER((short)2, "asNumber");
5930 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5933 for (_Fields field : EnumSet.allOf(_Fields.class)) {
5934 byName.put(field.getFieldName(), field);
5939 * Find the _Fields constant that matches fieldId, or null if its not found.
5941 public static _Fields findByThriftId(int fieldId) {
5943 case 1: // IP_ADDRESS
5945 case 2: // AS_NUMBER
5953 * Find the _Fields constant that matches fieldId, throwing an exception
5954 * if it is not found.
5956 public static _Fields findByThriftIdOrThrow(int fieldId) {
5957 _Fields fields = findByThriftId(fieldId);
5958 if (fields == null) {
5959 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5965 * Find the _Fields constant that matches name, or null if its not found.
5967 public static _Fields findByName(String name) {
5968 return byName.get(name);
5971 private final short _thriftId;
5972 private final String _fieldName;
5974 _Fields(short thriftId, String fieldName) {
5975 _thriftId = thriftId;
5976 _fieldName = fieldName;
5980 public short getThriftFieldId() {
5985 public String getFieldName() {
5990 // isset id assignments
5991 private static final int __ASNUMBER_ISSET_ID = 0;
5992 private byte __isset_bitfield = 0;
5993 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5995 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5996 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
5997 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5998 tmpMap.put(_Fields.AS_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("asNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
5999 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6000 metaDataMap = Collections.unmodifiableMap(tmpMap);
6001 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_args.class, metaDataMap);
6004 public createPeer_args() {
6007 public createPeer_args(
6012 this.ipAddress = ipAddress;
6013 this.asNumber = asNumber;
6014 setAsNumberIsSet(true);
6018 * Performs a deep copy on <i>other</i>.
6020 public createPeer_args(createPeer_args other) {
6021 __isset_bitfield = other.__isset_bitfield;
6022 if (other.isSetIpAddress()) {
6023 this.ipAddress = other.ipAddress;
6025 this.asNumber = other.asNumber;
6029 public createPeer_args deepCopy() {
6030 return new createPeer_args(this);
6034 public void clear() {
6035 this.ipAddress = null;
6036 setAsNumberIsSet(false);
6040 public String getIpAddress() {
6041 return this.ipAddress;
6044 public createPeer_args setIpAddress(String ipAddress) {
6045 this.ipAddress = ipAddress;
6049 public void unsetIpAddress() {
6050 this.ipAddress = null;
6053 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6054 public boolean isSetIpAddress() {
6055 return this.ipAddress != null;
6058 public void setIpAddressIsSet(boolean value) {
6060 this.ipAddress = null;
6064 public long getAsNumber() {
6065 return this.asNumber;
6068 public createPeer_args setAsNumber(long asNumber) {
6069 this.asNumber = asNumber;
6070 setAsNumberIsSet(true);
6074 public void unsetAsNumber() {
6075 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6078 /** Returns true if field asNumber is set (has been assigned a value) and false otherwise */
6079 public boolean isSetAsNumber() {
6080 return EncodingUtils.testBit(__isset_bitfield, __ASNUMBER_ISSET_ID);
6083 public void setAsNumberIsSet(boolean value) {
6084 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ASNUMBER_ISSET_ID, value);
6088 public void setFieldValue(_Fields field, Object value) {
6091 if (value == null) {
6094 setIpAddress((String)value);
6099 if (value == null) {
6102 setAsNumber((Long)value);
6110 public Object getFieldValue(_Fields field) {
6113 return getIpAddress();
6116 return Long.valueOf(getAsNumber());
6119 throw new IllegalStateException();
6122 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6124 public boolean isSet(_Fields field) {
6125 if (field == null) {
6126 throw new IllegalArgumentException();
6131 return isSetIpAddress();
6133 return isSetAsNumber();
6135 throw new IllegalStateException();
6139 public boolean equals(Object that) {
6143 if (that instanceof createPeer_args) {
6144 return this.equals((createPeer_args)that);
6149 public boolean equals(createPeer_args that) {
6154 boolean this_present_ipAddress = true && this.isSetIpAddress();
6155 boolean that_present_ipAddress = true && that.isSetIpAddress();
6156 if (this_present_ipAddress || that_present_ipAddress) {
6157 if (!(this_present_ipAddress && that_present_ipAddress)) {
6160 if (!this.ipAddress.equals(that.ipAddress)) {
6165 boolean this_present_asNumber = true;
6166 boolean that_present_asNumber = true;
6167 if (this_present_asNumber || that_present_asNumber) {
6168 if (!(this_present_asNumber && that_present_asNumber)) {
6171 if (this.asNumber != that.asNumber) {
6180 public int hashCode() {
6181 List<Object> list = new ArrayList<Object>();
6183 boolean present_ipAddress = true && (isSetIpAddress());
6184 list.add(present_ipAddress);
6185 if (present_ipAddress)
6186 list.add(ipAddress);
6187 boolean present_asNumber = true;
6188 list.add(present_asNumber);
6189 if (present_asNumber)
6191 return list.hashCode();
6195 public int compareTo(createPeer_args other) {
6196 if (!getClass().equals(other.getClass())) {
6197 return getClass().getName().compareTo(other.getClass().getName());
6200 int lastComparison = 0;
6202 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
6203 if (lastComparison != 0) {
6204 return lastComparison;
6206 if (isSetIpAddress()) {
6207 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
6208 if (lastComparison != 0) {
6209 return lastComparison;
6212 lastComparison = Boolean.valueOf(isSetAsNumber()).compareTo(other.isSetAsNumber());
6213 if (lastComparison != 0) {
6214 return lastComparison;
6216 if (isSetAsNumber()) {
6217 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asNumber, other.asNumber);
6218 if (lastComparison != 0) {
6219 return lastComparison;
6226 public _Fields fieldForId(int fieldId) {
6227 return _Fields.findByThriftId(fieldId);
6231 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6232 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6236 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6237 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6241 public String toString() {
6242 StringBuilder sb = new StringBuilder("createPeer_args(");
6243 boolean first = true;
6245 sb.append("ipAddress:");
6246 if (this.ipAddress == null) {
6249 sb.append(this.ipAddress);
6255 sb.append("asNumber:");
6256 sb.append(this.asNumber);
6259 return sb.toString();
6262 public void validate() throws org.apache.thrift.TException {
6263 // check for required fields
6264 // check for sub-struct validity
6267 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6269 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6270 } catch (org.apache.thrift.TException te) {
6271 throw new java.io.IOException(te);
6275 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6277 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6278 __isset_bitfield = 0;
6279 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6280 } catch (org.apache.thrift.TException te) {
6281 throw new java.io.IOException(te);
6285 private static class createPeer_argsStandardSchemeFactory implements SchemeFactory {
6287 public createPeer_argsStandardScheme getScheme() {
6288 return new createPeer_argsStandardScheme();
6292 private static class createPeer_argsStandardScheme extends StandardScheme<createPeer_args> {
6295 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_args struct) throws org.apache.thrift.TException {
6296 org.apache.thrift.protocol.TField schemeField;
6297 iprot.readStructBegin();
6300 schemeField = iprot.readFieldBegin();
6301 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6304 switch (schemeField.id) {
6305 case 1: // IP_ADDRESS
6306 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
6307 struct.ipAddress = iprot.readString();
6308 struct.setIpAddressIsSet(true);
6310 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6313 case 2: // AS_NUMBER
6314 if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
6315 struct.asNumber = iprot.readI64();
6316 struct.setAsNumberIsSet(true);
6318 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6322 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6324 iprot.readFieldEnd();
6326 iprot.readStructEnd();
6328 // check for required fields of primitive type, which can't be checked in the validate method
6333 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_args struct) throws org.apache.thrift.TException {
6336 oprot.writeStructBegin(STRUCT_DESC);
6337 if (struct.ipAddress != null) {
6338 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
6339 oprot.writeString(struct.ipAddress);
6340 oprot.writeFieldEnd();
6342 oprot.writeFieldBegin(AS_NUMBER_FIELD_DESC);
6343 oprot.writeI64(struct.asNumber);
6344 oprot.writeFieldEnd();
6345 oprot.writeFieldStop();
6346 oprot.writeStructEnd();
6351 private static class createPeer_argsTupleSchemeFactory implements SchemeFactory {
6353 public createPeer_argsTupleScheme getScheme() {
6354 return new createPeer_argsTupleScheme();
6358 private static class createPeer_argsTupleScheme extends TupleScheme<createPeer_args> {
6361 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6362 TTupleProtocol oprot = (TTupleProtocol) prot;
6363 BitSet optionals = new BitSet();
6364 if (struct.isSetIpAddress()) {
6367 if (struct.isSetAsNumber()) {
6370 oprot.writeBitSet(optionals, 2);
6371 if (struct.isSetIpAddress()) {
6372 oprot.writeString(struct.ipAddress);
6374 if (struct.isSetAsNumber()) {
6375 oprot.writeI64(struct.asNumber);
6380 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_args struct) throws org.apache.thrift.TException {
6381 TTupleProtocol iprot = (TTupleProtocol) prot;
6382 BitSet incoming = iprot.readBitSet(2);
6383 if (incoming.get(0)) {
6384 struct.ipAddress = iprot.readString();
6385 struct.setIpAddressIsSet(true);
6387 if (incoming.get(1)) {
6388 struct.asNumber = iprot.readI64();
6389 struct.setAsNumberIsSet(true);
6396 public static class createPeer_result implements org.apache.thrift.TBase<createPeer_result, createPeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<createPeer_result> {
6397 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPeer_result");
6399 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);
6401 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6403 schemes.put(StandardScheme.class, new createPeer_resultStandardSchemeFactory());
6404 schemes.put(TupleScheme.class, new createPeer_resultTupleSchemeFactory());
6407 public int success; // required
6409 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6410 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6411 SUCCESS((short)0, "success");
6413 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6416 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6417 byName.put(field.getFieldName(), field);
6422 * Find the _Fields constant that matches fieldId, or null if its not found.
6424 public static _Fields findByThriftId(int fieldId) {
6434 * Find the _Fields constant that matches fieldId, throwing an exception
6435 * if it is not found.
6437 public static _Fields findByThriftIdOrThrow(int fieldId) {
6438 _Fields fields = findByThriftId(fieldId);
6439 if (fields == null) {
6440 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6446 * Find the _Fields constant that matches name, or null if its not found.
6448 public static _Fields findByName(String name) {
6449 return byName.get(name);
6452 private final short _thriftId;
6453 private final String _fieldName;
6455 _Fields(short thriftId, String fieldName) {
6456 _thriftId = thriftId;
6457 _fieldName = fieldName;
6461 public short getThriftFieldId() {
6466 public String getFieldName() {
6471 // isset id assignments
6472 private static final int __SUCCESS_ISSET_ID = 0;
6473 private byte __isset_bitfield = 0;
6474 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6476 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6477 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
6478 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
6479 metaDataMap = Collections.unmodifiableMap(tmpMap);
6480 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPeer_result.class, metaDataMap);
6483 public createPeer_result() {
6486 public createPeer_result(
6490 this.success = success;
6491 setSuccessIsSet(true);
6495 * Performs a deep copy on <i>other</i>.
6497 public createPeer_result(createPeer_result other) {
6498 __isset_bitfield = other.__isset_bitfield;
6499 this.success = other.success;
6503 public createPeer_result deepCopy() {
6504 return new createPeer_result(this);
6508 public void clear() {
6509 setSuccessIsSet(false);
6513 public int getSuccess() {
6514 return this.success;
6517 public createPeer_result setSuccess(int success) {
6518 this.success = success;
6519 setSuccessIsSet(true);
6523 public void unsetSuccess() {
6524 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6527 /** Returns true if field success is set (has been assigned a value) and false otherwise */
6528 public boolean isSetSuccess() {
6529 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
6532 public void setSuccessIsSet(boolean value) {
6533 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
6537 public void setFieldValue(_Fields field, Object value) {
6540 if (value == null) {
6543 setSuccess((Integer)value);
6551 public Object getFieldValue(_Fields field) {
6554 return Integer.valueOf(getSuccess());
6557 throw new IllegalStateException();
6560 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6562 public boolean isSet(_Fields field) {
6563 if (field == null) {
6564 throw new IllegalArgumentException();
6569 return isSetSuccess();
6571 throw new IllegalStateException();
6575 public boolean equals(Object that) {
6579 if (that instanceof createPeer_result) {
6580 return this.equals((createPeer_result)that);
6585 public boolean equals(createPeer_result that) {
6590 boolean this_present_success = true;
6591 boolean that_present_success = true;
6592 if (this_present_success || that_present_success) {
6593 if (!(this_present_success && that_present_success)) {
6596 if (this.success != that.success) {
6605 public int hashCode() {
6606 List<Object> list = new ArrayList<Object>();
6608 boolean present_success = true;
6609 list.add(present_success);
6610 if (present_success)
6612 return list.hashCode();
6616 public int compareTo(createPeer_result other) {
6617 if (!getClass().equals(other.getClass())) {
6618 return getClass().getName().compareTo(other.getClass().getName());
6621 int lastComparison = 0;
6623 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
6624 if (lastComparison != 0) {
6625 return lastComparison;
6627 if (isSetSuccess()) {
6628 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
6629 if (lastComparison != 0) {
6630 return lastComparison;
6637 public _Fields fieldForId(int fieldId) {
6638 return _Fields.findByThriftId(fieldId);
6642 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6643 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
6647 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6648 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
6652 public String toString() {
6653 StringBuilder sb = new StringBuilder("createPeer_result(");
6654 boolean first = true;
6656 sb.append("success:");
6657 sb.append(this.success);
6660 return sb.toString();
6663 public void validate() throws org.apache.thrift.TException {
6664 // check for required fields
6665 // check for sub-struct validity
6668 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6670 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6671 } catch (org.apache.thrift.TException te) {
6672 throw new java.io.IOException(te);
6676 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6678 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6679 __isset_bitfield = 0;
6680 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6681 } catch (org.apache.thrift.TException te) {
6682 throw new java.io.IOException(te);
6686 private static class createPeer_resultStandardSchemeFactory implements SchemeFactory {
6688 public createPeer_resultStandardScheme getScheme() {
6689 return new createPeer_resultStandardScheme();
6693 private static class createPeer_resultStandardScheme extends StandardScheme<createPeer_result> {
6696 public void read(org.apache.thrift.protocol.TProtocol iprot, createPeer_result struct) throws org.apache.thrift.TException {
6697 org.apache.thrift.protocol.TField schemeField;
6698 iprot.readStructBegin();
6701 schemeField = iprot.readFieldBegin();
6702 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
6705 switch (schemeField.id) {
6707 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
6708 struct.success = iprot.readI32();
6709 struct.setSuccessIsSet(true);
6711 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6715 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
6717 iprot.readFieldEnd();
6719 iprot.readStructEnd();
6721 // check for required fields of primitive type, which can't be checked in the validate method
6726 public void write(org.apache.thrift.protocol.TProtocol oprot, createPeer_result struct) throws org.apache.thrift.TException {
6729 oprot.writeStructBegin(STRUCT_DESC);
6730 if (struct.isSetSuccess()) {
6731 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6732 oprot.writeI32(struct.success);
6733 oprot.writeFieldEnd();
6735 oprot.writeFieldStop();
6736 oprot.writeStructEnd();
6741 private static class createPeer_resultTupleSchemeFactory implements SchemeFactory {
6743 public createPeer_resultTupleScheme getScheme() {
6744 return new createPeer_resultTupleScheme();
6748 private static class createPeer_resultTupleScheme extends TupleScheme<createPeer_result> {
6751 public void write(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6752 TTupleProtocol oprot = (TTupleProtocol) prot;
6753 BitSet optionals = new BitSet();
6754 if (struct.isSetSuccess()) {
6757 oprot.writeBitSet(optionals, 1);
6758 if (struct.isSetSuccess()) {
6759 oprot.writeI32(struct.success);
6764 public void read(org.apache.thrift.protocol.TProtocol prot, createPeer_result struct) throws org.apache.thrift.TException {
6765 TTupleProtocol iprot = (TTupleProtocol) prot;
6766 BitSet incoming = iprot.readBitSet(1);
6767 if (incoming.get(0)) {
6768 struct.success = iprot.readI32();
6769 struct.setSuccessIsSet(true);
6776 public static class setPeerSecret_args implements org.apache.thrift.TBase<setPeerSecret_args, setPeerSecret_args._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_args> {
6777 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_args");
6779 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);
6780 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);
6782 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
6784 schemes.put(StandardScheme.class, new setPeerSecret_argsStandardSchemeFactory());
6785 schemes.put(TupleScheme.class, new setPeerSecret_argsTupleSchemeFactory());
6788 public String ipAddress; // required
6789 public String rfc2385_sharedSecret; // required
6791 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6792 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6793 IP_ADDRESS((short)1, "ipAddress"),
6794 RFC2385_SHARED_SECRET((short)2, "rfc2385_sharedSecret");
6796 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6799 for (_Fields field : EnumSet.allOf(_Fields.class)) {
6800 byName.put(field.getFieldName(), field);
6805 * Find the _Fields constant that matches fieldId, or null if its not found.
6807 public static _Fields findByThriftId(int fieldId) {
6809 case 1: // IP_ADDRESS
6811 case 2: // RFC2385_SHARED_SECRET
6812 return RFC2385_SHARED_SECRET;
6819 * Find the _Fields constant that matches fieldId, throwing an exception
6820 * if it is not found.
6822 public static _Fields findByThriftIdOrThrow(int fieldId) {
6823 _Fields fields = findByThriftId(fieldId);
6824 if (fields == null) {
6825 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6831 * Find the _Fields constant that matches name, or null if its not found.
6833 public static _Fields findByName(String name) {
6834 return byName.get(name);
6837 private final short _thriftId;
6838 private final String _fieldName;
6840 _Fields(short thriftId, String fieldName) {
6841 _thriftId = thriftId;
6842 _fieldName = fieldName;
6846 public short getThriftFieldId() {
6851 public String getFieldName() {
6856 // isset id assignments
6857 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6859 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6860 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
6861 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6862 tmpMap.put(_Fields.RFC2385_SHARED_SECRET, new org.apache.thrift.meta_data.FieldMetaData("rfc2385_sharedSecret", org.apache.thrift.TFieldRequirementType.DEFAULT,
6863 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6864 metaDataMap = Collections.unmodifiableMap(tmpMap);
6865 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_args.class, metaDataMap);
6868 public setPeerSecret_args() {
6871 public setPeerSecret_args(
6873 String rfc2385_sharedSecret)
6876 this.ipAddress = ipAddress;
6877 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6881 * Performs a deep copy on <i>other</i>.
6883 public setPeerSecret_args(setPeerSecret_args other) {
6884 if (other.isSetIpAddress()) {
6885 this.ipAddress = other.ipAddress;
6887 if (other.isSetRfc2385_sharedSecret()) {
6888 this.rfc2385_sharedSecret = other.rfc2385_sharedSecret;
6893 public setPeerSecret_args deepCopy() {
6894 return new setPeerSecret_args(this);
6898 public void clear() {
6899 this.ipAddress = null;
6900 this.rfc2385_sharedSecret = null;
6903 public String getIpAddress() {
6904 return this.ipAddress;
6907 public setPeerSecret_args setIpAddress(String ipAddress) {
6908 this.ipAddress = ipAddress;
6912 public void unsetIpAddress() {
6913 this.ipAddress = null;
6916 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
6917 public boolean isSetIpAddress() {
6918 return this.ipAddress != null;
6921 public void setIpAddressIsSet(boolean value) {
6923 this.ipAddress = null;
6927 public String getRfc2385_sharedSecret() {
6928 return this.rfc2385_sharedSecret;
6931 public setPeerSecret_args setRfc2385_sharedSecret(String rfc2385_sharedSecret) {
6932 this.rfc2385_sharedSecret = rfc2385_sharedSecret;
6936 public void unsetRfc2385_sharedSecret() {
6937 this.rfc2385_sharedSecret = null;
6940 /** Returns true if field rfc2385_sharedSecret is set (has been assigned a value) and false otherwise */
6941 public boolean isSetRfc2385_sharedSecret() {
6942 return this.rfc2385_sharedSecret != null;
6945 public void setRfc2385_sharedSecretIsSet(boolean value) {
6947 this.rfc2385_sharedSecret = null;
6952 public void setFieldValue(_Fields field, Object value) {
6955 if (value == null) {
6958 setIpAddress((String)value);
6962 case RFC2385_SHARED_SECRET:
6963 if (value == null) {
6964 unsetRfc2385_sharedSecret();
6966 setRfc2385_sharedSecret((String)value);
6974 public Object getFieldValue(_Fields field) {
6977 return getIpAddress();
6979 case RFC2385_SHARED_SECRET:
6980 return getRfc2385_sharedSecret();
6983 throw new IllegalStateException();
6986 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6988 public boolean isSet(_Fields field) {
6989 if (field == null) {
6990 throw new IllegalArgumentException();
6995 return isSetIpAddress();
6996 case RFC2385_SHARED_SECRET:
6997 return isSetRfc2385_sharedSecret();
6999 throw new IllegalStateException();
7003 public boolean equals(Object that) {
7007 if (that instanceof setPeerSecret_args) {
7008 return this.equals((setPeerSecret_args)that);
7013 public boolean equals(setPeerSecret_args that) {
7018 boolean this_present_ipAddress = true && this.isSetIpAddress();
7019 boolean that_present_ipAddress = true && that.isSetIpAddress();
7020 if (this_present_ipAddress || that_present_ipAddress) {
7021 if (!(this_present_ipAddress && that_present_ipAddress)) {
7024 if (!this.ipAddress.equals(that.ipAddress)) {
7029 boolean this_present_rfc2385_sharedSecret = true && this.isSetRfc2385_sharedSecret();
7030 boolean that_present_rfc2385_sharedSecret = true && that.isSetRfc2385_sharedSecret();
7031 if (this_present_rfc2385_sharedSecret || that_present_rfc2385_sharedSecret) {
7032 if (!(this_present_rfc2385_sharedSecret && that_present_rfc2385_sharedSecret)) {
7035 if (!this.rfc2385_sharedSecret.equals(that.rfc2385_sharedSecret)) {
7044 public int hashCode() {
7045 List<Object> list = new ArrayList<Object>();
7047 boolean present_ipAddress = true && (isSetIpAddress());
7048 list.add(present_ipAddress);
7049 if (present_ipAddress)
7050 list.add(ipAddress);
7051 boolean present_rfc2385_sharedSecret = true && (isSetRfc2385_sharedSecret());
7052 list.add(present_rfc2385_sharedSecret);
7053 if (present_rfc2385_sharedSecret)
7054 list.add(rfc2385_sharedSecret);
7055 return list.hashCode();
7059 public int compareTo(setPeerSecret_args other) {
7060 if (!getClass().equals(other.getClass())) {
7061 return getClass().getName().compareTo(other.getClass().getName());
7064 int lastComparison = 0;
7066 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7067 if (lastComparison != 0) {
7068 return lastComparison;
7070 if (isSetIpAddress()) {
7071 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7072 if (lastComparison != 0) {
7073 return lastComparison;
7076 lastComparison = Boolean.valueOf(isSetRfc2385_sharedSecret()).compareTo(other.isSetRfc2385_sharedSecret());
7077 if (lastComparison != 0) {
7078 return lastComparison;
7080 if (isSetRfc2385_sharedSecret()) {
7081 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rfc2385_sharedSecret, other.rfc2385_sharedSecret);
7082 if (lastComparison != 0) {
7083 return lastComparison;
7090 public _Fields fieldForId(int fieldId) {
7091 return _Fields.findByThriftId(fieldId);
7095 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7096 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7100 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7101 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7105 public String toString() {
7106 StringBuilder sb = new StringBuilder("setPeerSecret_args(");
7107 boolean first = true;
7109 sb.append("ipAddress:");
7110 if (this.ipAddress == null) {
7113 sb.append(this.ipAddress);
7119 sb.append("rfc2385_sharedSecret:");
7120 if (this.rfc2385_sharedSecret == null) {
7123 sb.append(this.rfc2385_sharedSecret);
7127 return sb.toString();
7130 public void validate() throws org.apache.thrift.TException {
7131 // check for required fields
7132 // check for sub-struct validity
7135 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7137 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7138 } catch (org.apache.thrift.TException te) {
7139 throw new java.io.IOException(te);
7143 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7145 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7146 } catch (org.apache.thrift.TException te) {
7147 throw new java.io.IOException(te);
7151 private static class setPeerSecret_argsStandardSchemeFactory implements SchemeFactory {
7153 public setPeerSecret_argsStandardScheme getScheme() {
7154 return new setPeerSecret_argsStandardScheme();
7158 private static class setPeerSecret_argsStandardScheme extends StandardScheme<setPeerSecret_args> {
7161 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7162 org.apache.thrift.protocol.TField schemeField;
7163 iprot.readStructBegin();
7166 schemeField = iprot.readFieldBegin();
7167 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7170 switch (schemeField.id) {
7171 case 1: // IP_ADDRESS
7172 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7173 struct.ipAddress = iprot.readString();
7174 struct.setIpAddressIsSet(true);
7176 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7179 case 2: // RFC2385_SHARED_SECRET
7180 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7181 struct.rfc2385_sharedSecret = iprot.readString();
7182 struct.setRfc2385_sharedSecretIsSet(true);
7184 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7188 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7190 iprot.readFieldEnd();
7192 iprot.readStructEnd();
7194 // check for required fields of primitive type, which can't be checked in the validate method
7199 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7202 oprot.writeStructBegin(STRUCT_DESC);
7203 if (struct.ipAddress != null) {
7204 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7205 oprot.writeString(struct.ipAddress);
7206 oprot.writeFieldEnd();
7208 if (struct.rfc2385_sharedSecret != null) {
7209 oprot.writeFieldBegin(RFC2385_SHARED_SECRET_FIELD_DESC);
7210 oprot.writeString(struct.rfc2385_sharedSecret);
7211 oprot.writeFieldEnd();
7213 oprot.writeFieldStop();
7214 oprot.writeStructEnd();
7219 private static class setPeerSecret_argsTupleSchemeFactory implements SchemeFactory {
7221 public setPeerSecret_argsTupleScheme getScheme() {
7222 return new setPeerSecret_argsTupleScheme();
7226 private static class setPeerSecret_argsTupleScheme extends TupleScheme<setPeerSecret_args> {
7229 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7230 TTupleProtocol oprot = (TTupleProtocol) prot;
7231 BitSet optionals = new BitSet();
7232 if (struct.isSetIpAddress()) {
7235 if (struct.isSetRfc2385_sharedSecret()) {
7238 oprot.writeBitSet(optionals, 2);
7239 if (struct.isSetIpAddress()) {
7240 oprot.writeString(struct.ipAddress);
7242 if (struct.isSetRfc2385_sharedSecret()) {
7243 oprot.writeString(struct.rfc2385_sharedSecret);
7248 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_args struct) throws org.apache.thrift.TException {
7249 TTupleProtocol iprot = (TTupleProtocol) prot;
7250 BitSet incoming = iprot.readBitSet(2);
7251 if (incoming.get(0)) {
7252 struct.ipAddress = iprot.readString();
7253 struct.setIpAddressIsSet(true);
7255 if (incoming.get(1)) {
7256 struct.rfc2385_sharedSecret = iprot.readString();
7257 struct.setRfc2385_sharedSecretIsSet(true);
7264 public static class setPeerSecret_result implements org.apache.thrift.TBase<setPeerSecret_result, setPeerSecret_result._Fields>, java.io.Serializable, Cloneable, Comparable<setPeerSecret_result> {
7265 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setPeerSecret_result");
7267 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);
7269 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7271 schemes.put(StandardScheme.class, new setPeerSecret_resultStandardSchemeFactory());
7272 schemes.put(TupleScheme.class, new setPeerSecret_resultTupleSchemeFactory());
7275 public int success; // required
7277 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7278 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7279 SUCCESS((short)0, "success");
7281 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7284 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7285 byName.put(field.getFieldName(), field);
7290 * Find the _Fields constant that matches fieldId, or null if its not found.
7292 public static _Fields findByThriftId(int fieldId) {
7302 * Find the _Fields constant that matches fieldId, throwing an exception
7303 * if it is not found.
7305 public static _Fields findByThriftIdOrThrow(int fieldId) {
7306 _Fields fields = findByThriftId(fieldId);
7307 if (fields == null) {
7308 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7314 * Find the _Fields constant that matches name, or null if its not found.
7316 public static _Fields findByName(String name) {
7317 return byName.get(name);
7320 private final short _thriftId;
7321 private final String _fieldName;
7323 _Fields(short thriftId, String fieldName) {
7324 _thriftId = thriftId;
7325 _fieldName = fieldName;
7329 public short getThriftFieldId() {
7334 public String getFieldName() {
7339 // isset id assignments
7340 private static final int __SUCCESS_ISSET_ID = 0;
7341 private byte __isset_bitfield = 0;
7342 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7344 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7345 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
7346 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
7347 metaDataMap = Collections.unmodifiableMap(tmpMap);
7348 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setPeerSecret_result.class, metaDataMap);
7351 public setPeerSecret_result() {
7354 public setPeerSecret_result(
7358 this.success = success;
7359 setSuccessIsSet(true);
7363 * Performs a deep copy on <i>other</i>.
7365 public setPeerSecret_result(setPeerSecret_result other) {
7366 __isset_bitfield = other.__isset_bitfield;
7367 this.success = other.success;
7371 public setPeerSecret_result deepCopy() {
7372 return new setPeerSecret_result(this);
7376 public void clear() {
7377 setSuccessIsSet(false);
7381 public int getSuccess() {
7382 return this.success;
7385 public setPeerSecret_result setSuccess(int success) {
7386 this.success = success;
7387 setSuccessIsSet(true);
7391 public void unsetSuccess() {
7392 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7395 /** Returns true if field success is set (has been assigned a value) and false otherwise */
7396 public boolean isSetSuccess() {
7397 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
7400 public void setSuccessIsSet(boolean value) {
7401 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
7405 public void setFieldValue(_Fields field, Object value) {
7408 if (value == null) {
7411 setSuccess((Integer)value);
7419 public Object getFieldValue(_Fields field) {
7422 return Integer.valueOf(getSuccess());
7425 throw new IllegalStateException();
7428 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7430 public boolean isSet(_Fields field) {
7431 if (field == null) {
7432 throw new IllegalArgumentException();
7437 return isSetSuccess();
7439 throw new IllegalStateException();
7443 public boolean equals(Object that) {
7447 if (that instanceof setPeerSecret_result) {
7448 return this.equals((setPeerSecret_result)that);
7453 public boolean equals(setPeerSecret_result that) {
7458 boolean this_present_success = true;
7459 boolean that_present_success = true;
7460 if (this_present_success || that_present_success) {
7461 if (!(this_present_success && that_present_success)) {
7464 if (this.success != that.success) {
7473 public int hashCode() {
7474 List<Object> list = new ArrayList<Object>();
7476 boolean present_success = true;
7477 list.add(present_success);
7478 if (present_success)
7480 return list.hashCode();
7484 public int compareTo(setPeerSecret_result other) {
7485 if (!getClass().equals(other.getClass())) {
7486 return getClass().getName().compareTo(other.getClass().getName());
7489 int lastComparison = 0;
7491 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
7492 if (lastComparison != 0) {
7493 return lastComparison;
7495 if (isSetSuccess()) {
7496 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
7497 if (lastComparison != 0) {
7498 return lastComparison;
7505 public _Fields fieldForId(int fieldId) {
7506 return _Fields.findByThriftId(fieldId);
7510 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7511 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7515 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7516 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7520 public String toString() {
7521 StringBuilder sb = new StringBuilder("setPeerSecret_result(");
7522 boolean first = true;
7524 sb.append("success:");
7525 sb.append(this.success);
7528 return sb.toString();
7531 public void validate() throws org.apache.thrift.TException {
7532 // check for required fields
7533 // check for sub-struct validity
7536 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7538 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7539 } catch (org.apache.thrift.TException te) {
7540 throw new java.io.IOException(te);
7544 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7546 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7547 __isset_bitfield = 0;
7548 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7549 } catch (org.apache.thrift.TException te) {
7550 throw new java.io.IOException(te);
7554 private static class setPeerSecret_resultStandardSchemeFactory implements SchemeFactory {
7556 public setPeerSecret_resultStandardScheme getScheme() {
7557 return new setPeerSecret_resultStandardScheme();
7561 private static class setPeerSecret_resultStandardScheme extends StandardScheme<setPeerSecret_result> {
7564 public void read(org.apache.thrift.protocol.TProtocol iprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7565 org.apache.thrift.protocol.TField schemeField;
7566 iprot.readStructBegin();
7569 schemeField = iprot.readFieldBegin();
7570 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7573 switch (schemeField.id) {
7575 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
7576 struct.success = iprot.readI32();
7577 struct.setSuccessIsSet(true);
7579 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7583 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7585 iprot.readFieldEnd();
7587 iprot.readStructEnd();
7589 // check for required fields of primitive type, which can't be checked in the validate method
7594 public void write(org.apache.thrift.protocol.TProtocol oprot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7597 oprot.writeStructBegin(STRUCT_DESC);
7598 if (struct.isSetSuccess()) {
7599 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7600 oprot.writeI32(struct.success);
7601 oprot.writeFieldEnd();
7603 oprot.writeFieldStop();
7604 oprot.writeStructEnd();
7609 private static class setPeerSecret_resultTupleSchemeFactory implements SchemeFactory {
7611 public setPeerSecret_resultTupleScheme getScheme() {
7612 return new setPeerSecret_resultTupleScheme();
7616 private static class setPeerSecret_resultTupleScheme extends TupleScheme<setPeerSecret_result> {
7619 public void write(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7620 TTupleProtocol oprot = (TTupleProtocol) prot;
7621 BitSet optionals = new BitSet();
7622 if (struct.isSetSuccess()) {
7625 oprot.writeBitSet(optionals, 1);
7626 if (struct.isSetSuccess()) {
7627 oprot.writeI32(struct.success);
7632 public void read(org.apache.thrift.protocol.TProtocol prot, setPeerSecret_result struct) throws org.apache.thrift.TException {
7633 TTupleProtocol iprot = (TTupleProtocol) prot;
7634 BitSet incoming = iprot.readBitSet(1);
7635 if (incoming.get(0)) {
7636 struct.success = iprot.readI32();
7637 struct.setSuccessIsSet(true);
7644 public static class deletePeer_args implements org.apache.thrift.TBase<deletePeer_args, deletePeer_args._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_args> {
7645 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_args");
7647 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);
7649 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
7651 schemes.put(StandardScheme.class, new deletePeer_argsStandardSchemeFactory());
7652 schemes.put(TupleScheme.class, new deletePeer_argsTupleSchemeFactory());
7655 public String ipAddress; // required
7657 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7658 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7659 IP_ADDRESS((short)1, "ipAddress");
7661 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7664 for (_Fields field : EnumSet.allOf(_Fields.class)) {
7665 byName.put(field.getFieldName(), field);
7670 * Find the _Fields constant that matches fieldId, or null if its not found.
7672 public static _Fields findByThriftId(int fieldId) {
7674 case 1: // IP_ADDRESS
7682 * Find the _Fields constant that matches fieldId, throwing an exception
7683 * if it is not found.
7685 public static _Fields findByThriftIdOrThrow(int fieldId) {
7686 _Fields fields = findByThriftId(fieldId);
7687 if (fields == null) {
7688 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7694 * Find the _Fields constant that matches name, or null if its not found.
7696 public static _Fields findByName(String name) {
7697 return byName.get(name);
7700 private final short _thriftId;
7701 private final String _fieldName;
7703 _Fields(short thriftId, String fieldName) {
7704 _thriftId = thriftId;
7705 _fieldName = fieldName;
7709 public short getThriftFieldId() {
7714 public String getFieldName() {
7719 // isset id assignments
7720 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7722 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7723 tmpMap.put(_Fields.IP_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("ipAddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
7724 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7725 metaDataMap = Collections.unmodifiableMap(tmpMap);
7726 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_args.class, metaDataMap);
7729 public deletePeer_args() {
7732 public deletePeer_args(
7736 this.ipAddress = ipAddress;
7740 * Performs a deep copy on <i>other</i>.
7742 public deletePeer_args(deletePeer_args other) {
7743 if (other.isSetIpAddress()) {
7744 this.ipAddress = other.ipAddress;
7749 public deletePeer_args deepCopy() {
7750 return new deletePeer_args(this);
7754 public void clear() {
7755 this.ipAddress = null;
7758 public String getIpAddress() {
7759 return this.ipAddress;
7762 public deletePeer_args setIpAddress(String ipAddress) {
7763 this.ipAddress = ipAddress;
7767 public void unsetIpAddress() {
7768 this.ipAddress = null;
7771 /** Returns true if field ipAddress is set (has been assigned a value) and false otherwise */
7772 public boolean isSetIpAddress() {
7773 return this.ipAddress != null;
7776 public void setIpAddressIsSet(boolean value) {
7778 this.ipAddress = null;
7783 public void setFieldValue(_Fields field, Object value) {
7786 if (value == null) {
7789 setIpAddress((String)value);
7797 public Object getFieldValue(_Fields field) {
7800 return getIpAddress();
7803 throw new IllegalStateException();
7806 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7808 public boolean isSet(_Fields field) {
7809 if (field == null) {
7810 throw new IllegalArgumentException();
7815 return isSetIpAddress();
7817 throw new IllegalStateException();
7821 public boolean equals(Object that) {
7825 if (that instanceof deletePeer_args) {
7826 return this.equals((deletePeer_args)that);
7831 public boolean equals(deletePeer_args that) {
7836 boolean this_present_ipAddress = true && this.isSetIpAddress();
7837 boolean that_present_ipAddress = true && that.isSetIpAddress();
7838 if (this_present_ipAddress || that_present_ipAddress) {
7839 if (!(this_present_ipAddress && that_present_ipAddress)) {
7842 if (!this.ipAddress.equals(that.ipAddress)) {
7851 public int hashCode() {
7852 List<Object> list = new ArrayList<Object>();
7854 boolean present_ipAddress = true && (isSetIpAddress());
7855 list.add(present_ipAddress);
7856 if (present_ipAddress)
7857 list.add(ipAddress);
7858 return list.hashCode();
7862 public int compareTo(deletePeer_args other) {
7863 if (!getClass().equals(other.getClass())) {
7864 return getClass().getName().compareTo(other.getClass().getName());
7867 int lastComparison = 0;
7869 lastComparison = Boolean.valueOf(isSetIpAddress()).compareTo(other.isSetIpAddress());
7870 if (lastComparison != 0) {
7871 return lastComparison;
7873 if (isSetIpAddress()) {
7874 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ipAddress, other.ipAddress);
7875 if (lastComparison != 0) {
7876 return lastComparison;
7883 public _Fields fieldForId(int fieldId) {
7884 return _Fields.findByThriftId(fieldId);
7888 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7889 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
7893 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7894 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
7898 public String toString() {
7899 StringBuilder sb = new StringBuilder("deletePeer_args(");
7900 boolean first = true;
7902 sb.append("ipAddress:");
7903 if (this.ipAddress == null) {
7906 sb.append(this.ipAddress);
7910 return sb.toString();
7913 public void validate() throws org.apache.thrift.TException {
7914 // check for required fields
7915 // check for sub-struct validity
7918 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7920 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7921 } catch (org.apache.thrift.TException te) {
7922 throw new java.io.IOException(te);
7926 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7928 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7929 } catch (org.apache.thrift.TException te) {
7930 throw new java.io.IOException(te);
7934 private static class deletePeer_argsStandardSchemeFactory implements SchemeFactory {
7936 public deletePeer_argsStandardScheme getScheme() {
7937 return new deletePeer_argsStandardScheme();
7941 private static class deletePeer_argsStandardScheme extends StandardScheme<deletePeer_args> {
7944 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_args struct) throws org.apache.thrift.TException {
7945 org.apache.thrift.protocol.TField schemeField;
7946 iprot.readStructBegin();
7949 schemeField = iprot.readFieldBegin();
7950 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
7953 switch (schemeField.id) {
7954 case 1: // IP_ADDRESS
7955 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
7956 struct.ipAddress = iprot.readString();
7957 struct.setIpAddressIsSet(true);
7959 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7963 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
7965 iprot.readFieldEnd();
7967 iprot.readStructEnd();
7969 // check for required fields of primitive type, which can't be checked in the validate method
7974 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_args struct) throws org.apache.thrift.TException {
7977 oprot.writeStructBegin(STRUCT_DESC);
7978 if (struct.ipAddress != null) {
7979 oprot.writeFieldBegin(IP_ADDRESS_FIELD_DESC);
7980 oprot.writeString(struct.ipAddress);
7981 oprot.writeFieldEnd();
7983 oprot.writeFieldStop();
7984 oprot.writeStructEnd();
7989 private static class deletePeer_argsTupleSchemeFactory implements SchemeFactory {
7991 public deletePeer_argsTupleScheme getScheme() {
7992 return new deletePeer_argsTupleScheme();
7996 private static class deletePeer_argsTupleScheme extends TupleScheme<deletePeer_args> {
7999 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
8000 TTupleProtocol oprot = (TTupleProtocol) prot;
8001 BitSet optionals = new BitSet();
8002 if (struct.isSetIpAddress()) {
8005 oprot.writeBitSet(optionals, 1);
8006 if (struct.isSetIpAddress()) {
8007 oprot.writeString(struct.ipAddress);
8012 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_args struct) throws org.apache.thrift.TException {
8013 TTupleProtocol iprot = (TTupleProtocol) prot;
8014 BitSet incoming = iprot.readBitSet(1);
8015 if (incoming.get(0)) {
8016 struct.ipAddress = iprot.readString();
8017 struct.setIpAddressIsSet(true);
8024 public static class deletePeer_result implements org.apache.thrift.TBase<deletePeer_result, deletePeer_result._Fields>, java.io.Serializable, Cloneable, Comparable<deletePeer_result> {
8025 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deletePeer_result");
8027 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);
8029 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8031 schemes.put(StandardScheme.class, new deletePeer_resultStandardSchemeFactory());
8032 schemes.put(TupleScheme.class, new deletePeer_resultTupleSchemeFactory());
8035 public int success; // required
8037 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8038 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8039 SUCCESS((short)0, "success");
8041 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8044 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8045 byName.put(field.getFieldName(), field);
8050 * Find the _Fields constant that matches fieldId, or null if its not found.
8052 public static _Fields findByThriftId(int fieldId) {
8062 * Find the _Fields constant that matches fieldId, throwing an exception
8063 * if it is not found.
8065 public static _Fields findByThriftIdOrThrow(int fieldId) {
8066 _Fields fields = findByThriftId(fieldId);
8067 if (fields == null) {
8068 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8074 * Find the _Fields constant that matches name, or null if its not found.
8076 public static _Fields findByName(String name) {
8077 return byName.get(name);
8080 private final short _thriftId;
8081 private final String _fieldName;
8083 _Fields(short thriftId, String fieldName) {
8084 _thriftId = thriftId;
8085 _fieldName = fieldName;
8089 public short getThriftFieldId() {
8094 public String getFieldName() {
8099 // isset id assignments
8100 private static final int __SUCCESS_ISSET_ID = 0;
8101 private byte __isset_bitfield = 0;
8102 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8104 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8105 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
8106 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
8107 metaDataMap = Collections.unmodifiableMap(tmpMap);
8108 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deletePeer_result.class, metaDataMap);
8111 public deletePeer_result() {
8114 public deletePeer_result(
8118 this.success = success;
8119 setSuccessIsSet(true);
8123 * Performs a deep copy on <i>other</i>.
8125 public deletePeer_result(deletePeer_result other) {
8126 __isset_bitfield = other.__isset_bitfield;
8127 this.success = other.success;
8131 public deletePeer_result deepCopy() {
8132 return new deletePeer_result(this);
8136 public void clear() {
8137 setSuccessIsSet(false);
8141 public int getSuccess() {
8142 return this.success;
8145 public deletePeer_result setSuccess(int success) {
8146 this.success = success;
8147 setSuccessIsSet(true);
8151 public void unsetSuccess() {
8152 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8155 /** Returns true if field success is set (has been assigned a value) and false otherwise */
8156 public boolean isSetSuccess() {
8157 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
8160 public void setSuccessIsSet(boolean value) {
8161 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
8165 public void setFieldValue(_Fields field, Object value) {
8168 if (value == null) {
8171 setSuccess((Integer)value);
8179 public Object getFieldValue(_Fields field) {
8182 return Integer.valueOf(getSuccess());
8185 throw new IllegalStateException();
8188 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8190 public boolean isSet(_Fields field) {
8191 if (field == null) {
8192 throw new IllegalArgumentException();
8197 return isSetSuccess();
8199 throw new IllegalStateException();
8203 public boolean equals(Object that) {
8207 if (that instanceof deletePeer_result) {
8208 return this.equals((deletePeer_result)that);
8213 public boolean equals(deletePeer_result that) {
8218 boolean this_present_success = true;
8219 boolean that_present_success = true;
8220 if (this_present_success || that_present_success) {
8221 if (!(this_present_success && that_present_success)) {
8224 if (this.success != that.success) {
8233 public int hashCode() {
8234 List<Object> list = new ArrayList<Object>();
8236 boolean present_success = true;
8237 list.add(present_success);
8238 if (present_success)
8240 return list.hashCode();
8244 public int compareTo(deletePeer_result other) {
8245 if (!getClass().equals(other.getClass())) {
8246 return getClass().getName().compareTo(other.getClass().getName());
8249 int lastComparison = 0;
8251 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
8252 if (lastComparison != 0) {
8253 return lastComparison;
8255 if (isSetSuccess()) {
8256 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
8257 if (lastComparison != 0) {
8258 return lastComparison;
8265 public _Fields fieldForId(int fieldId) {
8266 return _Fields.findByThriftId(fieldId);
8270 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8271 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
8275 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8276 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
8280 public String toString() {
8281 StringBuilder sb = new StringBuilder("deletePeer_result(");
8282 boolean first = true;
8284 sb.append("success:");
8285 sb.append(this.success);
8288 return sb.toString();
8291 public void validate() throws org.apache.thrift.TException {
8292 // check for required fields
8293 // check for sub-struct validity
8296 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8298 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8299 } catch (org.apache.thrift.TException te) {
8300 throw new java.io.IOException(te);
8304 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8306 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8307 __isset_bitfield = 0;
8308 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8309 } catch (org.apache.thrift.TException te) {
8310 throw new java.io.IOException(te);
8314 private static class deletePeer_resultStandardSchemeFactory implements SchemeFactory {
8316 public deletePeer_resultStandardScheme getScheme() {
8317 return new deletePeer_resultStandardScheme();
8321 private static class deletePeer_resultStandardScheme extends StandardScheme<deletePeer_result> {
8324 public void read(org.apache.thrift.protocol.TProtocol iprot, deletePeer_result struct) throws org.apache.thrift.TException {
8325 org.apache.thrift.protocol.TField schemeField;
8326 iprot.readStructBegin();
8329 schemeField = iprot.readFieldBegin();
8330 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
8333 switch (schemeField.id) {
8335 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
8336 struct.success = iprot.readI32();
8337 struct.setSuccessIsSet(true);
8339 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8343 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
8345 iprot.readFieldEnd();
8347 iprot.readStructEnd();
8349 // check for required fields of primitive type, which can't be checked in the validate method
8354 public void write(org.apache.thrift.protocol.TProtocol oprot, deletePeer_result struct) throws org.apache.thrift.TException {
8357 oprot.writeStructBegin(STRUCT_DESC);
8358 if (struct.isSetSuccess()) {
8359 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8360 oprot.writeI32(struct.success);
8361 oprot.writeFieldEnd();
8363 oprot.writeFieldStop();
8364 oprot.writeStructEnd();
8369 private static class deletePeer_resultTupleSchemeFactory implements SchemeFactory {
8371 public deletePeer_resultTupleScheme getScheme() {
8372 return new deletePeer_resultTupleScheme();
8376 private static class deletePeer_resultTupleScheme extends TupleScheme<deletePeer_result> {
8379 public void write(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8380 TTupleProtocol oprot = (TTupleProtocol) prot;
8381 BitSet optionals = new BitSet();
8382 if (struct.isSetSuccess()) {
8385 oprot.writeBitSet(optionals, 1);
8386 if (struct.isSetSuccess()) {
8387 oprot.writeI32(struct.success);
8392 public void read(org.apache.thrift.protocol.TProtocol prot, deletePeer_result struct) throws org.apache.thrift.TException {
8393 TTupleProtocol iprot = (TTupleProtocol) prot;
8394 BitSet incoming = iprot.readBitSet(1);
8395 if (incoming.get(0)) {
8396 struct.success = iprot.readI32();
8397 struct.setSuccessIsSet(true);
8404 public static class addVrf_args implements org.apache.thrift.TBase<addVrf_args, addVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_args> {
8405 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_args");
8407 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);
8408 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);
8409 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);
8410 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);
8411 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)5);
8412 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)6);
8414 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
8416 schemes.put(StandardScheme.class, new addVrf_argsStandardSchemeFactory());
8417 schemes.put(TupleScheme.class, new addVrf_argsTupleSchemeFactory());
8424 public layer_type l_type; // required
8425 public String rd; // required
8426 public List<String> irts; // required
8427 public List<String> erts; // required
8428 public af_afi afi; // required
8429 public af_safi safi; // required
8431 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8432 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8437 L_TYPE((short)1, "l_type"),
8439 IRTS((short)3, "irts"),
8440 ERTS((short)4, "erts"),
8441 AFI((short)5, "afi"),
8442 SAFI((short)6, "safi");
8444 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8447 for (_Fields field : EnumSet.allOf(_Fields.class)) {
8448 byName.put(field.getFieldName(), field);
8453 * Find the _Fields constant that matches fieldId, or null if its not found.
8455 public static _Fields findByThriftId(int fieldId) {
8475 * Find the _Fields constant that matches fieldId, throwing an exception
8476 * if it is not found.
8478 public static _Fields findByThriftIdOrThrow(int fieldId) {
8479 _Fields fields = findByThriftId(fieldId);
8480 if (fields == null) {
8481 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8487 * Find the _Fields constant that matches name, or null if its not found.
8489 public static _Fields findByName(String name) {
8490 return byName.get(name);
8493 private final short _thriftId;
8494 private final String _fieldName;
8496 _Fields(short thriftId, String fieldName) {
8497 _thriftId = thriftId;
8498 _fieldName = fieldName;
8502 public short getThriftFieldId() {
8507 public String getFieldName() {
8512 // isset id assignments
8513 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8515 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8516 tmpMap.put(_Fields.L_TYPE, new org.apache.thrift.meta_data.FieldMetaData("l_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
8517 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, layer_type.class)));
8518 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
8519 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8520 tmpMap.put(_Fields.IRTS, new org.apache.thrift.meta_data.FieldMetaData("irts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8521 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8522 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8523 tmpMap.put(_Fields.ERTS, new org.apache.thrift.meta_data.FieldMetaData("erts", org.apache.thrift.TFieldRequirementType.DEFAULT,
8524 new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
8525 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8526 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
8527 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
8528 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
8529 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
8530 metaDataMap = Collections.unmodifiableMap(tmpMap);
8531 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_args.class, metaDataMap);
8534 public addVrf_args() {
8546 this.l_type = l_type;
8555 * Performs a deep copy on <i>other</i>.
8557 public addVrf_args(addVrf_args other) {
8558 if (other.isSetL_type()) {
8559 this.l_type = other.l_type;
8561 if (other.isSetRd()) {
8564 if (other.isSetIrts()) {
8565 List<String> __this__irts = new ArrayList<String>(other.irts);
8566 this.irts = __this__irts;
8568 if (other.isSetErts()) {
8569 List<String> __this__erts = new ArrayList<String>(other.erts);
8570 this.erts = __this__erts;
8572 if (other.isSetAfi()) {
8573 this.afi = other.afi;
8575 if (other.isSetSafi()) {
8576 this.safi = other.safi;
8581 public addVrf_args deepCopy() {
8582 return new addVrf_args(this);
8586 public void clear() {
8599 public layer_type getL_type() {
8607 public addVrf_args setL_type(layer_type l_type) {
8608 this.l_type = l_type;
8612 public void unsetL_type() {
8616 /** Returns true if field l_type is set (has been assigned a value) and false otherwise */
8617 public boolean isSetL_type() {
8618 return this.l_type != null;
8621 public void setL_typeIsSet(boolean value) {
8627 public String getRd() {
8631 public addVrf_args setRd(String rd) {
8636 public void unsetRd() {
8640 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
8641 public boolean isSetRd() {
8642 return this.rd != null;
8645 public void setRdIsSet(boolean value) {
8651 public int getIrtsSize() {
8652 return (this.irts == null) ? 0 : this.irts.size();
8655 public java.util.Iterator<String> getIrtsIterator() {
8656 return (this.irts == null) ? null : this.irts.iterator();
8659 public void addToIrts(String elem) {
8660 if (this.irts == null) {
8661 this.irts = new ArrayList<String>();
8663 this.irts.add(elem);
8666 public List<String> getIrts() {
8670 public addVrf_args setIrts(List<String> irts) {
8675 public void unsetIrts() {
8679 /** Returns true if field irts is set (has been assigned a value) and false otherwise */
8680 public boolean isSetIrts() {
8681 return this.irts != null;
8684 public void setIrtsIsSet(boolean value) {
8690 public int getErtsSize() {
8691 return (this.erts == null) ? 0 : this.erts.size();
8694 public java.util.Iterator<String> getErtsIterator() {
8695 return (this.erts == null) ? null : this.erts.iterator();
8698 public void addToErts(String elem) {
8699 if (this.erts == null) {
8700 this.erts = new ArrayList<String>();
8702 this.erts.add(elem);
8705 public List<String> getErts() {
8709 public addVrf_args setErts(List<String> erts) {
8714 public void unsetErts() {
8718 /** Returns true if field erts is set (has been assigned a value) and false otherwise */
8719 public boolean isSetErts() {
8720 return this.erts != null;
8723 public void setErtsIsSet(boolean value) {
8729 public af_afi getAfi() {
8733 public addVrf_args setAfi(af_afi afi) {
8738 public void unsetAfi() {
8742 public boolean isSetAfi() {
8743 return this.afi != null;
8746 public void setAfiIsSet(boolean value) {
8752 public af_safi getSafi() {
8756 public addVrf_args setSafi(af_safi safi) {
8761 public void unsetSafi() {
8765 public boolean isSetSafi() {
8766 return this.safi != null;
8769 public void setSafiIsSet(boolean value) {
8776 public void setFieldValue(_Fields field, Object value) {
8779 if (value == null) {
8782 setL_type((layer_type)value);
8787 if (value == null) {
8790 setRd((String)value);
8795 if (value == null) {
8798 setIrts((List<String>)value);
8803 if (value == null) {
8806 setErts((List<String>)value);
8811 if (value == null) {
8814 setAfi((af_afi)value);
8819 if (value == null) {
8822 setSafi((af_safi)value);
8830 public Object getFieldValue(_Fields field) {
8851 throw new IllegalStateException();
8854 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8856 public boolean isSet(_Fields field) {
8857 if (field == null) {
8858 throw new IllegalArgumentException();
8863 return isSetL_type();
8875 throw new IllegalStateException();
8879 public boolean equals(Object that) {
8883 if (that instanceof addVrf_args) {
8884 return this.equals((addVrf_args)that);
8889 public boolean equals(addVrf_args that) {
8894 boolean this_present_l_type = true && this.isSetL_type();
8895 boolean that_present_l_type = true && that.isSetL_type();
8896 if (this_present_l_type || that_present_l_type) {
8897 if (!(this_present_l_type && that_present_l_type)) {
8900 if (!this.l_type.equals(that.l_type)) {
8905 boolean this_present_rd = true && this.isSetRd();
8906 boolean that_present_rd = true && that.isSetRd();
8907 if (this_present_rd || that_present_rd) {
8908 if (!(this_present_rd && that_present_rd)) {
8911 if (!this.rd.equals(that.rd)) {
8916 boolean this_present_irts = true && this.isSetIrts();
8917 boolean that_present_irts = true && that.isSetIrts();
8918 if (this_present_irts || that_present_irts) {
8919 if (!(this_present_irts && that_present_irts)) {
8922 if (!this.irts.equals(that.irts)) {
8927 boolean this_present_erts = true && this.isSetErts();
8928 boolean that_present_erts = true && that.isSetErts();
8929 if (this_present_erts || that_present_erts) {
8930 if (!(this_present_erts && that_present_erts)) {
8933 if (!this.erts.equals(that.erts)) {
8938 boolean this_present_afi = true && this.isSetAfi();
8939 boolean that_present_afi = true && that.isSetAfi();
8940 if (this_present_afi || that_present_afi) {
8941 if (!(this_present_afi && that_present_afi))
8943 if (!this.afi.equals(that.afi))
8947 boolean this_present_safi = true && this.isSetSafi();
8948 boolean that_present_safi = true && that.isSetSafi();
8949 if (this_present_safi || that_present_safi) {
8950 if (!(this_present_safi && that_present_safi))
8952 if (!this.safi.equals(that.safi))
8960 public int hashCode() {
8961 List<Object> list = new ArrayList<Object>();
8962 boolean present_l_type = true && (isSetL_type());
8963 list.add(present_l_type);
8965 list.add(l_type.getValue());
8966 boolean present_rd = true && (isSetRd());
8967 list.add(present_rd);
8970 boolean present_irts = true && (isSetIrts());
8971 list.add(present_irts);
8974 boolean present_erts = true && (isSetErts());
8975 list.add(present_erts);
8978 return list.hashCode();
8982 public int compareTo(addVrf_args other) {
8983 if (!getClass().equals(other.getClass())) {
8984 return getClass().getName().compareTo(other.getClass().getName());
8987 int lastComparison = 0;
8989 lastComparison = Boolean.valueOf(isSetL_type()).compareTo(other.isSetL_type());
8990 if (lastComparison != 0) {
8991 return lastComparison;
8993 if (isSetL_type()) {
8994 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l_type, other.l_type);
8995 if (lastComparison != 0) {
8996 return lastComparison;
8999 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
9000 if (lastComparison != 0) {
9001 return lastComparison;
9004 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
9005 if (lastComparison != 0) {
9006 return lastComparison;
9009 lastComparison = Boolean.valueOf(isSetIrts()).compareTo(other.isSetIrts());
9010 if (lastComparison != 0) {
9011 return lastComparison;
9014 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.irts, other.irts);
9015 if (lastComparison != 0) {
9016 return lastComparison;
9019 lastComparison = Boolean.valueOf(isSetErts()).compareTo(other.isSetErts());
9020 if (lastComparison != 0) {
9021 return lastComparison;
9024 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.erts, other.erts);
9025 if (lastComparison != 0) {
9026 return lastComparison;
9029 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
9030 if (lastComparison != 0) {
9031 return lastComparison;
9034 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
9035 if (lastComparison != 0) {
9036 return lastComparison;
9039 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
9040 if (lastComparison != 0) {
9041 return lastComparison;
9044 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
9045 if (lastComparison != 0) {
9046 return lastComparison;
9053 public _Fields fieldForId(int fieldId) {
9054 return _Fields.findByThriftId(fieldId);
9058 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9059 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9063 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9064 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9068 public String toString() {
9069 StringBuilder sb = new StringBuilder("addVrf_args(");
9070 boolean first = true;
9072 sb.append("l_type:");
9073 if (this.l_type == null) {
9076 sb.append(this.l_type);
9083 if (this.rd == null) {
9093 if (this.irts == null) {
9096 sb.append(this.irts);
9103 if (this.erts == null) {
9106 sb.append(this.erts);
9109 if (!first) sb.append(", ");
9111 if (this.afi == null) {
9114 sb.append(this.afi);
9117 if (!first) sb.append(", ");
9119 if (this.safi == null) {
9122 sb.append(this.safi);
9126 return sb.toString();
9129 public void validate() throws org.apache.thrift.TException {
9130 // check for required fields
9131 // check for sub-struct validity
9134 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9136 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9137 } catch (org.apache.thrift.TException te) {
9138 throw new java.io.IOException(te);
9142 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9144 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9145 } catch (org.apache.thrift.TException te) {
9146 throw new java.io.IOException(te);
9150 private static class addVrf_argsStandardSchemeFactory implements SchemeFactory {
9152 public addVrf_argsStandardScheme getScheme() {
9153 return new addVrf_argsStandardScheme();
9157 private static class addVrf_argsStandardScheme extends StandardScheme<addVrf_args> {
9160 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_args struct) throws org.apache.thrift.TException {
9161 org.apache.thrift.protocol.TField schemeField;
9162 iprot.readStructBegin();
9165 schemeField = iprot.readFieldBegin();
9166 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9169 switch (schemeField.id) {
9171 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9172 struct.l_type = layer_type.findByValue(iprot.readI32());
9173 struct.setL_typeIsSet(true);
9175 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9179 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
9180 struct.rd = iprot.readString();
9181 struct.setRdIsSet(true);
9183 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9187 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9189 org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
9190 struct.irts = new ArrayList<>(_list8.size);
9191 for (int _i9 = 0; _i9 < _list8.size; ++_i9)
9194 _elem10 = iprot.readString();
9195 struct.irts.add(_elem10);
9197 iprot.readListEnd();
9199 struct.setIrtsIsSet(true);
9201 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9205 if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
9207 org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
9208 struct.erts = new ArrayList<>(_list11.size);
9209 for (int _i12 = 0; _i12 < _list11.size; ++_i12)
9212 _elem13 = iprot.readString();
9213 struct.erts.add(_elem13);
9215 iprot.readListEnd();
9217 struct.setErtsIsSet(true);
9219 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9223 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9224 struct.afi = af_afi.findByValue(iprot.readI32());
9225 struct.setAfiIsSet(true);
9227 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9231 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9232 struct.safi = af_safi.findByValue(iprot.readI32());
9233 struct.setSafiIsSet(true);
9235 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9239 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9241 iprot.readFieldEnd();
9243 iprot.readStructEnd();
9245 // check for required fields of primitive type, which can't be checked in the validate method
9250 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_args struct) throws org.apache.thrift.TException {
9253 oprot.writeStructBegin(STRUCT_DESC);
9254 if (struct.l_type != null) {
9255 oprot.writeFieldBegin(L_TYPE_FIELD_DESC);
9256 oprot.writeI32(struct.l_type.getValue());
9257 oprot.writeFieldEnd();
9259 if (struct.rd != null) {
9260 oprot.writeFieldBegin(RD_FIELD_DESC);
9261 oprot.writeString(struct.rd);
9262 oprot.writeFieldEnd();
9264 if (struct.irts != null) {
9265 oprot.writeFieldBegin(IRTS_FIELD_DESC);
9267 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.irts.size()));
9268 for (String _iter14 : struct.irts)
9270 oprot.writeString(_iter14);
9272 oprot.writeListEnd();
9274 oprot.writeFieldEnd();
9276 if (struct.erts != null) {
9277 oprot.writeFieldBegin(ERTS_FIELD_DESC);
9279 oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.erts.size()));
9280 for (String _iter15 : struct.erts)
9282 oprot.writeString(_iter15);
9284 oprot.writeListEnd();
9286 oprot.writeFieldEnd();
9288 if (struct.afi != null) {
9289 oprot.writeFieldBegin(AFI_FIELD_DESC);
9290 oprot.writeI32(struct.afi.getValue());
9291 oprot.writeFieldEnd();
9293 if (struct.safi != null) {
9294 oprot.writeFieldBegin(SAFI_FIELD_DESC);
9295 oprot.writeI32(struct.safi.getValue());
9296 oprot.writeFieldEnd();
9298 oprot.writeFieldStop();
9299 oprot.writeStructEnd();
9304 private static class addVrf_argsTupleSchemeFactory implements SchemeFactory {
9306 public addVrf_argsTupleScheme getScheme() {
9307 return new addVrf_argsTupleScheme();
9311 private static class addVrf_argsTupleScheme extends TupleScheme<addVrf_args> {
9314 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9315 TTupleProtocol oprot = (TTupleProtocol) prot;
9316 BitSet optionals = new BitSet();
9317 if (struct.isSetL_type()) {
9320 if (struct.isSetRd()) {
9323 if (struct.isSetIrts()) {
9326 if (struct.isSetErts()) {
9329 if (struct.isSetAfi()) {
9332 if (struct.isSetSafi()) {
9335 oprot.writeBitSet(optionals, 6);
9336 if (struct.isSetL_type()) {
9337 oprot.writeI32(struct.l_type.getValue());
9339 if (struct.isSetRd()) {
9340 oprot.writeString(struct.rd);
9342 if (struct.isSetIrts()) {
9344 oprot.writeI32(struct.irts.size());
9345 for (String _iter16 : struct.irts)
9347 oprot.writeString(_iter16);
9351 if (struct.isSetErts()) {
9353 oprot.writeI32(struct.erts.size());
9354 for (String _iter17 : struct.erts)
9356 oprot.writeString(_iter17);
9359 if (struct.isSetAfi()) {
9360 oprot.writeI32(struct.afi.getValue());
9362 if (struct.isSetSafi()) {
9363 oprot.writeI32(struct.safi.getValue());
9369 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_args struct) throws org.apache.thrift.TException {
9370 TTupleProtocol iprot = (TTupleProtocol) prot;
9371 BitSet incoming = iprot.readBitSet(6);
9372 if (incoming.get(0)) {
9373 struct.l_type = layer_type.findByValue(iprot.readI32());
9374 struct.setL_typeIsSet(true);
9376 if (incoming.get(1)) {
9377 struct.rd = iprot.readString();
9378 struct.setRdIsSet(true);
9380 if (incoming.get(2)) {
9382 org.apache.thrift.protocol.TList _list18 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9383 struct.irts = new ArrayList<>(_list18.size);
9384 for (int _i19 = 0; _i19 < _list18.size; ++_i19)
9387 _elem20 = iprot.readString();
9388 struct.irts.add(_elem20);
9391 struct.setIrtsIsSet(true);
9393 if (incoming.get(3)) {
9395 org.apache.thrift.protocol.TList _list21 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32());
9396 struct.erts = new ArrayList<>(_list21.size);
9397 for (int _i22 = 0; _i22 < _list21.size; ++_i22)
9400 _elem23 = iprot.readString();
9401 struct.erts.add(_elem23);
9404 struct.setErtsIsSet(true);
9406 if (incoming.get(4)) {
9407 struct.afi = af_afi.findByValue(iprot.readI32());
9408 struct.setAfiIsSet(true);
9410 if (incoming.get(5)) {
9411 struct.safi = af_safi.findByValue(iprot.readI32());
9412 struct.setSafiIsSet(true);
9419 public static class addVrf_result implements org.apache.thrift.TBase<addVrf_result, addVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<addVrf_result> {
9420 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addVrf_result");
9422 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);
9424 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9426 schemes.put(StandardScheme.class, new addVrf_resultStandardSchemeFactory());
9427 schemes.put(TupleScheme.class, new addVrf_resultTupleSchemeFactory());
9430 public int success; // required
9432 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9433 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9434 SUCCESS((short)0, "success");
9436 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9439 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9440 byName.put(field.getFieldName(), field);
9445 * Find the _Fields constant that matches fieldId, or null if its not found.
9447 public static _Fields findByThriftId(int fieldId) {
9457 * Find the _Fields constant that matches fieldId, throwing an exception
9458 * if it is not found.
9460 public static _Fields findByThriftIdOrThrow(int fieldId) {
9461 _Fields fields = findByThriftId(fieldId);
9462 if (fields == null) {
9463 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9469 * Find the _Fields constant that matches name, or null if its not found.
9471 public static _Fields findByName(String name) {
9472 return byName.get(name);
9475 private final short _thriftId;
9476 private final String _fieldName;
9478 _Fields(short thriftId, String fieldName) {
9479 _thriftId = thriftId;
9480 _fieldName = fieldName;
9484 public short getThriftFieldId() {
9489 public String getFieldName() {
9494 // isset id assignments
9495 private static final int __SUCCESS_ISSET_ID = 0;
9496 private byte __isset_bitfield = 0;
9497 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9499 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9500 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
9501 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
9502 metaDataMap = Collections.unmodifiableMap(tmpMap);
9503 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addVrf_result.class, metaDataMap);
9506 public addVrf_result() {
9509 public addVrf_result(
9513 this.success = success;
9514 setSuccessIsSet(true);
9518 * Performs a deep copy on <i>other</i>.
9520 public addVrf_result(addVrf_result other) {
9521 __isset_bitfield = other.__isset_bitfield;
9522 this.success = other.success;
9526 public addVrf_result deepCopy() {
9527 return new addVrf_result(this);
9531 public void clear() {
9532 setSuccessIsSet(false);
9536 public int getSuccess() {
9537 return this.success;
9540 public addVrf_result setSuccess(int success) {
9541 this.success = success;
9542 setSuccessIsSet(true);
9546 public void unsetSuccess() {
9547 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9550 /** Returns true if field success is set (has been assigned a value) and false otherwise */
9551 public boolean isSetSuccess() {
9552 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
9555 public void setSuccessIsSet(boolean value) {
9556 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
9560 public void setFieldValue(_Fields field, Object value) {
9563 if (value == null) {
9566 setSuccess((Integer)value);
9574 public Object getFieldValue(_Fields field) {
9577 return Integer.valueOf(getSuccess());
9580 throw new IllegalStateException();
9583 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9585 public boolean isSet(_Fields field) {
9586 if (field == null) {
9587 throw new IllegalArgumentException();
9592 return isSetSuccess();
9594 throw new IllegalStateException();
9598 public boolean equals(Object that) {
9602 if (that instanceof addVrf_result) {
9603 return this.equals((addVrf_result)that);
9608 public boolean equals(addVrf_result that) {
9613 boolean this_present_success = true;
9614 boolean that_present_success = true;
9615 if (this_present_success || that_present_success) {
9616 if (!(this_present_success && that_present_success)) {
9619 if (this.success != that.success) {
9628 public int hashCode() {
9629 List<Object> list = new ArrayList<Object>();
9631 boolean present_success = true;
9632 list.add(present_success);
9633 if (present_success)
9635 return list.hashCode();
9639 public int compareTo(addVrf_result other) {
9640 if (!getClass().equals(other.getClass())) {
9641 return getClass().getName().compareTo(other.getClass().getName());
9644 int lastComparison = 0;
9646 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
9647 if (lastComparison != 0) {
9648 return lastComparison;
9650 if (isSetSuccess()) {
9651 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
9652 if (lastComparison != 0) {
9653 return lastComparison;
9660 public _Fields fieldForId(int fieldId) {
9661 return _Fields.findByThriftId(fieldId);
9665 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9666 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
9670 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9671 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
9675 public String toString() {
9676 StringBuilder sb = new StringBuilder("addVrf_result(");
9677 boolean first = true;
9679 sb.append("success:");
9680 sb.append(this.success);
9683 return sb.toString();
9686 public void validate() throws org.apache.thrift.TException {
9687 // check for required fields
9688 // check for sub-struct validity
9691 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9693 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9694 } catch (org.apache.thrift.TException te) {
9695 throw new java.io.IOException(te);
9699 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9701 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9702 __isset_bitfield = 0;
9703 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9704 } catch (org.apache.thrift.TException te) {
9705 throw new java.io.IOException(te);
9709 private static class addVrf_resultStandardSchemeFactory implements SchemeFactory {
9711 public addVrf_resultStandardScheme getScheme() {
9712 return new addVrf_resultStandardScheme();
9716 private static class addVrf_resultStandardScheme extends StandardScheme<addVrf_result> {
9719 public void read(org.apache.thrift.protocol.TProtocol iprot, addVrf_result struct) throws org.apache.thrift.TException {
9720 org.apache.thrift.protocol.TField schemeField;
9721 iprot.readStructBegin();
9724 schemeField = iprot.readFieldBegin();
9725 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
9728 switch (schemeField.id) {
9730 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
9731 struct.success = iprot.readI32();
9732 struct.setSuccessIsSet(true);
9734 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9738 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
9740 iprot.readFieldEnd();
9742 iprot.readStructEnd();
9744 // check for required fields of primitive type, which can't be checked in the validate method
9749 public void write(org.apache.thrift.protocol.TProtocol oprot, addVrf_result struct) throws org.apache.thrift.TException {
9752 oprot.writeStructBegin(STRUCT_DESC);
9753 if (struct.isSetSuccess()) {
9754 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9755 oprot.writeI32(struct.success);
9756 oprot.writeFieldEnd();
9758 oprot.writeFieldStop();
9759 oprot.writeStructEnd();
9764 private static class addVrf_resultTupleSchemeFactory implements SchemeFactory {
9766 public addVrf_resultTupleScheme getScheme() {
9767 return new addVrf_resultTupleScheme();
9771 private static class addVrf_resultTupleScheme extends TupleScheme<addVrf_result> {
9774 public void write(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9775 TTupleProtocol oprot = (TTupleProtocol) prot;
9776 BitSet optionals = new BitSet();
9777 if (struct.isSetSuccess()) {
9780 oprot.writeBitSet(optionals, 1);
9781 if (struct.isSetSuccess()) {
9782 oprot.writeI32(struct.success);
9787 public void read(org.apache.thrift.protocol.TProtocol prot, addVrf_result struct) throws org.apache.thrift.TException {
9788 TTupleProtocol iprot = (TTupleProtocol) prot;
9789 BitSet incoming = iprot.readBitSet(1);
9790 if (incoming.get(0)) {
9791 struct.success = iprot.readI32();
9792 struct.setSuccessIsSet(true);
9799 public static class delVrf_args implements org.apache.thrift.TBase<delVrf_args, delVrf_args._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_args> {
9800 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_args");
9802 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);
9803 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);
9804 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);
9806 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
9808 schemes.put(StandardScheme.class, new delVrf_argsStandardSchemeFactory());
9809 schemes.put(TupleScheme.class, new delVrf_argsTupleSchemeFactory());
9812 public String rd; // required
9813 public af_afi afi; // required
9814 public af_safi safi; // required
9816 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9817 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9819 AFI((short)2, "afi"),
9820 SAFI((short)3, "safi");
9822 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9825 for (_Fields field : EnumSet.allOf(_Fields.class)) {
9826 byName.put(field.getFieldName(), field);
9831 * Find the _Fields constant that matches fieldId, or null if its not found.
9833 public static _Fields findByThriftId(int fieldId) {
9847 * Find the _Fields constant that matches fieldId, throwing an exception
9848 * if it is not found.
9850 public static _Fields findByThriftIdOrThrow(int fieldId) {
9851 _Fields fields = findByThriftId(fieldId);
9852 if (fields == null) {
9853 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9859 * Find the _Fields constant that matches name, or null if its not found.
9861 public static _Fields findByName(String name) {
9862 return byName.get(name);
9865 private final short _thriftId;
9866 private final String _fieldName;
9868 _Fields(short thriftId, String fieldName) {
9869 _thriftId = thriftId;
9870 _fieldName = fieldName;
9874 public short getThriftFieldId() {
9879 public String getFieldName() {
9884 // isset id assignments
9885 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9887 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9888 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
9889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9890 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
9891 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
9892 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
9893 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
9894 metaDataMap = Collections.unmodifiableMap(tmpMap);
9895 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_args.class, metaDataMap);
9898 public delVrf_args() {
9913 * Performs a deep copy on <i>other</i>.
9915 public delVrf_args(delVrf_args other) {
9916 if (other.isSetRd()) {
9919 if (other.isSetAfi()) {
9920 this.afi = other.afi;
9922 if (other.isSetSafi()) {
9923 this.safi = other.safi;
9928 public delVrf_args deepCopy() {
9929 return new delVrf_args(this);
9933 public void clear() {
9939 public String getRd() {
9943 public delVrf_args setRd(String rd) {
9948 public void unsetRd() {
9952 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
9953 public boolean isSetRd() {
9954 return this.rd != null;
9957 public void setRdIsSet(boolean value) {
9963 public af_afi getAfi() {
9967 public delVrf_args setAfi(af_afi afi) {
9972 public void unsetAfi() {
9976 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
9977 public boolean isSetAfi() {
9978 return this.afi != null;
9981 public void setAfiIsSet(boolean value) {
9987 public af_safi getSafi() {
9991 public delVrf_args setSafi(af_safi safi) {
9996 public void unsetSafi() {
10000 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
10001 public boolean isSetSafi() {
10002 return this.safi != null;
10005 public void setSafiIsSet(boolean value) {
10012 public void setFieldValue(_Fields field, Object value) {
10015 if (value == null) {
10018 setRd((String)value);
10023 if (value == null) {
10026 setAfi((af_afi)value);
10031 if (value == null) {
10034 setSafi((af_safi)value);
10042 public Object getFieldValue(_Fields field) {
10054 throw new IllegalStateException();
10057 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10059 public boolean isSet(_Fields field) {
10060 if (field == null) {
10061 throw new IllegalArgumentException();
10070 return isSetSafi();
10072 throw new IllegalStateException();
10076 public boolean equals(Object that) {
10077 if (that == null) {
10080 if (that instanceof delVrf_args) {
10081 return this.equals((delVrf_args)that);
10086 public boolean equals(delVrf_args that) {
10087 if (that == null) {
10091 boolean this_present_rd = true && this.isSetRd();
10092 boolean that_present_rd = true && that.isSetRd();
10093 if (this_present_rd || that_present_rd) {
10094 if (!(this_present_rd && that_present_rd)) {
10097 if (!this.rd.equals(that.rd)) {
10102 boolean this_present_afi = true && this.isSetAfi();
10103 boolean that_present_afi = true && that.isSetAfi();
10104 if (this_present_afi || that_present_afi) {
10105 if (!(this_present_afi && that_present_afi))
10107 if (!this.afi.equals(that.afi))
10111 boolean this_present_safi = true && this.isSetSafi();
10112 boolean that_present_safi = true && that.isSetSafi();
10113 if (this_present_safi || that_present_safi) {
10114 if (!(this_present_safi && that_present_safi))
10116 if (!this.safi.equals(that.safi))
10124 public int hashCode() {
10125 List<Object> list = new ArrayList<Object>();
10126 boolean present_rd = true && (isSetRd());
10127 list.add(present_rd);
10130 return list.hashCode();
10134 public int compareTo(delVrf_args other) {
10135 if (!getClass().equals(other.getClass())) {
10136 return getClass().getName().compareTo(other.getClass().getName());
10139 int lastComparison = 0;
10141 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
10142 if (lastComparison != 0) {
10143 return lastComparison;
10146 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
10147 if (lastComparison != 0) {
10148 return lastComparison;
10151 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
10152 if (lastComparison != 0) {
10153 return lastComparison;
10156 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
10157 if (lastComparison != 0) {
10158 return lastComparison;
10161 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
10162 if (lastComparison != 0) {
10163 return lastComparison;
10166 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
10167 if (lastComparison != 0) {
10168 return lastComparison;
10175 public _Fields fieldForId(int fieldId) {
10176 return _Fields.findByThriftId(fieldId);
10180 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10181 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10185 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10186 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10190 public String toString() {
10191 StringBuilder sb = new StringBuilder("delVrf_args(");
10192 boolean first = true;
10195 if (this.rd == null) {
10198 sb.append(this.rd);
10201 if (!first) sb.append(", ");
10203 if (this.afi == null) {
10206 sb.append(this.afi);
10209 if (!first) sb.append(", ");
10210 sb.append("safi:");
10211 if (this.safi == null) {
10214 sb.append(this.safi);
10218 return sb.toString();
10221 public void validate() throws org.apache.thrift.TException {
10222 // check for required fields
10223 // check for sub-struct validity
10226 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10228 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10229 } catch (org.apache.thrift.TException te) {
10230 throw new java.io.IOException(te);
10234 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10236 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10237 } catch (org.apache.thrift.TException te) {
10238 throw new java.io.IOException(te);
10242 private static class delVrf_argsStandardSchemeFactory implements SchemeFactory {
10244 public delVrf_argsStandardScheme getScheme() {
10245 return new delVrf_argsStandardScheme();
10249 private static class delVrf_argsStandardScheme extends StandardScheme<delVrf_args> {
10252 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_args struct) throws org.apache.thrift.TException {
10253 org.apache.thrift.protocol.TField schemeField;
10254 iprot.readStructBegin();
10257 schemeField = iprot.readFieldBegin();
10258 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10261 switch (schemeField.id) {
10263 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
10264 struct.rd = iprot.readString();
10265 struct.setRdIsSet(true);
10267 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10271 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10272 struct.afi = af_afi.findByValue(iprot.readI32());
10273 struct.setAfiIsSet(true);
10275 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10279 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10280 struct.safi = af_safi.findByValue(iprot.readI32());
10281 struct.setSafiIsSet(true);
10283 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10287 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10289 iprot.readFieldEnd();
10291 iprot.readStructEnd();
10293 // check for required fields of primitive type, which can't be checked in the validate method
10298 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_args struct) throws org.apache.thrift.TException {
10301 oprot.writeStructBegin(STRUCT_DESC);
10302 if (struct.rd != null) {
10303 oprot.writeFieldBegin(RD_FIELD_DESC);
10304 oprot.writeString(struct.rd);
10305 oprot.writeFieldEnd();
10307 if (struct.afi != null) {
10308 oprot.writeFieldBegin(AFI_FIELD_DESC);
10309 oprot.writeI32(struct.afi.getValue());
10310 oprot.writeFieldEnd();
10312 if (struct.safi != null) {
10313 oprot.writeFieldBegin(SAFI_FIELD_DESC);
10314 oprot.writeI32(struct.safi.getValue());
10315 oprot.writeFieldEnd();
10317 oprot.writeFieldStop();
10318 oprot.writeStructEnd();
10323 private static class delVrf_argsTupleSchemeFactory implements SchemeFactory {
10325 public delVrf_argsTupleScheme getScheme() {
10326 return new delVrf_argsTupleScheme();
10330 private static class delVrf_argsTupleScheme extends TupleScheme<delVrf_args> {
10333 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
10334 TTupleProtocol oprot = (TTupleProtocol) prot;
10335 BitSet optionals = new BitSet();
10336 if (struct.isSetRd()) {
10339 if (struct.isSetAfi()) {
10342 if (struct.isSetSafi()) {
10345 oprot.writeBitSet(optionals, 3);
10346 if (struct.isSetRd()) {
10347 oprot.writeString(struct.rd);
10349 if (struct.isSetAfi()) {
10350 oprot.writeI32(struct.afi.getValue());
10352 if (struct.isSetSafi()) {
10353 oprot.writeI32(struct.safi.getValue());
10358 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_args struct) throws org.apache.thrift.TException {
10359 TTupleProtocol iprot = (TTupleProtocol) prot;
10360 BitSet incoming = iprot.readBitSet(3);
10361 if (incoming.get(0)) {
10362 struct.rd = iprot.readString();
10363 struct.setRdIsSet(true);
10365 if (incoming.get(1)) {
10366 struct.afi = af_afi.findByValue(iprot.readI32());
10367 struct.setAfiIsSet(true);
10369 if (incoming.get(2)) {
10370 struct.safi = af_safi.findByValue(iprot.readI32());
10371 struct.setSafiIsSet(true);
10378 public static class delVrf_result implements org.apache.thrift.TBase<delVrf_result, delVrf_result._Fields>, java.io.Serializable, Cloneable, Comparable<delVrf_result> {
10379 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("delVrf_result");
10381 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);
10383 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10385 schemes.put(StandardScheme.class, new delVrf_resultStandardSchemeFactory());
10386 schemes.put(TupleScheme.class, new delVrf_resultTupleSchemeFactory());
10389 public int success; // required
10391 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10392 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10393 SUCCESS((short)0, "success");
10395 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10398 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10399 byName.put(field.getFieldName(), field);
10404 * Find the _Fields constant that matches fieldId, or null if its not found.
10406 public static _Fields findByThriftId(int fieldId) {
10416 * Find the _Fields constant that matches fieldId, throwing an exception
10417 * if it is not found.
10419 public static _Fields findByThriftIdOrThrow(int fieldId) {
10420 _Fields fields = findByThriftId(fieldId);
10421 if (fields == null) {
10422 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10428 * Find the _Fields constant that matches name, or null if its not found.
10430 public static _Fields findByName(String name) {
10431 return byName.get(name);
10434 private final short _thriftId;
10435 private final String _fieldName;
10437 _Fields(short thriftId, String fieldName) {
10438 _thriftId = thriftId;
10439 _fieldName = fieldName;
10443 public short getThriftFieldId() {
10448 public String getFieldName() {
10453 // isset id assignments
10454 private static final int __SUCCESS_ISSET_ID = 0;
10455 private byte __isset_bitfield = 0;
10456 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10458 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10459 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
10460 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10461 metaDataMap = Collections.unmodifiableMap(tmpMap);
10462 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(delVrf_result.class, metaDataMap);
10465 public delVrf_result() {
10468 public delVrf_result(
10472 this.success = success;
10473 setSuccessIsSet(true);
10477 * Performs a deep copy on <i>other</i>.
10479 public delVrf_result(delVrf_result other) {
10480 __isset_bitfield = other.__isset_bitfield;
10481 this.success = other.success;
10485 public delVrf_result deepCopy() {
10486 return new delVrf_result(this);
10490 public void clear() {
10491 setSuccessIsSet(false);
10495 public int getSuccess() {
10496 return this.success;
10499 public delVrf_result setSuccess(int success) {
10500 this.success = success;
10501 setSuccessIsSet(true);
10505 public void unsetSuccess() {
10506 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10509 /** Returns true if field success is set (has been assigned a value) and false otherwise */
10510 public boolean isSetSuccess() {
10511 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
10514 public void setSuccessIsSet(boolean value) {
10515 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
10519 public void setFieldValue(_Fields field, Object value) {
10522 if (value == null) {
10525 setSuccess((Integer)value);
10533 public Object getFieldValue(_Fields field) {
10536 return Integer.valueOf(getSuccess());
10539 throw new IllegalStateException();
10542 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10544 public boolean isSet(_Fields field) {
10545 if (field == null) {
10546 throw new IllegalArgumentException();
10551 return isSetSuccess();
10553 throw new IllegalStateException();
10557 public boolean equals(Object that) {
10558 if (that == null) {
10561 if (that instanceof delVrf_result) {
10562 return this.equals((delVrf_result)that);
10567 public boolean equals(delVrf_result that) {
10568 if (that == null) {
10572 boolean this_present_success = true;
10573 boolean that_present_success = true;
10574 if (this_present_success || that_present_success) {
10575 if (!(this_present_success && that_present_success)) {
10578 if (this.success != that.success) {
10587 public int hashCode() {
10588 List<Object> list = new ArrayList<Object>();
10590 boolean present_success = true;
10591 list.add(present_success);
10592 if (present_success)
10594 return list.hashCode();
10598 public int compareTo(delVrf_result other) {
10599 if (!getClass().equals(other.getClass())) {
10600 return getClass().getName().compareTo(other.getClass().getName());
10603 int lastComparison = 0;
10605 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
10606 if (lastComparison != 0) {
10607 return lastComparison;
10609 if (isSetSuccess()) {
10610 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
10611 if (lastComparison != 0) {
10612 return lastComparison;
10619 public _Fields fieldForId(int fieldId) {
10620 return _Fields.findByThriftId(fieldId);
10624 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10625 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
10629 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10630 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
10634 public String toString() {
10635 StringBuilder sb = new StringBuilder("delVrf_result(");
10636 boolean first = true;
10638 sb.append("success:");
10639 sb.append(this.success);
10642 return sb.toString();
10645 public void validate() throws org.apache.thrift.TException {
10646 // check for required fields
10647 // check for sub-struct validity
10650 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10652 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10653 } catch (org.apache.thrift.TException te) {
10654 throw new java.io.IOException(te);
10658 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10660 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10661 __isset_bitfield = 0;
10662 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10663 } catch (org.apache.thrift.TException te) {
10664 throw new java.io.IOException(te);
10668 private static class delVrf_resultStandardSchemeFactory implements SchemeFactory {
10670 public delVrf_resultStandardScheme getScheme() {
10671 return new delVrf_resultStandardScheme();
10675 private static class delVrf_resultStandardScheme extends StandardScheme<delVrf_result> {
10678 public void read(org.apache.thrift.protocol.TProtocol iprot, delVrf_result struct) throws org.apache.thrift.TException {
10679 org.apache.thrift.protocol.TField schemeField;
10680 iprot.readStructBegin();
10683 schemeField = iprot.readFieldBegin();
10684 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
10687 switch (schemeField.id) {
10689 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
10690 struct.success = iprot.readI32();
10691 struct.setSuccessIsSet(true);
10693 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10697 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
10699 iprot.readFieldEnd();
10701 iprot.readStructEnd();
10703 // check for required fields of primitive type, which can't be checked in the validate method
10708 public void write(org.apache.thrift.protocol.TProtocol oprot, delVrf_result struct) throws org.apache.thrift.TException {
10711 oprot.writeStructBegin(STRUCT_DESC);
10712 if (struct.isSetSuccess()) {
10713 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10714 oprot.writeI32(struct.success);
10715 oprot.writeFieldEnd();
10717 oprot.writeFieldStop();
10718 oprot.writeStructEnd();
10723 private static class delVrf_resultTupleSchemeFactory implements SchemeFactory {
10725 public delVrf_resultTupleScheme getScheme() {
10726 return new delVrf_resultTupleScheme();
10730 private static class delVrf_resultTupleScheme extends TupleScheme<delVrf_result> {
10733 public void write(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10734 TTupleProtocol oprot = (TTupleProtocol) prot;
10735 BitSet optionals = new BitSet();
10736 if (struct.isSetSuccess()) {
10739 oprot.writeBitSet(optionals, 1);
10740 if (struct.isSetSuccess()) {
10741 oprot.writeI32(struct.success);
10746 public void read(org.apache.thrift.protocol.TProtocol prot, delVrf_result struct) throws org.apache.thrift.TException {
10747 TTupleProtocol iprot = (TTupleProtocol) prot;
10748 BitSet incoming = iprot.readBitSet(1);
10749 if (incoming.get(0)) {
10750 struct.success = iprot.readI32();
10751 struct.setSuccessIsSet(true);
10758 public static class pushRoute_args implements org.apache.thrift.TBase<pushRoute_args, pushRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_args> {
10759 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_args");
10761 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);
10762 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);
10763 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);
10764 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);
10765 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);
10766 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);
10767 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);
10768 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);
10769 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);
10770 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);
10771 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);
10772 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);
10774 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
10776 schemes.put(StandardScheme.class, new pushRoute_argsStandardSchemeFactory());
10777 schemes.put(TupleScheme.class, new pushRoute_argsTupleSchemeFactory());
10782 * @see protocol_type
10784 public protocol_type p_type; // required
10785 public String prefix; // required
10786 public String nexthop; // required
10787 public String rd; // required
10788 public int ethtag; // required
10789 public String esi; // required
10790 public String macaddress; // required
10791 public int l3label; // required
10792 public int l2label; // required
10797 public encap_type enc_type; // required
10798 public String routermac; // required
10803 public af_afi afi; // required
10805 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10806 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10809 * @see protocol_type
10811 P_TYPE((short)1, "p_type"),
10812 PREFIX((short)2, "prefix"),
10813 NEXTHOP((short)3, "nexthop"),
10814 RD((short)4, "rd"),
10815 ETHTAG((short)5, "ethtag"),
10816 ESI((short)6, "esi"),
10817 MACADDRESS((short)7, "macaddress"),
10818 L3LABEL((short)8, "l3label"),
10819 L2LABEL((short)9, "l2label"),
10824 ENC_TYPE((short)10, "enc_type"),
10825 ROUTERMAC((short)11, "routermac"),
10830 AFI((short)12, "afi");
10832 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10835 for (_Fields field : EnumSet.allOf(_Fields.class)) {
10836 byName.put(field.getFieldName(), field);
10841 * Find the _Fields constant that matches fieldId, or null if its not found.
10843 public static _Fields findByThriftId(int fieldId) {
10857 case 7: // MACADDRESS
10863 case 10: // ENC_TYPE
10865 case 11: // ROUTERMAC
10875 * Find the _Fields constant that matches fieldId, throwing an exception
10876 * if it is not found.
10878 public static _Fields findByThriftIdOrThrow(int fieldId) {
10879 _Fields fields = findByThriftId(fieldId);
10880 if (fields == null) {
10881 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10887 * Find the _Fields constant that matches name, or null if its not found.
10889 public static _Fields findByName(String name) {
10890 return byName.get(name);
10893 private final short _thriftId;
10894 private final String _fieldName;
10896 _Fields(short thriftId, String fieldName) {
10897 _thriftId = thriftId;
10898 _fieldName = fieldName;
10902 public short getThriftFieldId() {
10907 public String getFieldName() {
10912 // isset id assignments
10913 private static final int __ETHTAG_ISSET_ID = 0;
10914 private static final int __L3LABEL_ISSET_ID = 1;
10915 private static final int __L2LABEL_ISSET_ID = 2;
10916 private byte __isset_bitfield = 0;
10917 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10919 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10920 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10921 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
10922 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
10923 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10924 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
10925 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10926 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
10927 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10928 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
10929 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10930 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10931 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10932 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
10933 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10934 tmpMap.put(_Fields.L3LABEL, new org.apache.thrift.meta_data.FieldMetaData("l3label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10935 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10936 tmpMap.put(_Fields.L2LABEL, new org.apache.thrift.meta_data.FieldMetaData("l2label", org.apache.thrift.TFieldRequirementType.DEFAULT,
10937 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
10938 tmpMap.put(_Fields.ENC_TYPE, new org.apache.thrift.meta_data.FieldMetaData("enc_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
10939 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, encap_type.class)));
10940 tmpMap.put(_Fields.ROUTERMAC, new org.apache.thrift.meta_data.FieldMetaData("routermac", org.apache.thrift.TFieldRequirementType.DEFAULT,
10941 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10942 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
10943 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
10944 metaDataMap = Collections.unmodifiableMap(tmpMap);
10945 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_args.class, metaDataMap);
10948 public pushRoute_args() {
10951 public pushRoute_args(
10952 protocol_type p_type,
10961 encap_type enc_type,
10966 this.p_type = p_type;
10967 this.prefix = prefix;
10968 this.nexthop = nexthop;
10970 this.ethtag = ethtag;
10971 setEthtagIsSet(true);
10973 this.macaddress = macaddress;
10974 this.l3label = l3label;
10975 setL3labelIsSet(true);
10976 this.l2label = l2label;
10977 setL2labelIsSet(true);
10978 this.enc_type = enc_type;
10979 this.routermac = routermac;
10984 * Performs a deep copy on <i>other</i>.
10986 public pushRoute_args(pushRoute_args other) {
10987 __isset_bitfield = other.__isset_bitfield;
10988 if (other.isSetP_type()) {
10989 this.p_type = other.p_type;
10991 if (other.isSetPrefix()) {
10992 this.prefix = other.prefix;
10994 if (other.isSetNexthop()) {
10995 this.nexthop = other.nexthop;
10997 if (other.isSetRd()) {
10998 this.rd = other.rd;
11000 this.ethtag = other.ethtag;
11001 if (other.isSetEsi()) {
11002 this.esi = other.esi;
11004 if (other.isSetMacaddress()) {
11005 this.macaddress = other.macaddress;
11007 this.l3label = other.l3label;
11008 this.l2label = other.l2label;
11009 if (other.isSetEnc_type()) {
11010 this.enc_type = other.enc_type;
11012 if (other.isSetRoutermac()) {
11013 this.routermac = other.routermac;
11015 if (other.isSetAfi()) {
11016 this.afi = other.afi;
11021 public pushRoute_args deepCopy() {
11022 return new pushRoute_args(this);
11026 public void clear() {
11027 this.p_type = null;
11028 this.prefix = null;
11029 this.nexthop = null;
11031 setEthtagIsSet(false);
11034 this.macaddress = null;
11035 setL3labelIsSet(false);
11037 setL2labelIsSet(false);
11039 this.enc_type = null;
11040 this.routermac = null;
11046 * @see protocol_type
11048 public protocol_type getP_type() {
11049 return this.p_type;
11054 * @see protocol_type
11056 public pushRoute_args setP_type(protocol_type p_type) {
11057 this.p_type = p_type;
11061 public void unsetP_type() {
11062 this.p_type = null;
11065 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
11066 public boolean isSetP_type() {
11067 return this.p_type != null;
11070 public void setP_typeIsSet(boolean value) {
11072 this.p_type = null;
11076 public String getPrefix() {
11077 return this.prefix;
11080 public pushRoute_args setPrefix(String prefix) {
11081 this.prefix = prefix;
11085 public void unsetPrefix() {
11086 this.prefix = null;
11089 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
11090 public boolean isSetPrefix() {
11091 return this.prefix != null;
11094 public void setPrefixIsSet(boolean value) {
11096 this.prefix = null;
11100 public String getNexthop() {
11101 return this.nexthop;
11104 public pushRoute_args setNexthop(String nexthop) {
11105 this.nexthop = nexthop;
11109 public void unsetNexthop() {
11110 this.nexthop = null;
11113 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
11114 public boolean isSetNexthop() {
11115 return this.nexthop != null;
11118 public void setNexthopIsSet(boolean value) {
11120 this.nexthop = null;
11124 public String getRd() {
11128 public pushRoute_args setRd(String rd) {
11133 public void unsetRd() {
11137 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
11138 public boolean isSetRd() {
11139 return this.rd != null;
11142 public void setRdIsSet(boolean value) {
11148 public int getEthtag() {
11149 return this.ethtag;
11152 public pushRoute_args setEthtag(int ethtag) {
11153 this.ethtag = ethtag;
11154 setEthtagIsSet(true);
11158 public void unsetEthtag() {
11159 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11162 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
11163 public boolean isSetEthtag() {
11164 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
11167 public void setEthtagIsSet(boolean value) {
11168 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
11171 public String getEsi() {
11175 public pushRoute_args setEsi(String esi) {
11180 public void unsetEsi() {
11184 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
11185 public boolean isSetEsi() {
11186 return this.esi != null;
11189 public void setEsiIsSet(boolean value) {
11195 public String getMacaddress() {
11196 return this.macaddress;
11199 public pushRoute_args setMacaddress(String macaddress) {
11200 this.macaddress = macaddress;
11204 public void unsetMacaddress() {
11205 this.macaddress = null;
11208 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
11209 public boolean isSetMacaddress() {
11210 return this.macaddress != null;
11213 public void setMacaddressIsSet(boolean value) {
11215 this.macaddress = null;
11219 public int getL3label() {
11220 return this.l3label;
11223 public pushRoute_args setL3label(int l3label) {
11224 this.l3label = l3label;
11225 setL3labelIsSet(true);
11229 public void unsetL3label() {
11230 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L3LABEL_ISSET_ID);
11233 /** Returns true if field l3label is set (has been assigned a value) and false otherwise */
11234 public boolean isSetL3label() {
11235 return EncodingUtils.testBit(__isset_bitfield, __L3LABEL_ISSET_ID);
11238 public void setL3labelIsSet(boolean value) {
11239 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L3LABEL_ISSET_ID, value);
11242 public int getL2label() {
11243 return this.l2label;
11246 public pushRoute_args setL2label(int l2label) {
11247 this.l2label = l2label;
11248 setL2labelIsSet(true);
11252 public void unsetL2label() {
11253 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __L2LABEL_ISSET_ID);
11256 /** Returns true if field l2label is set (has been assigned a value) and false otherwise */
11257 public boolean isSetL2label() {
11258 return EncodingUtils.testBit(__isset_bitfield, __L2LABEL_ISSET_ID);
11261 public void setL2labelIsSet(boolean value) {
11262 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __L2LABEL_ISSET_ID, value);
11269 public encap_type getEnc_type() {
11270 return this.enc_type;
11277 public pushRoute_args setEnc_type(encap_type enc_type) {
11278 this.enc_type = enc_type;
11282 public void unsetEnc_type() {
11283 this.enc_type = null;
11286 /** Returns true if field enc_type is set (has been assigned a value) and false otherwise */
11287 public boolean isSetEnc_type() {
11288 return this.enc_type != null;
11291 public void setEnc_typeIsSet(boolean value) {
11293 this.enc_type = null;
11297 public String getRoutermac() {
11298 return this.routermac;
11301 public pushRoute_args setRoutermac(String routermac) {
11302 this.routermac = routermac;
11306 public void unsetRoutermac() {
11307 this.routermac = null;
11310 /** Returns true if field routermac is set (has been assigned a value) and false otherwise */
11311 public boolean isSetRoutermac() {
11312 return this.routermac != null;
11315 public void setRoutermacIsSet(boolean value) {
11317 this.routermac = null;
11325 public af_afi getAfi() {
11333 public pushRoute_args setAfi(af_afi afi) {
11338 public void unsetAfi() {
11342 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
11343 public boolean isSetAfi() {
11344 return this.afi != null;
11347 public void setAfiIsSet(boolean value) {
11354 public void setFieldValue(_Fields field, Object value) {
11357 if (value == null) {
11360 setP_type((protocol_type)value);
11365 if (value == null) {
11368 setPrefix((String)value);
11373 if (value == null) {
11376 setNexthop((String)value);
11381 if (value == null) {
11384 setRd((String)value);
11389 if (value == null) {
11392 setEthtag((Integer)value);
11397 if (value == null) {
11400 setEsi((String)value);
11405 if (value == null) {
11408 setMacaddress((String)value);
11413 if (value == null) {
11416 setL3label((Integer)value);
11421 if (value == null) {
11424 setL2label((Integer)value);
11429 if (value == null) {
11432 setEnc_type((encap_type)value);
11437 if (value == null) {
11440 setRoutermac((String)value);
11445 if (value == null) {
11448 setAfi((af_afi)value);
11456 public Object getFieldValue(_Fields field) {
11459 return getP_type();
11462 return getPrefix();
11465 return getNexthop();
11471 return Integer.valueOf(getEthtag());
11477 return getMacaddress();
11480 return Integer.valueOf(getL3label());
11483 return Integer.valueOf(getL2label());
11486 return getEnc_type();
11489 return getRoutermac();
11495 throw new IllegalStateException();
11498 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11500 public boolean isSet(_Fields field) {
11501 if (field == null) {
11502 throw new IllegalArgumentException();
11507 return isSetP_type();
11509 return isSetPrefix();
11511 return isSetNexthop();
11515 return isSetEthtag();
11519 return isSetMacaddress();
11521 return isSetL3label();
11523 return isSetL2label();
11525 return isSetEnc_type();
11527 return isSetRoutermac();
11531 throw new IllegalStateException();
11535 public boolean equals(Object that) {
11536 if (that == null) {
11539 if (that instanceof pushRoute_args) {
11540 return this.equals((pushRoute_args)that);
11545 public boolean equals(pushRoute_args that) {
11546 if (that == null) {
11550 boolean this_present_p_type = true && this.isSetP_type();
11551 boolean that_present_p_type = true && that.isSetP_type();
11552 if (this_present_p_type || that_present_p_type) {
11553 if (!(this_present_p_type && that_present_p_type)) {
11556 if (!this.p_type.equals(that.p_type)) {
11561 boolean this_present_prefix = true && this.isSetPrefix();
11562 boolean that_present_prefix = true && that.isSetPrefix();
11563 if (this_present_prefix || that_present_prefix) {
11564 if (!(this_present_prefix && that_present_prefix)) {
11567 if (!this.prefix.equals(that.prefix)) {
11572 boolean this_present_nexthop = true && this.isSetNexthop();
11573 boolean that_present_nexthop = true && that.isSetNexthop();
11574 if (this_present_nexthop || that_present_nexthop) {
11575 if (!(this_present_nexthop && that_present_nexthop)) {
11578 if (!this.nexthop.equals(that.nexthop)) {
11583 boolean this_present_rd = true && this.isSetRd();
11584 boolean that_present_rd = true && that.isSetRd();
11585 if (this_present_rd || that_present_rd) {
11586 if (!(this_present_rd && that_present_rd)) {
11589 if (!this.rd.equals(that.rd)) {
11594 boolean this_present_ethtag = true;
11595 boolean that_present_ethtag = true;
11596 if (this_present_ethtag || that_present_ethtag) {
11597 if (!(this_present_ethtag && that_present_ethtag)) {
11600 if (this.ethtag != that.ethtag) {
11605 boolean this_present_esi = true && this.isSetEsi();
11606 boolean that_present_esi = true && that.isSetEsi();
11607 if (this_present_esi || that_present_esi) {
11608 if (!(this_present_esi && that_present_esi)) {
11611 if (!this.esi.equals(that.esi)) {
11616 boolean this_present_macaddress = true && this.isSetMacaddress();
11617 boolean that_present_macaddress = true && that.isSetMacaddress();
11618 if (this_present_macaddress || that_present_macaddress) {
11619 if (!(this_present_macaddress && that_present_macaddress)) {
11622 if (!this.macaddress.equals(that.macaddress)) {
11627 boolean this_present_l3label = true;
11628 boolean that_present_l3label = true;
11629 if (this_present_l3label || that_present_l3label) {
11630 if (!(this_present_l3label && that_present_l3label)) {
11633 if (this.l3label != that.l3label) {
11638 boolean this_present_l2label = true;
11639 boolean that_present_l2label = true;
11640 if (this_present_l2label || that_present_l2label) {
11641 if (!(this_present_l2label && that_present_l2label)) {
11644 if (this.l2label != that.l2label) {
11649 boolean this_present_enc_type = true && this.isSetEnc_type();
11650 boolean that_present_enc_type = true && that.isSetEnc_type();
11651 if (this_present_enc_type || that_present_enc_type) {
11652 if (!(this_present_enc_type && that_present_enc_type)) {
11655 if (!this.enc_type.equals(that.enc_type)) {
11660 boolean this_present_routermac = true && this.isSetRoutermac();
11661 boolean that_present_routermac = true && that.isSetRoutermac();
11662 if (this_present_routermac || that_present_routermac) {
11663 if (!(this_present_routermac && that_present_routermac)) {
11666 if (!this.routermac.equals(that.routermac)) {
11671 boolean this_present_afi = true && this.isSetAfi();
11672 boolean that_present_afi = true && that.isSetAfi();
11673 if (this_present_afi || that_present_afi) {
11674 if (!(this_present_afi && that_present_afi)) {
11677 if (!this.afi.equals(that.afi)) {
11686 public int hashCode() {
11687 List<Object> list = new ArrayList<Object>();
11688 boolean present_p_type = true && (isSetP_type());
11689 list.add(present_p_type);
11690 if (present_p_type)
11691 list.add(p_type.getValue());
11692 boolean present_prefix = true && (isSetPrefix());
11693 list.add(present_prefix);
11694 if (present_prefix)
11696 boolean present_nexthop = true && (isSetNexthop());
11697 list.add(present_nexthop);
11698 if (present_nexthop)
11700 boolean present_rd = true && (isSetRd());
11701 list.add(present_rd);
11704 boolean present_ethtag = true;
11705 list.add(present_ethtag);
11706 if (present_ethtag)
11708 boolean present_esi = true && (isSetEsi());
11709 list.add(present_esi);
11712 boolean present_macaddress = true && (isSetMacaddress());
11713 list.add(present_macaddress);
11714 if (present_macaddress)
11715 list.add(macaddress);
11716 boolean present_l3label = true;
11717 list.add(present_l3label);
11718 if (present_l3label)
11720 boolean present_l2label = true;
11721 list.add(present_l2label);
11722 if (present_l2label)
11724 boolean present_enc_type = true && (isSetEnc_type());
11725 list.add(present_enc_type);
11726 if (present_enc_type)
11727 list.add(enc_type.getValue());
11728 boolean present_routermac = true && (isSetRoutermac());
11729 list.add(present_routermac);
11730 if (present_routermac)
11731 list.add(routermac);
11732 boolean present_afi = true && (isSetAfi());
11733 list.add(present_afi);
11735 list.add(afi.getValue());
11736 return list.hashCode();
11740 public int compareTo(pushRoute_args other) {
11741 if (!getClass().equals(other.getClass())) {
11742 return getClass().getName().compareTo(other.getClass().getName());
11745 int lastComparison = 0;
11747 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
11748 if (lastComparison != 0) {
11749 return lastComparison;
11751 if (isSetP_type()) {
11752 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
11753 if (lastComparison != 0) {
11754 return lastComparison;
11757 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
11758 if (lastComparison != 0) {
11759 return lastComparison;
11761 if (isSetPrefix()) {
11762 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
11763 if (lastComparison != 0) {
11764 return lastComparison;
11767 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
11768 if (lastComparison != 0) {
11769 return lastComparison;
11771 if (isSetNexthop()) {
11772 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
11773 if (lastComparison != 0) {
11774 return lastComparison;
11777 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
11778 if (lastComparison != 0) {
11779 return lastComparison;
11782 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
11783 if (lastComparison != 0) {
11784 return lastComparison;
11787 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
11788 if (lastComparison != 0) {
11789 return lastComparison;
11791 if (isSetEthtag()) {
11792 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
11793 if (lastComparison != 0) {
11794 return lastComparison;
11797 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
11798 if (lastComparison != 0) {
11799 return lastComparison;
11802 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
11803 if (lastComparison != 0) {
11804 return lastComparison;
11807 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
11808 if (lastComparison != 0) {
11809 return lastComparison;
11811 if (isSetMacaddress()) {
11812 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
11813 if (lastComparison != 0) {
11814 return lastComparison;
11817 lastComparison = Boolean.valueOf(isSetL3label()).compareTo(other.isSetL3label());
11818 if (lastComparison != 0) {
11819 return lastComparison;
11821 if (isSetL3label()) {
11822 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l3label, other.l3label);
11823 if (lastComparison != 0) {
11824 return lastComparison;
11827 lastComparison = Boolean.valueOf(isSetL2label()).compareTo(other.isSetL2label());
11828 if (lastComparison != 0) {
11829 return lastComparison;
11831 if (isSetL2label()) {
11832 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.l2label, other.l2label);
11833 if (lastComparison != 0) {
11834 return lastComparison;
11837 lastComparison = Boolean.valueOf(isSetEnc_type()).compareTo(other.isSetEnc_type());
11838 if (lastComparison != 0) {
11839 return lastComparison;
11841 if (isSetEnc_type()) {
11842 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enc_type, other.enc_type);
11843 if (lastComparison != 0) {
11844 return lastComparison;
11847 lastComparison = Boolean.valueOf(isSetRoutermac()).compareTo(other.isSetRoutermac());
11848 if (lastComparison != 0) {
11849 return lastComparison;
11851 if (isSetRoutermac()) {
11852 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.routermac, other.routermac);
11853 if (lastComparison != 0) {
11854 return lastComparison;
11857 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
11858 if (lastComparison != 0) {
11859 return lastComparison;
11862 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
11863 if (lastComparison != 0) {
11864 return lastComparison;
11871 public _Fields fieldForId(int fieldId) {
11872 return _Fields.findByThriftId(fieldId);
11876 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11877 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
11881 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11882 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
11886 public String toString() {
11887 StringBuilder sb = new StringBuilder("pushRoute_args(");
11888 boolean first = true;
11890 sb.append("p_type:");
11891 if (this.p_type == null) {
11894 sb.append(this.p_type);
11900 sb.append("prefix:");
11901 if (this.prefix == null) {
11904 sb.append(this.prefix);
11910 sb.append("nexthop:");
11911 if (this.nexthop == null) {
11914 sb.append(this.nexthop);
11921 if (this.rd == null) {
11924 sb.append(this.rd);
11930 sb.append("ethtag:");
11931 sb.append(this.ethtag);
11937 if (this.esi == null) {
11940 sb.append(this.esi);
11946 sb.append("macaddress:");
11947 if (this.macaddress == null) {
11950 sb.append(this.macaddress);
11956 sb.append("l3label:");
11957 sb.append(this.l3label);
11962 sb.append("l2label:");
11963 sb.append(this.l2label);
11968 sb.append("enc_type:");
11969 if (this.enc_type == null) {
11972 sb.append(this.enc_type);
11978 sb.append("routermac:");
11979 if (this.routermac == null) {
11982 sb.append(this.routermac);
11989 if (this.afi == null) {
11992 sb.append(this.afi);
11996 return sb.toString();
11999 public void validate() throws org.apache.thrift.TException {
12000 // check for required fields
12001 // check for sub-struct validity
12004 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12006 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12007 } catch (org.apache.thrift.TException te) {
12008 throw new java.io.IOException(te);
12012 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12014 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12015 __isset_bitfield = 0;
12016 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12017 } catch (org.apache.thrift.TException te) {
12018 throw new java.io.IOException(te);
12022 private static class pushRoute_argsStandardSchemeFactory implements SchemeFactory {
12024 public pushRoute_argsStandardScheme getScheme() {
12025 return new pushRoute_argsStandardScheme();
12029 private static class pushRoute_argsStandardScheme extends StandardScheme<pushRoute_args> {
12032 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_args struct) throws org.apache.thrift.TException {
12033 org.apache.thrift.protocol.TField schemeField;
12034 iprot.readStructBegin();
12037 schemeField = iprot.readFieldBegin();
12038 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12041 switch (schemeField.id) {
12043 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12044 struct.p_type = protocol_type.findByValue(iprot.readI32());
12045 struct.setP_typeIsSet(true);
12047 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12051 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12052 struct.prefix = iprot.readString();
12053 struct.setPrefixIsSet(true);
12055 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12059 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12060 struct.nexthop = iprot.readString();
12061 struct.setNexthopIsSet(true);
12063 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12067 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12068 struct.rd = iprot.readString();
12069 struct.setRdIsSet(true);
12071 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12075 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12076 struct.ethtag = iprot.readI32();
12077 struct.setEthtagIsSet(true);
12079 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12083 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12084 struct.esi = iprot.readString();
12085 struct.setEsiIsSet(true);
12087 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12090 case 7: // MACADDRESS
12091 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12092 struct.macaddress = iprot.readString();
12093 struct.setMacaddressIsSet(true);
12095 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12099 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12100 struct.l3label = iprot.readI32();
12101 struct.setL3labelIsSet(true);
12103 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12107 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12108 struct.l2label = iprot.readI32();
12109 struct.setL2labelIsSet(true);
12111 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12114 case 10: // ENC_TYPE
12115 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12116 struct.enc_type = encap_type.findByValue(iprot.readI32());
12117 struct.setEnc_typeIsSet(true);
12119 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12122 case 11: // ROUTERMAC
12123 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
12124 struct.routermac = iprot.readString();
12125 struct.setRoutermacIsSet(true);
12127 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12131 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12132 struct.afi = af_afi.findByValue(iprot.readI32());
12133 struct.setAfiIsSet(true);
12135 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12139 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12141 iprot.readFieldEnd();
12143 iprot.readStructEnd();
12145 // check for required fields of primitive type, which can't be checked in the validate method
12150 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_args struct) throws org.apache.thrift.TException {
12153 oprot.writeStructBegin(STRUCT_DESC);
12154 if (struct.p_type != null) {
12155 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
12156 oprot.writeI32(struct.p_type.getValue());
12157 oprot.writeFieldEnd();
12159 if (struct.prefix != null) {
12160 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
12161 oprot.writeString(struct.prefix);
12162 oprot.writeFieldEnd();
12164 if (struct.nexthop != null) {
12165 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
12166 oprot.writeString(struct.nexthop);
12167 oprot.writeFieldEnd();
12169 if (struct.rd != null) {
12170 oprot.writeFieldBegin(RD_FIELD_DESC);
12171 oprot.writeString(struct.rd);
12172 oprot.writeFieldEnd();
12174 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
12175 oprot.writeI32(struct.ethtag);
12176 oprot.writeFieldEnd();
12177 if (struct.esi != null) {
12178 oprot.writeFieldBegin(ESI_FIELD_DESC);
12179 oprot.writeString(struct.esi);
12180 oprot.writeFieldEnd();
12182 if (struct.macaddress != null) {
12183 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
12184 oprot.writeString(struct.macaddress);
12185 oprot.writeFieldEnd();
12187 oprot.writeFieldBegin(L3LABEL_FIELD_DESC);
12188 oprot.writeI32(struct.l3label);
12189 oprot.writeFieldEnd();
12190 oprot.writeFieldBegin(L2LABEL_FIELD_DESC);
12191 oprot.writeI32(struct.l2label);
12192 oprot.writeFieldEnd();
12193 if (struct.enc_type != null) {
12194 oprot.writeFieldBegin(ENC_TYPE_FIELD_DESC);
12195 oprot.writeI32(struct.enc_type.getValue());
12196 oprot.writeFieldEnd();
12198 if (struct.routermac != null) {
12199 oprot.writeFieldBegin(ROUTERMAC_FIELD_DESC);
12200 oprot.writeString(struct.routermac);
12201 oprot.writeFieldEnd();
12203 if (struct.afi != null) {
12204 oprot.writeFieldBegin(AFI_FIELD_DESC);
12205 oprot.writeI32(struct.afi.getValue());
12206 oprot.writeFieldEnd();
12208 oprot.writeFieldStop();
12209 oprot.writeStructEnd();
12214 private static class pushRoute_argsTupleSchemeFactory implements SchemeFactory {
12216 public pushRoute_argsTupleScheme getScheme() {
12217 return new pushRoute_argsTupleScheme();
12221 private static class pushRoute_argsTupleScheme extends TupleScheme<pushRoute_args> {
12224 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
12225 TTupleProtocol oprot = (TTupleProtocol) prot;
12226 BitSet optionals = new BitSet();
12227 if (struct.isSetP_type()) {
12230 if (struct.isSetPrefix()) {
12233 if (struct.isSetNexthop()) {
12236 if (struct.isSetRd()) {
12239 if (struct.isSetEthtag()) {
12242 if (struct.isSetEsi()) {
12245 if (struct.isSetMacaddress()) {
12248 if (struct.isSetL3label()) {
12251 if (struct.isSetL2label()) {
12254 if (struct.isSetEnc_type()) {
12257 if (struct.isSetRoutermac()) {
12260 if (struct.isSetAfi()) {
12263 oprot.writeBitSet(optionals, 12);
12264 if (struct.isSetP_type()) {
12265 oprot.writeI32(struct.p_type.getValue());
12267 if (struct.isSetPrefix()) {
12268 oprot.writeString(struct.prefix);
12270 if (struct.isSetNexthop()) {
12271 oprot.writeString(struct.nexthop);
12273 if (struct.isSetRd()) {
12274 oprot.writeString(struct.rd);
12276 if (struct.isSetEthtag()) {
12277 oprot.writeI32(struct.ethtag);
12279 if (struct.isSetEsi()) {
12280 oprot.writeString(struct.esi);
12282 if (struct.isSetMacaddress()) {
12283 oprot.writeString(struct.macaddress);
12285 if (struct.isSetL3label()) {
12286 oprot.writeI32(struct.l3label);
12288 if (struct.isSetL2label()) {
12289 oprot.writeI32(struct.l2label);
12291 if (struct.isSetEnc_type()) {
12292 oprot.writeI32(struct.enc_type.getValue());
12294 if (struct.isSetRoutermac()) {
12295 oprot.writeString(struct.routermac);
12297 if (struct.isSetAfi()) {
12298 oprot.writeI32(struct.afi.getValue());
12303 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_args struct) throws org.apache.thrift.TException {
12304 TTupleProtocol iprot = (TTupleProtocol) prot;
12305 BitSet incoming = iprot.readBitSet(12);
12306 if (incoming.get(0)) {
12307 struct.p_type = protocol_type.findByValue(iprot.readI32());
12308 struct.setP_typeIsSet(true);
12310 if (incoming.get(1)) {
12311 struct.prefix = iprot.readString();
12312 struct.setPrefixIsSet(true);
12314 if (incoming.get(2)) {
12315 struct.nexthop = iprot.readString();
12316 struct.setNexthopIsSet(true);
12318 if (incoming.get(3)) {
12319 struct.rd = iprot.readString();
12320 struct.setRdIsSet(true);
12322 if (incoming.get(4)) {
12323 struct.ethtag = iprot.readI32();
12324 struct.setEthtagIsSet(true);
12326 if (incoming.get(5)) {
12327 struct.esi = iprot.readString();
12328 struct.setEsiIsSet(true);
12330 if (incoming.get(6)) {
12331 struct.macaddress = iprot.readString();
12332 struct.setMacaddressIsSet(true);
12334 if (incoming.get(7)) {
12335 struct.l3label = iprot.readI32();
12336 struct.setL3labelIsSet(true);
12338 if (incoming.get(8)) {
12339 struct.l2label = iprot.readI32();
12340 struct.setL2labelIsSet(true);
12342 if (incoming.get(9)) {
12343 struct.enc_type = encap_type.findByValue(iprot.readI32());
12344 struct.setEnc_typeIsSet(true);
12346 if (incoming.get(10)) {
12347 struct.routermac = iprot.readString();
12348 struct.setRoutermacIsSet(true);
12350 if (incoming.get(11)) {
12351 struct.afi = af_afi.findByValue(iprot.readI32());
12352 struct.setAfiIsSet(true);
12359 public static class pushRoute_result implements org.apache.thrift.TBase<pushRoute_result, pushRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<pushRoute_result> {
12360 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("pushRoute_result");
12362 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);
12364 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12366 schemes.put(StandardScheme.class, new pushRoute_resultStandardSchemeFactory());
12367 schemes.put(TupleScheme.class, new pushRoute_resultTupleSchemeFactory());
12370 public int success; // required
12372 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12373 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12374 SUCCESS((short)0, "success");
12376 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12379 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12380 byName.put(field.getFieldName(), field);
12385 * Find the _Fields constant that matches fieldId, or null if its not found.
12387 public static _Fields findByThriftId(int fieldId) {
12397 * Find the _Fields constant that matches fieldId, throwing an exception
12398 * if it is not found.
12400 public static _Fields findByThriftIdOrThrow(int fieldId) {
12401 _Fields fields = findByThriftId(fieldId);
12402 if (fields == null) {
12403 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12409 * Find the _Fields constant that matches name, or null if its not found.
12411 public static _Fields findByName(String name) {
12412 return byName.get(name);
12415 private final short _thriftId;
12416 private final String _fieldName;
12418 _Fields(short thriftId, String fieldName) {
12419 _thriftId = thriftId;
12420 _fieldName = fieldName;
12424 public short getThriftFieldId() {
12429 public String getFieldName() {
12434 // isset id assignments
12435 private static final int __SUCCESS_ISSET_ID = 0;
12436 private byte __isset_bitfield = 0;
12437 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12439 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12440 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
12441 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12442 metaDataMap = Collections.unmodifiableMap(tmpMap);
12443 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(pushRoute_result.class, metaDataMap);
12446 public pushRoute_result() {
12449 public pushRoute_result(
12453 this.success = success;
12454 setSuccessIsSet(true);
12458 * Performs a deep copy on <i>other</i>.
12460 public pushRoute_result(pushRoute_result other) {
12461 __isset_bitfield = other.__isset_bitfield;
12462 this.success = other.success;
12466 public pushRoute_result deepCopy() {
12467 return new pushRoute_result(this);
12471 public void clear() {
12472 setSuccessIsSet(false);
12476 public int getSuccess() {
12477 return this.success;
12480 public pushRoute_result setSuccess(int success) {
12481 this.success = success;
12482 setSuccessIsSet(true);
12486 public void unsetSuccess() {
12487 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12490 /** Returns true if field success is set (has been assigned a value) and false otherwise */
12491 public boolean isSetSuccess() {
12492 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
12495 public void setSuccessIsSet(boolean value) {
12496 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
12500 public void setFieldValue(_Fields field, Object value) {
12503 if (value == null) {
12506 setSuccess((Integer)value);
12514 public Object getFieldValue(_Fields field) {
12517 return Integer.valueOf(getSuccess());
12520 throw new IllegalStateException();
12523 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12525 public boolean isSet(_Fields field) {
12526 if (field == null) {
12527 throw new IllegalArgumentException();
12532 return isSetSuccess();
12534 throw new IllegalStateException();
12538 public boolean equals(Object that) {
12539 if (that == null) {
12542 if (that instanceof pushRoute_result) {
12543 return this.equals((pushRoute_result)that);
12548 public boolean equals(pushRoute_result that) {
12549 if (that == null) {
12553 boolean this_present_success = true;
12554 boolean that_present_success = true;
12555 if (this_present_success || that_present_success) {
12556 if (!(this_present_success && that_present_success)) {
12559 if (this.success != that.success) {
12568 public int hashCode() {
12569 List<Object> list = new ArrayList<Object>();
12571 boolean present_success = true;
12572 list.add(present_success);
12573 if (present_success)
12575 return list.hashCode();
12579 public int compareTo(pushRoute_result other) {
12580 if (!getClass().equals(other.getClass())) {
12581 return getClass().getName().compareTo(other.getClass().getName());
12584 int lastComparison = 0;
12586 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
12587 if (lastComparison != 0) {
12588 return lastComparison;
12590 if (isSetSuccess()) {
12591 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
12592 if (lastComparison != 0) {
12593 return lastComparison;
12600 public _Fields fieldForId(int fieldId) {
12601 return _Fields.findByThriftId(fieldId);
12605 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12606 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
12610 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12611 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
12615 public String toString() {
12616 StringBuilder sb = new StringBuilder("pushRoute_result(");
12617 boolean first = true;
12619 sb.append("success:");
12620 sb.append(this.success);
12623 return sb.toString();
12626 public void validate() throws org.apache.thrift.TException {
12627 // check for required fields
12628 // check for sub-struct validity
12631 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12633 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12634 } catch (org.apache.thrift.TException te) {
12635 throw new java.io.IOException(te);
12639 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12641 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12642 __isset_bitfield = 0;
12643 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12644 } catch (org.apache.thrift.TException te) {
12645 throw new java.io.IOException(te);
12649 private static class pushRoute_resultStandardSchemeFactory implements SchemeFactory {
12651 public pushRoute_resultStandardScheme getScheme() {
12652 return new pushRoute_resultStandardScheme();
12656 private static class pushRoute_resultStandardScheme extends StandardScheme<pushRoute_result> {
12659 public void read(org.apache.thrift.protocol.TProtocol iprot, pushRoute_result struct) throws org.apache.thrift.TException {
12660 org.apache.thrift.protocol.TField schemeField;
12661 iprot.readStructBegin();
12664 schemeField = iprot.readFieldBegin();
12665 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
12668 switch (schemeField.id) {
12670 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
12671 struct.success = iprot.readI32();
12672 struct.setSuccessIsSet(true);
12674 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12678 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
12680 iprot.readFieldEnd();
12682 iprot.readStructEnd();
12684 // check for required fields of primitive type, which can't be checked in the validate method
12689 public void write(org.apache.thrift.protocol.TProtocol oprot, pushRoute_result struct) throws org.apache.thrift.TException {
12692 oprot.writeStructBegin(STRUCT_DESC);
12693 if (struct.isSetSuccess()) {
12694 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12695 oprot.writeI32(struct.success);
12696 oprot.writeFieldEnd();
12698 oprot.writeFieldStop();
12699 oprot.writeStructEnd();
12704 private static class pushRoute_resultTupleSchemeFactory implements SchemeFactory {
12706 public pushRoute_resultTupleScheme getScheme() {
12707 return new pushRoute_resultTupleScheme();
12711 private static class pushRoute_resultTupleScheme extends TupleScheme<pushRoute_result> {
12714 public void write(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12715 TTupleProtocol oprot = (TTupleProtocol) prot;
12716 BitSet optionals = new BitSet();
12717 if (struct.isSetSuccess()) {
12720 oprot.writeBitSet(optionals, 1);
12721 if (struct.isSetSuccess()) {
12722 oprot.writeI32(struct.success);
12727 public void read(org.apache.thrift.protocol.TProtocol prot, pushRoute_result struct) throws org.apache.thrift.TException {
12728 TTupleProtocol iprot = (TTupleProtocol) prot;
12729 BitSet incoming = iprot.readBitSet(1);
12730 if (incoming.get(0)) {
12731 struct.success = iprot.readI32();
12732 struct.setSuccessIsSet(true);
12739 public static class withdrawRoute_args implements org.apache.thrift.TBase<withdrawRoute_args, withdrawRoute_args._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_args> {
12740 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_args");
12742 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);
12743 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);
12744 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);
12745 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);
12746 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);
12747 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);
12748 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);
12750 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
12752 schemes.put(StandardScheme.class, new withdrawRoute_argsStandardSchemeFactory());
12753 schemes.put(TupleScheme.class, new withdrawRoute_argsTupleSchemeFactory());
12758 * @see protocol_type
12760 public protocol_type p_type; // required
12761 public String prefix; // required
12762 public String rd; // required
12763 public int ethtag; // required
12764 public String esi; // required
12765 public String macaddress; // required
12770 public af_afi afi; // required
12772 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12773 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12776 * @see protocol_type
12778 P_TYPE((short)1, "p_type"),
12779 PREFIX((short)2, "prefix"),
12780 RD((short)3, "rd"),
12781 ETHTAG((short)4, "ethtag"),
12782 ESI((short)5, "esi"),
12783 MACADDRESS((short)6, "macaddress"),
12788 AFI((short)7, "afi");
12790 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12793 for (_Fields field : EnumSet.allOf(_Fields.class)) {
12794 byName.put(field.getFieldName(), field);
12799 * Find the _Fields constant that matches fieldId, or null if its not found.
12801 public static _Fields findByThriftId(int fieldId) {
12813 case 6: // MACADDRESS
12823 * Find the _Fields constant that matches fieldId, throwing an exception
12824 * if it is not found.
12826 public static _Fields findByThriftIdOrThrow(int fieldId) {
12827 _Fields fields = findByThriftId(fieldId);
12828 if (fields == null) {
12829 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12835 * Find the _Fields constant that matches name, or null if its not found.
12837 public static _Fields findByName(String name) {
12838 return byName.get(name);
12841 private final short _thriftId;
12842 private final String _fieldName;
12844 _Fields(short thriftId, String fieldName) {
12845 _thriftId = thriftId;
12846 _fieldName = fieldName;
12850 public short getThriftFieldId() {
12855 public String getFieldName() {
12860 // isset id assignments
12861 private static final int __ETHTAG_ISSET_ID = 0;
12862 private byte __isset_bitfield = 0;
12863 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12865 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12866 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
12867 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
12868 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
12869 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12870 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
12871 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12872 tmpMap.put(_Fields.ETHTAG, new org.apache.thrift.meta_data.FieldMetaData("ethtag", org.apache.thrift.TFieldRequirementType.DEFAULT,
12873 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12874 tmpMap.put(_Fields.ESI, new org.apache.thrift.meta_data.FieldMetaData("esi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12875 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12876 tmpMap.put(_Fields.MACADDRESS, new org.apache.thrift.meta_data.FieldMetaData("macaddress", org.apache.thrift.TFieldRequirementType.DEFAULT,
12877 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12878 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
12879 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
12880 metaDataMap = Collections.unmodifiableMap(tmpMap);
12881 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_args.class, metaDataMap);
12884 public withdrawRoute_args() {
12887 public withdrawRoute_args(
12888 protocol_type p_type,
12897 this.p_type = p_type;
12898 this.prefix = prefix;
12900 this.ethtag = ethtag;
12901 setEthtagIsSet(true);
12903 this.macaddress = macaddress;
12908 * Performs a deep copy on <i>other</i>.
12910 public withdrawRoute_args(withdrawRoute_args other) {
12911 __isset_bitfield = other.__isset_bitfield;
12912 if (other.isSetP_type()) {
12913 this.p_type = other.p_type;
12915 if (other.isSetPrefix()) {
12916 this.prefix = other.prefix;
12918 if (other.isSetRd()) {
12919 this.rd = other.rd;
12921 this.ethtag = other.ethtag;
12922 if (other.isSetEsi()) {
12923 this.esi = other.esi;
12925 if (other.isSetMacaddress()) {
12926 this.macaddress = other.macaddress;
12928 if (other.isSetAfi()) {
12929 this.afi = other.afi;
12934 public withdrawRoute_args deepCopy() {
12935 return new withdrawRoute_args(this);
12939 public void clear() {
12940 this.p_type = null;
12941 this.prefix = null;
12943 setEthtagIsSet(false);
12946 this.macaddress = null;
12952 * @see protocol_type
12954 public protocol_type getP_type() {
12955 return this.p_type;
12960 * @see protocol_type
12962 public withdrawRoute_args setP_type(protocol_type p_type) {
12963 this.p_type = p_type;
12967 public void unsetP_type() {
12968 this.p_type = null;
12971 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
12972 public boolean isSetP_type() {
12973 return this.p_type != null;
12976 public void setP_typeIsSet(boolean value) {
12978 this.p_type = null;
12982 public String getPrefix() {
12983 return this.prefix;
12986 public withdrawRoute_args setPrefix(String prefix) {
12987 this.prefix = prefix;
12991 public void unsetPrefix() {
12992 this.prefix = null;
12995 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
12996 public boolean isSetPrefix() {
12997 return this.prefix != null;
13000 public void setPrefixIsSet(boolean value) {
13002 this.prefix = null;
13006 public String getRd() {
13010 public withdrawRoute_args setRd(String rd) {
13015 public void unsetRd() {
13019 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
13020 public boolean isSetRd() {
13021 return this.rd != null;
13024 public void setRdIsSet(boolean value) {
13030 public int getEthtag() {
13031 return this.ethtag;
13034 public withdrawRoute_args setEthtag(int ethtag) {
13035 this.ethtag = ethtag;
13036 setEthtagIsSet(true);
13040 public void unsetEthtag() {
13041 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __ETHTAG_ISSET_ID);
13044 /** Returns true if field ethtag is set (has been assigned a value) and false otherwise */
13045 public boolean isSetEthtag() {
13046 return EncodingUtils.testBit(__isset_bitfield, __ETHTAG_ISSET_ID);
13049 public void setEthtagIsSet(boolean value) {
13050 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __ETHTAG_ISSET_ID, value);
13053 public String getEsi() {
13057 public withdrawRoute_args setEsi(String esi) {
13062 public void unsetEsi() {
13066 /** Returns true if field esi is set (has been assigned a value) and false otherwise */
13067 public boolean isSetEsi() {
13068 return this.esi != null;
13071 public void setEsiIsSet(boolean value) {
13077 public String getMacaddress() {
13078 return this.macaddress;
13081 public withdrawRoute_args setMacaddress(String macaddress) {
13082 this.macaddress = macaddress;
13086 public void unsetMacaddress() {
13087 this.macaddress = null;
13090 /** Returns true if field macaddress is set (has been assigned a value) and false otherwise */
13091 public boolean isSetMacaddress() {
13092 return this.macaddress != null;
13095 public void setMacaddressIsSet(boolean value) {
13097 this.macaddress = null;
13105 public af_afi getAfi() {
13113 public withdrawRoute_args setAfi(af_afi afi) {
13118 public void unsetAfi() {
13122 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
13123 public boolean isSetAfi() {
13124 return this.afi != null;
13127 public void setAfiIsSet(boolean value) {
13134 public void setFieldValue(_Fields field, Object value) {
13137 if (value == null) {
13140 setP_type((protocol_type)value);
13145 if (value == null) {
13148 setPrefix((String)value);
13153 if (value == null) {
13156 setRd((String)value);
13161 if (value == null) {
13164 setEthtag((Integer)value);
13169 if (value == null) {
13172 setEsi((String)value);
13177 if (value == null) {
13180 setMacaddress((String)value);
13185 if (value == null) {
13188 setAfi((af_afi)value);
13196 public Object getFieldValue(_Fields field) {
13199 return getP_type();
13202 return getPrefix();
13208 return Integer.valueOf(getEthtag());
13214 return getMacaddress();
13220 throw new IllegalStateException();
13223 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13225 public boolean isSet(_Fields field) {
13226 if (field == null) {
13227 throw new IllegalArgumentException();
13232 return isSetP_type();
13234 return isSetPrefix();
13238 return isSetEthtag();
13242 return isSetMacaddress();
13246 throw new IllegalStateException();
13250 public boolean equals(Object that) {
13251 if (that == null) {
13254 if (that instanceof withdrawRoute_args) {
13255 return this.equals((withdrawRoute_args)that);
13260 public boolean equals(withdrawRoute_args that) {
13261 if (that == null) {
13265 boolean this_present_p_type = true && this.isSetP_type();
13266 boolean that_present_p_type = true && that.isSetP_type();
13267 if (this_present_p_type || that_present_p_type) {
13268 if (!(this_present_p_type && that_present_p_type)) {
13271 if (!this.p_type.equals(that.p_type)) {
13276 boolean this_present_prefix = true && this.isSetPrefix();
13277 boolean that_present_prefix = true && that.isSetPrefix();
13278 if (this_present_prefix || that_present_prefix) {
13279 if (!(this_present_prefix && that_present_prefix)) {
13282 if (!this.prefix.equals(that.prefix)) {
13287 boolean this_present_rd = true && this.isSetRd();
13288 boolean that_present_rd = true && that.isSetRd();
13289 if (this_present_rd || that_present_rd) {
13290 if (!(this_present_rd && that_present_rd)) {
13293 if (!this.rd.equals(that.rd)) {
13298 boolean this_present_ethtag = true;
13299 boolean that_present_ethtag = true;
13300 if (this_present_ethtag || that_present_ethtag) {
13301 if (!(this_present_ethtag && that_present_ethtag)) {
13304 if (this.ethtag != that.ethtag) {
13309 boolean this_present_esi = true && this.isSetEsi();
13310 boolean that_present_esi = true && that.isSetEsi();
13311 if (this_present_esi || that_present_esi) {
13312 if (!(this_present_esi && that_present_esi)) {
13315 if (!this.esi.equals(that.esi)) {
13320 boolean this_present_macaddress = true && this.isSetMacaddress();
13321 boolean that_present_macaddress = true && that.isSetMacaddress();
13322 if (this_present_macaddress || that_present_macaddress) {
13323 if (!(this_present_macaddress && that_present_macaddress)) {
13326 if (!this.macaddress.equals(that.macaddress)) {
13331 boolean this_present_afi = true && this.isSetAfi();
13332 boolean that_present_afi = true && that.isSetAfi();
13333 if (this_present_afi || that_present_afi) {
13334 if (!(this_present_afi && that_present_afi)) {
13337 if (!this.afi.equals(that.afi)) {
13346 public int hashCode() {
13347 List<Object> list = new ArrayList<Object>();
13348 boolean present_p_type = true && (isSetP_type());
13349 list.add(present_p_type);
13350 if (present_p_type)
13351 list.add(p_type.getValue());
13352 boolean present_prefix = true && (isSetPrefix());
13353 list.add(present_prefix);
13354 if (present_prefix)
13356 boolean present_rd = true && (isSetRd());
13357 list.add(present_rd);
13360 boolean present_ethtag = true;
13361 list.add(present_ethtag);
13362 if (present_ethtag)
13364 boolean present_esi = true && (isSetEsi());
13365 list.add(present_esi);
13368 boolean present_macaddress = true && (isSetMacaddress());
13369 list.add(present_macaddress);
13370 if (present_macaddress)
13371 list.add(macaddress);
13372 boolean present_afi = true && (isSetAfi());
13373 list.add(present_afi);
13375 list.add(afi.getValue());
13376 return list.hashCode();
13380 public int compareTo(withdrawRoute_args other) {
13381 if (!getClass().equals(other.getClass())) {
13382 return getClass().getName().compareTo(other.getClass().getName());
13385 int lastComparison = 0;
13387 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
13388 if (lastComparison != 0) {
13389 return lastComparison;
13391 if (isSetP_type()) {
13392 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
13393 if (lastComparison != 0) {
13394 return lastComparison;
13397 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
13398 if (lastComparison != 0) {
13399 return lastComparison;
13401 if (isSetPrefix()) {
13402 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
13403 if (lastComparison != 0) {
13404 return lastComparison;
13407 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
13408 if (lastComparison != 0) {
13409 return lastComparison;
13412 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
13413 if (lastComparison != 0) {
13414 return lastComparison;
13417 lastComparison = Boolean.valueOf(isSetEthtag()).compareTo(other.isSetEthtag());
13418 if (lastComparison != 0) {
13419 return lastComparison;
13421 if (isSetEthtag()) {
13422 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ethtag, other.ethtag);
13423 if (lastComparison != 0) {
13424 return lastComparison;
13427 lastComparison = Boolean.valueOf(isSetEsi()).compareTo(other.isSetEsi());
13428 if (lastComparison != 0) {
13429 return lastComparison;
13432 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.esi, other.esi);
13433 if (lastComparison != 0) {
13434 return lastComparison;
13437 lastComparison = Boolean.valueOf(isSetMacaddress()).compareTo(other.isSetMacaddress());
13438 if (lastComparison != 0) {
13439 return lastComparison;
13441 if (isSetMacaddress()) {
13442 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.macaddress, other.macaddress);
13443 if (lastComparison != 0) {
13444 return lastComparison;
13447 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
13448 if (lastComparison != 0) {
13449 return lastComparison;
13452 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
13453 if (lastComparison != 0) {
13454 return lastComparison;
13461 public _Fields fieldForId(int fieldId) {
13462 return _Fields.findByThriftId(fieldId);
13466 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13467 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
13471 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13472 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
13476 public String toString() {
13477 StringBuilder sb = new StringBuilder("withdrawRoute_args(");
13478 boolean first = true;
13480 sb.append("p_type:");
13481 if (this.p_type == null) {
13484 sb.append(this.p_type);
13490 sb.append("prefix:");
13491 if (this.prefix == null) {
13494 sb.append(this.prefix);
13501 if (this.rd == null) {
13504 sb.append(this.rd);
13510 sb.append("ethtag:");
13511 sb.append(this.ethtag);
13517 if (this.esi == null) {
13520 sb.append(this.esi);
13526 sb.append("macaddress:");
13527 if (this.macaddress == null) {
13530 sb.append(this.macaddress);
13537 if (this.afi == null) {
13540 sb.append(this.afi);
13544 return sb.toString();
13547 public void validate() throws org.apache.thrift.TException {
13548 // check for required fields
13549 // check for sub-struct validity
13552 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13554 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13555 } catch (org.apache.thrift.TException te) {
13556 throw new java.io.IOException(te);
13560 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13562 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13563 __isset_bitfield = 0;
13564 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13565 } catch (org.apache.thrift.TException te) {
13566 throw new java.io.IOException(te);
13570 private static class withdrawRoute_argsStandardSchemeFactory implements SchemeFactory {
13572 public withdrawRoute_argsStandardScheme getScheme() {
13573 return new withdrawRoute_argsStandardScheme();
13577 private static class withdrawRoute_argsStandardScheme extends StandardScheme<withdrawRoute_args> {
13580 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13581 org.apache.thrift.protocol.TField schemeField;
13582 iprot.readStructBegin();
13585 schemeField = iprot.readFieldBegin();
13586 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
13589 switch (schemeField.id) {
13591 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13592 struct.p_type = protocol_type.findByValue(iprot.readI32());
13593 struct.setP_typeIsSet(true);
13595 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13599 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13600 struct.prefix = iprot.readString();
13601 struct.setPrefixIsSet(true);
13603 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13607 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13608 struct.rd = iprot.readString();
13609 struct.setRdIsSet(true);
13611 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13615 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13616 struct.ethtag = iprot.readI32();
13617 struct.setEthtagIsSet(true);
13619 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13623 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13624 struct.esi = iprot.readString();
13625 struct.setEsiIsSet(true);
13627 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13630 case 6: // MACADDRESS
13631 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
13632 struct.macaddress = iprot.readString();
13633 struct.setMacaddressIsSet(true);
13635 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13639 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
13640 struct.afi = af_afi.findByValue(iprot.readI32());
13641 struct.setAfiIsSet(true);
13643 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13647 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
13649 iprot.readFieldEnd();
13651 iprot.readStructEnd();
13653 // check for required fields of primitive type, which can't be checked in the validate method
13658 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13661 oprot.writeStructBegin(STRUCT_DESC);
13662 if (struct.p_type != null) {
13663 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
13664 oprot.writeI32(struct.p_type.getValue());
13665 oprot.writeFieldEnd();
13667 if (struct.prefix != null) {
13668 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
13669 oprot.writeString(struct.prefix);
13670 oprot.writeFieldEnd();
13672 if (struct.rd != null) {
13673 oprot.writeFieldBegin(RD_FIELD_DESC);
13674 oprot.writeString(struct.rd);
13675 oprot.writeFieldEnd();
13677 oprot.writeFieldBegin(ETHTAG_FIELD_DESC);
13678 oprot.writeI32(struct.ethtag);
13679 oprot.writeFieldEnd();
13680 if (struct.esi != null) {
13681 oprot.writeFieldBegin(ESI_FIELD_DESC);
13682 oprot.writeString(struct.esi);
13683 oprot.writeFieldEnd();
13685 if (struct.macaddress != null) {
13686 oprot.writeFieldBegin(MACADDRESS_FIELD_DESC);
13687 oprot.writeString(struct.macaddress);
13688 oprot.writeFieldEnd();
13690 if (struct.afi != null) {
13691 oprot.writeFieldBegin(AFI_FIELD_DESC);
13692 oprot.writeI32(struct.afi.getValue());
13693 oprot.writeFieldEnd();
13695 oprot.writeFieldStop();
13696 oprot.writeStructEnd();
13701 private static class withdrawRoute_argsTupleSchemeFactory implements SchemeFactory {
13703 public withdrawRoute_argsTupleScheme getScheme() {
13704 return new withdrawRoute_argsTupleScheme();
13708 private static class withdrawRoute_argsTupleScheme extends TupleScheme<withdrawRoute_args> {
13711 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13712 TTupleProtocol oprot = (TTupleProtocol) prot;
13713 BitSet optionals = new BitSet();
13714 if (struct.isSetP_type()) {
13717 if (struct.isSetPrefix()) {
13720 if (struct.isSetRd()) {
13723 if (struct.isSetEthtag()) {
13726 if (struct.isSetEsi()) {
13729 if (struct.isSetMacaddress()) {
13732 if (struct.isSetAfi()) {
13735 oprot.writeBitSet(optionals, 7);
13736 if (struct.isSetP_type()) {
13737 oprot.writeI32(struct.p_type.getValue());
13739 if (struct.isSetPrefix()) {
13740 oprot.writeString(struct.prefix);
13742 if (struct.isSetRd()) {
13743 oprot.writeString(struct.rd);
13745 if (struct.isSetEthtag()) {
13746 oprot.writeI32(struct.ethtag);
13748 if (struct.isSetEsi()) {
13749 oprot.writeString(struct.esi);
13751 if (struct.isSetMacaddress()) {
13752 oprot.writeString(struct.macaddress);
13754 if (struct.isSetAfi()) {
13755 oprot.writeI32(struct.afi.getValue());
13760 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_args struct) throws org.apache.thrift.TException {
13761 TTupleProtocol iprot = (TTupleProtocol) prot;
13762 BitSet incoming = iprot.readBitSet(7);
13763 if (incoming.get(0)) {
13764 struct.p_type = protocol_type.findByValue(iprot.readI32());
13765 struct.setP_typeIsSet(true);
13767 if (incoming.get(1)) {
13768 struct.prefix = iprot.readString();
13769 struct.setPrefixIsSet(true);
13771 if (incoming.get(2)) {
13772 struct.rd = iprot.readString();
13773 struct.setRdIsSet(true);
13775 if (incoming.get(3)) {
13776 struct.ethtag = iprot.readI32();
13777 struct.setEthtagIsSet(true);
13779 if (incoming.get(4)) {
13780 struct.esi = iprot.readString();
13781 struct.setEsiIsSet(true);
13783 if (incoming.get(5)) {
13784 struct.macaddress = iprot.readString();
13785 struct.setMacaddressIsSet(true);
13787 if (incoming.get(6)) {
13788 struct.afi = af_afi.findByValue(iprot.readI32());
13789 struct.setAfiIsSet(true);
13796 public static class withdrawRoute_result implements org.apache.thrift.TBase<withdrawRoute_result, withdrawRoute_result._Fields>, java.io.Serializable, Cloneable, Comparable<withdrawRoute_result> {
13797 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("withdrawRoute_result");
13799 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);
13801 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
13803 schemes.put(StandardScheme.class, new withdrawRoute_resultStandardSchemeFactory());
13804 schemes.put(TupleScheme.class, new withdrawRoute_resultTupleSchemeFactory());
13807 public int success; // required
13809 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13810 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13811 SUCCESS((short)0, "success");
13813 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13816 for (_Fields field : EnumSet.allOf(_Fields.class)) {
13817 byName.put(field.getFieldName(), field);
13822 * Find the _Fields constant that matches fieldId, or null if its not found.
13824 public static _Fields findByThriftId(int fieldId) {
13834 * Find the _Fields constant that matches fieldId, throwing an exception
13835 * if it is not found.
13837 public static _Fields findByThriftIdOrThrow(int fieldId) {
13838 _Fields fields = findByThriftId(fieldId);
13839 if (fields == null) {
13840 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13846 * Find the _Fields constant that matches name, or null if its not found.
13848 public static _Fields findByName(String name) {
13849 return byName.get(name);
13852 private final short _thriftId;
13853 private final String _fieldName;
13855 _Fields(short thriftId, String fieldName) {
13856 _thriftId = thriftId;
13857 _fieldName = fieldName;
13861 public short getThriftFieldId() {
13866 public String getFieldName() {
13871 // isset id assignments
13872 private static final int __SUCCESS_ISSET_ID = 0;
13873 private byte __isset_bitfield = 0;
13874 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13876 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13877 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
13878 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
13879 metaDataMap = Collections.unmodifiableMap(tmpMap);
13880 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(withdrawRoute_result.class, metaDataMap);
13883 public withdrawRoute_result() {
13886 public withdrawRoute_result(
13890 this.success = success;
13891 setSuccessIsSet(true);
13895 * Performs a deep copy on <i>other</i>.
13897 public withdrawRoute_result(withdrawRoute_result other) {
13898 __isset_bitfield = other.__isset_bitfield;
13899 this.success = other.success;
13903 public withdrawRoute_result deepCopy() {
13904 return new withdrawRoute_result(this);
13908 public void clear() {
13909 setSuccessIsSet(false);
13913 public int getSuccess() {
13914 return this.success;
13917 public withdrawRoute_result setSuccess(int success) {
13918 this.success = success;
13919 setSuccessIsSet(true);
13923 public void unsetSuccess() {
13924 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13927 /** Returns true if field success is set (has been assigned a value) and false otherwise */
13928 public boolean isSetSuccess() {
13929 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
13932 public void setSuccessIsSet(boolean value) {
13933 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
13937 public void setFieldValue(_Fields field, Object value) {
13940 if (value == null) {
13943 setSuccess((Integer)value);
13951 public Object getFieldValue(_Fields field) {
13954 return Integer.valueOf(getSuccess());
13957 throw new IllegalStateException();
13960 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13962 public boolean isSet(_Fields field) {
13963 if (field == null) {
13964 throw new IllegalArgumentException();
13969 return isSetSuccess();
13971 throw new IllegalStateException();
13975 public boolean equals(Object that) {
13976 if (that == null) {
13979 if (that instanceof withdrawRoute_result) {
13980 return this.equals((withdrawRoute_result)that);
13985 public boolean equals(withdrawRoute_result that) {
13986 if (that == null) {
13990 boolean this_present_success = true;
13991 boolean that_present_success = true;
13992 if (this_present_success || that_present_success) {
13993 if (!(this_present_success && that_present_success)) {
13996 if (this.success != that.success) {
14005 public int hashCode() {
14006 List<Object> list = new ArrayList<Object>();
14008 boolean present_success = true;
14009 list.add(present_success);
14010 if (present_success)
14012 return list.hashCode();
14016 public int compareTo(withdrawRoute_result other) {
14017 if (!getClass().equals(other.getClass())) {
14018 return getClass().getName().compareTo(other.getClass().getName());
14021 int lastComparison = 0;
14023 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14024 if (lastComparison != 0) {
14025 return lastComparison;
14027 if (isSetSuccess()) {
14028 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14029 if (lastComparison != 0) {
14030 return lastComparison;
14037 public _Fields fieldForId(int fieldId) {
14038 return _Fields.findByThriftId(fieldId);
14042 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14043 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14047 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14048 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14052 public String toString() {
14053 StringBuilder sb = new StringBuilder("withdrawRoute_result(");
14054 boolean first = true;
14056 sb.append("success:");
14057 sb.append(this.success);
14060 return sb.toString();
14063 public void validate() throws org.apache.thrift.TException {
14064 // check for required fields
14065 // check for sub-struct validity
14068 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14070 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14071 } catch (org.apache.thrift.TException te) {
14072 throw new java.io.IOException(te);
14076 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14078 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14079 __isset_bitfield = 0;
14080 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14081 } catch (org.apache.thrift.TException te) {
14082 throw new java.io.IOException(te);
14086 private static class withdrawRoute_resultStandardSchemeFactory implements SchemeFactory {
14088 public withdrawRoute_resultStandardScheme getScheme() {
14089 return new withdrawRoute_resultStandardScheme();
14093 private static class withdrawRoute_resultStandardScheme extends StandardScheme<withdrawRoute_result> {
14096 public void read(org.apache.thrift.protocol.TProtocol iprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14097 org.apache.thrift.protocol.TField schemeField;
14098 iprot.readStructBegin();
14101 schemeField = iprot.readFieldBegin();
14102 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14105 switch (schemeField.id) {
14107 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14108 struct.success = iprot.readI32();
14109 struct.setSuccessIsSet(true);
14111 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14115 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14117 iprot.readFieldEnd();
14119 iprot.readStructEnd();
14121 // check for required fields of primitive type, which can't be checked in the validate method
14126 public void write(org.apache.thrift.protocol.TProtocol oprot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14129 oprot.writeStructBegin(STRUCT_DESC);
14130 if (struct.isSetSuccess()) {
14131 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14132 oprot.writeI32(struct.success);
14133 oprot.writeFieldEnd();
14135 oprot.writeFieldStop();
14136 oprot.writeStructEnd();
14141 private static class withdrawRoute_resultTupleSchemeFactory implements SchemeFactory {
14143 public withdrawRoute_resultTupleScheme getScheme() {
14144 return new withdrawRoute_resultTupleScheme();
14148 private static class withdrawRoute_resultTupleScheme extends TupleScheme<withdrawRoute_result> {
14151 public void write(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14152 TTupleProtocol oprot = (TTupleProtocol) prot;
14153 BitSet optionals = new BitSet();
14154 if (struct.isSetSuccess()) {
14157 oprot.writeBitSet(optionals, 1);
14158 if (struct.isSetSuccess()) {
14159 oprot.writeI32(struct.success);
14164 public void read(org.apache.thrift.protocol.TProtocol prot, withdrawRoute_result struct) throws org.apache.thrift.TException {
14165 TTupleProtocol iprot = (TTupleProtocol) prot;
14166 BitSet incoming = iprot.readBitSet(1);
14167 if (incoming.get(0)) {
14168 struct.success = iprot.readI32();
14169 struct.setSuccessIsSet(true);
14176 public static class setEbgpMultihop_args implements org.apache.thrift.TBase<setEbgpMultihop_args, setEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_args> {
14177 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_args");
14179 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);
14180 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);
14182 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14184 schemes.put(StandardScheme.class, new setEbgpMultihop_argsStandardSchemeFactory());
14185 schemes.put(TupleScheme.class, new setEbgpMultihop_argsTupleSchemeFactory());
14188 public String peerIp; // required
14189 public int nHops; // required
14191 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14192 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14193 PEER_IP((short)1, "peerIp"),
14194 N_HOPS((short)2, "nHops");
14196 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14199 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14200 byName.put(field.getFieldName(), field);
14205 * Find the _Fields constant that matches fieldId, or null if its not found.
14207 public static _Fields findByThriftId(int fieldId) {
14219 * Find the _Fields constant that matches fieldId, throwing an exception
14220 * if it is not found.
14222 public static _Fields findByThriftIdOrThrow(int fieldId) {
14223 _Fields fields = findByThriftId(fieldId);
14224 if (fields == null) {
14225 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14231 * Find the _Fields constant that matches name, or null if its not found.
14233 public static _Fields findByName(String name) {
14234 return byName.get(name);
14237 private final short _thriftId;
14238 private final String _fieldName;
14240 _Fields(short thriftId, String fieldName) {
14241 _thriftId = thriftId;
14242 _fieldName = fieldName;
14246 public short getThriftFieldId() {
14251 public String getFieldName() {
14256 // isset id assignments
14257 private static final int __NHOPS_ISSET_ID = 0;
14258 private byte __isset_bitfield = 0;
14259 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14261 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14262 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
14263 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14264 tmpMap.put(_Fields.N_HOPS, new org.apache.thrift.meta_data.FieldMetaData("nHops", org.apache.thrift.TFieldRequirementType.DEFAULT,
14265 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14266 metaDataMap = Collections.unmodifiableMap(tmpMap);
14267 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_args.class, metaDataMap);
14270 public setEbgpMultihop_args() {
14273 public setEbgpMultihop_args(
14278 this.peerIp = peerIp;
14279 this.nHops = nHops;
14280 setNHopsIsSet(true);
14284 * Performs a deep copy on <i>other</i>.
14286 public setEbgpMultihop_args(setEbgpMultihop_args other) {
14287 __isset_bitfield = other.__isset_bitfield;
14288 if (other.isSetPeerIp()) {
14289 this.peerIp = other.peerIp;
14291 this.nHops = other.nHops;
14295 public setEbgpMultihop_args deepCopy() {
14296 return new setEbgpMultihop_args(this);
14300 public void clear() {
14301 this.peerIp = null;
14302 setNHopsIsSet(false);
14306 public String getPeerIp() {
14307 return this.peerIp;
14310 public setEbgpMultihop_args setPeerIp(String peerIp) {
14311 this.peerIp = peerIp;
14315 public void unsetPeerIp() {
14316 this.peerIp = null;
14319 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
14320 public boolean isSetPeerIp() {
14321 return this.peerIp != null;
14324 public void setPeerIpIsSet(boolean value) {
14326 this.peerIp = null;
14330 public int getNHops() {
14334 public setEbgpMultihop_args setNHops(int nHops) {
14335 this.nHops = nHops;
14336 setNHopsIsSet(true);
14340 public void unsetNHops() {
14341 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __NHOPS_ISSET_ID);
14344 /** Returns true if field nHops is set (has been assigned a value) and false otherwise */
14345 public boolean isSetNHops() {
14346 return EncodingUtils.testBit(__isset_bitfield, __NHOPS_ISSET_ID);
14349 public void setNHopsIsSet(boolean value) {
14350 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __NHOPS_ISSET_ID, value);
14354 public void setFieldValue(_Fields field, Object value) {
14357 if (value == null) {
14360 setPeerIp((String)value);
14365 if (value == null) {
14368 setNHops((Integer)value);
14376 public Object getFieldValue(_Fields field) {
14379 return getPeerIp();
14382 return Integer.valueOf(getNHops());
14385 throw new IllegalStateException();
14388 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14390 public boolean isSet(_Fields field) {
14391 if (field == null) {
14392 throw new IllegalArgumentException();
14397 return isSetPeerIp();
14399 return isSetNHops();
14401 throw new IllegalStateException();
14405 public boolean equals(Object that) {
14406 if (that == null) {
14409 if (that instanceof setEbgpMultihop_args) {
14410 return this.equals((setEbgpMultihop_args)that);
14415 public boolean equals(setEbgpMultihop_args that) {
14416 if (that == null) {
14420 boolean this_present_peerIp = true && this.isSetPeerIp();
14421 boolean that_present_peerIp = true && that.isSetPeerIp();
14422 if (this_present_peerIp || that_present_peerIp) {
14423 if (!(this_present_peerIp && that_present_peerIp)) {
14426 if (!this.peerIp.equals(that.peerIp)) {
14431 boolean this_present_nHops = true;
14432 boolean that_present_nHops = true;
14433 if (this_present_nHops || that_present_nHops) {
14434 if (!(this_present_nHops && that_present_nHops)) {
14437 if (this.nHops != that.nHops) {
14446 public int hashCode() {
14447 List<Object> list = new ArrayList<Object>();
14449 boolean present_peerIp = true && (isSetPeerIp());
14450 list.add(present_peerIp);
14451 if (present_peerIp)
14453 boolean present_nHops = true;
14454 list.add(present_nHops);
14457 return list.hashCode();
14461 public int compareTo(setEbgpMultihop_args other) {
14462 if (!getClass().equals(other.getClass())) {
14463 return getClass().getName().compareTo(other.getClass().getName());
14466 int lastComparison = 0;
14468 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
14469 if (lastComparison != 0) {
14470 return lastComparison;
14472 if (isSetPeerIp()) {
14473 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
14474 if (lastComparison != 0) {
14475 return lastComparison;
14478 lastComparison = Boolean.valueOf(isSetNHops()).compareTo(other.isSetNHops());
14479 if (lastComparison != 0) {
14480 return lastComparison;
14482 if (isSetNHops()) {
14483 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nHops, other.nHops);
14484 if (lastComparison != 0) {
14485 return lastComparison;
14492 public _Fields fieldForId(int fieldId) {
14493 return _Fields.findByThriftId(fieldId);
14497 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14498 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14502 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14503 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14507 public String toString() {
14508 StringBuilder sb = new StringBuilder("setEbgpMultihop_args(");
14509 boolean first = true;
14511 sb.append("peerIp:");
14512 if (this.peerIp == null) {
14515 sb.append(this.peerIp);
14521 sb.append("nHops:");
14522 sb.append(this.nHops);
14525 return sb.toString();
14528 public void validate() throws org.apache.thrift.TException {
14529 // check for required fields
14530 // check for sub-struct validity
14533 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14535 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14536 } catch (org.apache.thrift.TException te) {
14537 throw new java.io.IOException(te);
14541 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14543 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14544 __isset_bitfield = 0;
14545 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14546 } catch (org.apache.thrift.TException te) {
14547 throw new java.io.IOException(te);
14551 private static class setEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
14553 public setEbgpMultihop_argsStandardScheme getScheme() {
14554 return new setEbgpMultihop_argsStandardScheme();
14558 private static class setEbgpMultihop_argsStandardScheme extends StandardScheme<setEbgpMultihop_args> {
14561 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14562 org.apache.thrift.protocol.TField schemeField;
14563 iprot.readStructBegin();
14566 schemeField = iprot.readFieldBegin();
14567 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14570 switch (schemeField.id) {
14572 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
14573 struct.peerIp = iprot.readString();
14574 struct.setPeerIpIsSet(true);
14576 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14580 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14581 struct.nHops = iprot.readI32();
14582 struct.setNHopsIsSet(true);
14584 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14588 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14590 iprot.readFieldEnd();
14592 iprot.readStructEnd();
14594 // check for required fields of primitive type, which can't be checked in the validate method
14599 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14602 oprot.writeStructBegin(STRUCT_DESC);
14603 if (struct.peerIp != null) {
14604 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
14605 oprot.writeString(struct.peerIp);
14606 oprot.writeFieldEnd();
14608 oprot.writeFieldBegin(N_HOPS_FIELD_DESC);
14609 oprot.writeI32(struct.nHops);
14610 oprot.writeFieldEnd();
14611 oprot.writeFieldStop();
14612 oprot.writeStructEnd();
14617 private static class setEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
14619 public setEbgpMultihop_argsTupleScheme getScheme() {
14620 return new setEbgpMultihop_argsTupleScheme();
14624 private static class setEbgpMultihop_argsTupleScheme extends TupleScheme<setEbgpMultihop_args> {
14627 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14628 TTupleProtocol oprot = (TTupleProtocol) prot;
14629 BitSet optionals = new BitSet();
14630 if (struct.isSetPeerIp()) {
14633 if (struct.isSetNHops()) {
14636 oprot.writeBitSet(optionals, 2);
14637 if (struct.isSetPeerIp()) {
14638 oprot.writeString(struct.peerIp);
14640 if (struct.isSetNHops()) {
14641 oprot.writeI32(struct.nHops);
14646 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_args struct) throws org.apache.thrift.TException {
14647 TTupleProtocol iprot = (TTupleProtocol) prot;
14648 BitSet incoming = iprot.readBitSet(2);
14649 if (incoming.get(0)) {
14650 struct.peerIp = iprot.readString();
14651 struct.setPeerIpIsSet(true);
14653 if (incoming.get(1)) {
14654 struct.nHops = iprot.readI32();
14655 struct.setNHopsIsSet(true);
14662 public static class setEbgpMultihop_result implements org.apache.thrift.TBase<setEbgpMultihop_result, setEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<setEbgpMultihop_result> {
14663 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setEbgpMultihop_result");
14665 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);
14667 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
14669 schemes.put(StandardScheme.class, new setEbgpMultihop_resultStandardSchemeFactory());
14670 schemes.put(TupleScheme.class, new setEbgpMultihop_resultTupleSchemeFactory());
14673 public int success; // required
14675 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14676 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14677 SUCCESS((short)0, "success");
14679 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14682 for (_Fields field : EnumSet.allOf(_Fields.class)) {
14683 byName.put(field.getFieldName(), field);
14688 * Find the _Fields constant that matches fieldId, or null if its not found.
14690 public static _Fields findByThriftId(int fieldId) {
14700 * Find the _Fields constant that matches fieldId, throwing an exception
14701 * if it is not found.
14703 public static _Fields findByThriftIdOrThrow(int fieldId) {
14704 _Fields fields = findByThriftId(fieldId);
14705 if (fields == null) {
14706 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14712 * Find the _Fields constant that matches name, or null if its not found.
14714 public static _Fields findByName(String name) {
14715 return byName.get(name);
14718 private final short _thriftId;
14719 private final String _fieldName;
14721 _Fields(short thriftId, String fieldName) {
14722 _thriftId = thriftId;
14723 _fieldName = fieldName;
14727 public short getThriftFieldId() {
14732 public String getFieldName() {
14737 // isset id assignments
14738 private static final int __SUCCESS_ISSET_ID = 0;
14739 private byte __isset_bitfield = 0;
14740 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14742 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14743 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
14744 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
14745 metaDataMap = Collections.unmodifiableMap(tmpMap);
14746 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setEbgpMultihop_result.class, metaDataMap);
14749 public setEbgpMultihop_result() {
14752 public setEbgpMultihop_result(
14756 this.success = success;
14757 setSuccessIsSet(true);
14761 * Performs a deep copy on <i>other</i>.
14763 public setEbgpMultihop_result(setEbgpMultihop_result other) {
14764 __isset_bitfield = other.__isset_bitfield;
14765 this.success = other.success;
14769 public setEbgpMultihop_result deepCopy() {
14770 return new setEbgpMultihop_result(this);
14774 public void clear() {
14775 setSuccessIsSet(false);
14779 public int getSuccess() {
14780 return this.success;
14783 public setEbgpMultihop_result setSuccess(int success) {
14784 this.success = success;
14785 setSuccessIsSet(true);
14789 public void unsetSuccess() {
14790 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14793 /** Returns true if field success is set (has been assigned a value) and false otherwise */
14794 public boolean isSetSuccess() {
14795 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
14798 public void setSuccessIsSet(boolean value) {
14799 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
14803 public void setFieldValue(_Fields field, Object value) {
14806 if (value == null) {
14809 setSuccess((Integer)value);
14817 public Object getFieldValue(_Fields field) {
14820 return Integer.valueOf(getSuccess());
14823 throw new IllegalStateException();
14826 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14828 public boolean isSet(_Fields field) {
14829 if (field == null) {
14830 throw new IllegalArgumentException();
14835 return isSetSuccess();
14837 throw new IllegalStateException();
14841 public boolean equals(Object that) {
14842 if (that == null) {
14845 if (that instanceof setEbgpMultihop_result) {
14846 return this.equals((setEbgpMultihop_result)that);
14851 public boolean equals(setEbgpMultihop_result that) {
14852 if (that == null) {
14856 boolean this_present_success = true;
14857 boolean that_present_success = true;
14858 if (this_present_success || that_present_success) {
14859 if (!(this_present_success && that_present_success)) {
14862 if (this.success != that.success) {
14871 public int hashCode() {
14872 List<Object> list = new ArrayList<Object>();
14874 boolean present_success = true;
14875 list.add(present_success);
14876 if (present_success)
14878 return list.hashCode();
14882 public int compareTo(setEbgpMultihop_result other) {
14883 if (!getClass().equals(other.getClass())) {
14884 return getClass().getName().compareTo(other.getClass().getName());
14887 int lastComparison = 0;
14889 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
14890 if (lastComparison != 0) {
14891 return lastComparison;
14893 if (isSetSuccess()) {
14894 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
14895 if (lastComparison != 0) {
14896 return lastComparison;
14903 public _Fields fieldForId(int fieldId) {
14904 return _Fields.findByThriftId(fieldId);
14908 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14909 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
14913 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14914 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
14918 public String toString() {
14919 StringBuilder sb = new StringBuilder("setEbgpMultihop_result(");
14920 boolean first = true;
14922 sb.append("success:");
14923 sb.append(this.success);
14926 return sb.toString();
14929 public void validate() throws org.apache.thrift.TException {
14930 // check for required fields
14931 // check for sub-struct validity
14934 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14936 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14937 } catch (org.apache.thrift.TException te) {
14938 throw new java.io.IOException(te);
14942 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14944 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14945 __isset_bitfield = 0;
14946 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14947 } catch (org.apache.thrift.TException te) {
14948 throw new java.io.IOException(te);
14952 private static class setEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
14954 public setEbgpMultihop_resultStandardScheme getScheme() {
14955 return new setEbgpMultihop_resultStandardScheme();
14959 private static class setEbgpMultihop_resultStandardScheme extends StandardScheme<setEbgpMultihop_result> {
14962 public void read(org.apache.thrift.protocol.TProtocol iprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14963 org.apache.thrift.protocol.TField schemeField;
14964 iprot.readStructBegin();
14967 schemeField = iprot.readFieldBegin();
14968 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
14971 switch (schemeField.id) {
14973 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
14974 struct.success = iprot.readI32();
14975 struct.setSuccessIsSet(true);
14977 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14981 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
14983 iprot.readFieldEnd();
14985 iprot.readStructEnd();
14987 // check for required fields of primitive type, which can't be checked in the validate method
14992 public void write(org.apache.thrift.protocol.TProtocol oprot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
14995 oprot.writeStructBegin(STRUCT_DESC);
14996 if (struct.isSetSuccess()) {
14997 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14998 oprot.writeI32(struct.success);
14999 oprot.writeFieldEnd();
15001 oprot.writeFieldStop();
15002 oprot.writeStructEnd();
15007 private static class setEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15009 public setEbgpMultihop_resultTupleScheme getScheme() {
15010 return new setEbgpMultihop_resultTupleScheme();
15014 private static class setEbgpMultihop_resultTupleScheme extends TupleScheme<setEbgpMultihop_result> {
15017 public void write(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
15018 TTupleProtocol oprot = (TTupleProtocol) prot;
15019 BitSet optionals = new BitSet();
15020 if (struct.isSetSuccess()) {
15023 oprot.writeBitSet(optionals, 1);
15024 if (struct.isSetSuccess()) {
15025 oprot.writeI32(struct.success);
15030 public void read(org.apache.thrift.protocol.TProtocol prot, setEbgpMultihop_result struct) throws org.apache.thrift.TException {
15031 TTupleProtocol iprot = (TTupleProtocol) prot;
15032 BitSet incoming = iprot.readBitSet(1);
15033 if (incoming.get(0)) {
15034 struct.success = iprot.readI32();
15035 struct.setSuccessIsSet(true);
15042 public static class unsetEbgpMultihop_args implements org.apache.thrift.TBase<unsetEbgpMultihop_args, unsetEbgpMultihop_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_args> {
15043 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_args");
15045 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);
15047 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15049 schemes.put(StandardScheme.class, new unsetEbgpMultihop_argsStandardSchemeFactory());
15050 schemes.put(TupleScheme.class, new unsetEbgpMultihop_argsTupleSchemeFactory());
15053 public String peerIp; // required
15055 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15056 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15057 PEER_IP((short)1, "peerIp");
15059 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15062 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15063 byName.put(field.getFieldName(), field);
15068 * Find the _Fields constant that matches fieldId, or null if its not found.
15070 public static _Fields findByThriftId(int fieldId) {
15080 * Find the _Fields constant that matches fieldId, throwing an exception
15081 * if it is not found.
15083 public static _Fields findByThriftIdOrThrow(int fieldId) {
15084 _Fields fields = findByThriftId(fieldId);
15085 if (fields == null) {
15086 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15092 * Find the _Fields constant that matches name, or null if its not found.
15094 public static _Fields findByName(String name) {
15095 return byName.get(name);
15098 private final short _thriftId;
15099 private final String _fieldName;
15101 _Fields(short thriftId, String fieldName) {
15102 _thriftId = thriftId;
15103 _fieldName = fieldName;
15107 public short getThriftFieldId() {
15112 public String getFieldName() {
15117 // isset id assignments
15118 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15120 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15121 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15122 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15123 metaDataMap = Collections.unmodifiableMap(tmpMap);
15124 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_args.class, metaDataMap);
15127 public unsetEbgpMultihop_args() {
15130 public unsetEbgpMultihop_args(
15134 this.peerIp = peerIp;
15138 * Performs a deep copy on <i>other</i>.
15140 public unsetEbgpMultihop_args(unsetEbgpMultihop_args other) {
15141 if (other.isSetPeerIp()) {
15142 this.peerIp = other.peerIp;
15147 public unsetEbgpMultihop_args deepCopy() {
15148 return new unsetEbgpMultihop_args(this);
15152 public void clear() {
15153 this.peerIp = null;
15156 public String getPeerIp() {
15157 return this.peerIp;
15160 public unsetEbgpMultihop_args setPeerIp(String peerIp) {
15161 this.peerIp = peerIp;
15165 public void unsetPeerIp() {
15166 this.peerIp = null;
15169 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15170 public boolean isSetPeerIp() {
15171 return this.peerIp != null;
15174 public void setPeerIpIsSet(boolean value) {
15176 this.peerIp = null;
15181 public void setFieldValue(_Fields field, Object value) {
15184 if (value == null) {
15187 setPeerIp((String)value);
15195 public Object getFieldValue(_Fields field) {
15198 return getPeerIp();
15201 throw new IllegalStateException();
15204 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15206 public boolean isSet(_Fields field) {
15207 if (field == null) {
15208 throw new IllegalArgumentException();
15213 return isSetPeerIp();
15215 throw new IllegalStateException();
15219 public boolean equals(Object that) {
15220 if (that == null) {
15223 if (that instanceof unsetEbgpMultihop_args) {
15224 return this.equals((unsetEbgpMultihop_args)that);
15229 public boolean equals(unsetEbgpMultihop_args that) {
15230 if (that == null) {
15234 boolean this_present_peerIp = true && this.isSetPeerIp();
15235 boolean that_present_peerIp = true && that.isSetPeerIp();
15236 if (this_present_peerIp || that_present_peerIp) {
15237 if (!(this_present_peerIp && that_present_peerIp)) {
15240 if (!this.peerIp.equals(that.peerIp)) {
15249 public int hashCode() {
15250 List<Object> list = new ArrayList<Object>();
15252 boolean present_peerIp = true && (isSetPeerIp());
15253 list.add(present_peerIp);
15254 if (present_peerIp)
15256 return list.hashCode();
15260 public int compareTo(unsetEbgpMultihop_args other) {
15261 if (!getClass().equals(other.getClass())) {
15262 return getClass().getName().compareTo(other.getClass().getName());
15265 int lastComparison = 0;
15267 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
15268 if (lastComparison != 0) {
15269 return lastComparison;
15271 if (isSetPeerIp()) {
15272 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
15273 if (lastComparison != 0) {
15274 return lastComparison;
15281 public _Fields fieldForId(int fieldId) {
15282 return _Fields.findByThriftId(fieldId);
15286 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15287 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15291 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15292 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15296 public String toString() {
15297 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_args(");
15298 boolean first = true;
15300 sb.append("peerIp:");
15301 if (this.peerIp == null) {
15304 sb.append(this.peerIp);
15308 return sb.toString();
15311 public void validate() throws org.apache.thrift.TException {
15312 // check for required fields
15313 // check for sub-struct validity
15316 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15318 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15319 } catch (org.apache.thrift.TException te) {
15320 throw new java.io.IOException(te);
15324 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15326 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15327 } catch (org.apache.thrift.TException te) {
15328 throw new java.io.IOException(te);
15332 private static class unsetEbgpMultihop_argsStandardSchemeFactory implements SchemeFactory {
15334 public unsetEbgpMultihop_argsStandardScheme getScheme() {
15335 return new unsetEbgpMultihop_argsStandardScheme();
15339 private static class unsetEbgpMultihop_argsStandardScheme extends StandardScheme<unsetEbgpMultihop_args> {
15342 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15343 org.apache.thrift.protocol.TField schemeField;
15344 iprot.readStructBegin();
15347 schemeField = iprot.readFieldBegin();
15348 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15351 switch (schemeField.id) {
15353 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
15354 struct.peerIp = iprot.readString();
15355 struct.setPeerIpIsSet(true);
15357 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15361 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15363 iprot.readFieldEnd();
15365 iprot.readStructEnd();
15367 // check for required fields of primitive type, which can't be checked in the validate method
15372 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15375 oprot.writeStructBegin(STRUCT_DESC);
15376 if (struct.peerIp != null) {
15377 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
15378 oprot.writeString(struct.peerIp);
15379 oprot.writeFieldEnd();
15381 oprot.writeFieldStop();
15382 oprot.writeStructEnd();
15387 private static class unsetEbgpMultihop_argsTupleSchemeFactory implements SchemeFactory {
15389 public unsetEbgpMultihop_argsTupleScheme getScheme() {
15390 return new unsetEbgpMultihop_argsTupleScheme();
15394 private static class unsetEbgpMultihop_argsTupleScheme extends TupleScheme<unsetEbgpMultihop_args> {
15397 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15398 TTupleProtocol oprot = (TTupleProtocol) prot;
15399 BitSet optionals = new BitSet();
15400 if (struct.isSetPeerIp()) {
15403 oprot.writeBitSet(optionals, 1);
15404 if (struct.isSetPeerIp()) {
15405 oprot.writeString(struct.peerIp);
15410 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_args struct) throws org.apache.thrift.TException {
15411 TTupleProtocol iprot = (TTupleProtocol) prot;
15412 BitSet incoming = iprot.readBitSet(1);
15413 if (incoming.get(0)) {
15414 struct.peerIp = iprot.readString();
15415 struct.setPeerIpIsSet(true);
15422 public static class unsetEbgpMultihop_result implements org.apache.thrift.TBase<unsetEbgpMultihop_result, unsetEbgpMultihop_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetEbgpMultihop_result> {
15423 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetEbgpMultihop_result");
15425 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);
15427 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15429 schemes.put(StandardScheme.class, new unsetEbgpMultihop_resultStandardSchemeFactory());
15430 schemes.put(TupleScheme.class, new unsetEbgpMultihop_resultTupleSchemeFactory());
15433 public int success; // required
15435 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15436 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15437 SUCCESS((short)0, "success");
15439 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15442 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15443 byName.put(field.getFieldName(), field);
15448 * Find the _Fields constant that matches fieldId, or null if its not found.
15450 public static _Fields findByThriftId(int fieldId) {
15460 * Find the _Fields constant that matches fieldId, throwing an exception
15461 * if it is not found.
15463 public static _Fields findByThriftIdOrThrow(int fieldId) {
15464 _Fields fields = findByThriftId(fieldId);
15465 if (fields == null) {
15466 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15472 * Find the _Fields constant that matches name, or null if its not found.
15474 public static _Fields findByName(String name) {
15475 return byName.get(name);
15478 private final short _thriftId;
15479 private final String _fieldName;
15481 _Fields(short thriftId, String fieldName) {
15482 _thriftId = thriftId;
15483 _fieldName = fieldName;
15487 public short getThriftFieldId() {
15492 public String getFieldName() {
15497 // isset id assignments
15498 private static final int __SUCCESS_ISSET_ID = 0;
15499 private byte __isset_bitfield = 0;
15500 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15502 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15503 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
15504 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
15505 metaDataMap = Collections.unmodifiableMap(tmpMap);
15506 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetEbgpMultihop_result.class, metaDataMap);
15509 public unsetEbgpMultihop_result() {
15512 public unsetEbgpMultihop_result(
15516 this.success = success;
15517 setSuccessIsSet(true);
15521 * Performs a deep copy on <i>other</i>.
15523 public unsetEbgpMultihop_result(unsetEbgpMultihop_result other) {
15524 __isset_bitfield = other.__isset_bitfield;
15525 this.success = other.success;
15529 public unsetEbgpMultihop_result deepCopy() {
15530 return new unsetEbgpMultihop_result(this);
15534 public void clear() {
15535 setSuccessIsSet(false);
15539 public int getSuccess() {
15540 return this.success;
15543 public unsetEbgpMultihop_result setSuccess(int success) {
15544 this.success = success;
15545 setSuccessIsSet(true);
15549 public void unsetSuccess() {
15550 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15553 /** Returns true if field success is set (has been assigned a value) and false otherwise */
15554 public boolean isSetSuccess() {
15555 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
15558 public void setSuccessIsSet(boolean value) {
15559 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
15563 public void setFieldValue(_Fields field, Object value) {
15566 if (value == null) {
15569 setSuccess((Integer)value);
15577 public Object getFieldValue(_Fields field) {
15580 return Integer.valueOf(getSuccess());
15583 throw new IllegalStateException();
15586 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15588 public boolean isSet(_Fields field) {
15589 if (field == null) {
15590 throw new IllegalArgumentException();
15595 return isSetSuccess();
15597 throw new IllegalStateException();
15601 public boolean equals(Object that) {
15602 if (that == null) {
15605 if (that instanceof unsetEbgpMultihop_result) {
15606 return this.equals((unsetEbgpMultihop_result)that);
15611 public boolean equals(unsetEbgpMultihop_result that) {
15612 if (that == null) {
15616 boolean this_present_success = true;
15617 boolean that_present_success = true;
15618 if (this_present_success || that_present_success) {
15619 if (!(this_present_success && that_present_success)) {
15622 if (this.success != that.success) {
15631 public int hashCode() {
15632 List<Object> list = new ArrayList<Object>();
15634 boolean present_success = true;
15635 list.add(present_success);
15636 if (present_success)
15638 return list.hashCode();
15642 public int compareTo(unsetEbgpMultihop_result other) {
15643 if (!getClass().equals(other.getClass())) {
15644 return getClass().getName().compareTo(other.getClass().getName());
15647 int lastComparison = 0;
15649 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
15650 if (lastComparison != 0) {
15651 return lastComparison;
15653 if (isSetSuccess()) {
15654 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
15655 if (lastComparison != 0) {
15656 return lastComparison;
15663 public _Fields fieldForId(int fieldId) {
15664 return _Fields.findByThriftId(fieldId);
15668 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15669 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
15673 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15674 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
15678 public String toString() {
15679 StringBuilder sb = new StringBuilder("unsetEbgpMultihop_result(");
15680 boolean first = true;
15682 sb.append("success:");
15683 sb.append(this.success);
15686 return sb.toString();
15689 public void validate() throws org.apache.thrift.TException {
15690 // check for required fields
15691 // check for sub-struct validity
15694 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15696 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15697 } catch (org.apache.thrift.TException te) {
15698 throw new java.io.IOException(te);
15702 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15704 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15705 __isset_bitfield = 0;
15706 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15707 } catch (org.apache.thrift.TException te) {
15708 throw new java.io.IOException(te);
15712 private static class unsetEbgpMultihop_resultStandardSchemeFactory implements SchemeFactory {
15714 public unsetEbgpMultihop_resultStandardScheme getScheme() {
15715 return new unsetEbgpMultihop_resultStandardScheme();
15719 private static class unsetEbgpMultihop_resultStandardScheme extends StandardScheme<unsetEbgpMultihop_result> {
15722 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15723 org.apache.thrift.protocol.TField schemeField;
15724 iprot.readStructBegin();
15727 schemeField = iprot.readFieldBegin();
15728 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
15731 switch (schemeField.id) {
15733 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
15734 struct.success = iprot.readI32();
15735 struct.setSuccessIsSet(true);
15737 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15741 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
15743 iprot.readFieldEnd();
15745 iprot.readStructEnd();
15747 // check for required fields of primitive type, which can't be checked in the validate method
15752 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15755 oprot.writeStructBegin(STRUCT_DESC);
15756 if (struct.isSetSuccess()) {
15757 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15758 oprot.writeI32(struct.success);
15759 oprot.writeFieldEnd();
15761 oprot.writeFieldStop();
15762 oprot.writeStructEnd();
15767 private static class unsetEbgpMultihop_resultTupleSchemeFactory implements SchemeFactory {
15769 public unsetEbgpMultihop_resultTupleScheme getScheme() {
15770 return new unsetEbgpMultihop_resultTupleScheme();
15774 private static class unsetEbgpMultihop_resultTupleScheme extends TupleScheme<unsetEbgpMultihop_result> {
15777 public void write(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15778 TTupleProtocol oprot = (TTupleProtocol) prot;
15779 BitSet optionals = new BitSet();
15780 if (struct.isSetSuccess()) {
15783 oprot.writeBitSet(optionals, 1);
15784 if (struct.isSetSuccess()) {
15785 oprot.writeI32(struct.success);
15790 public void read(org.apache.thrift.protocol.TProtocol prot, unsetEbgpMultihop_result struct) throws org.apache.thrift.TException {
15791 TTupleProtocol iprot = (TTupleProtocol) prot;
15792 BitSet incoming = iprot.readBitSet(1);
15793 if (incoming.get(0)) {
15794 struct.success = iprot.readI32();
15795 struct.setSuccessIsSet(true);
15802 public static class setUpdateSource_args implements org.apache.thrift.TBase<setUpdateSource_args, setUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_args> {
15803 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_args");
15805 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);
15806 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);
15808 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
15810 schemes.put(StandardScheme.class, new setUpdateSource_argsStandardSchemeFactory());
15811 schemes.put(TupleScheme.class, new setUpdateSource_argsTupleSchemeFactory());
15814 public String peerIp; // required
15815 public String srcIp; // required
15817 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15818 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15819 PEER_IP((short)1, "peerIp"),
15820 SRC_IP((short)2, "srcIp");
15822 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15825 for (_Fields field : EnumSet.allOf(_Fields.class)) {
15826 byName.put(field.getFieldName(), field);
15831 * Find the _Fields constant that matches fieldId, or null if its not found.
15833 public static _Fields findByThriftId(int fieldId) {
15845 * Find the _Fields constant that matches fieldId, throwing an exception
15846 * if it is not found.
15848 public static _Fields findByThriftIdOrThrow(int fieldId) {
15849 _Fields fields = findByThriftId(fieldId);
15850 if (fields == null) {
15851 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15857 * Find the _Fields constant that matches name, or null if its not found.
15859 public static _Fields findByName(String name) {
15860 return byName.get(name);
15863 private final short _thriftId;
15864 private final String _fieldName;
15866 _Fields(short thriftId, String fieldName) {
15867 _thriftId = thriftId;
15868 _fieldName = fieldName;
15872 public short getThriftFieldId() {
15877 public String getFieldName() {
15882 // isset id assignments
15883 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15885 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15886 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15887 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15888 tmpMap.put(_Fields.SRC_IP, new org.apache.thrift.meta_data.FieldMetaData("srcIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
15889 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15890 metaDataMap = Collections.unmodifiableMap(tmpMap);
15891 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_args.class, metaDataMap);
15894 public setUpdateSource_args() {
15897 public setUpdateSource_args(
15902 this.peerIp = peerIp;
15903 this.srcIp = srcIp;
15907 * Performs a deep copy on <i>other</i>.
15909 public setUpdateSource_args(setUpdateSource_args other) {
15910 if (other.isSetPeerIp()) {
15911 this.peerIp = other.peerIp;
15913 if (other.isSetSrcIp()) {
15914 this.srcIp = other.srcIp;
15919 public setUpdateSource_args deepCopy() {
15920 return new setUpdateSource_args(this);
15924 public void clear() {
15925 this.peerIp = null;
15929 public String getPeerIp() {
15930 return this.peerIp;
15933 public setUpdateSource_args setPeerIp(String peerIp) {
15934 this.peerIp = peerIp;
15938 public void unsetPeerIp() {
15939 this.peerIp = null;
15942 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
15943 public boolean isSetPeerIp() {
15944 return this.peerIp != null;
15947 public void setPeerIpIsSet(boolean value) {
15949 this.peerIp = null;
15953 public String getSrcIp() {
15957 public setUpdateSource_args setSrcIp(String srcIp) {
15958 this.srcIp = srcIp;
15962 public void unsetSrcIp() {
15966 /** Returns true if field srcIp is set (has been assigned a value) and false otherwise */
15967 public boolean isSetSrcIp() {
15968 return this.srcIp != null;
15971 public void setSrcIpIsSet(boolean value) {
15978 public void setFieldValue(_Fields field, Object value) {
15981 if (value == null) {
15984 setPeerIp((String)value);
15989 if (value == null) {
15992 setSrcIp((String)value);
16000 public Object getFieldValue(_Fields field) {
16003 return getPeerIp();
16009 throw new IllegalStateException();
16012 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16014 public boolean isSet(_Fields field) {
16015 if (field == null) {
16016 throw new IllegalArgumentException();
16021 return isSetPeerIp();
16023 return isSetSrcIp();
16025 throw new IllegalStateException();
16029 public boolean equals(Object that) {
16030 if (that == null) {
16033 if (that instanceof setUpdateSource_args) {
16034 return this.equals((setUpdateSource_args)that);
16039 public boolean equals(setUpdateSource_args that) {
16040 if (that == null) {
16044 boolean this_present_peerIp = true && this.isSetPeerIp();
16045 boolean that_present_peerIp = true && that.isSetPeerIp();
16046 if (this_present_peerIp || that_present_peerIp) {
16047 if (!(this_present_peerIp && that_present_peerIp)) {
16050 if (!this.peerIp.equals(that.peerIp)) {
16055 boolean this_present_srcIp = true && this.isSetSrcIp();
16056 boolean that_present_srcIp = true && that.isSetSrcIp();
16057 if (this_present_srcIp || that_present_srcIp) {
16058 if (!(this_present_srcIp && that_present_srcIp)) {
16061 if (!this.srcIp.equals(that.srcIp)) {
16070 public int hashCode() {
16071 List<Object> list = new ArrayList<Object>();
16073 boolean present_peerIp = true && (isSetPeerIp());
16074 list.add(present_peerIp);
16075 if (present_peerIp)
16077 boolean present_srcIp = true && (isSetSrcIp());
16078 list.add(present_srcIp);
16081 return list.hashCode();
16085 public int compareTo(setUpdateSource_args other) {
16086 if (!getClass().equals(other.getClass())) {
16087 return getClass().getName().compareTo(other.getClass().getName());
16090 int lastComparison = 0;
16092 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16093 if (lastComparison != 0) {
16094 return lastComparison;
16096 if (isSetPeerIp()) {
16097 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16098 if (lastComparison != 0) {
16099 return lastComparison;
16102 lastComparison = Boolean.valueOf(isSetSrcIp()).compareTo(other.isSetSrcIp());
16103 if (lastComparison != 0) {
16104 return lastComparison;
16106 if (isSetSrcIp()) {
16107 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.srcIp, other.srcIp);
16108 if (lastComparison != 0) {
16109 return lastComparison;
16116 public _Fields fieldForId(int fieldId) {
16117 return _Fields.findByThriftId(fieldId);
16121 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16122 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16126 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16127 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16131 public String toString() {
16132 StringBuilder sb = new StringBuilder("setUpdateSource_args(");
16133 boolean first = true;
16135 sb.append("peerIp:");
16136 if (this.peerIp == null) {
16139 sb.append(this.peerIp);
16145 sb.append("srcIp:");
16146 if (this.srcIp == null) {
16149 sb.append(this.srcIp);
16153 return sb.toString();
16156 public void validate() throws org.apache.thrift.TException {
16157 // check for required fields
16158 // check for sub-struct validity
16161 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16163 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16164 } catch (org.apache.thrift.TException te) {
16165 throw new java.io.IOException(te);
16169 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16171 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16172 } catch (org.apache.thrift.TException te) {
16173 throw new java.io.IOException(te);
16177 private static class setUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16179 public setUpdateSource_argsStandardScheme getScheme() {
16180 return new setUpdateSource_argsStandardScheme();
16184 private static class setUpdateSource_argsStandardScheme extends StandardScheme<setUpdateSource_args> {
16187 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16188 org.apache.thrift.protocol.TField schemeField;
16189 iprot.readStructBegin();
16192 schemeField = iprot.readFieldBegin();
16193 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16196 switch (schemeField.id) {
16198 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16199 struct.peerIp = iprot.readString();
16200 struct.setPeerIpIsSet(true);
16202 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16206 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16207 struct.srcIp = iprot.readString();
16208 struct.setSrcIpIsSet(true);
16210 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16214 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16216 iprot.readFieldEnd();
16218 iprot.readStructEnd();
16220 // check for required fields of primitive type, which can't be checked in the validate method
16225 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16228 oprot.writeStructBegin(STRUCT_DESC);
16229 if (struct.peerIp != null) {
16230 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
16231 oprot.writeString(struct.peerIp);
16232 oprot.writeFieldEnd();
16234 if (struct.srcIp != null) {
16235 oprot.writeFieldBegin(SRC_IP_FIELD_DESC);
16236 oprot.writeString(struct.srcIp);
16237 oprot.writeFieldEnd();
16239 oprot.writeFieldStop();
16240 oprot.writeStructEnd();
16245 private static class setUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
16247 public setUpdateSource_argsTupleScheme getScheme() {
16248 return new setUpdateSource_argsTupleScheme();
16252 private static class setUpdateSource_argsTupleScheme extends TupleScheme<setUpdateSource_args> {
16255 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16256 TTupleProtocol oprot = (TTupleProtocol) prot;
16257 BitSet optionals = new BitSet();
16258 if (struct.isSetPeerIp()) {
16261 if (struct.isSetSrcIp()) {
16264 oprot.writeBitSet(optionals, 2);
16265 if (struct.isSetPeerIp()) {
16266 oprot.writeString(struct.peerIp);
16268 if (struct.isSetSrcIp()) {
16269 oprot.writeString(struct.srcIp);
16274 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_args struct) throws org.apache.thrift.TException {
16275 TTupleProtocol iprot = (TTupleProtocol) prot;
16276 BitSet incoming = iprot.readBitSet(2);
16277 if (incoming.get(0)) {
16278 struct.peerIp = iprot.readString();
16279 struct.setPeerIpIsSet(true);
16281 if (incoming.get(1)) {
16282 struct.srcIp = iprot.readString();
16283 struct.setSrcIpIsSet(true);
16290 public static class setUpdateSource_result implements org.apache.thrift.TBase<setUpdateSource_result, setUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<setUpdateSource_result> {
16291 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setUpdateSource_result");
16293 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);
16295 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16297 schemes.put(StandardScheme.class, new setUpdateSource_resultStandardSchemeFactory());
16298 schemes.put(TupleScheme.class, new setUpdateSource_resultTupleSchemeFactory());
16301 public int success; // required
16303 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16304 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16305 SUCCESS((short)0, "success");
16307 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16310 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16311 byName.put(field.getFieldName(), field);
16316 * Find the _Fields constant that matches fieldId, or null if its not found.
16318 public static _Fields findByThriftId(int fieldId) {
16328 * Find the _Fields constant that matches fieldId, throwing an exception
16329 * if it is not found.
16331 public static _Fields findByThriftIdOrThrow(int fieldId) {
16332 _Fields fields = findByThriftId(fieldId);
16333 if (fields == null) {
16334 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16340 * Find the _Fields constant that matches name, or null if its not found.
16342 public static _Fields findByName(String name) {
16343 return byName.get(name);
16346 private final short _thriftId;
16347 private final String _fieldName;
16349 _Fields(short thriftId, String fieldName) {
16350 _thriftId = thriftId;
16351 _fieldName = fieldName;
16355 public short getThriftFieldId() {
16360 public String getFieldName() {
16365 // isset id assignments
16366 private static final int __SUCCESS_ISSET_ID = 0;
16367 private byte __isset_bitfield = 0;
16368 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16370 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16371 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
16372 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
16373 metaDataMap = Collections.unmodifiableMap(tmpMap);
16374 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setUpdateSource_result.class, metaDataMap);
16377 public setUpdateSource_result() {
16380 public setUpdateSource_result(
16384 this.success = success;
16385 setSuccessIsSet(true);
16389 * Performs a deep copy on <i>other</i>.
16391 public setUpdateSource_result(setUpdateSource_result other) {
16392 __isset_bitfield = other.__isset_bitfield;
16393 this.success = other.success;
16397 public setUpdateSource_result deepCopy() {
16398 return new setUpdateSource_result(this);
16402 public void clear() {
16403 setSuccessIsSet(false);
16407 public int getSuccess() {
16408 return this.success;
16411 public setUpdateSource_result setSuccess(int success) {
16412 this.success = success;
16413 setSuccessIsSet(true);
16417 public void unsetSuccess() {
16418 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16421 /** Returns true if field success is set (has been assigned a value) and false otherwise */
16422 public boolean isSetSuccess() {
16423 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
16426 public void setSuccessIsSet(boolean value) {
16427 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
16431 public void setFieldValue(_Fields field, Object value) {
16434 if (value == null) {
16437 setSuccess((Integer)value);
16445 public Object getFieldValue(_Fields field) {
16448 return Integer.valueOf(getSuccess());
16451 throw new IllegalStateException();
16454 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16456 public boolean isSet(_Fields field) {
16457 if (field == null) {
16458 throw new IllegalArgumentException();
16463 return isSetSuccess();
16465 throw new IllegalStateException();
16469 public boolean equals(Object that) {
16470 if (that == null) {
16473 if (that instanceof setUpdateSource_result) {
16474 return this.equals((setUpdateSource_result)that);
16479 public boolean equals(setUpdateSource_result that) {
16480 if (that == null) {
16484 boolean this_present_success = true;
16485 boolean that_present_success = true;
16486 if (this_present_success || that_present_success) {
16487 if (!(this_present_success && that_present_success)) {
16490 if (this.success != that.success) {
16499 public int hashCode() {
16500 List<Object> list = new ArrayList<Object>();
16502 boolean present_success = true;
16503 list.add(present_success);
16504 if (present_success)
16506 return list.hashCode();
16510 public int compareTo(setUpdateSource_result other) {
16511 if (!getClass().equals(other.getClass())) {
16512 return getClass().getName().compareTo(other.getClass().getName());
16515 int lastComparison = 0;
16517 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
16518 if (lastComparison != 0) {
16519 return lastComparison;
16521 if (isSetSuccess()) {
16522 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
16523 if (lastComparison != 0) {
16524 return lastComparison;
16531 public _Fields fieldForId(int fieldId) {
16532 return _Fields.findByThriftId(fieldId);
16536 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16537 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16541 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16542 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16546 public String toString() {
16547 StringBuilder sb = new StringBuilder("setUpdateSource_result(");
16548 boolean first = true;
16550 sb.append("success:");
16551 sb.append(this.success);
16554 return sb.toString();
16557 public void validate() throws org.apache.thrift.TException {
16558 // check for required fields
16559 // check for sub-struct validity
16562 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16564 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16565 } catch (org.apache.thrift.TException te) {
16566 throw new java.io.IOException(te);
16570 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16572 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16573 __isset_bitfield = 0;
16574 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16575 } catch (org.apache.thrift.TException te) {
16576 throw new java.io.IOException(te);
16580 private static class setUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
16582 public setUpdateSource_resultStandardScheme getScheme() {
16583 return new setUpdateSource_resultStandardScheme();
16587 private static class setUpdateSource_resultStandardScheme extends StandardScheme<setUpdateSource_result> {
16590 public void read(org.apache.thrift.protocol.TProtocol iprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16591 org.apache.thrift.protocol.TField schemeField;
16592 iprot.readStructBegin();
16595 schemeField = iprot.readFieldBegin();
16596 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16599 switch (schemeField.id) {
16601 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
16602 struct.success = iprot.readI32();
16603 struct.setSuccessIsSet(true);
16605 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16609 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16611 iprot.readFieldEnd();
16613 iprot.readStructEnd();
16615 // check for required fields of primitive type, which can't be checked in the validate method
16620 public void write(org.apache.thrift.protocol.TProtocol oprot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16623 oprot.writeStructBegin(STRUCT_DESC);
16624 if (struct.isSetSuccess()) {
16625 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16626 oprot.writeI32(struct.success);
16627 oprot.writeFieldEnd();
16629 oprot.writeFieldStop();
16630 oprot.writeStructEnd();
16635 private static class setUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
16637 public setUpdateSource_resultTupleScheme getScheme() {
16638 return new setUpdateSource_resultTupleScheme();
16642 private static class setUpdateSource_resultTupleScheme extends TupleScheme<setUpdateSource_result> {
16645 public void write(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16646 TTupleProtocol oprot = (TTupleProtocol) prot;
16647 BitSet optionals = new BitSet();
16648 if (struct.isSetSuccess()) {
16651 oprot.writeBitSet(optionals, 1);
16652 if (struct.isSetSuccess()) {
16653 oprot.writeI32(struct.success);
16658 public void read(org.apache.thrift.protocol.TProtocol prot, setUpdateSource_result struct) throws org.apache.thrift.TException {
16659 TTupleProtocol iprot = (TTupleProtocol) prot;
16660 BitSet incoming = iprot.readBitSet(1);
16661 if (incoming.get(0)) {
16662 struct.success = iprot.readI32();
16663 struct.setSuccessIsSet(true);
16670 public static class unsetUpdateSource_args implements org.apache.thrift.TBase<unsetUpdateSource_args, unsetUpdateSource_args._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_args> {
16671 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_args");
16673 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);
16675 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
16677 schemes.put(StandardScheme.class, new unsetUpdateSource_argsStandardSchemeFactory());
16678 schemes.put(TupleScheme.class, new unsetUpdateSource_argsTupleSchemeFactory());
16681 public String peerIp; // required
16683 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16684 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16685 PEER_IP((short)1, "peerIp");
16687 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16690 for (_Fields field : EnumSet.allOf(_Fields.class)) {
16691 byName.put(field.getFieldName(), field);
16696 * Find the _Fields constant that matches fieldId, or null if its not found.
16698 public static _Fields findByThriftId(int fieldId) {
16708 * Find the _Fields constant that matches fieldId, throwing an exception
16709 * if it is not found.
16711 public static _Fields findByThriftIdOrThrow(int fieldId) {
16712 _Fields fields = findByThriftId(fieldId);
16713 if (fields == null) {
16714 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16720 * Find the _Fields constant that matches name, or null if its not found.
16722 public static _Fields findByName(String name) {
16723 return byName.get(name);
16726 private final short _thriftId;
16727 private final String _fieldName;
16729 _Fields(short thriftId, String fieldName) {
16730 _thriftId = thriftId;
16731 _fieldName = fieldName;
16735 public short getThriftFieldId() {
16740 public String getFieldName() {
16745 // isset id assignments
16746 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16748 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16749 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
16750 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16751 metaDataMap = Collections.unmodifiableMap(tmpMap);
16752 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_args.class, metaDataMap);
16755 public unsetUpdateSource_args() {
16758 public unsetUpdateSource_args(
16762 this.peerIp = peerIp;
16766 * Performs a deep copy on <i>other</i>.
16768 public unsetUpdateSource_args(unsetUpdateSource_args other) {
16769 if (other.isSetPeerIp()) {
16770 this.peerIp = other.peerIp;
16775 public unsetUpdateSource_args deepCopy() {
16776 return new unsetUpdateSource_args(this);
16780 public void clear() {
16781 this.peerIp = null;
16784 public String getPeerIp() {
16785 return this.peerIp;
16788 public unsetUpdateSource_args setPeerIp(String peerIp) {
16789 this.peerIp = peerIp;
16793 public void unsetPeerIp() {
16794 this.peerIp = null;
16797 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
16798 public boolean isSetPeerIp() {
16799 return this.peerIp != null;
16802 public void setPeerIpIsSet(boolean value) {
16804 this.peerIp = null;
16809 public void setFieldValue(_Fields field, Object value) {
16812 if (value == null) {
16815 setPeerIp((String)value);
16823 public Object getFieldValue(_Fields field) {
16826 return getPeerIp();
16829 throw new IllegalStateException();
16832 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16834 public boolean isSet(_Fields field) {
16835 if (field == null) {
16836 throw new IllegalArgumentException();
16841 return isSetPeerIp();
16843 throw new IllegalStateException();
16847 public boolean equals(Object that) {
16848 if (that == null) {
16851 if (that instanceof unsetUpdateSource_args) {
16852 return this.equals((unsetUpdateSource_args)that);
16857 public boolean equals(unsetUpdateSource_args that) {
16858 if (that == null) {
16862 boolean this_present_peerIp = true && this.isSetPeerIp();
16863 boolean that_present_peerIp = true && that.isSetPeerIp();
16864 if (this_present_peerIp || that_present_peerIp) {
16865 if (!(this_present_peerIp && that_present_peerIp)) {
16868 if (!this.peerIp.equals(that.peerIp)) {
16877 public int hashCode() {
16878 List<Object> list = new ArrayList<Object>();
16880 boolean present_peerIp = true && (isSetPeerIp());
16881 list.add(present_peerIp);
16882 if (present_peerIp)
16884 return list.hashCode();
16888 public int compareTo(unsetUpdateSource_args other) {
16889 if (!getClass().equals(other.getClass())) {
16890 return getClass().getName().compareTo(other.getClass().getName());
16893 int lastComparison = 0;
16895 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
16896 if (lastComparison != 0) {
16897 return lastComparison;
16899 if (isSetPeerIp()) {
16900 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
16901 if (lastComparison != 0) {
16902 return lastComparison;
16909 public _Fields fieldForId(int fieldId) {
16910 return _Fields.findByThriftId(fieldId);
16914 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16915 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
16919 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16920 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
16924 public String toString() {
16925 StringBuilder sb = new StringBuilder("unsetUpdateSource_args(");
16926 boolean first = true;
16928 sb.append("peerIp:");
16929 if (this.peerIp == null) {
16932 sb.append(this.peerIp);
16936 return sb.toString();
16939 public void validate() throws org.apache.thrift.TException {
16940 // check for required fields
16941 // check for sub-struct validity
16944 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16946 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16947 } catch (org.apache.thrift.TException te) {
16948 throw new java.io.IOException(te);
16952 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16954 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16955 } catch (org.apache.thrift.TException te) {
16956 throw new java.io.IOException(te);
16960 private static class unsetUpdateSource_argsStandardSchemeFactory implements SchemeFactory {
16962 public unsetUpdateSource_argsStandardScheme getScheme() {
16963 return new unsetUpdateSource_argsStandardScheme();
16967 private static class unsetUpdateSource_argsStandardScheme extends StandardScheme<unsetUpdateSource_args> {
16970 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
16971 org.apache.thrift.protocol.TField schemeField;
16972 iprot.readStructBegin();
16975 schemeField = iprot.readFieldBegin();
16976 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
16979 switch (schemeField.id) {
16981 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
16982 struct.peerIp = iprot.readString();
16983 struct.setPeerIpIsSet(true);
16985 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16989 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
16991 iprot.readFieldEnd();
16993 iprot.readStructEnd();
16995 // check for required fields of primitive type, which can't be checked in the validate method
17000 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17003 oprot.writeStructBegin(STRUCT_DESC);
17004 if (struct.peerIp != null) {
17005 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17006 oprot.writeString(struct.peerIp);
17007 oprot.writeFieldEnd();
17009 oprot.writeFieldStop();
17010 oprot.writeStructEnd();
17015 private static class unsetUpdateSource_argsTupleSchemeFactory implements SchemeFactory {
17017 public unsetUpdateSource_argsTupleScheme getScheme() {
17018 return new unsetUpdateSource_argsTupleScheme();
17022 private static class unsetUpdateSource_argsTupleScheme extends TupleScheme<unsetUpdateSource_args> {
17025 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17026 TTupleProtocol oprot = (TTupleProtocol) prot;
17027 BitSet optionals = new BitSet();
17028 if (struct.isSetPeerIp()) {
17031 oprot.writeBitSet(optionals, 1);
17032 if (struct.isSetPeerIp()) {
17033 oprot.writeString(struct.peerIp);
17038 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_args struct) throws org.apache.thrift.TException {
17039 TTupleProtocol iprot = (TTupleProtocol) prot;
17040 BitSet incoming = iprot.readBitSet(1);
17041 if (incoming.get(0)) {
17042 struct.peerIp = iprot.readString();
17043 struct.setPeerIpIsSet(true);
17050 public static class unsetUpdateSource_result implements org.apache.thrift.TBase<unsetUpdateSource_result, unsetUpdateSource_result._Fields>, java.io.Serializable, Cloneable, Comparable<unsetUpdateSource_result> {
17051 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unsetUpdateSource_result");
17053 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);
17055 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17057 schemes.put(StandardScheme.class, new unsetUpdateSource_resultStandardSchemeFactory());
17058 schemes.put(TupleScheme.class, new unsetUpdateSource_resultTupleSchemeFactory());
17061 public int success; // required
17063 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17064 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17065 SUCCESS((short)0, "success");
17067 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17070 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17071 byName.put(field.getFieldName(), field);
17076 * Find the _Fields constant that matches fieldId, or null if its not found.
17078 public static _Fields findByThriftId(int fieldId) {
17088 * Find the _Fields constant that matches fieldId, throwing an exception
17089 * if it is not found.
17091 public static _Fields findByThriftIdOrThrow(int fieldId) {
17092 _Fields fields = findByThriftId(fieldId);
17093 if (fields == null) {
17094 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17100 * Find the _Fields constant that matches name, or null if its not found.
17102 public static _Fields findByName(String name) {
17103 return byName.get(name);
17106 private final short _thriftId;
17107 private final String _fieldName;
17109 _Fields(short thriftId, String fieldName) {
17110 _thriftId = thriftId;
17111 _fieldName = fieldName;
17115 public short getThriftFieldId() {
17120 public String getFieldName() {
17125 // isset id assignments
17126 private static final int __SUCCESS_ISSET_ID = 0;
17127 private byte __isset_bitfield = 0;
17128 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17130 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17131 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
17132 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
17133 metaDataMap = Collections.unmodifiableMap(tmpMap);
17134 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unsetUpdateSource_result.class, metaDataMap);
17137 public unsetUpdateSource_result() {
17140 public unsetUpdateSource_result(
17144 this.success = success;
17145 setSuccessIsSet(true);
17149 * Performs a deep copy on <i>other</i>.
17151 public unsetUpdateSource_result(unsetUpdateSource_result other) {
17152 __isset_bitfield = other.__isset_bitfield;
17153 this.success = other.success;
17157 public unsetUpdateSource_result deepCopy() {
17158 return new unsetUpdateSource_result(this);
17162 public void clear() {
17163 setSuccessIsSet(false);
17167 public int getSuccess() {
17168 return this.success;
17171 public unsetUpdateSource_result setSuccess(int success) {
17172 this.success = success;
17173 setSuccessIsSet(true);
17177 public void unsetSuccess() {
17178 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17181 /** Returns true if field success is set (has been assigned a value) and false otherwise */
17182 public boolean isSetSuccess() {
17183 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
17186 public void setSuccessIsSet(boolean value) {
17187 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
17191 public void setFieldValue(_Fields field, Object value) {
17194 if (value == null) {
17197 setSuccess((Integer)value);
17205 public Object getFieldValue(_Fields field) {
17208 return Integer.valueOf(getSuccess());
17211 throw new IllegalStateException();
17214 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17216 public boolean isSet(_Fields field) {
17217 if (field == null) {
17218 throw new IllegalArgumentException();
17223 return isSetSuccess();
17225 throw new IllegalStateException();
17229 public boolean equals(Object that) {
17230 if (that == null) {
17233 if (that instanceof unsetUpdateSource_result) {
17234 return this.equals((unsetUpdateSource_result)that);
17239 public boolean equals(unsetUpdateSource_result that) {
17240 if (that == null) {
17244 boolean this_present_success = true;
17245 boolean that_present_success = true;
17246 if (this_present_success || that_present_success) {
17247 if (!(this_present_success && that_present_success)) {
17250 if (this.success != that.success) {
17259 public int hashCode() {
17260 List<Object> list = new ArrayList<Object>();
17262 boolean present_success = true;
17263 list.add(present_success);
17264 if (present_success)
17266 return list.hashCode();
17270 public int compareTo(unsetUpdateSource_result other) {
17271 if (!getClass().equals(other.getClass())) {
17272 return getClass().getName().compareTo(other.getClass().getName());
17275 int lastComparison = 0;
17277 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
17278 if (lastComparison != 0) {
17279 return lastComparison;
17281 if (isSetSuccess()) {
17282 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
17283 if (lastComparison != 0) {
17284 return lastComparison;
17291 public _Fields fieldForId(int fieldId) {
17292 return _Fields.findByThriftId(fieldId);
17296 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17297 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17301 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17302 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17306 public String toString() {
17307 StringBuilder sb = new StringBuilder("unsetUpdateSource_result(");
17308 boolean first = true;
17310 sb.append("success:");
17311 sb.append(this.success);
17314 return sb.toString();
17317 public void validate() throws org.apache.thrift.TException {
17318 // check for required fields
17319 // check for sub-struct validity
17322 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17324 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17325 } catch (org.apache.thrift.TException te) {
17326 throw new java.io.IOException(te);
17330 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17332 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
17333 __isset_bitfield = 0;
17334 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17335 } catch (org.apache.thrift.TException te) {
17336 throw new java.io.IOException(te);
17340 private static class unsetUpdateSource_resultStandardSchemeFactory implements SchemeFactory {
17342 public unsetUpdateSource_resultStandardScheme getScheme() {
17343 return new unsetUpdateSource_resultStandardScheme();
17347 private static class unsetUpdateSource_resultStandardScheme extends StandardScheme<unsetUpdateSource_result> {
17350 public void read(org.apache.thrift.protocol.TProtocol iprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17351 org.apache.thrift.protocol.TField schemeField;
17352 iprot.readStructBegin();
17355 schemeField = iprot.readFieldBegin();
17356 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17359 switch (schemeField.id) {
17361 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17362 struct.success = iprot.readI32();
17363 struct.setSuccessIsSet(true);
17365 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17369 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17371 iprot.readFieldEnd();
17373 iprot.readStructEnd();
17375 // check for required fields of primitive type, which can't be checked in the validate method
17380 public void write(org.apache.thrift.protocol.TProtocol oprot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17383 oprot.writeStructBegin(STRUCT_DESC);
17384 if (struct.isSetSuccess()) {
17385 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17386 oprot.writeI32(struct.success);
17387 oprot.writeFieldEnd();
17389 oprot.writeFieldStop();
17390 oprot.writeStructEnd();
17395 private static class unsetUpdateSource_resultTupleSchemeFactory implements SchemeFactory {
17397 public unsetUpdateSource_resultTupleScheme getScheme() {
17398 return new unsetUpdateSource_resultTupleScheme();
17402 private static class unsetUpdateSource_resultTupleScheme extends TupleScheme<unsetUpdateSource_result> {
17405 public void write(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17406 TTupleProtocol oprot = (TTupleProtocol) prot;
17407 BitSet optionals = new BitSet();
17408 if (struct.isSetSuccess()) {
17411 oprot.writeBitSet(optionals, 1);
17412 if (struct.isSetSuccess()) {
17413 oprot.writeI32(struct.success);
17418 public void read(org.apache.thrift.protocol.TProtocol prot, unsetUpdateSource_result struct) throws org.apache.thrift.TException {
17419 TTupleProtocol iprot = (TTupleProtocol) prot;
17420 BitSet incoming = iprot.readBitSet(1);
17421 if (incoming.get(0)) {
17422 struct.success = iprot.readI32();
17423 struct.setSuccessIsSet(true);
17430 public static class enableAddressFamily_args implements org.apache.thrift.TBase<enableAddressFamily_args, enableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_args> {
17431 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_args");
17433 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);
17434 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);
17435 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);
17437 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
17439 schemes.put(StandardScheme.class, new enableAddressFamily_argsStandardSchemeFactory());
17440 schemes.put(TupleScheme.class, new enableAddressFamily_argsTupleSchemeFactory());
17443 public String peerIp; // required
17448 public af_afi afi; // required
17453 public af_safi safi; // required
17455 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17456 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17457 PEER_IP((short)1, "peerIp"),
17462 AFI((short)2, "afi"),
17467 SAFI((short)3, "safi");
17469 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17472 for (_Fields field : EnumSet.allOf(_Fields.class)) {
17473 byName.put(field.getFieldName(), field);
17478 * Find the _Fields constant that matches fieldId, or null if its not found.
17480 public static _Fields findByThriftId(int fieldId) {
17494 * Find the _Fields constant that matches fieldId, throwing an exception
17495 * if it is not found.
17497 public static _Fields findByThriftIdOrThrow(int fieldId) {
17498 _Fields fields = findByThriftId(fieldId);
17499 if (fields == null) {
17500 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17506 * Find the _Fields constant that matches name, or null if its not found.
17508 public static _Fields findByName(String name) {
17509 return byName.get(name);
17512 private final short _thriftId;
17513 private final String _fieldName;
17515 _Fields(short thriftId, String fieldName) {
17516 _thriftId = thriftId;
17517 _fieldName = fieldName;
17521 public short getThriftFieldId() {
17526 public String getFieldName() {
17531 // isset id assignments
17532 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17534 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17535 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
17536 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17537 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17538 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
17539 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
17540 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
17541 metaDataMap = Collections.unmodifiableMap(tmpMap);
17542 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_args.class, metaDataMap);
17545 public enableAddressFamily_args() {
17548 public enableAddressFamily_args(
17554 this.peerIp = peerIp;
17560 * Performs a deep copy on <i>other</i>.
17562 public enableAddressFamily_args(enableAddressFamily_args other) {
17563 if (other.isSetPeerIp()) {
17564 this.peerIp = other.peerIp;
17566 if (other.isSetAfi()) {
17567 this.afi = other.afi;
17569 if (other.isSetSafi()) {
17570 this.safi = other.safi;
17575 public enableAddressFamily_args deepCopy() {
17576 return new enableAddressFamily_args(this);
17580 public void clear() {
17581 this.peerIp = null;
17586 public String getPeerIp() {
17587 return this.peerIp;
17590 public enableAddressFamily_args setPeerIp(String peerIp) {
17591 this.peerIp = peerIp;
17595 public void unsetPeerIp() {
17596 this.peerIp = null;
17599 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
17600 public boolean isSetPeerIp() {
17601 return this.peerIp != null;
17604 public void setPeerIpIsSet(boolean value) {
17606 this.peerIp = null;
17614 public af_afi getAfi() {
17622 public enableAddressFamily_args setAfi(af_afi afi) {
17627 public void unsetAfi() {
17631 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
17632 public boolean isSetAfi() {
17633 return this.afi != null;
17636 public void setAfiIsSet(boolean value) {
17646 public af_safi getSafi() {
17654 public enableAddressFamily_args setSafi(af_safi safi) {
17659 public void unsetSafi() {
17663 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
17664 public boolean isSetSafi() {
17665 return this.safi != null;
17668 public void setSafiIsSet(boolean value) {
17675 public void setFieldValue(_Fields field, Object value) {
17678 if (value == null) {
17681 setPeerIp((String)value);
17686 if (value == null) {
17689 setAfi((af_afi)value);
17694 if (value == null) {
17697 setSafi((af_safi)value);
17705 public Object getFieldValue(_Fields field) {
17708 return getPeerIp();
17717 throw new IllegalStateException();
17720 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17722 public boolean isSet(_Fields field) {
17723 if (field == null) {
17724 throw new IllegalArgumentException();
17729 return isSetPeerIp();
17733 return isSetSafi();
17735 throw new IllegalStateException();
17739 public boolean equals(Object that) {
17740 if (that == null) {
17743 if (that instanceof enableAddressFamily_args) {
17744 return this.equals((enableAddressFamily_args)that);
17749 public boolean equals(enableAddressFamily_args that) {
17750 if (that == null) {
17754 boolean this_present_peerIp = true && this.isSetPeerIp();
17755 boolean that_present_peerIp = true && that.isSetPeerIp();
17756 if (this_present_peerIp || that_present_peerIp) {
17757 if (!(this_present_peerIp && that_present_peerIp)) {
17760 if (!this.peerIp.equals(that.peerIp)) {
17765 boolean this_present_afi = true && this.isSetAfi();
17766 boolean that_present_afi = true && that.isSetAfi();
17767 if (this_present_afi || that_present_afi) {
17768 if (!(this_present_afi && that_present_afi)) {
17771 if (!this.afi.equals(that.afi)) {
17776 boolean this_present_safi = true && this.isSetSafi();
17777 boolean that_present_safi = true && that.isSetSafi();
17778 if (this_present_safi || that_present_safi) {
17779 if (!(this_present_safi && that_present_safi)) {
17782 if (!this.safi.equals(that.safi)) {
17791 public int hashCode() {
17792 List<Object> list = new ArrayList<Object>();
17794 boolean present_peerIp = true && (isSetPeerIp());
17795 list.add(present_peerIp);
17796 if (present_peerIp)
17798 boolean present_afi = true && (isSetAfi());
17799 list.add(present_afi);
17801 list.add(afi.getValue());
17802 boolean present_safi = true && (isSetSafi());
17803 list.add(present_safi);
17805 list.add(safi.getValue());
17806 return list.hashCode();
17810 public int compareTo(enableAddressFamily_args other) {
17811 if (!getClass().equals(other.getClass())) {
17812 return getClass().getName().compareTo(other.getClass().getName());
17815 int lastComparison = 0;
17817 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
17818 if (lastComparison != 0) {
17819 return lastComparison;
17821 if (isSetPeerIp()) {
17822 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
17823 if (lastComparison != 0) {
17824 return lastComparison;
17827 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
17828 if (lastComparison != 0) {
17829 return lastComparison;
17832 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
17833 if (lastComparison != 0) {
17834 return lastComparison;
17837 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
17838 if (lastComparison != 0) {
17839 return lastComparison;
17842 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
17843 if (lastComparison != 0) {
17844 return lastComparison;
17851 public _Fields fieldForId(int fieldId) {
17852 return _Fields.findByThriftId(fieldId);
17856 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17857 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
17861 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17862 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
17866 public String toString() {
17867 StringBuilder sb = new StringBuilder("enableAddressFamily_args(");
17868 boolean first = true;
17870 sb.append("peerIp:");
17871 if (this.peerIp == null) {
17874 sb.append(this.peerIp);
17881 if (this.afi == null) {
17884 sb.append(this.afi);
17890 sb.append("safi:");
17891 if (this.safi == null) {
17894 sb.append(this.safi);
17898 return sb.toString();
17901 public void validate() throws org.apache.thrift.TException {
17902 // check for required fields
17903 // check for sub-struct validity
17906 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17908 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17909 } catch (org.apache.thrift.TException te) {
17910 throw new java.io.IOException(te);
17914 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17916 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17917 } catch (org.apache.thrift.TException te) {
17918 throw new java.io.IOException(te);
17922 private static class enableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
17924 public enableAddressFamily_argsStandardScheme getScheme() {
17925 return new enableAddressFamily_argsStandardScheme();
17929 private static class enableAddressFamily_argsStandardScheme extends StandardScheme<enableAddressFamily_args> {
17932 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17933 org.apache.thrift.protocol.TField schemeField;
17934 iprot.readStructBegin();
17937 schemeField = iprot.readFieldBegin();
17938 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
17941 switch (schemeField.id) {
17943 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
17944 struct.peerIp = iprot.readString();
17945 struct.setPeerIpIsSet(true);
17947 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17951 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17952 struct.afi = af_afi.findByValue(iprot.readI32());
17953 struct.setAfiIsSet(true);
17955 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17959 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
17960 struct.safi = af_safi.findByValue(iprot.readI32());
17961 struct.setSafiIsSet(true);
17963 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17967 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
17969 iprot.readFieldEnd();
17971 iprot.readStructEnd();
17973 // check for required fields of primitive type, which can't be checked in the validate method
17978 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
17981 oprot.writeStructBegin(STRUCT_DESC);
17982 if (struct.peerIp != null) {
17983 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
17984 oprot.writeString(struct.peerIp);
17985 oprot.writeFieldEnd();
17987 if (struct.afi != null) {
17988 oprot.writeFieldBegin(AFI_FIELD_DESC);
17989 oprot.writeI32(struct.afi.getValue());
17990 oprot.writeFieldEnd();
17992 if (struct.safi != null) {
17993 oprot.writeFieldBegin(SAFI_FIELD_DESC);
17994 oprot.writeI32(struct.safi.getValue());
17995 oprot.writeFieldEnd();
17997 oprot.writeFieldStop();
17998 oprot.writeStructEnd();
18003 private static class enableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
18005 public enableAddressFamily_argsTupleScheme getScheme() {
18006 return new enableAddressFamily_argsTupleScheme();
18010 private static class enableAddressFamily_argsTupleScheme extends TupleScheme<enableAddressFamily_args> {
18013 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
18014 TTupleProtocol oprot = (TTupleProtocol) prot;
18015 BitSet optionals = new BitSet();
18016 if (struct.isSetPeerIp()) {
18019 if (struct.isSetAfi()) {
18022 if (struct.isSetSafi()) {
18025 oprot.writeBitSet(optionals, 3);
18026 if (struct.isSetPeerIp()) {
18027 oprot.writeString(struct.peerIp);
18029 if (struct.isSetAfi()) {
18030 oprot.writeI32(struct.afi.getValue());
18032 if (struct.isSetSafi()) {
18033 oprot.writeI32(struct.safi.getValue());
18038 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_args struct) throws org.apache.thrift.TException {
18039 TTupleProtocol iprot = (TTupleProtocol) prot;
18040 BitSet incoming = iprot.readBitSet(3);
18041 if (incoming.get(0)) {
18042 struct.peerIp = iprot.readString();
18043 struct.setPeerIpIsSet(true);
18045 if (incoming.get(1)) {
18046 struct.afi = af_afi.findByValue(iprot.readI32());
18047 struct.setAfiIsSet(true);
18049 if (incoming.get(2)) {
18050 struct.safi = af_safi.findByValue(iprot.readI32());
18051 struct.setSafiIsSet(true);
18058 public static class enableAddressFamily_result implements org.apache.thrift.TBase<enableAddressFamily_result, enableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableAddressFamily_result> {
18059 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableAddressFamily_result");
18061 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);
18063 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18065 schemes.put(StandardScheme.class, new enableAddressFamily_resultStandardSchemeFactory());
18066 schemes.put(TupleScheme.class, new enableAddressFamily_resultTupleSchemeFactory());
18069 public int success; // required
18071 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18072 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18073 SUCCESS((short)0, "success");
18075 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18078 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18079 byName.put(field.getFieldName(), field);
18084 * Find the _Fields constant that matches fieldId, or null if its not found.
18086 public static _Fields findByThriftId(int fieldId) {
18096 * Find the _Fields constant that matches fieldId, throwing an exception
18097 * if it is not found.
18099 public static _Fields findByThriftIdOrThrow(int fieldId) {
18100 _Fields fields = findByThriftId(fieldId);
18101 if (fields == null) {
18102 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18108 * Find the _Fields constant that matches name, or null if its not found.
18110 public static _Fields findByName(String name) {
18111 return byName.get(name);
18114 private final short _thriftId;
18115 private final String _fieldName;
18117 _Fields(short thriftId, String fieldName) {
18118 _thriftId = thriftId;
18119 _fieldName = fieldName;
18123 public short getThriftFieldId() {
18128 public String getFieldName() {
18133 // isset id assignments
18134 private static final int __SUCCESS_ISSET_ID = 0;
18135 private byte __isset_bitfield = 0;
18136 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18138 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18139 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
18140 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
18141 metaDataMap = Collections.unmodifiableMap(tmpMap);
18142 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableAddressFamily_result.class, metaDataMap);
18145 public enableAddressFamily_result() {
18148 public enableAddressFamily_result(
18152 this.success = success;
18153 setSuccessIsSet(true);
18157 * Performs a deep copy on <i>other</i>.
18159 public enableAddressFamily_result(enableAddressFamily_result other) {
18160 __isset_bitfield = other.__isset_bitfield;
18161 this.success = other.success;
18165 public enableAddressFamily_result deepCopy() {
18166 return new enableAddressFamily_result(this);
18170 public void clear() {
18171 setSuccessIsSet(false);
18175 public int getSuccess() {
18176 return this.success;
18179 public enableAddressFamily_result setSuccess(int success) {
18180 this.success = success;
18181 setSuccessIsSet(true);
18185 public void unsetSuccess() {
18186 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18189 /** Returns true if field success is set (has been assigned a value) and false otherwise */
18190 public boolean isSetSuccess() {
18191 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
18194 public void setSuccessIsSet(boolean value) {
18195 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
18199 public void setFieldValue(_Fields field, Object value) {
18202 if (value == null) {
18205 setSuccess((Integer)value);
18213 public Object getFieldValue(_Fields field) {
18216 return Integer.valueOf(getSuccess());
18219 throw new IllegalStateException();
18222 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18224 public boolean isSet(_Fields field) {
18225 if (field == null) {
18226 throw new IllegalArgumentException();
18231 return isSetSuccess();
18233 throw new IllegalStateException();
18237 public boolean equals(Object that) {
18238 if (that == null) {
18241 if (that instanceof enableAddressFamily_result) {
18242 return this.equals((enableAddressFamily_result)that);
18247 public boolean equals(enableAddressFamily_result that) {
18248 if (that == null) {
18252 boolean this_present_success = true;
18253 boolean that_present_success = true;
18254 if (this_present_success || that_present_success) {
18255 if (!(this_present_success && that_present_success)) {
18258 if (this.success != that.success) {
18267 public int hashCode() {
18268 List<Object> list = new ArrayList<Object>();
18270 boolean present_success = true;
18271 list.add(present_success);
18272 if (present_success)
18274 return list.hashCode();
18278 public int compareTo(enableAddressFamily_result other) {
18279 if (!getClass().equals(other.getClass())) {
18280 return getClass().getName().compareTo(other.getClass().getName());
18283 int lastComparison = 0;
18285 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
18286 if (lastComparison != 0) {
18287 return lastComparison;
18289 if (isSetSuccess()) {
18290 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
18291 if (lastComparison != 0) {
18292 return lastComparison;
18299 public _Fields fieldForId(int fieldId) {
18300 return _Fields.findByThriftId(fieldId);
18304 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18305 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18309 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18310 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18314 public String toString() {
18315 StringBuilder sb = new StringBuilder("enableAddressFamily_result(");
18316 boolean first = true;
18318 sb.append("success:");
18319 sb.append(this.success);
18322 return sb.toString();
18325 public void validate() throws org.apache.thrift.TException {
18326 // check for required fields
18327 // check for sub-struct validity
18330 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18332 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18333 } catch (org.apache.thrift.TException te) {
18334 throw new java.io.IOException(te);
18338 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18340 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18341 __isset_bitfield = 0;
18342 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18343 } catch (org.apache.thrift.TException te) {
18344 throw new java.io.IOException(te);
18348 private static class enableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
18350 public enableAddressFamily_resultStandardScheme getScheme() {
18351 return new enableAddressFamily_resultStandardScheme();
18355 private static class enableAddressFamily_resultStandardScheme extends StandardScheme<enableAddressFamily_result> {
18358 public void read(org.apache.thrift.protocol.TProtocol iprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18359 org.apache.thrift.protocol.TField schemeField;
18360 iprot.readStructBegin();
18363 schemeField = iprot.readFieldBegin();
18364 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18367 switch (schemeField.id) {
18369 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18370 struct.success = iprot.readI32();
18371 struct.setSuccessIsSet(true);
18373 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18377 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18379 iprot.readFieldEnd();
18381 iprot.readStructEnd();
18383 // check for required fields of primitive type, which can't be checked in the validate method
18388 public void write(org.apache.thrift.protocol.TProtocol oprot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18391 oprot.writeStructBegin(STRUCT_DESC);
18392 if (struct.isSetSuccess()) {
18393 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18394 oprot.writeI32(struct.success);
18395 oprot.writeFieldEnd();
18397 oprot.writeFieldStop();
18398 oprot.writeStructEnd();
18403 private static class enableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
18405 public enableAddressFamily_resultTupleScheme getScheme() {
18406 return new enableAddressFamily_resultTupleScheme();
18410 private static class enableAddressFamily_resultTupleScheme extends TupleScheme<enableAddressFamily_result> {
18413 public void write(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18414 TTupleProtocol oprot = (TTupleProtocol) prot;
18415 BitSet optionals = new BitSet();
18416 if (struct.isSetSuccess()) {
18419 oprot.writeBitSet(optionals, 1);
18420 if (struct.isSetSuccess()) {
18421 oprot.writeI32(struct.success);
18426 public void read(org.apache.thrift.protocol.TProtocol prot, enableAddressFamily_result struct) throws org.apache.thrift.TException {
18427 TTupleProtocol iprot = (TTupleProtocol) prot;
18428 BitSet incoming = iprot.readBitSet(1);
18429 if (incoming.get(0)) {
18430 struct.success = iprot.readI32();
18431 struct.setSuccessIsSet(true);
18438 public static class disableAddressFamily_args implements org.apache.thrift.TBase<disableAddressFamily_args, disableAddressFamily_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_args> {
18439 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_args");
18441 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);
18442 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);
18443 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);
18445 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
18447 schemes.put(StandardScheme.class, new disableAddressFamily_argsStandardSchemeFactory());
18448 schemes.put(TupleScheme.class, new disableAddressFamily_argsTupleSchemeFactory());
18451 public String peerIp; // required
18456 public af_afi afi; // required
18461 public af_safi safi; // required
18463 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18464 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18465 PEER_IP((short)1, "peerIp"),
18470 AFI((short)2, "afi"),
18475 SAFI((short)3, "safi");
18477 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18480 for (_Fields field : EnumSet.allOf(_Fields.class)) {
18481 byName.put(field.getFieldName(), field);
18486 * Find the _Fields constant that matches fieldId, or null if its not found.
18488 public static _Fields findByThriftId(int fieldId) {
18502 * Find the _Fields constant that matches fieldId, throwing an exception
18503 * if it is not found.
18505 public static _Fields findByThriftIdOrThrow(int fieldId) {
18506 _Fields fields = findByThriftId(fieldId);
18507 if (fields == null) {
18508 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18514 * Find the _Fields constant that matches name, or null if its not found.
18516 public static _Fields findByName(String name) {
18517 return byName.get(name);
18520 private final short _thriftId;
18521 private final String _fieldName;
18523 _Fields(short thriftId, String fieldName) {
18524 _thriftId = thriftId;
18525 _fieldName = fieldName;
18529 public short getThriftFieldId() {
18534 public String getFieldName() {
18539 // isset id assignments
18540 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18542 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18543 tmpMap.put(_Fields.PEER_IP, new org.apache.thrift.meta_data.FieldMetaData("peerIp", org.apache.thrift.TFieldRequirementType.DEFAULT,
18544 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18545 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18546 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
18547 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
18548 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
18549 metaDataMap = Collections.unmodifiableMap(tmpMap);
18550 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_args.class, metaDataMap);
18553 public disableAddressFamily_args() {
18556 public disableAddressFamily_args(
18562 this.peerIp = peerIp;
18568 * Performs a deep copy on <i>other</i>.
18570 public disableAddressFamily_args(disableAddressFamily_args other) {
18571 if (other.isSetPeerIp()) {
18572 this.peerIp = other.peerIp;
18574 if (other.isSetAfi()) {
18575 this.afi = other.afi;
18577 if (other.isSetSafi()) {
18578 this.safi = other.safi;
18583 public disableAddressFamily_args deepCopy() {
18584 return new disableAddressFamily_args(this);
18588 public void clear() {
18589 this.peerIp = null;
18594 public String getPeerIp() {
18595 return this.peerIp;
18598 public disableAddressFamily_args setPeerIp(String peerIp) {
18599 this.peerIp = peerIp;
18603 public void unsetPeerIp() {
18604 this.peerIp = null;
18607 /** Returns true if field peerIp is set (has been assigned a value) and false otherwise */
18608 public boolean isSetPeerIp() {
18609 return this.peerIp != null;
18612 public void setPeerIpIsSet(boolean value) {
18614 this.peerIp = null;
18622 public af_afi getAfi() {
18630 public disableAddressFamily_args setAfi(af_afi afi) {
18635 public void unsetAfi() {
18639 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
18640 public boolean isSetAfi() {
18641 return this.afi != null;
18644 public void setAfiIsSet(boolean value) {
18654 public af_safi getSafi() {
18662 public disableAddressFamily_args setSafi(af_safi safi) {
18667 public void unsetSafi() {
18671 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
18672 public boolean isSetSafi() {
18673 return this.safi != null;
18676 public void setSafiIsSet(boolean value) {
18683 public void setFieldValue(_Fields field, Object value) {
18686 if (value == null) {
18689 setPeerIp((String)value);
18694 if (value == null) {
18697 setAfi((af_afi)value);
18702 if (value == null) {
18705 setSafi((af_safi)value);
18713 public Object getFieldValue(_Fields field) {
18716 return getPeerIp();
18725 throw new IllegalStateException();
18728 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18730 public boolean isSet(_Fields field) {
18731 if (field == null) {
18732 throw new IllegalArgumentException();
18737 return isSetPeerIp();
18741 return isSetSafi();
18743 throw new IllegalStateException();
18747 public boolean equals(Object that) {
18748 if (that == null) {
18751 if (that instanceof disableAddressFamily_args) {
18752 return this.equals((disableAddressFamily_args)that);
18757 public boolean equals(disableAddressFamily_args that) {
18758 if (that == null) {
18762 boolean this_present_peerIp = true && this.isSetPeerIp();
18763 boolean that_present_peerIp = true && that.isSetPeerIp();
18764 if (this_present_peerIp || that_present_peerIp) {
18765 if (!(this_present_peerIp && that_present_peerIp)) {
18768 if (!this.peerIp.equals(that.peerIp)) {
18773 boolean this_present_afi = true && this.isSetAfi();
18774 boolean that_present_afi = true && that.isSetAfi();
18775 if (this_present_afi || that_present_afi) {
18776 if (!(this_present_afi && that_present_afi)) {
18779 if (!this.afi.equals(that.afi)) {
18784 boolean this_present_safi = true && this.isSetSafi();
18785 boolean that_present_safi = true && that.isSetSafi();
18786 if (this_present_safi || that_present_safi) {
18787 if (!(this_present_safi && that_present_safi)) {
18790 if (!this.safi.equals(that.safi)) {
18799 public int hashCode() {
18800 List<Object> list = new ArrayList<Object>();
18802 boolean present_peerIp = true && (isSetPeerIp());
18803 list.add(present_peerIp);
18804 if (present_peerIp)
18806 boolean present_afi = true && (isSetAfi());
18807 list.add(present_afi);
18809 list.add(afi.getValue());
18810 boolean present_safi = true && (isSetSafi());
18811 list.add(present_safi);
18813 list.add(safi.getValue());
18814 return list.hashCode();
18818 public int compareTo(disableAddressFamily_args other) {
18819 if (!getClass().equals(other.getClass())) {
18820 return getClass().getName().compareTo(other.getClass().getName());
18823 int lastComparison = 0;
18825 lastComparison = Boolean.valueOf(isSetPeerIp()).compareTo(other.isSetPeerIp());
18826 if (lastComparison != 0) {
18827 return lastComparison;
18829 if (isSetPeerIp()) {
18830 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.peerIp, other.peerIp);
18831 if (lastComparison != 0) {
18832 return lastComparison;
18835 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
18836 if (lastComparison != 0) {
18837 return lastComparison;
18840 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
18841 if (lastComparison != 0) {
18842 return lastComparison;
18845 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
18846 if (lastComparison != 0) {
18847 return lastComparison;
18850 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
18851 if (lastComparison != 0) {
18852 return lastComparison;
18859 public _Fields fieldForId(int fieldId) {
18860 return _Fields.findByThriftId(fieldId);
18864 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18865 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
18869 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18870 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
18874 public String toString() {
18875 StringBuilder sb = new StringBuilder("disableAddressFamily_args(");
18876 boolean first = true;
18878 sb.append("peerIp:");
18879 if (this.peerIp == null) {
18882 sb.append(this.peerIp);
18889 if (this.afi == null) {
18892 sb.append(this.afi);
18898 sb.append("safi:");
18899 if (this.safi == null) {
18902 sb.append(this.safi);
18906 return sb.toString();
18909 public void validate() throws org.apache.thrift.TException {
18910 // check for required fields
18911 // check for sub-struct validity
18914 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18916 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18917 } catch (org.apache.thrift.TException te) {
18918 throw new java.io.IOException(te);
18922 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18924 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18925 } catch (org.apache.thrift.TException te) {
18926 throw new java.io.IOException(te);
18930 private static class disableAddressFamily_argsStandardSchemeFactory implements SchemeFactory {
18932 public disableAddressFamily_argsStandardScheme getScheme() {
18933 return new disableAddressFamily_argsStandardScheme();
18937 private static class disableAddressFamily_argsStandardScheme extends StandardScheme<disableAddressFamily_args> {
18940 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18941 org.apache.thrift.protocol.TField schemeField;
18942 iprot.readStructBegin();
18945 schemeField = iprot.readFieldBegin();
18946 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
18949 switch (schemeField.id) {
18951 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
18952 struct.peerIp = iprot.readString();
18953 struct.setPeerIpIsSet(true);
18955 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18959 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18960 struct.afi = af_afi.findByValue(iprot.readI32());
18961 struct.setAfiIsSet(true);
18963 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18967 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
18968 struct.safi = af_safi.findByValue(iprot.readI32());
18969 struct.setSafiIsSet(true);
18971 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18975 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
18977 iprot.readFieldEnd();
18979 iprot.readStructEnd();
18981 // check for required fields of primitive type, which can't be checked in the validate method
18986 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
18989 oprot.writeStructBegin(STRUCT_DESC);
18990 if (struct.peerIp != null) {
18991 oprot.writeFieldBegin(PEER_IP_FIELD_DESC);
18992 oprot.writeString(struct.peerIp);
18993 oprot.writeFieldEnd();
18995 if (struct.afi != null) {
18996 oprot.writeFieldBegin(AFI_FIELD_DESC);
18997 oprot.writeI32(struct.afi.getValue());
18998 oprot.writeFieldEnd();
19000 if (struct.safi != null) {
19001 oprot.writeFieldBegin(SAFI_FIELD_DESC);
19002 oprot.writeI32(struct.safi.getValue());
19003 oprot.writeFieldEnd();
19005 oprot.writeFieldStop();
19006 oprot.writeStructEnd();
19011 private static class disableAddressFamily_argsTupleSchemeFactory implements SchemeFactory {
19013 public disableAddressFamily_argsTupleScheme getScheme() {
19014 return new disableAddressFamily_argsTupleScheme();
19018 private static class disableAddressFamily_argsTupleScheme extends TupleScheme<disableAddressFamily_args> {
19021 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
19022 TTupleProtocol oprot = (TTupleProtocol) prot;
19023 BitSet optionals = new BitSet();
19024 if (struct.isSetPeerIp()) {
19027 if (struct.isSetAfi()) {
19030 if (struct.isSetSafi()) {
19033 oprot.writeBitSet(optionals, 3);
19034 if (struct.isSetPeerIp()) {
19035 oprot.writeString(struct.peerIp);
19037 if (struct.isSetAfi()) {
19038 oprot.writeI32(struct.afi.getValue());
19040 if (struct.isSetSafi()) {
19041 oprot.writeI32(struct.safi.getValue());
19046 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_args struct) throws org.apache.thrift.TException {
19047 TTupleProtocol iprot = (TTupleProtocol) prot;
19048 BitSet incoming = iprot.readBitSet(3);
19049 if (incoming.get(0)) {
19050 struct.peerIp = iprot.readString();
19051 struct.setPeerIpIsSet(true);
19053 if (incoming.get(1)) {
19054 struct.afi = af_afi.findByValue(iprot.readI32());
19055 struct.setAfiIsSet(true);
19057 if (incoming.get(2)) {
19058 struct.safi = af_safi.findByValue(iprot.readI32());
19059 struct.setSafiIsSet(true);
19066 public static class disableAddressFamily_result implements org.apache.thrift.TBase<disableAddressFamily_result, disableAddressFamily_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableAddressFamily_result> {
19067 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableAddressFamily_result");
19069 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);
19071 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19073 schemes.put(StandardScheme.class, new disableAddressFamily_resultStandardSchemeFactory());
19074 schemes.put(TupleScheme.class, new disableAddressFamily_resultTupleSchemeFactory());
19077 public int success; // required
19079 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19080 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19081 SUCCESS((short)0, "success");
19083 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19086 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19087 byName.put(field.getFieldName(), field);
19092 * Find the _Fields constant that matches fieldId, or null if its not found.
19094 public static _Fields findByThriftId(int fieldId) {
19104 * Find the _Fields constant that matches fieldId, throwing an exception
19105 * if it is not found.
19107 public static _Fields findByThriftIdOrThrow(int fieldId) {
19108 _Fields fields = findByThriftId(fieldId);
19109 if (fields == null) {
19110 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19116 * Find the _Fields constant that matches name, or null if its not found.
19118 public static _Fields findByName(String name) {
19119 return byName.get(name);
19122 private final short _thriftId;
19123 private final String _fieldName;
19125 _Fields(short thriftId, String fieldName) {
19126 _thriftId = thriftId;
19127 _fieldName = fieldName;
19131 public short getThriftFieldId() {
19136 public String getFieldName() {
19141 // isset id assignments
19142 private static final int __SUCCESS_ISSET_ID = 0;
19143 private byte __isset_bitfield = 0;
19144 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19146 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19147 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
19148 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
19149 metaDataMap = Collections.unmodifiableMap(tmpMap);
19150 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableAddressFamily_result.class, metaDataMap);
19153 public disableAddressFamily_result() {
19156 public disableAddressFamily_result(
19160 this.success = success;
19161 setSuccessIsSet(true);
19165 * Performs a deep copy on <i>other</i>.
19167 public disableAddressFamily_result(disableAddressFamily_result other) {
19168 __isset_bitfield = other.__isset_bitfield;
19169 this.success = other.success;
19173 public disableAddressFamily_result deepCopy() {
19174 return new disableAddressFamily_result(this);
19178 public void clear() {
19179 setSuccessIsSet(false);
19183 public int getSuccess() {
19184 return this.success;
19187 public disableAddressFamily_result setSuccess(int success) {
19188 this.success = success;
19189 setSuccessIsSet(true);
19193 public void unsetSuccess() {
19194 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19197 /** Returns true if field success is set (has been assigned a value) and false otherwise */
19198 public boolean isSetSuccess() {
19199 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
19202 public void setSuccessIsSet(boolean value) {
19203 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
19207 public void setFieldValue(_Fields field, Object value) {
19210 if (value == null) {
19213 setSuccess((Integer)value);
19221 public Object getFieldValue(_Fields field) {
19224 return Integer.valueOf(getSuccess());
19227 throw new IllegalStateException();
19230 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19232 public boolean isSet(_Fields field) {
19233 if (field == null) {
19234 throw new IllegalArgumentException();
19239 return isSetSuccess();
19241 throw new IllegalStateException();
19245 public boolean equals(Object that) {
19246 if (that == null) {
19249 if (that instanceof disableAddressFamily_result) {
19250 return this.equals((disableAddressFamily_result)that);
19255 public boolean equals(disableAddressFamily_result that) {
19256 if (that == null) {
19260 boolean this_present_success = true;
19261 boolean that_present_success = true;
19262 if (this_present_success || that_present_success) {
19263 if (!(this_present_success && that_present_success)) {
19266 if (this.success != that.success) {
19275 public int hashCode() {
19276 List<Object> list = new ArrayList<Object>();
19278 boolean present_success = true;
19279 list.add(present_success);
19280 if (present_success)
19282 return list.hashCode();
19286 public int compareTo(disableAddressFamily_result other) {
19287 if (!getClass().equals(other.getClass())) {
19288 return getClass().getName().compareTo(other.getClass().getName());
19291 int lastComparison = 0;
19293 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
19294 if (lastComparison != 0) {
19295 return lastComparison;
19297 if (isSetSuccess()) {
19298 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
19299 if (lastComparison != 0) {
19300 return lastComparison;
19307 public _Fields fieldForId(int fieldId) {
19308 return _Fields.findByThriftId(fieldId);
19312 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19313 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19317 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19318 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19322 public String toString() {
19323 StringBuilder sb = new StringBuilder("disableAddressFamily_result(");
19324 boolean first = true;
19326 sb.append("success:");
19327 sb.append(this.success);
19330 return sb.toString();
19333 public void validate() throws org.apache.thrift.TException {
19334 // check for required fields
19335 // check for sub-struct validity
19338 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19340 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19341 } catch (org.apache.thrift.TException te) {
19342 throw new java.io.IOException(te);
19346 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19348 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19349 __isset_bitfield = 0;
19350 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19351 } catch (org.apache.thrift.TException te) {
19352 throw new java.io.IOException(te);
19356 private static class disableAddressFamily_resultStandardSchemeFactory implements SchemeFactory {
19358 public disableAddressFamily_resultStandardScheme getScheme() {
19359 return new disableAddressFamily_resultStandardScheme();
19363 private static class disableAddressFamily_resultStandardScheme extends StandardScheme<disableAddressFamily_result> {
19366 public void read(org.apache.thrift.protocol.TProtocol iprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19367 org.apache.thrift.protocol.TField schemeField;
19368 iprot.readStructBegin();
19371 schemeField = iprot.readFieldBegin();
19372 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19375 switch (schemeField.id) {
19377 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
19378 struct.success = iprot.readI32();
19379 struct.setSuccessIsSet(true);
19381 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19385 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19387 iprot.readFieldEnd();
19389 iprot.readStructEnd();
19391 // check for required fields of primitive type, which can't be checked in the validate method
19396 public void write(org.apache.thrift.protocol.TProtocol oprot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19399 oprot.writeStructBegin(STRUCT_DESC);
19400 if (struct.isSetSuccess()) {
19401 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19402 oprot.writeI32(struct.success);
19403 oprot.writeFieldEnd();
19405 oprot.writeFieldStop();
19406 oprot.writeStructEnd();
19411 private static class disableAddressFamily_resultTupleSchemeFactory implements SchemeFactory {
19413 public disableAddressFamily_resultTupleScheme getScheme() {
19414 return new disableAddressFamily_resultTupleScheme();
19418 private static class disableAddressFamily_resultTupleScheme extends TupleScheme<disableAddressFamily_result> {
19421 public void write(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19422 TTupleProtocol oprot = (TTupleProtocol) prot;
19423 BitSet optionals = new BitSet();
19424 if (struct.isSetSuccess()) {
19427 oprot.writeBitSet(optionals, 1);
19428 if (struct.isSetSuccess()) {
19429 oprot.writeI32(struct.success);
19434 public void read(org.apache.thrift.protocol.TProtocol prot, disableAddressFamily_result struct) throws org.apache.thrift.TException {
19435 TTupleProtocol iprot = (TTupleProtocol) prot;
19436 BitSet incoming = iprot.readBitSet(1);
19437 if (incoming.get(0)) {
19438 struct.success = iprot.readI32();
19439 struct.setSuccessIsSet(true);
19446 public static class setLogConfig_args implements org.apache.thrift.TBase<setLogConfig_args, setLogConfig_args._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_args> {
19447 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_args");
19449 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);
19450 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);
19452 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19454 schemes.put(StandardScheme.class, new setLogConfig_argsStandardSchemeFactory());
19455 schemes.put(TupleScheme.class, new setLogConfig_argsTupleSchemeFactory());
19458 public String logFileName; // required
19459 public String logLevel; // required
19461 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19462 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19463 LOG_FILE_NAME((short)1, "logFileName"),
19464 LOG_LEVEL((short)2, "logLevel");
19466 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19469 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19470 byName.put(field.getFieldName(), field);
19475 * Find the _Fields constant that matches fieldId, or null if its not found.
19477 public static _Fields findByThriftId(int fieldId) {
19479 case 1: // LOG_FILE_NAME
19480 return LOG_FILE_NAME;
19481 case 2: // LOG_LEVEL
19489 * Find the _Fields constant that matches fieldId, throwing an exception
19490 * if it is not found.
19492 public static _Fields findByThriftIdOrThrow(int fieldId) {
19493 _Fields fields = findByThriftId(fieldId);
19494 if (fields == null) {
19495 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19501 * Find the _Fields constant that matches name, or null if its not found.
19503 public static _Fields findByName(String name) {
19504 return byName.get(name);
19507 private final short _thriftId;
19508 private final String _fieldName;
19510 _Fields(short thriftId, String fieldName) {
19511 _thriftId = thriftId;
19512 _fieldName = fieldName;
19516 public short getThriftFieldId() {
19521 public String getFieldName() {
19526 // isset id assignments
19527 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19529 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19530 tmpMap.put(_Fields.LOG_FILE_NAME, new org.apache.thrift.meta_data.FieldMetaData("logFileName", org.apache.thrift.TFieldRequirementType.DEFAULT,
19531 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19532 tmpMap.put(_Fields.LOG_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("logLevel", org.apache.thrift.TFieldRequirementType.DEFAULT,
19533 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19534 metaDataMap = Collections.unmodifiableMap(tmpMap);
19535 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_args.class, metaDataMap);
19538 public setLogConfig_args() {
19541 public setLogConfig_args(
19542 String logFileName,
19546 this.logFileName = logFileName;
19547 this.logLevel = logLevel;
19551 * Performs a deep copy on <i>other</i>.
19553 public setLogConfig_args(setLogConfig_args other) {
19554 if (other.isSetLogFileName()) {
19555 this.logFileName = other.logFileName;
19557 if (other.isSetLogLevel()) {
19558 this.logLevel = other.logLevel;
19563 public setLogConfig_args deepCopy() {
19564 return new setLogConfig_args(this);
19568 public void clear() {
19569 this.logFileName = null;
19570 this.logLevel = null;
19573 public String getLogFileName() {
19574 return this.logFileName;
19577 public setLogConfig_args setLogFileName(String logFileName) {
19578 this.logFileName = logFileName;
19582 public void unsetLogFileName() {
19583 this.logFileName = null;
19586 /** Returns true if field logFileName is set (has been assigned a value) and false otherwise */
19587 public boolean isSetLogFileName() {
19588 return this.logFileName != null;
19591 public void setLogFileNameIsSet(boolean value) {
19593 this.logFileName = null;
19597 public String getLogLevel() {
19598 return this.logLevel;
19601 public setLogConfig_args setLogLevel(String logLevel) {
19602 this.logLevel = logLevel;
19606 public void unsetLogLevel() {
19607 this.logLevel = null;
19610 /** Returns true if field logLevel is set (has been assigned a value) and false otherwise */
19611 public boolean isSetLogLevel() {
19612 return this.logLevel != null;
19615 public void setLogLevelIsSet(boolean value) {
19617 this.logLevel = null;
19622 public void setFieldValue(_Fields field, Object value) {
19624 case LOG_FILE_NAME:
19625 if (value == null) {
19626 unsetLogFileName();
19628 setLogFileName((String)value);
19633 if (value == null) {
19636 setLogLevel((String)value);
19644 public Object getFieldValue(_Fields field) {
19646 case LOG_FILE_NAME:
19647 return getLogFileName();
19650 return getLogLevel();
19653 throw new IllegalStateException();
19656 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19658 public boolean isSet(_Fields field) {
19659 if (field == null) {
19660 throw new IllegalArgumentException();
19664 case LOG_FILE_NAME:
19665 return isSetLogFileName();
19667 return isSetLogLevel();
19669 throw new IllegalStateException();
19673 public boolean equals(Object that) {
19674 if (that == null) {
19677 if (that instanceof setLogConfig_args) {
19678 return this.equals((setLogConfig_args)that);
19683 public boolean equals(setLogConfig_args that) {
19684 if (that == null) {
19688 boolean this_present_logFileName = true && this.isSetLogFileName();
19689 boolean that_present_logFileName = true && that.isSetLogFileName();
19690 if (this_present_logFileName || that_present_logFileName) {
19691 if (!(this_present_logFileName && that_present_logFileName)) {
19694 if (!this.logFileName.equals(that.logFileName)) {
19699 boolean this_present_logLevel = true && this.isSetLogLevel();
19700 boolean that_present_logLevel = true && that.isSetLogLevel();
19701 if (this_present_logLevel || that_present_logLevel) {
19702 if (!(this_present_logLevel && that_present_logLevel)) {
19705 if (!this.logLevel.equals(that.logLevel)) {
19714 public int hashCode() {
19715 List<Object> list = new ArrayList<Object>();
19717 boolean present_logFileName = true && (isSetLogFileName());
19718 list.add(present_logFileName);
19719 if (present_logFileName)
19720 list.add(logFileName);
19721 boolean present_logLevel = true && (isSetLogLevel());
19722 list.add(present_logLevel);
19723 if (present_logLevel)
19724 list.add(logLevel);
19725 return list.hashCode();
19729 public int compareTo(setLogConfig_args other) {
19730 if (!getClass().equals(other.getClass())) {
19731 return getClass().getName().compareTo(other.getClass().getName());
19734 int lastComparison = 0;
19736 lastComparison = Boolean.valueOf(isSetLogFileName()).compareTo(other.isSetLogFileName());
19737 if (lastComparison != 0) {
19738 return lastComparison;
19740 if (isSetLogFileName()) {
19741 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logFileName, other.logFileName);
19742 if (lastComparison != 0) {
19743 return lastComparison;
19746 lastComparison = Boolean.valueOf(isSetLogLevel()).compareTo(other.isSetLogLevel());
19747 if (lastComparison != 0) {
19748 return lastComparison;
19750 if (isSetLogLevel()) {
19751 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logLevel, other.logLevel);
19752 if (lastComparison != 0) {
19753 return lastComparison;
19760 public _Fields fieldForId(int fieldId) {
19761 return _Fields.findByThriftId(fieldId);
19765 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19766 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
19770 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19771 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
19775 public String toString() {
19776 StringBuilder sb = new StringBuilder("setLogConfig_args(");
19777 boolean first = true;
19779 sb.append("logFileName:");
19780 if (this.logFileName == null) {
19783 sb.append(this.logFileName);
19789 sb.append("logLevel:");
19790 if (this.logLevel == null) {
19793 sb.append(this.logLevel);
19797 return sb.toString();
19800 public void validate() throws org.apache.thrift.TException {
19801 // check for required fields
19802 // check for sub-struct validity
19805 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19807 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19808 } catch (org.apache.thrift.TException te) {
19809 throw new java.io.IOException(te);
19813 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19815 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19816 } catch (org.apache.thrift.TException te) {
19817 throw new java.io.IOException(te);
19821 private static class setLogConfig_argsStandardSchemeFactory implements SchemeFactory {
19823 public setLogConfig_argsStandardScheme getScheme() {
19824 return new setLogConfig_argsStandardScheme();
19828 private static class setLogConfig_argsStandardScheme extends StandardScheme<setLogConfig_args> {
19831 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19832 org.apache.thrift.protocol.TField schemeField;
19833 iprot.readStructBegin();
19836 schemeField = iprot.readFieldBegin();
19837 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
19840 switch (schemeField.id) {
19841 case 1: // LOG_FILE_NAME
19842 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19843 struct.logFileName = iprot.readString();
19844 struct.setLogFileNameIsSet(true);
19846 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19849 case 2: // LOG_LEVEL
19850 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
19851 struct.logLevel = iprot.readString();
19852 struct.setLogLevelIsSet(true);
19854 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19858 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
19860 iprot.readFieldEnd();
19862 iprot.readStructEnd();
19864 // check for required fields of primitive type, which can't be checked in the validate method
19869 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_args struct) throws org.apache.thrift.TException {
19872 oprot.writeStructBegin(STRUCT_DESC);
19873 if (struct.logFileName != null) {
19874 oprot.writeFieldBegin(LOG_FILE_NAME_FIELD_DESC);
19875 oprot.writeString(struct.logFileName);
19876 oprot.writeFieldEnd();
19878 if (struct.logLevel != null) {
19879 oprot.writeFieldBegin(LOG_LEVEL_FIELD_DESC);
19880 oprot.writeString(struct.logLevel);
19881 oprot.writeFieldEnd();
19883 oprot.writeFieldStop();
19884 oprot.writeStructEnd();
19889 private static class setLogConfig_argsTupleSchemeFactory implements SchemeFactory {
19891 public setLogConfig_argsTupleScheme getScheme() {
19892 return new setLogConfig_argsTupleScheme();
19896 private static class setLogConfig_argsTupleScheme extends TupleScheme<setLogConfig_args> {
19899 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19900 TTupleProtocol oprot = (TTupleProtocol) prot;
19901 BitSet optionals = new BitSet();
19902 if (struct.isSetLogFileName()) {
19905 if (struct.isSetLogLevel()) {
19908 oprot.writeBitSet(optionals, 2);
19909 if (struct.isSetLogFileName()) {
19910 oprot.writeString(struct.logFileName);
19912 if (struct.isSetLogLevel()) {
19913 oprot.writeString(struct.logLevel);
19918 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_args struct) throws org.apache.thrift.TException {
19919 TTupleProtocol iprot = (TTupleProtocol) prot;
19920 BitSet incoming = iprot.readBitSet(2);
19921 if (incoming.get(0)) {
19922 struct.logFileName = iprot.readString();
19923 struct.setLogFileNameIsSet(true);
19925 if (incoming.get(1)) {
19926 struct.logLevel = iprot.readString();
19927 struct.setLogLevelIsSet(true);
19934 public static class setLogConfig_result implements org.apache.thrift.TBase<setLogConfig_result, setLogConfig_result._Fields>, java.io.Serializable, Cloneable, Comparable<setLogConfig_result> {
19935 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setLogConfig_result");
19937 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);
19939 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
19941 schemes.put(StandardScheme.class, new setLogConfig_resultStandardSchemeFactory());
19942 schemes.put(TupleScheme.class, new setLogConfig_resultTupleSchemeFactory());
19945 public int success; // required
19947 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19948 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19949 SUCCESS((short)0, "success");
19951 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19954 for (_Fields field : EnumSet.allOf(_Fields.class)) {
19955 byName.put(field.getFieldName(), field);
19960 * Find the _Fields constant that matches fieldId, or null if its not found.
19962 public static _Fields findByThriftId(int fieldId) {
19972 * Find the _Fields constant that matches fieldId, throwing an exception
19973 * if it is not found.
19975 public static _Fields findByThriftIdOrThrow(int fieldId) {
19976 _Fields fields = findByThriftId(fieldId);
19977 if (fields == null) {
19978 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19984 * Find the _Fields constant that matches name, or null if its not found.
19986 public static _Fields findByName(String name) {
19987 return byName.get(name);
19990 private final short _thriftId;
19991 private final String _fieldName;
19993 _Fields(short thriftId, String fieldName) {
19994 _thriftId = thriftId;
19995 _fieldName = fieldName;
19999 public short getThriftFieldId() {
20004 public String getFieldName() {
20009 // isset id assignments
20010 private static final int __SUCCESS_ISSET_ID = 0;
20011 private byte __isset_bitfield = 0;
20012 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20014 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20015 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20016 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20017 metaDataMap = Collections.unmodifiableMap(tmpMap);
20018 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setLogConfig_result.class, metaDataMap);
20021 public setLogConfig_result() {
20024 public setLogConfig_result(
20028 this.success = success;
20029 setSuccessIsSet(true);
20033 * Performs a deep copy on <i>other</i>.
20035 public setLogConfig_result(setLogConfig_result other) {
20036 __isset_bitfield = other.__isset_bitfield;
20037 this.success = other.success;
20041 public setLogConfig_result deepCopy() {
20042 return new setLogConfig_result(this);
20046 public void clear() {
20047 setSuccessIsSet(false);
20051 public int getSuccess() {
20052 return this.success;
20055 public setLogConfig_result setSuccess(int success) {
20056 this.success = success;
20057 setSuccessIsSet(true);
20061 public void unsetSuccess() {
20062 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20065 /** Returns true if field success is set (has been assigned a value) and false otherwise */
20066 public boolean isSetSuccess() {
20067 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20070 public void setSuccessIsSet(boolean value) {
20071 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20075 public void setFieldValue(_Fields field, Object value) {
20078 if (value == null) {
20081 setSuccess((Integer)value);
20089 public Object getFieldValue(_Fields field) {
20092 return Integer.valueOf(getSuccess());
20095 throw new IllegalStateException();
20098 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20100 public boolean isSet(_Fields field) {
20101 if (field == null) {
20102 throw new IllegalArgumentException();
20107 return isSetSuccess();
20109 throw new IllegalStateException();
20113 public boolean equals(Object that) {
20114 if (that == null) {
20117 if (that instanceof setLogConfig_result) {
20118 return this.equals((setLogConfig_result)that);
20123 public boolean equals(setLogConfig_result that) {
20124 if (that == null) {
20128 boolean this_present_success = true;
20129 boolean that_present_success = true;
20130 if (this_present_success || that_present_success) {
20131 if (!(this_present_success && that_present_success)) {
20134 if (this.success != that.success) {
20143 public int hashCode() {
20144 List<Object> list = new ArrayList<Object>();
20146 boolean present_success = true;
20147 list.add(present_success);
20148 if (present_success)
20150 return list.hashCode();
20154 public int compareTo(setLogConfig_result other) {
20155 if (!getClass().equals(other.getClass())) {
20156 return getClass().getName().compareTo(other.getClass().getName());
20159 int lastComparison = 0;
20161 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20162 if (lastComparison != 0) {
20163 return lastComparison;
20165 if (isSetSuccess()) {
20166 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20167 if (lastComparison != 0) {
20168 return lastComparison;
20175 public _Fields fieldForId(int fieldId) {
20176 return _Fields.findByThriftId(fieldId);
20180 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20181 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20185 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20186 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20190 public String toString() {
20191 StringBuilder sb = new StringBuilder("setLogConfig_result(");
20192 boolean first = true;
20194 sb.append("success:");
20195 sb.append(this.success);
20198 return sb.toString();
20201 public void validate() throws org.apache.thrift.TException {
20202 // check for required fields
20203 // check for sub-struct validity
20206 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20208 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20209 } catch (org.apache.thrift.TException te) {
20210 throw new java.io.IOException(te);
20214 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20216 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20217 __isset_bitfield = 0;
20218 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20219 } catch (org.apache.thrift.TException te) {
20220 throw new java.io.IOException(te);
20224 private static class setLogConfig_resultStandardSchemeFactory implements SchemeFactory {
20226 public setLogConfig_resultStandardScheme getScheme() {
20227 return new setLogConfig_resultStandardScheme();
20231 private static class setLogConfig_resultStandardScheme extends StandardScheme<setLogConfig_result> {
20234 public void read(org.apache.thrift.protocol.TProtocol iprot, setLogConfig_result struct) throws org.apache.thrift.TException {
20235 org.apache.thrift.protocol.TField schemeField;
20236 iprot.readStructBegin();
20239 schemeField = iprot.readFieldBegin();
20240 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20243 switch (schemeField.id) {
20245 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20246 struct.success = iprot.readI32();
20247 struct.setSuccessIsSet(true);
20249 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20253 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20255 iprot.readFieldEnd();
20257 iprot.readStructEnd();
20259 // check for required fields of primitive type, which can't be checked in the validate method
20264 public void write(org.apache.thrift.protocol.TProtocol oprot, setLogConfig_result struct) throws org.apache.thrift.TException {
20267 oprot.writeStructBegin(STRUCT_DESC);
20268 if (struct.isSetSuccess()) {
20269 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20270 oprot.writeI32(struct.success);
20271 oprot.writeFieldEnd();
20273 oprot.writeFieldStop();
20274 oprot.writeStructEnd();
20279 private static class setLogConfig_resultTupleSchemeFactory implements SchemeFactory {
20281 public setLogConfig_resultTupleScheme getScheme() {
20282 return new setLogConfig_resultTupleScheme();
20286 private static class setLogConfig_resultTupleScheme extends TupleScheme<setLogConfig_result> {
20289 public void write(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
20290 TTupleProtocol oprot = (TTupleProtocol) prot;
20291 BitSet optionals = new BitSet();
20292 if (struct.isSetSuccess()) {
20295 oprot.writeBitSet(optionals, 1);
20296 if (struct.isSetSuccess()) {
20297 oprot.writeI32(struct.success);
20302 public void read(org.apache.thrift.protocol.TProtocol prot, setLogConfig_result struct) throws org.apache.thrift.TException {
20303 TTupleProtocol iprot = (TTupleProtocol) prot;
20304 BitSet incoming = iprot.readBitSet(1);
20305 if (incoming.get(0)) {
20306 struct.success = iprot.readI32();
20307 struct.setSuccessIsSet(true);
20314 public static class enableGracefulRestart_args implements org.apache.thrift.TBase<enableGracefulRestart_args, enableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_args> {
20315 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_args");
20317 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);
20319 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20321 schemes.put(StandardScheme.class, new enableGracefulRestart_argsStandardSchemeFactory());
20322 schemes.put(TupleScheme.class, new enableGracefulRestart_argsTupleSchemeFactory());
20325 public int stalepathTime; // required
20327 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20328 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20329 STALEPATH_TIME((short)1, "stalepathTime");
20331 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20334 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20335 byName.put(field.getFieldName(), field);
20340 * Find the _Fields constant that matches fieldId, or null if its not found.
20342 public static _Fields findByThriftId(int fieldId) {
20344 case 1: // STALEPATH_TIME
20345 return STALEPATH_TIME;
20352 * Find the _Fields constant that matches fieldId, throwing an exception
20353 * if it is not found.
20355 public static _Fields findByThriftIdOrThrow(int fieldId) {
20356 _Fields fields = findByThriftId(fieldId);
20357 if (fields == null) {
20358 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20364 * Find the _Fields constant that matches name, or null if its not found.
20366 public static _Fields findByName(String name) {
20367 return byName.get(name);
20370 private final short _thriftId;
20371 private final String _fieldName;
20373 _Fields(short thriftId, String fieldName) {
20374 _thriftId = thriftId;
20375 _fieldName = fieldName;
20379 public short getThriftFieldId() {
20384 public String getFieldName() {
20389 // isset id assignments
20390 private static final int __STALEPATHTIME_ISSET_ID = 0;
20391 private byte __isset_bitfield = 0;
20392 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20394 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20395 tmpMap.put(_Fields.STALEPATH_TIME, new org.apache.thrift.meta_data.FieldMetaData("stalepathTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
20396 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20397 metaDataMap = Collections.unmodifiableMap(tmpMap);
20398 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_args.class, metaDataMap);
20401 public enableGracefulRestart_args() {
20404 public enableGracefulRestart_args(
20408 this.stalepathTime = stalepathTime;
20409 setStalepathTimeIsSet(true);
20413 * Performs a deep copy on <i>other</i>.
20415 public enableGracefulRestart_args(enableGracefulRestart_args other) {
20416 __isset_bitfield = other.__isset_bitfield;
20417 this.stalepathTime = other.stalepathTime;
20421 public enableGracefulRestart_args deepCopy() {
20422 return new enableGracefulRestart_args(this);
20426 public void clear() {
20427 setStalepathTimeIsSet(false);
20428 this.stalepathTime = 0;
20431 public int getStalepathTime() {
20432 return this.stalepathTime;
20435 public enableGracefulRestart_args setStalepathTime(int stalepathTime) {
20436 this.stalepathTime = stalepathTime;
20437 setStalepathTimeIsSet(true);
20441 public void unsetStalepathTime() {
20442 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20445 /** Returns true if field stalepathTime is set (has been assigned a value) and false otherwise */
20446 public boolean isSetStalepathTime() {
20447 return EncodingUtils.testBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID);
20450 public void setStalepathTimeIsSet(boolean value) {
20451 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __STALEPATHTIME_ISSET_ID, value);
20455 public void setFieldValue(_Fields field, Object value) {
20457 case STALEPATH_TIME:
20458 if (value == null) {
20459 unsetStalepathTime();
20461 setStalepathTime((Integer)value);
20469 public Object getFieldValue(_Fields field) {
20471 case STALEPATH_TIME:
20472 return Integer.valueOf(getStalepathTime());
20475 throw new IllegalStateException();
20478 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20480 public boolean isSet(_Fields field) {
20481 if (field == null) {
20482 throw new IllegalArgumentException();
20486 case STALEPATH_TIME:
20487 return isSetStalepathTime();
20489 throw new IllegalStateException();
20493 public boolean equals(Object that) {
20494 if (that == null) {
20497 if (that instanceof enableGracefulRestart_args) {
20498 return this.equals((enableGracefulRestart_args)that);
20503 public boolean equals(enableGracefulRestart_args that) {
20504 if (that == null) {
20508 boolean this_present_stalepathTime = true;
20509 boolean that_present_stalepathTime = true;
20510 if (this_present_stalepathTime || that_present_stalepathTime) {
20511 if (!(this_present_stalepathTime && that_present_stalepathTime)) {
20514 if (this.stalepathTime != that.stalepathTime) {
20523 public int hashCode() {
20524 List<Object> list = new ArrayList<Object>();
20526 boolean present_stalepathTime = true;
20527 list.add(present_stalepathTime);
20528 if (present_stalepathTime)
20529 list.add(stalepathTime);
20530 return list.hashCode();
20534 public int compareTo(enableGracefulRestart_args other) {
20535 if (!getClass().equals(other.getClass())) {
20536 return getClass().getName().compareTo(other.getClass().getName());
20539 int lastComparison = 0;
20541 lastComparison = Boolean.valueOf(isSetStalepathTime()).compareTo(other.isSetStalepathTime());
20542 if (lastComparison != 0) {
20543 return lastComparison;
20545 if (isSetStalepathTime()) {
20546 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stalepathTime, other.stalepathTime);
20547 if (lastComparison != 0) {
20548 return lastComparison;
20555 public _Fields fieldForId(int fieldId) {
20556 return _Fields.findByThriftId(fieldId);
20560 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20561 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20565 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20566 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20570 public String toString() {
20571 StringBuilder sb = new StringBuilder("enableGracefulRestart_args(");
20572 boolean first = true;
20574 sb.append("stalepathTime:");
20575 sb.append(this.stalepathTime);
20578 return sb.toString();
20581 public void validate() throws org.apache.thrift.TException {
20582 // check for required fields
20583 // check for sub-struct validity
20586 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20588 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20589 } catch (org.apache.thrift.TException te) {
20590 throw new java.io.IOException(te);
20594 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20596 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20597 __isset_bitfield = 0;
20598 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20599 } catch (org.apache.thrift.TException te) {
20600 throw new java.io.IOException(te);
20604 private static class enableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
20606 public enableGracefulRestart_argsStandardScheme getScheme() {
20607 return new enableGracefulRestart_argsStandardScheme();
20611 private static class enableGracefulRestart_argsStandardScheme extends StandardScheme<enableGracefulRestart_args> {
20614 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20615 org.apache.thrift.protocol.TField schemeField;
20616 iprot.readStructBegin();
20619 schemeField = iprot.readFieldBegin();
20620 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
20623 switch (schemeField.id) {
20624 case 1: // STALEPATH_TIME
20625 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
20626 struct.stalepathTime = iprot.readI32();
20627 struct.setStalepathTimeIsSet(true);
20629 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20633 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
20635 iprot.readFieldEnd();
20637 iprot.readStructEnd();
20639 // check for required fields of primitive type, which can't be checked in the validate method
20644 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20647 oprot.writeStructBegin(STRUCT_DESC);
20648 oprot.writeFieldBegin(STALEPATH_TIME_FIELD_DESC);
20649 oprot.writeI32(struct.stalepathTime);
20650 oprot.writeFieldEnd();
20651 oprot.writeFieldStop();
20652 oprot.writeStructEnd();
20657 private static class enableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
20659 public enableGracefulRestart_argsTupleScheme getScheme() {
20660 return new enableGracefulRestart_argsTupleScheme();
20664 private static class enableGracefulRestart_argsTupleScheme extends TupleScheme<enableGracefulRestart_args> {
20667 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20668 TTupleProtocol oprot = (TTupleProtocol) prot;
20669 BitSet optionals = new BitSet();
20670 if (struct.isSetStalepathTime()) {
20673 oprot.writeBitSet(optionals, 1);
20674 if (struct.isSetStalepathTime()) {
20675 oprot.writeI32(struct.stalepathTime);
20680 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_args struct) throws org.apache.thrift.TException {
20681 TTupleProtocol iprot = (TTupleProtocol) prot;
20682 BitSet incoming = iprot.readBitSet(1);
20683 if (incoming.get(0)) {
20684 struct.stalepathTime = iprot.readI32();
20685 struct.setStalepathTimeIsSet(true);
20692 public static class enableGracefulRestart_result implements org.apache.thrift.TBase<enableGracefulRestart_result, enableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableGracefulRestart_result> {
20693 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableGracefulRestart_result");
20695 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);
20697 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
20699 schemes.put(StandardScheme.class, new enableGracefulRestart_resultStandardSchemeFactory());
20700 schemes.put(TupleScheme.class, new enableGracefulRestart_resultTupleSchemeFactory());
20703 public int success; // required
20705 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20706 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20707 SUCCESS((short)0, "success");
20709 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20712 for (_Fields field : EnumSet.allOf(_Fields.class)) {
20713 byName.put(field.getFieldName(), field);
20718 * Find the _Fields constant that matches fieldId, or null if its not found.
20720 public static _Fields findByThriftId(int fieldId) {
20730 * Find the _Fields constant that matches fieldId, throwing an exception
20731 * if it is not found.
20733 public static _Fields findByThriftIdOrThrow(int fieldId) {
20734 _Fields fields = findByThriftId(fieldId);
20735 if (fields == null) {
20736 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20742 * Find the _Fields constant that matches name, or null if its not found.
20744 public static _Fields findByName(String name) {
20745 return byName.get(name);
20748 private final short _thriftId;
20749 private final String _fieldName;
20751 _Fields(short thriftId, String fieldName) {
20752 _thriftId = thriftId;
20753 _fieldName = fieldName;
20757 public short getThriftFieldId() {
20762 public String getFieldName() {
20767 // isset id assignments
20768 private static final int __SUCCESS_ISSET_ID = 0;
20769 private byte __isset_bitfield = 0;
20770 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20772 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20773 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
20774 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
20775 metaDataMap = Collections.unmodifiableMap(tmpMap);
20776 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableGracefulRestart_result.class, metaDataMap);
20779 public enableGracefulRestart_result() {
20782 public enableGracefulRestart_result(
20786 this.success = success;
20787 setSuccessIsSet(true);
20791 * Performs a deep copy on <i>other</i>.
20793 public enableGracefulRestart_result(enableGracefulRestart_result other) {
20794 __isset_bitfield = other.__isset_bitfield;
20795 this.success = other.success;
20799 public enableGracefulRestart_result deepCopy() {
20800 return new enableGracefulRestart_result(this);
20804 public void clear() {
20805 setSuccessIsSet(false);
20809 public int getSuccess() {
20810 return this.success;
20813 public enableGracefulRestart_result setSuccess(int success) {
20814 this.success = success;
20815 setSuccessIsSet(true);
20819 public void unsetSuccess() {
20820 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20823 /** Returns true if field success is set (has been assigned a value) and false otherwise */
20824 public boolean isSetSuccess() {
20825 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
20828 public void setSuccessIsSet(boolean value) {
20829 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
20833 public void setFieldValue(_Fields field, Object value) {
20836 if (value == null) {
20839 setSuccess((Integer)value);
20847 public Object getFieldValue(_Fields field) {
20850 return Integer.valueOf(getSuccess());
20853 throw new IllegalStateException();
20856 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20858 public boolean isSet(_Fields field) {
20859 if (field == null) {
20860 throw new IllegalArgumentException();
20865 return isSetSuccess();
20867 throw new IllegalStateException();
20871 public boolean equals(Object that) {
20872 if (that == null) {
20875 if (that instanceof enableGracefulRestart_result) {
20876 return this.equals((enableGracefulRestart_result)that);
20881 public boolean equals(enableGracefulRestart_result that) {
20882 if (that == null) {
20886 boolean this_present_success = true;
20887 boolean that_present_success = true;
20888 if (this_present_success || that_present_success) {
20889 if (!(this_present_success && that_present_success)) {
20892 if (this.success != that.success) {
20901 public int hashCode() {
20902 List<Object> list = new ArrayList<Object>();
20904 boolean present_success = true;
20905 list.add(present_success);
20906 if (present_success)
20908 return list.hashCode();
20912 public int compareTo(enableGracefulRestart_result other) {
20913 if (!getClass().equals(other.getClass())) {
20914 return getClass().getName().compareTo(other.getClass().getName());
20917 int lastComparison = 0;
20919 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
20920 if (lastComparison != 0) {
20921 return lastComparison;
20923 if (isSetSuccess()) {
20924 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
20925 if (lastComparison != 0) {
20926 return lastComparison;
20933 public _Fields fieldForId(int fieldId) {
20934 return _Fields.findByThriftId(fieldId);
20938 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20939 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
20943 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20944 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
20948 public String toString() {
20949 StringBuilder sb = new StringBuilder("enableGracefulRestart_result(");
20950 boolean first = true;
20952 sb.append("success:");
20953 sb.append(this.success);
20956 return sb.toString();
20959 public void validate() throws org.apache.thrift.TException {
20960 // check for required fields
20961 // check for sub-struct validity
20964 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20966 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20967 } catch (org.apache.thrift.TException te) {
20968 throw new java.io.IOException(te);
20972 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20974 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20975 __isset_bitfield = 0;
20976 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20977 } catch (org.apache.thrift.TException te) {
20978 throw new java.io.IOException(te);
20982 private static class enableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
20984 public enableGracefulRestart_resultStandardScheme getScheme() {
20985 return new enableGracefulRestart_resultStandardScheme();
20989 private static class enableGracefulRestart_resultStandardScheme extends StandardScheme<enableGracefulRestart_result> {
20992 public void read(org.apache.thrift.protocol.TProtocol iprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
20993 org.apache.thrift.protocol.TField schemeField;
20994 iprot.readStructBegin();
20997 schemeField = iprot.readFieldBegin();
20998 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21001 switch (schemeField.id) {
21003 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21004 struct.success = iprot.readI32();
21005 struct.setSuccessIsSet(true);
21007 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21011 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21013 iprot.readFieldEnd();
21015 iprot.readStructEnd();
21017 // check for required fields of primitive type, which can't be checked in the validate method
21022 public void write(org.apache.thrift.protocol.TProtocol oprot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21025 oprot.writeStructBegin(STRUCT_DESC);
21026 if (struct.isSetSuccess()) {
21027 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21028 oprot.writeI32(struct.success);
21029 oprot.writeFieldEnd();
21031 oprot.writeFieldStop();
21032 oprot.writeStructEnd();
21037 private static class enableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21039 public enableGracefulRestart_resultTupleScheme getScheme() {
21040 return new enableGracefulRestart_resultTupleScheme();
21044 private static class enableGracefulRestart_resultTupleScheme extends TupleScheme<enableGracefulRestart_result> {
21047 public void write(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21048 TTupleProtocol oprot = (TTupleProtocol) prot;
21049 BitSet optionals = new BitSet();
21050 if (struct.isSetSuccess()) {
21053 oprot.writeBitSet(optionals, 1);
21054 if (struct.isSetSuccess()) {
21055 oprot.writeI32(struct.success);
21060 public void read(org.apache.thrift.protocol.TProtocol prot, enableGracefulRestart_result struct) throws org.apache.thrift.TException {
21061 TTupleProtocol iprot = (TTupleProtocol) prot;
21062 BitSet incoming = iprot.readBitSet(1);
21063 if (incoming.get(0)) {
21064 struct.success = iprot.readI32();
21065 struct.setSuccessIsSet(true);
21072 public static class disableGracefulRestart_args implements org.apache.thrift.TBase<disableGracefulRestart_args, disableGracefulRestart_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_args> {
21073 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_args");
21076 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21078 schemes.put(StandardScheme.class, new disableGracefulRestart_argsStandardSchemeFactory());
21079 schemes.put(TupleScheme.class, new disableGracefulRestart_argsTupleSchemeFactory());
21083 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21084 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21087 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21090 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21091 byName.put(field.getFieldName(), field);
21096 * Find the _Fields constant that matches fieldId, or null if its not found.
21098 public static _Fields findByThriftId(int fieldId) {
21106 * Find the _Fields constant that matches fieldId, throwing an exception
21107 * if it is not found.
21109 public static _Fields findByThriftIdOrThrow(int fieldId) {
21110 _Fields fields = findByThriftId(fieldId);
21111 if (fields == null) {
21112 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21118 * Find the _Fields constant that matches name, or null if its not found.
21120 public static _Fields findByName(String name) {
21121 return byName.get(name);
21124 private final short _thriftId;
21125 private final String _fieldName;
21127 _Fields(short thriftId, String fieldName) {
21128 _thriftId = thriftId;
21129 _fieldName = fieldName;
21133 public short getThriftFieldId() {
21138 public String getFieldName() {
21142 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21144 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21145 metaDataMap = Collections.unmodifiableMap(tmpMap);
21146 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_args.class, metaDataMap);
21149 public disableGracefulRestart_args() {
21153 * Performs a deep copy on <i>other</i>.
21155 public disableGracefulRestart_args(disableGracefulRestart_args other) {
21159 public disableGracefulRestart_args deepCopy() {
21160 return new disableGracefulRestart_args(this);
21164 public void clear() {
21168 public void setFieldValue(_Fields field, Object value) {
21174 public Object getFieldValue(_Fields field) {
21177 throw new IllegalStateException();
21180 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21182 public boolean isSet(_Fields field) {
21183 if (field == null) {
21184 throw new IllegalArgumentException();
21189 throw new IllegalStateException();
21193 public boolean equals(Object that) {
21194 if (that == null) {
21197 if (that instanceof disableGracefulRestart_args) {
21198 return this.equals((disableGracefulRestart_args)that);
21203 public boolean equals(disableGracefulRestart_args that) {
21204 if (that == null) {
21212 public int hashCode() {
21213 List<Object> list = new ArrayList<Object>();
21215 return list.hashCode();
21219 public int compareTo(disableGracefulRestart_args other) {
21220 if (!getClass().equals(other.getClass())) {
21221 return getClass().getName().compareTo(other.getClass().getName());
21224 int lastComparison = 0;
21230 public _Fields fieldForId(int fieldId) {
21231 return _Fields.findByThriftId(fieldId);
21235 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21236 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21240 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21241 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21245 public String toString() {
21246 StringBuilder sb = new StringBuilder("disableGracefulRestart_args(");
21247 boolean first = true;
21250 return sb.toString();
21253 public void validate() throws org.apache.thrift.TException {
21254 // check for required fields
21255 // check for sub-struct validity
21258 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21260 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21261 } catch (org.apache.thrift.TException te) {
21262 throw new java.io.IOException(te);
21266 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21268 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21269 } catch (org.apache.thrift.TException te) {
21270 throw new java.io.IOException(te);
21274 private static class disableGracefulRestart_argsStandardSchemeFactory implements SchemeFactory {
21276 public disableGracefulRestart_argsStandardScheme getScheme() {
21277 return new disableGracefulRestart_argsStandardScheme();
21281 private static class disableGracefulRestart_argsStandardScheme extends StandardScheme<disableGracefulRestart_args> {
21284 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21285 org.apache.thrift.protocol.TField schemeField;
21286 iprot.readStructBegin();
21289 schemeField = iprot.readFieldBegin();
21290 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21293 switch (schemeField.id) {
21295 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21297 iprot.readFieldEnd();
21299 iprot.readStructEnd();
21301 // check for required fields of primitive type, which can't be checked in the validate method
21306 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21309 oprot.writeStructBegin(STRUCT_DESC);
21310 oprot.writeFieldStop();
21311 oprot.writeStructEnd();
21316 private static class disableGracefulRestart_argsTupleSchemeFactory implements SchemeFactory {
21318 public disableGracefulRestart_argsTupleScheme getScheme() {
21319 return new disableGracefulRestart_argsTupleScheme();
21323 private static class disableGracefulRestart_argsTupleScheme extends TupleScheme<disableGracefulRestart_args> {
21326 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21327 TTupleProtocol oprot = (TTupleProtocol) prot;
21331 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_args struct) throws org.apache.thrift.TException {
21332 TTupleProtocol iprot = (TTupleProtocol) prot;
21338 public static class disableGracefulRestart_result implements org.apache.thrift.TBase<disableGracefulRestart_result, disableGracefulRestart_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableGracefulRestart_result> {
21339 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableGracefulRestart_result");
21341 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);
21343 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21345 schemes.put(StandardScheme.class, new disableGracefulRestart_resultStandardSchemeFactory());
21346 schemes.put(TupleScheme.class, new disableGracefulRestart_resultTupleSchemeFactory());
21349 public int success; // required
21351 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21352 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21353 SUCCESS((short)0, "success");
21355 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21358 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21359 byName.put(field.getFieldName(), field);
21364 * Find the _Fields constant that matches fieldId, or null if its not found.
21366 public static _Fields findByThriftId(int fieldId) {
21376 * Find the _Fields constant that matches fieldId, throwing an exception
21377 * if it is not found.
21379 public static _Fields findByThriftIdOrThrow(int fieldId) {
21380 _Fields fields = findByThriftId(fieldId);
21381 if (fields == null) {
21382 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21388 * Find the _Fields constant that matches name, or null if its not found.
21390 public static _Fields findByName(String name) {
21391 return byName.get(name);
21394 private final short _thriftId;
21395 private final String _fieldName;
21397 _Fields(short thriftId, String fieldName) {
21398 _thriftId = thriftId;
21399 _fieldName = fieldName;
21403 public short getThriftFieldId() {
21408 public String getFieldName() {
21413 // isset id assignments
21414 private static final int __SUCCESS_ISSET_ID = 0;
21415 private byte __isset_bitfield = 0;
21416 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21418 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21419 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
21420 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21421 metaDataMap = Collections.unmodifiableMap(tmpMap);
21422 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableGracefulRestart_result.class, metaDataMap);
21425 public disableGracefulRestart_result() {
21428 public disableGracefulRestart_result(
21432 this.success = success;
21433 setSuccessIsSet(true);
21437 * Performs a deep copy on <i>other</i>.
21439 public disableGracefulRestart_result(disableGracefulRestart_result other) {
21440 __isset_bitfield = other.__isset_bitfield;
21441 this.success = other.success;
21445 public disableGracefulRestart_result deepCopy() {
21446 return new disableGracefulRestart_result(this);
21450 public void clear() {
21451 setSuccessIsSet(false);
21455 public int getSuccess() {
21456 return this.success;
21459 public disableGracefulRestart_result setSuccess(int success) {
21460 this.success = success;
21461 setSuccessIsSet(true);
21465 public void unsetSuccess() {
21466 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21469 /** Returns true if field success is set (has been assigned a value) and false otherwise */
21470 public boolean isSetSuccess() {
21471 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
21474 public void setSuccessIsSet(boolean value) {
21475 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
21479 public void setFieldValue(_Fields field, Object value) {
21482 if (value == null) {
21485 setSuccess((Integer)value);
21493 public Object getFieldValue(_Fields field) {
21496 return Integer.valueOf(getSuccess());
21499 throw new IllegalStateException();
21502 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21504 public boolean isSet(_Fields field) {
21505 if (field == null) {
21506 throw new IllegalArgumentException();
21511 return isSetSuccess();
21513 throw new IllegalStateException();
21517 public boolean equals(Object that) {
21518 if (that == null) {
21521 if (that instanceof disableGracefulRestart_result) {
21522 return this.equals((disableGracefulRestart_result)that);
21527 public boolean equals(disableGracefulRestart_result that) {
21528 if (that == null) {
21532 boolean this_present_success = true;
21533 boolean that_present_success = true;
21534 if (this_present_success || that_present_success) {
21535 if (!(this_present_success && that_present_success)) {
21538 if (this.success != that.success) {
21547 public int hashCode() {
21548 List<Object> list = new ArrayList<Object>();
21550 boolean present_success = true;
21551 list.add(present_success);
21552 if (present_success)
21554 return list.hashCode();
21558 public int compareTo(disableGracefulRestart_result other) {
21559 if (!getClass().equals(other.getClass())) {
21560 return getClass().getName().compareTo(other.getClass().getName());
21563 int lastComparison = 0;
21565 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
21566 if (lastComparison != 0) {
21567 return lastComparison;
21569 if (isSetSuccess()) {
21570 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
21571 if (lastComparison != 0) {
21572 return lastComparison;
21579 public _Fields fieldForId(int fieldId) {
21580 return _Fields.findByThriftId(fieldId);
21584 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21585 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
21589 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21590 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
21594 public String toString() {
21595 StringBuilder sb = new StringBuilder("disableGracefulRestart_result(");
21596 boolean first = true;
21598 sb.append("success:");
21599 sb.append(this.success);
21602 return sb.toString();
21605 public void validate() throws org.apache.thrift.TException {
21606 // check for required fields
21607 // check for sub-struct validity
21610 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21612 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21613 } catch (org.apache.thrift.TException te) {
21614 throw new java.io.IOException(te);
21618 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21620 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21621 __isset_bitfield = 0;
21622 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21623 } catch (org.apache.thrift.TException te) {
21624 throw new java.io.IOException(te);
21628 private static class disableGracefulRestart_resultStandardSchemeFactory implements SchemeFactory {
21630 public disableGracefulRestart_resultStandardScheme getScheme() {
21631 return new disableGracefulRestart_resultStandardScheme();
21635 private static class disableGracefulRestart_resultStandardScheme extends StandardScheme<disableGracefulRestart_result> {
21638 public void read(org.apache.thrift.protocol.TProtocol iprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21639 org.apache.thrift.protocol.TField schemeField;
21640 iprot.readStructBegin();
21643 schemeField = iprot.readFieldBegin();
21644 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
21647 switch (schemeField.id) {
21649 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
21650 struct.success = iprot.readI32();
21651 struct.setSuccessIsSet(true);
21653 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21657 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
21659 iprot.readFieldEnd();
21661 iprot.readStructEnd();
21663 // check for required fields of primitive type, which can't be checked in the validate method
21668 public void write(org.apache.thrift.protocol.TProtocol oprot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21671 oprot.writeStructBegin(STRUCT_DESC);
21672 if (struct.isSetSuccess()) {
21673 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21674 oprot.writeI32(struct.success);
21675 oprot.writeFieldEnd();
21677 oprot.writeFieldStop();
21678 oprot.writeStructEnd();
21683 private static class disableGracefulRestart_resultTupleSchemeFactory implements SchemeFactory {
21685 public disableGracefulRestart_resultTupleScheme getScheme() {
21686 return new disableGracefulRestart_resultTupleScheme();
21690 private static class disableGracefulRestart_resultTupleScheme extends TupleScheme<disableGracefulRestart_result> {
21693 public void write(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21694 TTupleProtocol oprot = (TTupleProtocol) prot;
21695 BitSet optionals = new BitSet();
21696 if (struct.isSetSuccess()) {
21699 oprot.writeBitSet(optionals, 1);
21700 if (struct.isSetSuccess()) {
21701 oprot.writeI32(struct.success);
21706 public void read(org.apache.thrift.protocol.TProtocol prot, disableGracefulRestart_result struct) throws org.apache.thrift.TException {
21707 TTupleProtocol iprot = (TTupleProtocol) prot;
21708 BitSet incoming = iprot.readBitSet(1);
21709 if (incoming.get(0)) {
21710 struct.success = iprot.readI32();
21711 struct.setSuccessIsSet(true);
21718 public static class getRoutes_args implements org.apache.thrift.TBase<getRoutes_args, getRoutes_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_args> {
21719 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_args");
21721 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);
21722 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);
21723 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);
21724 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);
21726 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
21728 schemes.put(StandardScheme.class, new getRoutes_argsStandardSchemeFactory());
21729 schemes.put(TupleScheme.class, new getRoutes_argsTupleSchemeFactory());
21734 * @see protocol_type
21736 public protocol_type p_type; // required
21737 public int optype; // required
21738 public int winSize; // required
21743 public af_afi afi; // required
21745 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21746 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21749 * @see protocol_type
21751 P_TYPE((short)1, "p_type"),
21752 OPTYPE((short)2, "optype"),
21753 WIN_SIZE((short)3, "winSize"),
21758 AFI((short)4, "afi");
21760 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21763 for (_Fields field : EnumSet.allOf(_Fields.class)) {
21764 byName.put(field.getFieldName(), field);
21769 * Find the _Fields constant that matches fieldId, or null if its not found.
21771 public static _Fields findByThriftId(int fieldId) {
21777 case 3: // WIN_SIZE
21787 * Find the _Fields constant that matches fieldId, throwing an exception
21788 * if it is not found.
21790 public static _Fields findByThriftIdOrThrow(int fieldId) {
21791 _Fields fields = findByThriftId(fieldId);
21792 if (fields == null) {
21793 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21799 * Find the _Fields constant that matches name, or null if its not found.
21801 public static _Fields findByName(String name) {
21802 return byName.get(name);
21805 private final short _thriftId;
21806 private final String _fieldName;
21808 _Fields(short thriftId, String fieldName) {
21809 _thriftId = thriftId;
21810 _fieldName = fieldName;
21814 public short getThriftFieldId() {
21819 public String getFieldName() {
21824 // isset id assignments
21825 private static final int __OPTYPE_ISSET_ID = 0;
21826 private static final int __WINSIZE_ISSET_ID = 1;
21827 private byte __isset_bitfield = 0;
21828 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21830 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21831 tmpMap.put(_Fields.P_TYPE, new org.apache.thrift.meta_data.FieldMetaData("p_type", org.apache.thrift.TFieldRequirementType.DEFAULT,
21832 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, protocol_type.class)));
21833 tmpMap.put(_Fields.OPTYPE, new org.apache.thrift.meta_data.FieldMetaData("optype", org.apache.thrift.TFieldRequirementType.DEFAULT,
21834 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21835 tmpMap.put(_Fields.WIN_SIZE, new org.apache.thrift.meta_data.FieldMetaData("winSize", org.apache.thrift.TFieldRequirementType.DEFAULT,
21836 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
21837 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
21838 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
21839 metaDataMap = Collections.unmodifiableMap(tmpMap);
21840 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_args.class, metaDataMap);
21843 public getRoutes_args() {
21846 public getRoutes_args(
21847 protocol_type p_type,
21853 this.p_type = p_type;
21854 this.optype = optype;
21855 setOptypeIsSet(true);
21856 this.winSize = winSize;
21857 setWinSizeIsSet(true);
21862 * Performs a deep copy on <i>other</i>.
21864 public getRoutes_args(getRoutes_args other) {
21865 __isset_bitfield = other.__isset_bitfield;
21866 if (other.isSetP_type()) {
21867 this.p_type = other.p_type;
21869 this.optype = other.optype;
21870 this.winSize = other.winSize;
21871 if (other.isSetAfi()) {
21872 this.afi = other.afi;
21877 public getRoutes_args deepCopy() {
21878 return new getRoutes_args(this);
21882 public void clear() {
21883 this.p_type = null;
21884 setOptypeIsSet(false);
21886 setWinSizeIsSet(false);
21893 * @see protocol_type
21895 public protocol_type getP_type() {
21896 return this.p_type;
21901 * @see protocol_type
21903 public getRoutes_args setP_type(protocol_type p_type) {
21904 this.p_type = p_type;
21908 public void unsetP_type() {
21909 this.p_type = null;
21912 /** Returns true if field p_type is set (has been assigned a value) and false otherwise */
21913 public boolean isSetP_type() {
21914 return this.p_type != null;
21917 public void setP_typeIsSet(boolean value) {
21919 this.p_type = null;
21923 public int getOptype() {
21924 return this.optype;
21927 public getRoutes_args setOptype(int optype) {
21928 this.optype = optype;
21929 setOptypeIsSet(true);
21933 public void unsetOptype() {
21934 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21937 /** Returns true if field optype is set (has been assigned a value) and false otherwise */
21938 public boolean isSetOptype() {
21939 return EncodingUtils.testBit(__isset_bitfield, __OPTYPE_ISSET_ID);
21942 public void setOptypeIsSet(boolean value) {
21943 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __OPTYPE_ISSET_ID, value);
21946 public int getWinSize() {
21947 return this.winSize;
21950 public getRoutes_args setWinSize(int winSize) {
21951 this.winSize = winSize;
21952 setWinSizeIsSet(true);
21956 public void unsetWinSize() {
21957 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21960 /** Returns true if field winSize is set (has been assigned a value) and false otherwise */
21961 public boolean isSetWinSize() {
21962 return EncodingUtils.testBit(__isset_bitfield, __WINSIZE_ISSET_ID);
21965 public void setWinSizeIsSet(boolean value) {
21966 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __WINSIZE_ISSET_ID, value);
21973 public af_afi getAfi() {
21981 public getRoutes_args setAfi(af_afi afi) {
21986 public void unsetAfi() {
21990 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
21991 public boolean isSetAfi() {
21992 return this.afi != null;
21995 public void setAfiIsSet(boolean value) {
22002 public void setFieldValue(_Fields field, Object value) {
22005 if (value == null) {
22008 setP_type((protocol_type)value);
22013 if (value == null) {
22016 setOptype((Integer)value);
22021 if (value == null) {
22024 setWinSize((Integer)value);
22029 if (value == null) {
22032 setAfi((af_afi)value);
22040 public Object getFieldValue(_Fields field) {
22043 return getP_type();
22046 return Integer.valueOf(getOptype());
22049 return Integer.valueOf(getWinSize());
22055 throw new IllegalStateException();
22058 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22060 public boolean isSet(_Fields field) {
22061 if (field == null) {
22062 throw new IllegalArgumentException();
22067 return isSetP_type();
22069 return isSetOptype();
22071 return isSetWinSize();
22075 throw new IllegalStateException();
22079 public boolean equals(Object that) {
22080 if (that == null) {
22083 if (that instanceof getRoutes_args) {
22084 return this.equals((getRoutes_args)that);
22089 public boolean equals(getRoutes_args that) {
22090 if (that == null) {
22094 boolean this_present_p_type = true && this.isSetP_type();
22095 boolean that_present_p_type = true && that.isSetP_type();
22096 if (this_present_p_type || that_present_p_type) {
22097 if (!(this_present_p_type && that_present_p_type)) {
22100 if (!this.p_type.equals(that.p_type)) {
22105 boolean this_present_optype = true;
22106 boolean that_present_optype = true;
22107 if (this_present_optype || that_present_optype) {
22108 if (!(this_present_optype && that_present_optype)) {
22111 if (this.optype != that.optype) {
22116 boolean this_present_winSize = true;
22117 boolean that_present_winSize = true;
22118 if (this_present_winSize || that_present_winSize) {
22119 if (!(this_present_winSize && that_present_winSize)) {
22122 if (this.winSize != that.winSize) {
22127 boolean this_present_afi = true && this.isSetAfi();
22128 boolean that_present_afi = true && that.isSetAfi();
22129 if (this_present_afi || that_present_afi) {
22130 if (!(this_present_afi && that_present_afi)) {
22133 if (!this.afi.equals(that.afi)) {
22142 public int hashCode() {
22143 List<Object> list = new ArrayList<Object>();
22145 boolean present_p_type = true && (isSetP_type());
22146 list.add(present_p_type);
22147 if (present_p_type)
22148 list.add(p_type.getValue());
22149 boolean present_optype = true;
22150 list.add(present_optype);
22151 if (present_optype)
22153 boolean present_winSize = true;
22154 list.add(present_winSize);
22155 if (present_winSize)
22157 boolean present_afi = true && (isSetAfi());
22158 list.add(present_afi);
22160 list.add(afi.getValue());
22161 return list.hashCode();
22165 public int compareTo(getRoutes_args other) {
22166 if (!getClass().equals(other.getClass())) {
22167 return getClass().getName().compareTo(other.getClass().getName());
22170 int lastComparison = 0;
22172 lastComparison = Boolean.valueOf(isSetP_type()).compareTo(other.isSetP_type());
22173 if (lastComparison != 0) {
22174 return lastComparison;
22176 if (isSetP_type()) {
22177 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.p_type, other.p_type);
22178 if (lastComparison != 0) {
22179 return lastComparison;
22182 lastComparison = Boolean.valueOf(isSetOptype()).compareTo(other.isSetOptype());
22183 if (lastComparison != 0) {
22184 return lastComparison;
22186 if (isSetOptype()) {
22187 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.optype, other.optype);
22188 if (lastComparison != 0) {
22189 return lastComparison;
22192 lastComparison = Boolean.valueOf(isSetWinSize()).compareTo(other.isSetWinSize());
22193 if (lastComparison != 0) {
22194 return lastComparison;
22196 if (isSetWinSize()) {
22197 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.winSize, other.winSize);
22198 if (lastComparison != 0) {
22199 return lastComparison;
22202 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
22203 if (lastComparison != 0) {
22204 return lastComparison;
22207 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
22208 if (lastComparison != 0) {
22209 return lastComparison;
22216 public _Fields fieldForId(int fieldId) {
22217 return _Fields.findByThriftId(fieldId);
22221 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22222 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22226 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22227 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22231 public String toString() {
22232 StringBuilder sb = new StringBuilder("getRoutes_args(");
22233 boolean first = true;
22235 sb.append("p_type:");
22236 if (this.p_type == null) {
22239 sb.append(this.p_type);
22245 sb.append("optype:");
22246 sb.append(this.optype);
22251 sb.append("winSize:");
22252 sb.append(this.winSize);
22258 if (this.afi == null) {
22261 sb.append(this.afi);
22265 return sb.toString();
22268 public void validate() throws org.apache.thrift.TException {
22269 // check for required fields
22270 // check for sub-struct validity
22273 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22275 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22276 } catch (org.apache.thrift.TException te) {
22277 throw new java.io.IOException(te);
22281 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22283 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22284 __isset_bitfield = 0;
22285 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22286 } catch (org.apache.thrift.TException te) {
22287 throw new java.io.IOException(te);
22291 private static class getRoutes_argsStandardSchemeFactory implements SchemeFactory {
22293 public getRoutes_argsStandardScheme getScheme() {
22294 return new getRoutes_argsStandardScheme();
22298 private static class getRoutes_argsStandardScheme extends StandardScheme<getRoutes_args> {
22301 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_args struct) throws org.apache.thrift.TException {
22302 org.apache.thrift.protocol.TField schemeField;
22303 iprot.readStructBegin();
22306 schemeField = iprot.readFieldBegin();
22307 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22310 switch (schemeField.id) {
22312 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22313 struct.p_type = protocol_type.findByValue(iprot.readI32());
22314 struct.setP_typeIsSet(true);
22316 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22320 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22321 struct.optype = iprot.readI32();
22322 struct.setOptypeIsSet(true);
22324 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22327 case 3: // WIN_SIZE
22328 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22329 struct.winSize = iprot.readI32();
22330 struct.setWinSizeIsSet(true);
22332 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22336 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
22337 struct.afi = af_afi.findByValue(iprot.readI32());
22338 struct.setAfiIsSet(true);
22340 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22344 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22346 iprot.readFieldEnd();
22348 iprot.readStructEnd();
22350 // check for required fields of primitive type, which can't be checked in the validate method
22355 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_args struct) throws org.apache.thrift.TException {
22358 oprot.writeStructBegin(STRUCT_DESC);
22359 if (struct.p_type != null) {
22360 oprot.writeFieldBegin(P_TYPE_FIELD_DESC);
22361 oprot.writeI32(struct.p_type.getValue());
22362 oprot.writeFieldEnd();
22364 oprot.writeFieldBegin(OPTYPE_FIELD_DESC);
22365 oprot.writeI32(struct.optype);
22366 oprot.writeFieldEnd();
22367 oprot.writeFieldBegin(WIN_SIZE_FIELD_DESC);
22368 oprot.writeI32(struct.winSize);
22369 oprot.writeFieldEnd();
22370 if (struct.afi != null) {
22371 oprot.writeFieldBegin(AFI_FIELD_DESC);
22372 oprot.writeI32(struct.afi.getValue());
22373 oprot.writeFieldEnd();
22375 oprot.writeFieldStop();
22376 oprot.writeStructEnd();
22381 private static class getRoutes_argsTupleSchemeFactory implements SchemeFactory {
22383 public getRoutes_argsTupleScheme getScheme() {
22384 return new getRoutes_argsTupleScheme();
22388 private static class getRoutes_argsTupleScheme extends TupleScheme<getRoutes_args> {
22391 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22392 TTupleProtocol oprot = (TTupleProtocol) prot;
22393 BitSet optionals = new BitSet();
22394 if (struct.isSetP_type()) {
22397 if (struct.isSetOptype()) {
22400 if (struct.isSetWinSize()) {
22403 if (struct.isSetAfi()) {
22406 oprot.writeBitSet(optionals, 4);
22407 if (struct.isSetP_type()) {
22408 oprot.writeI32(struct.p_type.getValue());
22410 if (struct.isSetOptype()) {
22411 oprot.writeI32(struct.optype);
22413 if (struct.isSetWinSize()) {
22414 oprot.writeI32(struct.winSize);
22416 if (struct.isSetAfi()) {
22417 oprot.writeI32(struct.afi.getValue());
22422 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_args struct) throws org.apache.thrift.TException {
22423 TTupleProtocol iprot = (TTupleProtocol) prot;
22424 BitSet incoming = iprot.readBitSet(4);
22425 if (incoming.get(0)) {
22426 struct.p_type = protocol_type.findByValue(iprot.readI32());
22427 struct.setP_typeIsSet(true);
22429 if (incoming.get(1)) {
22430 struct.optype = iprot.readI32();
22431 struct.setOptypeIsSet(true);
22433 if (incoming.get(2)) {
22434 struct.winSize = iprot.readI32();
22435 struct.setWinSizeIsSet(true);
22437 if (incoming.get(3)) {
22438 struct.afi = af_afi.findByValue(iprot.readI32());
22439 struct.setAfiIsSet(true);
22446 public static class getRoutes_result implements org.apache.thrift.TBase<getRoutes_result, getRoutes_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoutes_result> {
22447 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoutes_result");
22449 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);
22451 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22453 schemes.put(StandardScheme.class, new getRoutes_resultStandardSchemeFactory());
22454 schemes.put(TupleScheme.class, new getRoutes_resultTupleSchemeFactory());
22457 public Routes success; // required
22459 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22460 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22461 SUCCESS((short)0, "success");
22463 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22466 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22467 byName.put(field.getFieldName(), field);
22472 * Find the _Fields constant that matches fieldId, or null if its not found.
22474 public static _Fields findByThriftId(int fieldId) {
22484 * Find the _Fields constant that matches fieldId, throwing an exception
22485 * if it is not found.
22487 public static _Fields findByThriftIdOrThrow(int fieldId) {
22488 _Fields fields = findByThriftId(fieldId);
22489 if (fields == null) {
22490 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22496 * Find the _Fields constant that matches name, or null if its not found.
22498 public static _Fields findByName(String name) {
22499 return byName.get(name);
22502 private final short _thriftId;
22503 private final String _fieldName;
22505 _Fields(short thriftId, String fieldName) {
22506 _thriftId = thriftId;
22507 _fieldName = fieldName;
22511 public short getThriftFieldId() {
22516 public String getFieldName() {
22521 // isset id assignments
22522 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22524 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22525 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
22526 new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Routes.class)));
22527 metaDataMap = Collections.unmodifiableMap(tmpMap);
22528 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoutes_result.class, metaDataMap);
22531 public getRoutes_result() {
22534 public getRoutes_result(
22538 this.success = success;
22542 * Performs a deep copy on <i>other</i>.
22544 public getRoutes_result(getRoutes_result other) {
22545 if (other.isSetSuccess()) {
22546 this.success = new Routes(other.success);
22551 public getRoutes_result deepCopy() {
22552 return new getRoutes_result(this);
22556 public void clear() {
22557 this.success = null;
22560 public Routes getSuccess() {
22561 return this.success;
22564 public getRoutes_result setSuccess(Routes success) {
22565 this.success = success;
22569 public void unsetSuccess() {
22570 this.success = null;
22573 /** Returns true if field success is set (has been assigned a value) and false otherwise */
22574 public boolean isSetSuccess() {
22575 return this.success != null;
22578 public void setSuccessIsSet(boolean value) {
22580 this.success = null;
22585 public void setFieldValue(_Fields field, Object value) {
22588 if (value == null) {
22591 setSuccess((Routes)value);
22599 public Object getFieldValue(_Fields field) {
22602 return getSuccess();
22605 throw new IllegalStateException();
22608 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22610 public boolean isSet(_Fields field) {
22611 if (field == null) {
22612 throw new IllegalArgumentException();
22617 return isSetSuccess();
22619 throw new IllegalStateException();
22623 public boolean equals(Object that) {
22624 if (that == null) {
22627 if (that instanceof getRoutes_result) {
22628 return this.equals((getRoutes_result)that);
22633 public boolean equals(getRoutes_result that) {
22634 if (that == null) {
22638 boolean this_present_success = true && this.isSetSuccess();
22639 boolean that_present_success = true && that.isSetSuccess();
22640 if (this_present_success || that_present_success) {
22641 if (!(this_present_success && that_present_success)) {
22644 if (!this.success.equals(that.success)) {
22653 public int hashCode() {
22654 List<Object> list = new ArrayList<Object>();
22656 boolean present_success = true && (isSetSuccess());
22657 list.add(present_success);
22658 if (present_success)
22660 return list.hashCode();
22664 public int compareTo(getRoutes_result other) {
22665 if (!getClass().equals(other.getClass())) {
22666 return getClass().getName().compareTo(other.getClass().getName());
22669 int lastComparison = 0;
22671 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
22672 if (lastComparison != 0) {
22673 return lastComparison;
22675 if (isSetSuccess()) {
22676 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
22677 if (lastComparison != 0) {
22678 return lastComparison;
22685 public _Fields fieldForId(int fieldId) {
22686 return _Fields.findByThriftId(fieldId);
22690 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22691 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
22695 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22696 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
22700 public String toString() {
22701 StringBuilder sb = new StringBuilder("getRoutes_result(");
22702 boolean first = true;
22704 sb.append("success:");
22705 if (this.success == null) {
22708 sb.append(this.success);
22712 return sb.toString();
22715 public void validate() throws org.apache.thrift.TException {
22716 // check for required fields
22717 // check for sub-struct validity
22718 if (success != null) {
22719 success.validate();
22723 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22725 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22726 } catch (org.apache.thrift.TException te) {
22727 throw new java.io.IOException(te);
22731 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22733 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22734 } catch (org.apache.thrift.TException te) {
22735 throw new java.io.IOException(te);
22739 private static class getRoutes_resultStandardSchemeFactory implements SchemeFactory {
22741 public getRoutes_resultStandardScheme getScheme() {
22742 return new getRoutes_resultStandardScheme();
22746 private static class getRoutes_resultStandardScheme extends StandardScheme<getRoutes_result> {
22749 public void read(org.apache.thrift.protocol.TProtocol iprot, getRoutes_result struct) throws org.apache.thrift.TException {
22750 org.apache.thrift.protocol.TField schemeField;
22751 iprot.readStructBegin();
22754 schemeField = iprot.readFieldBegin();
22755 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
22758 switch (schemeField.id) {
22760 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
22761 struct.success = new Routes();
22762 struct.success.read(iprot);
22763 struct.setSuccessIsSet(true);
22765 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22769 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
22771 iprot.readFieldEnd();
22773 iprot.readStructEnd();
22775 // check for required fields of primitive type, which can't be checked in the validate method
22780 public void write(org.apache.thrift.protocol.TProtocol oprot, getRoutes_result struct) throws org.apache.thrift.TException {
22783 oprot.writeStructBegin(STRUCT_DESC);
22784 if (struct.success != null) {
22785 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22786 struct.success.write(oprot);
22787 oprot.writeFieldEnd();
22789 oprot.writeFieldStop();
22790 oprot.writeStructEnd();
22795 private static class getRoutes_resultTupleSchemeFactory implements SchemeFactory {
22797 public getRoutes_resultTupleScheme getScheme() {
22798 return new getRoutes_resultTupleScheme();
22802 private static class getRoutes_resultTupleScheme extends TupleScheme<getRoutes_result> {
22805 public void write(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22806 TTupleProtocol oprot = (TTupleProtocol) prot;
22807 BitSet optionals = new BitSet();
22808 if (struct.isSetSuccess()) {
22811 oprot.writeBitSet(optionals, 1);
22812 if (struct.isSetSuccess()) {
22813 struct.success.write(oprot);
22818 public void read(org.apache.thrift.protocol.TProtocol prot, getRoutes_result struct) throws org.apache.thrift.TException {
22819 TTupleProtocol iprot = (TTupleProtocol) prot;
22820 BitSet incoming = iprot.readBitSet(1);
22821 if (incoming.get(0)) {
22822 struct.success = new Routes();
22823 struct.success.read(iprot);
22824 struct.setSuccessIsSet(true);
22831 public static class enableMultipath_args implements org.apache.thrift.TBase<enableMultipath_args, enableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_args> {
22832 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_args");
22834 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);
22835 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);
22837 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
22839 schemes.put(StandardScheme.class, new enableMultipath_argsStandardSchemeFactory());
22840 schemes.put(TupleScheme.class, new enableMultipath_argsTupleSchemeFactory());
22847 public af_afi afi; // required
22852 public af_safi safi; // required
22854 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22855 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22860 AFI((short)1, "afi"),
22865 SAFI((short)2, "safi");
22867 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22870 for (_Fields field : EnumSet.allOf(_Fields.class)) {
22871 byName.put(field.getFieldName(), field);
22876 * Find the _Fields constant that matches fieldId, or null if its not found.
22878 public static _Fields findByThriftId(int fieldId) {
22890 * Find the _Fields constant that matches fieldId, throwing an exception
22891 * if it is not found.
22893 public static _Fields findByThriftIdOrThrow(int fieldId) {
22894 _Fields fields = findByThriftId(fieldId);
22895 if (fields == null) {
22896 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22902 * Find the _Fields constant that matches name, or null if its not found.
22904 public static _Fields findByName(String name) {
22905 return byName.get(name);
22908 private final short _thriftId;
22909 private final String _fieldName;
22911 _Fields(short thriftId, String fieldName) {
22912 _thriftId = thriftId;
22913 _fieldName = fieldName;
22917 public short getThriftFieldId() {
22922 public String getFieldName() {
22927 // isset id assignments
22928 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22930 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22931 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22932 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
22933 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
22934 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
22935 metaDataMap = Collections.unmodifiableMap(tmpMap);
22936 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_args.class, metaDataMap);
22939 public enableMultipath_args() {
22942 public enableMultipath_args(
22952 * Performs a deep copy on <i>other</i>.
22954 public enableMultipath_args(enableMultipath_args other) {
22955 if (other.isSetAfi()) {
22956 this.afi = other.afi;
22958 if (other.isSetSafi()) {
22959 this.safi = other.safi;
22964 public enableMultipath_args deepCopy() {
22965 return new enableMultipath_args(this);
22969 public void clear() {
22978 public af_afi getAfi() {
22986 public enableMultipath_args setAfi(af_afi afi) {
22991 public void unsetAfi() {
22995 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
22996 public boolean isSetAfi() {
22997 return this.afi != null;
23000 public void setAfiIsSet(boolean value) {
23010 public af_safi getSafi() {
23018 public enableMultipath_args setSafi(af_safi safi) {
23023 public void unsetSafi() {
23027 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23028 public boolean isSetSafi() {
23029 return this.safi != null;
23032 public void setSafiIsSet(boolean value) {
23039 public void setFieldValue(_Fields field, Object value) {
23042 if (value == null) {
23045 setAfi((af_afi)value);
23050 if (value == null) {
23053 setSafi((af_safi)value);
23061 public Object getFieldValue(_Fields field) {
23070 throw new IllegalStateException();
23073 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23075 public boolean isSet(_Fields field) {
23076 if (field == null) {
23077 throw new IllegalArgumentException();
23084 return isSetSafi();
23086 throw new IllegalStateException();
23090 public boolean equals(Object that) {
23091 if (that == null) {
23094 if (that instanceof enableMultipath_args) {
23095 return this.equals((enableMultipath_args)that);
23100 public boolean equals(enableMultipath_args that) {
23101 if (that == null) {
23105 boolean this_present_afi = true && this.isSetAfi();
23106 boolean that_present_afi = true && that.isSetAfi();
23107 if (this_present_afi || that_present_afi) {
23108 if (!(this_present_afi && that_present_afi)) {
23111 if (!this.afi.equals(that.afi)) {
23116 boolean this_present_safi = true && this.isSetSafi();
23117 boolean that_present_safi = true && that.isSetSafi();
23118 if (this_present_safi || that_present_safi) {
23119 if (!(this_present_safi && that_present_safi)) {
23122 if (!this.safi.equals(that.safi)) {
23131 public int hashCode() {
23132 List<Object> list = new ArrayList<Object>();
23134 boolean present_afi = true && (isSetAfi());
23135 list.add(present_afi);
23137 list.add(afi.getValue());
23138 boolean present_safi = true && (isSetSafi());
23139 list.add(present_safi);
23141 list.add(safi.getValue());
23142 return list.hashCode();
23146 public int compareTo(enableMultipath_args other) {
23147 if (!getClass().equals(other.getClass())) {
23148 return getClass().getName().compareTo(other.getClass().getName());
23151 int lastComparison = 0;
23153 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
23154 if (lastComparison != 0) {
23155 return lastComparison;
23158 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
23159 if (lastComparison != 0) {
23160 return lastComparison;
23163 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
23164 if (lastComparison != 0) {
23165 return lastComparison;
23168 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
23169 if (lastComparison != 0) {
23170 return lastComparison;
23177 public _Fields fieldForId(int fieldId) {
23178 return _Fields.findByThriftId(fieldId);
23182 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23183 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23187 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23188 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23192 public String toString() {
23193 StringBuilder sb = new StringBuilder("enableMultipath_args(");
23194 boolean first = true;
23197 if (this.afi == null) {
23200 sb.append(this.afi);
23206 sb.append("safi:");
23207 if (this.safi == null) {
23210 sb.append(this.safi);
23214 return sb.toString();
23217 public void validate() throws org.apache.thrift.TException {
23218 // check for required fields
23219 // check for sub-struct validity
23222 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23224 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23225 } catch (org.apache.thrift.TException te) {
23226 throw new java.io.IOException(te);
23230 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23232 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23233 } catch (org.apache.thrift.TException te) {
23234 throw new java.io.IOException(te);
23238 private static class enableMultipath_argsStandardSchemeFactory implements SchemeFactory {
23240 public enableMultipath_argsStandardScheme getScheme() {
23241 return new enableMultipath_argsStandardScheme();
23245 private static class enableMultipath_argsStandardScheme extends StandardScheme<enableMultipath_args> {
23248 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_args struct) throws org.apache.thrift.TException {
23249 org.apache.thrift.protocol.TField schemeField;
23250 iprot.readStructBegin();
23253 schemeField = iprot.readFieldBegin();
23254 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23257 switch (schemeField.id) {
23259 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23260 struct.afi = af_afi.findByValue(iprot.readI32());
23261 struct.setAfiIsSet(true);
23263 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23267 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23268 struct.safi = af_safi.findByValue(iprot.readI32());
23269 struct.setSafiIsSet(true);
23271 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23275 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23277 iprot.readFieldEnd();
23279 iprot.readStructEnd();
23281 // check for required fields of primitive type, which can't be checked in the validate method
23286 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_args struct) throws org.apache.thrift.TException {
23289 oprot.writeStructBegin(STRUCT_DESC);
23290 if (struct.afi != null) {
23291 oprot.writeFieldBegin(AFI_FIELD_DESC);
23292 oprot.writeI32(struct.afi.getValue());
23293 oprot.writeFieldEnd();
23295 if (struct.safi != null) {
23296 oprot.writeFieldBegin(SAFI_FIELD_DESC);
23297 oprot.writeI32(struct.safi.getValue());
23298 oprot.writeFieldEnd();
23300 oprot.writeFieldStop();
23301 oprot.writeStructEnd();
23306 private static class enableMultipath_argsTupleSchemeFactory implements SchemeFactory {
23308 public enableMultipath_argsTupleScheme getScheme() {
23309 return new enableMultipath_argsTupleScheme();
23313 private static class enableMultipath_argsTupleScheme extends TupleScheme<enableMultipath_args> {
23316 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
23317 TTupleProtocol oprot = (TTupleProtocol) prot;
23318 BitSet optionals = new BitSet();
23319 if (struct.isSetAfi()) {
23322 if (struct.isSetSafi()) {
23325 oprot.writeBitSet(optionals, 2);
23326 if (struct.isSetAfi()) {
23327 oprot.writeI32(struct.afi.getValue());
23329 if (struct.isSetSafi()) {
23330 oprot.writeI32(struct.safi.getValue());
23335 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_args struct) throws org.apache.thrift.TException {
23336 TTupleProtocol iprot = (TTupleProtocol) prot;
23337 BitSet incoming = iprot.readBitSet(2);
23338 if (incoming.get(0)) {
23339 struct.afi = af_afi.findByValue(iprot.readI32());
23340 struct.setAfiIsSet(true);
23342 if (incoming.get(1)) {
23343 struct.safi = af_safi.findByValue(iprot.readI32());
23344 struct.setSafiIsSet(true);
23351 public static class enableMultipath_result implements org.apache.thrift.TBase<enableMultipath_result, enableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableMultipath_result> {
23352 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableMultipath_result");
23354 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);
23356 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23358 schemes.put(StandardScheme.class, new enableMultipath_resultStandardSchemeFactory());
23359 schemes.put(TupleScheme.class, new enableMultipath_resultTupleSchemeFactory());
23362 public int success; // required
23364 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23365 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23366 SUCCESS((short)0, "success");
23368 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23371 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23372 byName.put(field.getFieldName(), field);
23377 * Find the _Fields constant that matches fieldId, or null if its not found.
23379 public static _Fields findByThriftId(int fieldId) {
23389 * Find the _Fields constant that matches fieldId, throwing an exception
23390 * if it is not found.
23392 public static _Fields findByThriftIdOrThrow(int fieldId) {
23393 _Fields fields = findByThriftId(fieldId);
23394 if (fields == null) {
23395 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23401 * Find the _Fields constant that matches name, or null if its not found.
23403 public static _Fields findByName(String name) {
23404 return byName.get(name);
23407 private final short _thriftId;
23408 private final String _fieldName;
23410 _Fields(short thriftId, String fieldName) {
23411 _thriftId = thriftId;
23412 _fieldName = fieldName;
23416 public short getThriftFieldId() {
23421 public String getFieldName() {
23426 // isset id assignments
23427 private static final int __SUCCESS_ISSET_ID = 0;
23428 private byte __isset_bitfield = 0;
23429 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23431 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23432 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
23433 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
23434 metaDataMap = Collections.unmodifiableMap(tmpMap);
23435 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableMultipath_result.class, metaDataMap);
23438 public enableMultipath_result() {
23441 public enableMultipath_result(
23445 this.success = success;
23446 setSuccessIsSet(true);
23450 * Performs a deep copy on <i>other</i>.
23452 public enableMultipath_result(enableMultipath_result other) {
23453 __isset_bitfield = other.__isset_bitfield;
23454 this.success = other.success;
23458 public enableMultipath_result deepCopy() {
23459 return new enableMultipath_result(this);
23463 public void clear() {
23464 setSuccessIsSet(false);
23468 public int getSuccess() {
23469 return this.success;
23472 public enableMultipath_result setSuccess(int success) {
23473 this.success = success;
23474 setSuccessIsSet(true);
23478 public void unsetSuccess() {
23479 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23482 /** Returns true if field success is set (has been assigned a value) and false otherwise */
23483 public boolean isSetSuccess() {
23484 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
23487 public void setSuccessIsSet(boolean value) {
23488 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
23492 public void setFieldValue(_Fields field, Object value) {
23495 if (value == null) {
23498 setSuccess((Integer)value);
23506 public Object getFieldValue(_Fields field) {
23509 return Integer.valueOf(getSuccess());
23512 throw new IllegalStateException();
23515 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23517 public boolean isSet(_Fields field) {
23518 if (field == null) {
23519 throw new IllegalArgumentException();
23524 return isSetSuccess();
23526 throw new IllegalStateException();
23530 public boolean equals(Object that) {
23531 if (that == null) {
23534 if (that instanceof enableMultipath_result) {
23535 return this.equals((enableMultipath_result)that);
23540 public boolean equals(enableMultipath_result that) {
23541 if (that == null) {
23545 boolean this_present_success = true;
23546 boolean that_present_success = true;
23547 if (this_present_success || that_present_success) {
23548 if (!(this_present_success && that_present_success)) {
23551 if (this.success != that.success) {
23560 public int hashCode() {
23561 List<Object> list = new ArrayList<Object>();
23563 boolean present_success = true;
23564 list.add(present_success);
23565 if (present_success)
23567 return list.hashCode();
23571 public int compareTo(enableMultipath_result other) {
23572 if (!getClass().equals(other.getClass())) {
23573 return getClass().getName().compareTo(other.getClass().getName());
23576 int lastComparison = 0;
23578 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
23579 if (lastComparison != 0) {
23580 return lastComparison;
23582 if (isSetSuccess()) {
23583 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
23584 if (lastComparison != 0) {
23585 return lastComparison;
23592 public _Fields fieldForId(int fieldId) {
23593 return _Fields.findByThriftId(fieldId);
23597 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23598 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
23602 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23603 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
23607 public String toString() {
23608 StringBuilder sb = new StringBuilder("enableMultipath_result(");
23609 boolean first = true;
23611 sb.append("success:");
23612 sb.append(this.success);
23615 return sb.toString();
23618 public void validate() throws org.apache.thrift.TException {
23619 // check for required fields
23620 // check for sub-struct validity
23623 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23625 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23626 } catch (org.apache.thrift.TException te) {
23627 throw new java.io.IOException(te);
23631 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23633 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23634 __isset_bitfield = 0;
23635 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23636 } catch (org.apache.thrift.TException te) {
23637 throw new java.io.IOException(te);
23641 private static class enableMultipath_resultStandardSchemeFactory implements SchemeFactory {
23643 public enableMultipath_resultStandardScheme getScheme() {
23644 return new enableMultipath_resultStandardScheme();
23648 private static class enableMultipath_resultStandardScheme extends StandardScheme<enableMultipath_result> {
23651 public void read(org.apache.thrift.protocol.TProtocol iprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23652 org.apache.thrift.protocol.TField schemeField;
23653 iprot.readStructBegin();
23656 schemeField = iprot.readFieldBegin();
23657 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
23660 switch (schemeField.id) {
23662 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
23663 struct.success = iprot.readI32();
23664 struct.setSuccessIsSet(true);
23666 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23670 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
23672 iprot.readFieldEnd();
23674 iprot.readStructEnd();
23676 // check for required fields of primitive type, which can't be checked in the validate method
23681 public void write(org.apache.thrift.protocol.TProtocol oprot, enableMultipath_result struct) throws org.apache.thrift.TException {
23684 oprot.writeStructBegin(STRUCT_DESC);
23685 if (struct.isSetSuccess()) {
23686 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23687 oprot.writeI32(struct.success);
23688 oprot.writeFieldEnd();
23690 oprot.writeFieldStop();
23691 oprot.writeStructEnd();
23696 private static class enableMultipath_resultTupleSchemeFactory implements SchemeFactory {
23698 public enableMultipath_resultTupleScheme getScheme() {
23699 return new enableMultipath_resultTupleScheme();
23703 private static class enableMultipath_resultTupleScheme extends TupleScheme<enableMultipath_result> {
23706 public void write(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23707 TTupleProtocol oprot = (TTupleProtocol) prot;
23708 BitSet optionals = new BitSet();
23709 if (struct.isSetSuccess()) {
23712 oprot.writeBitSet(optionals, 1);
23713 if (struct.isSetSuccess()) {
23714 oprot.writeI32(struct.success);
23719 public void read(org.apache.thrift.protocol.TProtocol prot, enableMultipath_result struct) throws org.apache.thrift.TException {
23720 TTupleProtocol iprot = (TTupleProtocol) prot;
23721 BitSet incoming = iprot.readBitSet(1);
23722 if (incoming.get(0)) {
23723 struct.success = iprot.readI32();
23724 struct.setSuccessIsSet(true);
23731 public static class disableMultipath_args implements org.apache.thrift.TBase<disableMultipath_args, disableMultipath_args._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_args> {
23732 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_args");
23734 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);
23735 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);
23737 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
23739 schemes.put(StandardScheme.class, new disableMultipath_argsStandardSchemeFactory());
23740 schemes.put(TupleScheme.class, new disableMultipath_argsTupleSchemeFactory());
23747 public af_afi afi; // required
23752 public af_safi safi; // required
23754 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23755 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23760 AFI((short)1, "afi"),
23765 SAFI((short)2, "safi");
23767 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23770 for (_Fields field : EnumSet.allOf(_Fields.class)) {
23771 byName.put(field.getFieldName(), field);
23776 * Find the _Fields constant that matches fieldId, or null if its not found.
23778 public static _Fields findByThriftId(int fieldId) {
23790 * Find the _Fields constant that matches fieldId, throwing an exception
23791 * if it is not found.
23793 public static _Fields findByThriftIdOrThrow(int fieldId) {
23794 _Fields fields = findByThriftId(fieldId);
23795 if (fields == null) {
23796 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23802 * Find the _Fields constant that matches name, or null if its not found.
23804 public static _Fields findByName(String name) {
23805 return byName.get(name);
23808 private final short _thriftId;
23809 private final String _fieldName;
23811 _Fields(short thriftId, String fieldName) {
23812 _thriftId = thriftId;
23813 _fieldName = fieldName;
23817 public short getThriftFieldId() {
23822 public String getFieldName() {
23827 // isset id assignments
23828 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23830 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23831 tmpMap.put(_Fields.AFI, new org.apache.thrift.meta_data.FieldMetaData("afi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23832 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_afi.class)));
23833 tmpMap.put(_Fields.SAFI, new org.apache.thrift.meta_data.FieldMetaData("safi", org.apache.thrift.TFieldRequirementType.DEFAULT,
23834 new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, af_safi.class)));
23835 metaDataMap = Collections.unmodifiableMap(tmpMap);
23836 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_args.class, metaDataMap);
23839 public disableMultipath_args() {
23842 public disableMultipath_args(
23852 * Performs a deep copy on <i>other</i>.
23854 public disableMultipath_args(disableMultipath_args other) {
23855 if (other.isSetAfi()) {
23856 this.afi = other.afi;
23858 if (other.isSetSafi()) {
23859 this.safi = other.safi;
23864 public disableMultipath_args deepCopy() {
23865 return new disableMultipath_args(this);
23869 public void clear() {
23878 public af_afi getAfi() {
23886 public disableMultipath_args setAfi(af_afi afi) {
23891 public void unsetAfi() {
23895 /** Returns true if field afi is set (has been assigned a value) and false otherwise */
23896 public boolean isSetAfi() {
23897 return this.afi != null;
23900 public void setAfiIsSet(boolean value) {
23910 public af_safi getSafi() {
23918 public disableMultipath_args setSafi(af_safi safi) {
23923 public void unsetSafi() {
23927 /** Returns true if field safi is set (has been assigned a value) and false otherwise */
23928 public boolean isSetSafi() {
23929 return this.safi != null;
23932 public void setSafiIsSet(boolean value) {
23939 public void setFieldValue(_Fields field, Object value) {
23942 if (value == null) {
23945 setAfi((af_afi)value);
23950 if (value == null) {
23953 setSafi((af_safi)value);
23961 public Object getFieldValue(_Fields field) {
23970 throw new IllegalStateException();
23973 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23975 public boolean isSet(_Fields field) {
23976 if (field == null) {
23977 throw new IllegalArgumentException();
23984 return isSetSafi();
23986 throw new IllegalStateException();
23990 public boolean equals(Object that) {
23991 if (that == null) {
23994 if (that instanceof disableMultipath_args) {
23995 return this.equals((disableMultipath_args)that);
24000 public boolean equals(disableMultipath_args that) {
24001 if (that == null) {
24005 boolean this_present_afi = true && this.isSetAfi();
24006 boolean that_present_afi = true && that.isSetAfi();
24007 if (this_present_afi || that_present_afi) {
24008 if (!(this_present_afi && that_present_afi)) {
24011 if (!this.afi.equals(that.afi)) {
24016 boolean this_present_safi = true && this.isSetSafi();
24017 boolean that_present_safi = true && that.isSetSafi();
24018 if (this_present_safi || that_present_safi) {
24019 if (!(this_present_safi && that_present_safi)) {
24022 if (!this.safi.equals(that.safi)) {
24031 public int hashCode() {
24032 List<Object> list = new ArrayList<Object>();
24034 boolean present_afi = true && (isSetAfi());
24035 list.add(present_afi);
24037 list.add(afi.getValue());
24038 boolean present_safi = true && (isSetSafi());
24039 list.add(present_safi);
24041 list.add(safi.getValue());
24042 return list.hashCode();
24046 public int compareTo(disableMultipath_args other) {
24047 if (!getClass().equals(other.getClass())) {
24048 return getClass().getName().compareTo(other.getClass().getName());
24051 int lastComparison = 0;
24053 lastComparison = Boolean.valueOf(isSetAfi()).compareTo(other.isSetAfi());
24054 if (lastComparison != 0) {
24055 return lastComparison;
24058 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.afi, other.afi);
24059 if (lastComparison != 0) {
24060 return lastComparison;
24063 lastComparison = Boolean.valueOf(isSetSafi()).compareTo(other.isSetSafi());
24064 if (lastComparison != 0) {
24065 return lastComparison;
24068 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.safi, other.safi);
24069 if (lastComparison != 0) {
24070 return lastComparison;
24077 public _Fields fieldForId(int fieldId) {
24078 return _Fields.findByThriftId(fieldId);
24082 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24083 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24087 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24088 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24092 public String toString() {
24093 StringBuilder sb = new StringBuilder("disableMultipath_args(");
24094 boolean first = true;
24097 if (this.afi == null) {
24100 sb.append(this.afi);
24106 sb.append("safi:");
24107 if (this.safi == null) {
24110 sb.append(this.safi);
24114 return sb.toString();
24117 public void validate() throws org.apache.thrift.TException {
24118 // check for required fields
24119 // check for sub-struct validity
24122 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24124 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24125 } catch (org.apache.thrift.TException te) {
24126 throw new java.io.IOException(te);
24130 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24132 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24133 } catch (org.apache.thrift.TException te) {
24134 throw new java.io.IOException(te);
24138 private static class disableMultipath_argsStandardSchemeFactory implements SchemeFactory {
24140 public disableMultipath_argsStandardScheme getScheme() {
24141 return new disableMultipath_argsStandardScheme();
24145 private static class disableMultipath_argsStandardScheme extends StandardScheme<disableMultipath_args> {
24148 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_args struct) throws org.apache.thrift.TException {
24149 org.apache.thrift.protocol.TField schemeField;
24150 iprot.readStructBegin();
24153 schemeField = iprot.readFieldBegin();
24154 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24157 switch (schemeField.id) {
24159 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24160 struct.afi = af_afi.findByValue(iprot.readI32());
24161 struct.setAfiIsSet(true);
24163 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24167 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24168 struct.safi = af_safi.findByValue(iprot.readI32());
24169 struct.setSafiIsSet(true);
24171 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24175 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24177 iprot.readFieldEnd();
24179 iprot.readStructEnd();
24181 // check for required fields of primitive type, which can't be checked in the validate method
24186 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_args struct) throws org.apache.thrift.TException {
24189 oprot.writeStructBegin(STRUCT_DESC);
24190 if (struct.afi != null) {
24191 oprot.writeFieldBegin(AFI_FIELD_DESC);
24192 oprot.writeI32(struct.afi.getValue());
24193 oprot.writeFieldEnd();
24195 if (struct.safi != null) {
24196 oprot.writeFieldBegin(SAFI_FIELD_DESC);
24197 oprot.writeI32(struct.safi.getValue());
24198 oprot.writeFieldEnd();
24200 oprot.writeFieldStop();
24201 oprot.writeStructEnd();
24206 private static class disableMultipath_argsTupleSchemeFactory implements SchemeFactory {
24208 public disableMultipath_argsTupleScheme getScheme() {
24209 return new disableMultipath_argsTupleScheme();
24213 private static class disableMultipath_argsTupleScheme extends TupleScheme<disableMultipath_args> {
24216 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
24217 TTupleProtocol oprot = (TTupleProtocol) prot;
24218 BitSet optionals = new BitSet();
24219 if (struct.isSetAfi()) {
24222 if (struct.isSetSafi()) {
24225 oprot.writeBitSet(optionals, 2);
24226 if (struct.isSetAfi()) {
24227 oprot.writeI32(struct.afi.getValue());
24229 if (struct.isSetSafi()) {
24230 oprot.writeI32(struct.safi.getValue());
24235 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_args struct) throws org.apache.thrift.TException {
24236 TTupleProtocol iprot = (TTupleProtocol) prot;
24237 BitSet incoming = iprot.readBitSet(2);
24238 if (incoming.get(0)) {
24239 struct.afi = af_afi.findByValue(iprot.readI32());
24240 struct.setAfiIsSet(true);
24242 if (incoming.get(1)) {
24243 struct.safi = af_safi.findByValue(iprot.readI32());
24244 struct.setSafiIsSet(true);
24251 public static class disableMultipath_result implements org.apache.thrift.TBase<disableMultipath_result, disableMultipath_result._Fields>, java.io.Serializable, Cloneable, Comparable<disableMultipath_result> {
24252 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("disableMultipath_result");
24254 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);
24256 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24258 schemes.put(StandardScheme.class, new disableMultipath_resultStandardSchemeFactory());
24259 schemes.put(TupleScheme.class, new disableMultipath_resultTupleSchemeFactory());
24262 public int success; // required
24264 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24265 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24266 SUCCESS((short)0, "success");
24268 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24271 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24272 byName.put(field.getFieldName(), field);
24277 * Find the _Fields constant that matches fieldId, or null if its not found.
24279 public static _Fields findByThriftId(int fieldId) {
24289 * Find the _Fields constant that matches fieldId, throwing an exception
24290 * if it is not found.
24292 public static _Fields findByThriftIdOrThrow(int fieldId) {
24293 _Fields fields = findByThriftId(fieldId);
24294 if (fields == null) {
24295 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24301 * Find the _Fields constant that matches name, or null if its not found.
24303 public static _Fields findByName(String name) {
24304 return byName.get(name);
24307 private final short _thriftId;
24308 private final String _fieldName;
24310 _Fields(short thriftId, String fieldName) {
24311 _thriftId = thriftId;
24312 _fieldName = fieldName;
24316 public short getThriftFieldId() {
24321 public String getFieldName() {
24326 // isset id assignments
24327 private static final int __SUCCESS_ISSET_ID = 0;
24328 private byte __isset_bitfield = 0;
24329 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24331 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24332 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
24333 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24334 metaDataMap = Collections.unmodifiableMap(tmpMap);
24335 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(disableMultipath_result.class, metaDataMap);
24338 public disableMultipath_result() {
24341 public disableMultipath_result(
24345 this.success = success;
24346 setSuccessIsSet(true);
24350 * Performs a deep copy on <i>other</i>.
24352 public disableMultipath_result(disableMultipath_result other) {
24353 __isset_bitfield = other.__isset_bitfield;
24354 this.success = other.success;
24358 public disableMultipath_result deepCopy() {
24359 return new disableMultipath_result(this);
24363 public void clear() {
24364 setSuccessIsSet(false);
24368 public int getSuccess() {
24369 return this.success;
24372 public disableMultipath_result setSuccess(int success) {
24373 this.success = success;
24374 setSuccessIsSet(true);
24378 public void unsetSuccess() {
24379 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24382 /** Returns true if field success is set (has been assigned a value) and false otherwise */
24383 public boolean isSetSuccess() {
24384 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
24387 public void setSuccessIsSet(boolean value) {
24388 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
24392 public void setFieldValue(_Fields field, Object value) {
24395 if (value == null) {
24398 setSuccess((Integer)value);
24406 public Object getFieldValue(_Fields field) {
24409 return Integer.valueOf(getSuccess());
24412 throw new IllegalStateException();
24415 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24417 public boolean isSet(_Fields field) {
24418 if (field == null) {
24419 throw new IllegalArgumentException();
24424 return isSetSuccess();
24426 throw new IllegalStateException();
24430 public boolean equals(Object that) {
24431 if (that == null) {
24434 if (that instanceof disableMultipath_result) {
24435 return this.equals((disableMultipath_result)that);
24440 public boolean equals(disableMultipath_result that) {
24441 if (that == null) {
24445 boolean this_present_success = true;
24446 boolean that_present_success = true;
24447 if (this_present_success || that_present_success) {
24448 if (!(this_present_success && that_present_success)) {
24451 if (this.success != that.success) {
24460 public int hashCode() {
24461 List<Object> list = new ArrayList<Object>();
24463 boolean present_success = true;
24464 list.add(present_success);
24465 if (present_success)
24467 return list.hashCode();
24471 public int compareTo(disableMultipath_result other) {
24472 if (!getClass().equals(other.getClass())) {
24473 return getClass().getName().compareTo(other.getClass().getName());
24476 int lastComparison = 0;
24478 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
24479 if (lastComparison != 0) {
24480 return lastComparison;
24482 if (isSetSuccess()) {
24483 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
24484 if (lastComparison != 0) {
24485 return lastComparison;
24492 public _Fields fieldForId(int fieldId) {
24493 return _Fields.findByThriftId(fieldId);
24497 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24498 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24502 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24503 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24507 public String toString() {
24508 StringBuilder sb = new StringBuilder("disableMultipath_result(");
24509 boolean first = true;
24511 sb.append("success:");
24512 sb.append(this.success);
24515 return sb.toString();
24518 public void validate() throws org.apache.thrift.TException {
24519 // check for required fields
24520 // check for sub-struct validity
24523 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24525 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24526 } catch (org.apache.thrift.TException te) {
24527 throw new java.io.IOException(te);
24531 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24533 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24534 __isset_bitfield = 0;
24535 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24536 } catch (org.apache.thrift.TException te) {
24537 throw new java.io.IOException(te);
24541 private static class disableMultipath_resultStandardSchemeFactory implements SchemeFactory {
24543 public disableMultipath_resultStandardScheme getScheme() {
24544 return new disableMultipath_resultStandardScheme();
24548 private static class disableMultipath_resultStandardScheme extends StandardScheme<disableMultipath_result> {
24551 public void read(org.apache.thrift.protocol.TProtocol iprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24552 org.apache.thrift.protocol.TField schemeField;
24553 iprot.readStructBegin();
24556 schemeField = iprot.readFieldBegin();
24557 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
24560 switch (schemeField.id) {
24562 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
24563 struct.success = iprot.readI32();
24564 struct.setSuccessIsSet(true);
24566 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24570 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
24572 iprot.readFieldEnd();
24574 iprot.readStructEnd();
24576 // check for required fields of primitive type, which can't be checked in the validate method
24581 public void write(org.apache.thrift.protocol.TProtocol oprot, disableMultipath_result struct) throws org.apache.thrift.TException {
24584 oprot.writeStructBegin(STRUCT_DESC);
24585 if (struct.isSetSuccess()) {
24586 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24587 oprot.writeI32(struct.success);
24588 oprot.writeFieldEnd();
24590 oprot.writeFieldStop();
24591 oprot.writeStructEnd();
24596 private static class disableMultipath_resultTupleSchemeFactory implements SchemeFactory {
24598 public disableMultipath_resultTupleScheme getScheme() {
24599 return new disableMultipath_resultTupleScheme();
24603 private static class disableMultipath_resultTupleScheme extends TupleScheme<disableMultipath_result> {
24606 public void write(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24607 TTupleProtocol oprot = (TTupleProtocol) prot;
24608 BitSet optionals = new BitSet();
24609 if (struct.isSetSuccess()) {
24612 oprot.writeBitSet(optionals, 1);
24613 if (struct.isSetSuccess()) {
24614 oprot.writeI32(struct.success);
24619 public void read(org.apache.thrift.protocol.TProtocol prot, disableMultipath_result struct) throws org.apache.thrift.TException {
24620 TTupleProtocol iprot = (TTupleProtocol) prot;
24621 BitSet incoming = iprot.readBitSet(1);
24622 if (incoming.get(0)) {
24623 struct.success = iprot.readI32();
24624 struct.setSuccessIsSet(true);
24631 public static class multipaths_args implements org.apache.thrift.TBase<multipaths_args, multipaths_args._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_args> {
24632 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_args");
24634 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);
24635 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);
24637 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
24639 schemes.put(StandardScheme.class, new multipaths_argsStandardSchemeFactory());
24640 schemes.put(TupleScheme.class, new multipaths_argsTupleSchemeFactory());
24643 public String rd; // required
24644 public int maxPath; // required
24646 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24647 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24648 RD((short)1, "rd"),
24649 MAX_PATH((short)2, "maxPath");
24651 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24654 for (_Fields field : EnumSet.allOf(_Fields.class)) {
24655 byName.put(field.getFieldName(), field);
24660 * Find the _Fields constant that matches fieldId, or null if its not found.
24662 public static _Fields findByThriftId(int fieldId) {
24666 case 2: // MAX_PATH
24674 * Find the _Fields constant that matches fieldId, throwing an exception
24675 * if it is not found.
24677 public static _Fields findByThriftIdOrThrow(int fieldId) {
24678 _Fields fields = findByThriftId(fieldId);
24679 if (fields == null) {
24680 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24686 * Find the _Fields constant that matches name, or null if its not found.
24688 public static _Fields findByName(String name) {
24689 return byName.get(name);
24692 private final short _thriftId;
24693 private final String _fieldName;
24695 _Fields(short thriftId, String fieldName) {
24696 _thriftId = thriftId;
24697 _fieldName = fieldName;
24701 public short getThriftFieldId() {
24706 public String getFieldName() {
24711 // isset id assignments
24712 private static final int __MAXPATH_ISSET_ID = 0;
24713 private byte __isset_bitfield = 0;
24714 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24716 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24717 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
24718 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24719 tmpMap.put(_Fields.MAX_PATH, new org.apache.thrift.meta_data.FieldMetaData("maxPath", org.apache.thrift.TFieldRequirementType.DEFAULT,
24720 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
24721 metaDataMap = Collections.unmodifiableMap(tmpMap);
24722 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_args.class, metaDataMap);
24725 public multipaths_args() {
24728 public multipaths_args(
24734 this.maxPath = maxPath;
24735 setMaxPathIsSet(true);
24739 * Performs a deep copy on <i>other</i>.
24741 public multipaths_args(multipaths_args other) {
24742 __isset_bitfield = other.__isset_bitfield;
24743 if (other.isSetRd()) {
24744 this.rd = other.rd;
24746 this.maxPath = other.maxPath;
24750 public multipaths_args deepCopy() {
24751 return new multipaths_args(this);
24755 public void clear() {
24757 setMaxPathIsSet(false);
24761 public String getRd() {
24765 public multipaths_args setRd(String rd) {
24770 public void unsetRd() {
24774 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
24775 public boolean isSetRd() {
24776 return this.rd != null;
24779 public void setRdIsSet(boolean value) {
24785 public int getMaxPath() {
24786 return this.maxPath;
24789 public multipaths_args setMaxPath(int maxPath) {
24790 this.maxPath = maxPath;
24791 setMaxPathIsSet(true);
24795 public void unsetMaxPath() {
24796 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24799 /** Returns true if field maxPath is set (has been assigned a value) and false otherwise */
24800 public boolean isSetMaxPath() {
24801 return EncodingUtils.testBit(__isset_bitfield, __MAXPATH_ISSET_ID);
24804 public void setMaxPathIsSet(boolean value) {
24805 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAXPATH_ISSET_ID, value);
24809 public void setFieldValue(_Fields field, Object value) {
24812 if (value == null) {
24815 setRd((String)value);
24820 if (value == null) {
24823 setMaxPath((Integer)value);
24831 public Object getFieldValue(_Fields field) {
24837 return Integer.valueOf(getMaxPath());
24840 throw new IllegalStateException();
24843 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24845 public boolean isSet(_Fields field) {
24846 if (field == null) {
24847 throw new IllegalArgumentException();
24854 return isSetMaxPath();
24856 throw new IllegalStateException();
24860 public boolean equals(Object that) {
24861 if (that == null) {
24864 if (that instanceof multipaths_args) {
24865 return this.equals((multipaths_args)that);
24870 public boolean equals(multipaths_args that) {
24871 if (that == null) {
24875 boolean this_present_rd = true && this.isSetRd();
24876 boolean that_present_rd = true && that.isSetRd();
24877 if (this_present_rd || that_present_rd) {
24878 if (!(this_present_rd && that_present_rd)) {
24881 if (!this.rd.equals(that.rd)) {
24886 boolean this_present_maxPath = true;
24887 boolean that_present_maxPath = true;
24888 if (this_present_maxPath || that_present_maxPath) {
24889 if (!(this_present_maxPath && that_present_maxPath)) {
24892 if (this.maxPath != that.maxPath) {
24901 public int hashCode() {
24902 List<Object> list = new ArrayList<Object>();
24903 boolean present_rd = true && (isSetRd());
24904 list.add(present_rd);
24907 boolean present_maxPath = true;
24908 list.add(present_maxPath);
24909 if (present_maxPath)
24911 return list.hashCode();
24915 public int compareTo(multipaths_args other) {
24916 if (!getClass().equals(other.getClass())) {
24917 return getClass().getName().compareTo(other.getClass().getName());
24920 int lastComparison = 0;
24922 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
24923 if (lastComparison != 0) {
24924 return lastComparison;
24927 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
24928 if (lastComparison != 0) {
24929 return lastComparison;
24932 lastComparison = Boolean.valueOf(isSetMaxPath()).compareTo(other.isSetMaxPath());
24933 if (lastComparison != 0) {
24934 return lastComparison;
24936 if (isSetMaxPath()) {
24937 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maxPath, other.maxPath);
24938 if (lastComparison != 0) {
24939 return lastComparison;
24946 public _Fields fieldForId(int fieldId) {
24947 return _Fields.findByThriftId(fieldId);
24951 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24952 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
24956 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24957 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
24961 public String toString() {
24962 StringBuilder sb = new StringBuilder("multipaths_args(");
24963 boolean first = true;
24966 if (this.rd == null) {
24969 sb.append(this.rd);
24975 sb.append("maxPath:");
24976 sb.append(this.maxPath);
24979 return sb.toString();
24982 public void validate() throws org.apache.thrift.TException {
24983 // check for required fields
24984 // check for sub-struct validity
24987 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24989 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24990 } catch (org.apache.thrift.TException te) {
24991 throw new java.io.IOException(te);
24995 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24997 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24998 __isset_bitfield = 0;
24999 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25000 } catch (org.apache.thrift.TException te) {
25001 throw new java.io.IOException(te);
25005 private static class multipaths_argsStandardSchemeFactory implements SchemeFactory {
25007 public multipaths_argsStandardScheme getScheme() {
25008 return new multipaths_argsStandardScheme();
25012 private static class multipaths_argsStandardScheme extends StandardScheme<multipaths_args> {
25015 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_args struct) throws org.apache.thrift.TException {
25016 org.apache.thrift.protocol.TField schemeField;
25017 iprot.readStructBegin();
25020 schemeField = iprot.readFieldBegin();
25021 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25024 switch (schemeField.id) {
25026 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
25027 struct.rd = iprot.readString();
25028 struct.setRdIsSet(true);
25030 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25033 case 2: // MAX_PATH
25034 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25035 struct.maxPath = iprot.readI32();
25036 struct.setMaxPathIsSet(true);
25038 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25042 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25044 iprot.readFieldEnd();
25046 iprot.readStructEnd();
25048 // check for required fields of primitive type, which can't be checked in the validate method
25053 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_args struct) throws org.apache.thrift.TException {
25056 oprot.writeStructBegin(STRUCT_DESC);
25057 if (struct.rd != null) {
25058 oprot.writeFieldBegin(RD_FIELD_DESC);
25059 oprot.writeString(struct.rd);
25060 oprot.writeFieldEnd();
25062 oprot.writeFieldBegin(MAX_PATH_FIELD_DESC);
25063 oprot.writeI32(struct.maxPath);
25064 oprot.writeFieldEnd();
25065 oprot.writeFieldStop();
25066 oprot.writeStructEnd();
25071 private static class multipaths_argsTupleSchemeFactory implements SchemeFactory {
25073 public multipaths_argsTupleScheme getScheme() {
25074 return new multipaths_argsTupleScheme();
25078 private static class multipaths_argsTupleScheme extends TupleScheme<multipaths_args> {
25081 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
25082 TTupleProtocol oprot = (TTupleProtocol) prot;
25083 BitSet optionals = new BitSet();
25084 if (struct.isSetRd()) {
25087 if (struct.isSetMaxPath()) {
25090 oprot.writeBitSet(optionals, 2);
25091 if (struct.isSetRd()) {
25092 oprot.writeString(struct.rd);
25094 if (struct.isSetMaxPath()) {
25095 oprot.writeI32(struct.maxPath);
25100 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_args struct) throws org.apache.thrift.TException {
25101 TTupleProtocol iprot = (TTupleProtocol) prot;
25102 BitSet incoming = iprot.readBitSet(2);
25103 if (incoming.get(0)) {
25104 struct.rd = iprot.readString();
25105 struct.setRdIsSet(true);
25107 if (incoming.get(1)) {
25108 struct.maxPath = iprot.readI32();
25109 struct.setMaxPathIsSet(true);
25116 public static class multipaths_result implements org.apache.thrift.TBase<multipaths_result, multipaths_result._Fields>, java.io.Serializable, Cloneable, Comparable<multipaths_result> {
25117 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("multipaths_result");
25119 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);
25121 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
25123 schemes.put(StandardScheme.class, new multipaths_resultStandardSchemeFactory());
25124 schemes.put(TupleScheme.class, new multipaths_resultTupleSchemeFactory());
25127 public int success; // required
25129 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25130 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25131 SUCCESS((short)0, "success");
25133 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25136 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25137 byName.put(field.getFieldName(), field);
25142 * Find the _Fields constant that matches fieldId, or null if its not found.
25144 public static _Fields findByThriftId(int fieldId) {
25154 * Find the _Fields constant that matches fieldId, throwing an exception
25155 * if it is not found.
25157 public static _Fields findByThriftIdOrThrow(int fieldId) {
25158 _Fields fields = findByThriftId(fieldId);
25159 if (fields == null) {
25160 throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25166 * Find the _Fields constant that matches name, or null if its not found.
25168 public static _Fields findByName(String name) {
25169 return byName.get(name);
25172 private final short _thriftId;
25173 private final String _fieldName;
25175 _Fields(short thriftId, String fieldName) {
25176 _thriftId = thriftId;
25177 _fieldName = fieldName;
25181 public short getThriftFieldId() {
25186 public String getFieldName() {
25191 // isset id assignments
25192 private static final int __SUCCESS_ISSET_ID = 0;
25193 private byte __isset_bitfield = 0;
25194 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25196 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25197 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25198 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25199 metaDataMap = Collections.unmodifiableMap(tmpMap);
25200 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(multipaths_result.class, metaDataMap);
25203 public multipaths_result() {
25206 public multipaths_result(
25210 this.success = success;
25211 setSuccessIsSet(true);
25215 * Performs a deep copy on <i>other</i>.
25217 public multipaths_result(multipaths_result other) {
25218 __isset_bitfield = other.__isset_bitfield;
25219 this.success = other.success;
25223 public multipaths_result deepCopy() {
25224 return new multipaths_result(this);
25228 public void clear() {
25229 setSuccessIsSet(false);
25233 public int getSuccess() {
25234 return this.success;
25237 public multipaths_result setSuccess(int success) {
25238 this.success = success;
25239 setSuccessIsSet(true);
25243 public void unsetSuccess() {
25244 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25247 /** Returns true if field success is set (has been assigned a value) and false otherwise */
25248 public boolean isSetSuccess() {
25249 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25252 public void setSuccessIsSet(boolean value) {
25253 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25257 public void setFieldValue(_Fields field, Object value) {
25260 if (value == null) {
25263 setSuccess((Integer)value);
25271 public Object getFieldValue(_Fields field) {
25274 return Integer.valueOf(getSuccess());
25277 throw new IllegalStateException();
25280 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25282 public boolean isSet(_Fields field) {
25283 if (field == null) {
25284 throw new IllegalArgumentException();
25289 return isSetSuccess();
25291 throw new IllegalStateException();
25295 public boolean equals(Object that) {
25296 if (that == null) {
25299 if (that instanceof multipaths_result) {
25300 return this.equals((multipaths_result)that);
25305 public boolean equals(multipaths_result that) {
25306 if (that == null) {
25310 boolean this_present_success = true;
25311 boolean that_present_success = true;
25312 if (this_present_success || that_present_success) {
25313 if (!(this_present_success && that_present_success)) {
25316 if (this.success != that.success) {
25325 public int hashCode() {
25326 List<Object> list = new ArrayList<Object>();
25328 boolean present_success = true;
25329 list.add(present_success);
25330 if (present_success)
25332 return list.hashCode();
25336 public int compareTo(multipaths_result other) {
25337 if (!getClass().equals(other.getClass())) {
25338 return getClass().getName().compareTo(other.getClass().getName());
25341 int lastComparison = 0;
25343 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
25344 if (lastComparison != 0) {
25345 return lastComparison;
25347 if (isSetSuccess()) {
25348 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
25349 if (lastComparison != 0) {
25350 return lastComparison;
25357 public _Fields fieldForId(int fieldId) {
25358 return _Fields.findByThriftId(fieldId);
25362 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25363 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25367 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25368 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25372 public String toString() {
25373 StringBuilder sb = new StringBuilder("multipaths_result(");
25374 boolean first = true;
25376 sb.append("success:");
25377 sb.append(this.success);
25380 return sb.toString();
25383 public void validate() throws org.apache.thrift.TException {
25384 // check for required fields
25385 // check for sub-struct validity
25388 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25390 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25391 } catch (org.apache.thrift.TException te) {
25392 throw new java.io.IOException(te);
25396 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25398 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25399 __isset_bitfield = 0;
25400 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25401 } catch (org.apache.thrift.TException te) {
25402 throw new java.io.IOException(te);
25406 private static class multipaths_resultStandardSchemeFactory implements SchemeFactory {
25408 public multipaths_resultStandardScheme getScheme() {
25409 return new multipaths_resultStandardScheme();
25413 private static class multipaths_resultStandardScheme extends StandardScheme<multipaths_result> {
25416 public void read(org.apache.thrift.protocol.TProtocol iprot, multipaths_result struct) throws org.apache.thrift.TException {
25417 org.apache.thrift.protocol.TField schemeField;
25418 iprot.readStructBegin();
25421 schemeField = iprot.readFieldBegin();
25422 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25425 switch (schemeField.id) {
25427 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25428 struct.success = iprot.readI32();
25429 struct.setSuccessIsSet(true);
25431 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25435 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25437 iprot.readFieldEnd();
25439 iprot.readStructEnd();
25441 // check for required fields of primitive type, which can't be checked in the validate method
25446 public void write(org.apache.thrift.protocol.TProtocol oprot, multipaths_result struct) throws org.apache.thrift.TException {
25449 oprot.writeStructBegin(STRUCT_DESC);
25450 if (struct.isSetSuccess()) {
25451 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25452 oprot.writeI32(struct.success);
25453 oprot.writeFieldEnd();
25455 oprot.writeFieldStop();
25456 oprot.writeStructEnd();
25461 private static class multipaths_resultTupleSchemeFactory implements SchemeFactory {
25463 public multipaths_resultTupleScheme getScheme() {
25464 return new multipaths_resultTupleScheme();
25468 private static class multipaths_resultTupleScheme extends TupleScheme<multipaths_result> {
25471 public void write(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25472 TTupleProtocol oprot = (TTupleProtocol) prot;
25473 BitSet optionals = new BitSet();
25474 if (struct.isSetSuccess()) {
25477 oprot.writeBitSet(optionals, 1);
25478 if (struct.isSetSuccess()) {
25479 oprot.writeI32(struct.success);
25484 public void read(org.apache.thrift.protocol.TProtocol prot, multipaths_result struct) throws org.apache.thrift.TException {
25485 TTupleProtocol iprot = (TTupleProtocol) prot;
25486 BitSet incoming = iprot.readBitSet(1);
25487 if (incoming.get(0)) {
25488 struct.success = iprot.readI32();
25489 struct.setSuccessIsSet(true);
25496 public static class enableEORDelay_args implements org.apache.thrift.TBase<enableEORDelay_args, enableEORDelay_args._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_args> {
25497 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_args");
25499 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);
25501 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
25503 schemes.put(StandardScheme.class, new enableEORDelay_argsStandardSchemeFactory());
25504 schemes.put(TupleScheme.class, new enableEORDelay_argsTupleSchemeFactory());
25507 public int delay; // required
25509 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25510 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25511 DELAY((short)1, "delay");
25513 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25516 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25517 byName.put(field.getFieldName(), field);
25522 * Find the _Fields constant that matches fieldId, or null if its not found.
25524 public static _Fields findByThriftId(int fieldId) {
25534 * Find the _Fields constant that matches fieldId, throwing an exception
25535 * if it is not found.
25537 public static _Fields findByThriftIdOrThrow(int fieldId) {
25538 _Fields fields = findByThriftId(fieldId);
25539 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25544 * Find the _Fields constant that matches name, or null if its not found.
25546 public static _Fields findByName(String name) {
25547 return byName.get(name);
25550 private final short _thriftId;
25551 private final String _fieldName;
25553 _Fields(short thriftId, String fieldName) {
25554 _thriftId = thriftId;
25555 _fieldName = fieldName;
25558 public short getThriftFieldId() {
25562 public String getFieldName() {
25567 // isset id assignments
25568 private static final int __DELAY_ISSET_ID = 0;
25569 private byte __isset_bitfield = 0;
25570 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25572 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25573 tmpMap.put(_Fields.DELAY, new org.apache.thrift.meta_data.FieldMetaData("delay", org.apache.thrift.TFieldRequirementType.DEFAULT,
25574 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25575 metaDataMap = Collections.unmodifiableMap(tmpMap);
25576 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_args.class, metaDataMap);
25579 public enableEORDelay_args() {
25582 public enableEORDelay_args(
25586 this.delay = delay;
25587 setDelayIsSet(true);
25591 * Performs a deep copy on <i>other</i>.
25593 public enableEORDelay_args(enableEORDelay_args other) {
25594 __isset_bitfield = other.__isset_bitfield;
25595 this.delay = other.delay;
25598 public enableEORDelay_args deepCopy() {
25599 return new enableEORDelay_args(this);
25603 public void clear() {
25604 setDelayIsSet(false);
25608 public int getDelay() {
25612 public enableEORDelay_args setDelay(int delay) {
25613 this.delay = delay;
25614 setDelayIsSet(true);
25618 public void unsetDelay() {
25619 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELAY_ISSET_ID);
25622 /** Returns true if field delay is set (has been assigned a value) and false otherwise */
25623 public boolean isSetDelay() {
25624 return EncodingUtils.testBit(__isset_bitfield, __DELAY_ISSET_ID);
25627 public void setDelayIsSet(boolean value) {
25628 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELAY_ISSET_ID, value);
25631 public void setFieldValue(_Fields field, Object value) {
25634 if (value == null) {
25637 setDelay((Integer)value);
25644 public Object getFieldValue(_Fields field) {
25647 return Integer.valueOf(getDelay());
25650 throw new IllegalStateException();
25653 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25654 public boolean isSet(_Fields field) {
25655 if (field == null) {
25656 throw new IllegalArgumentException();
25661 return isSetDelay();
25663 throw new IllegalStateException();
25667 public boolean equals(Object that) {
25670 if (that instanceof enableEORDelay_args)
25671 return this.equals((enableEORDelay_args)that);
25675 public boolean equals(enableEORDelay_args that) {
25679 boolean this_present_delay = true;
25680 boolean that_present_delay = true;
25681 if (this_present_delay || that_present_delay) {
25682 if (!(this_present_delay && that_present_delay))
25684 if (this.delay != that.delay)
25692 public int hashCode() {
25693 List<Object> list = new ArrayList<Object>();
25695 boolean present_delay = true;
25696 list.add(present_delay);
25699 return list.hashCode();
25703 public int compareTo(enableEORDelay_args other) {
25704 if (!getClass().equals(other.getClass())) {
25705 return getClass().getName().compareTo(other.getClass().getName());
25708 int lastComparison = 0;
25710 lastComparison = Boolean.valueOf(isSetDelay()).compareTo(other.isSetDelay());
25711 if (lastComparison != 0) {
25712 return lastComparison;
25714 if (isSetDelay()) {
25715 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delay, other.delay);
25716 if (lastComparison != 0) {
25717 return lastComparison;
25723 public _Fields fieldForId(int fieldId) {
25724 return _Fields.findByThriftId(fieldId);
25727 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25728 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
25731 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25732 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
25736 public String toString() {
25737 StringBuilder sb = new StringBuilder("enableEORDelay_args(");
25738 boolean first = true;
25740 sb.append("delay:");
25741 sb.append(this.delay);
25744 return sb.toString();
25747 public void validate() throws org.apache.thrift.TException {
25748 // check for required fields
25749 // check for sub-struct validity
25752 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25754 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25755 } catch (org.apache.thrift.TException te) {
25756 throw new java.io.IOException(te);
25760 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25762 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25763 __isset_bitfield = 0;
25764 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25765 } catch (org.apache.thrift.TException te) {
25766 throw new java.io.IOException(te);
25770 private static class enableEORDelay_argsStandardSchemeFactory implements SchemeFactory {
25771 public enableEORDelay_argsStandardScheme getScheme() {
25772 return new enableEORDelay_argsStandardScheme();
25776 private static class enableEORDelay_argsStandardScheme extends StandardScheme<enableEORDelay_args> {
25778 public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25779 org.apache.thrift.protocol.TField schemeField;
25780 iprot.readStructBegin();
25783 schemeField = iprot.readFieldBegin();
25784 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
25787 switch (schemeField.id) {
25789 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
25790 struct.delay = iprot.readI32();
25791 struct.setDelayIsSet(true);
25793 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25797 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
25799 iprot.readFieldEnd();
25801 iprot.readStructEnd();
25803 // check for required fields of primitive type, which can't be checked in the validate method
25807 public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25810 oprot.writeStructBegin(STRUCT_DESC);
25811 oprot.writeFieldBegin(DELAY_FIELD_DESC);
25812 oprot.writeI32(struct.delay);
25813 oprot.writeFieldEnd();
25814 oprot.writeFieldStop();
25815 oprot.writeStructEnd();
25820 private static class enableEORDelay_argsTupleSchemeFactory implements SchemeFactory {
25821 public enableEORDelay_argsTupleScheme getScheme() {
25822 return new enableEORDelay_argsTupleScheme();
25826 private static class enableEORDelay_argsTupleScheme extends TupleScheme<enableEORDelay_args> {
25829 public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25830 TTupleProtocol oprot = (TTupleProtocol) prot;
25831 BitSet optionals = new BitSet();
25832 if (struct.isSetDelay()) {
25835 oprot.writeBitSet(optionals, 1);
25836 if (struct.isSetDelay()) {
25837 oprot.writeI32(struct.delay);
25842 public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_args struct) throws org.apache.thrift.TException {
25843 TTupleProtocol iprot = (TTupleProtocol) prot;
25844 BitSet incoming = iprot.readBitSet(1);
25845 if (incoming.get(0)) {
25846 struct.delay = iprot.readI32();
25847 struct.setDelayIsSet(true);
25854 public static class enableEORDelay_result implements org.apache.thrift.TBase<enableEORDelay_result, enableEORDelay_result._Fields>, java.io.Serializable, Cloneable, Comparable<enableEORDelay_result> {
25855 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("enableEORDelay_result");
25857 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);
25859 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
25861 schemes.put(StandardScheme.class, new enableEORDelay_resultStandardSchemeFactory());
25862 schemes.put(TupleScheme.class, new enableEORDelay_resultTupleSchemeFactory());
25865 public int success; // required
25867 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25868 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25869 SUCCESS((short)0, "success");
25871 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25874 for (_Fields field : EnumSet.allOf(_Fields.class)) {
25875 byName.put(field.getFieldName(), field);
25880 * Find the _Fields constant that matches fieldId, or null if its not found.
25882 public static _Fields findByThriftId(int fieldId) {
25892 * Find the _Fields constant that matches fieldId, throwing an exception
25893 * if it is not found.
25895 public static _Fields findByThriftIdOrThrow(int fieldId) {
25896 _Fields fields = findByThriftId(fieldId);
25897 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25902 * Find the _Fields constant that matches name, or null if its not found.
25904 public static _Fields findByName(String name) {
25905 return byName.get(name);
25908 private final short _thriftId;
25909 private final String _fieldName;
25911 _Fields(short thriftId, String fieldName) {
25912 _thriftId = thriftId;
25913 _fieldName = fieldName;
25916 public short getThriftFieldId() {
25920 public String getFieldName() {
25925 // isset id assignments
25926 private static final int __SUCCESS_ISSET_ID = 0;
25927 private byte __isset_bitfield = 0;
25928 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25930 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25931 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
25932 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
25933 metaDataMap = Collections.unmodifiableMap(tmpMap);
25934 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(enableEORDelay_result.class, metaDataMap);
25937 public enableEORDelay_result() {
25940 public enableEORDelay_result(
25944 this.success = success;
25945 setSuccessIsSet(true);
25949 * Performs a deep copy on <i>other</i>.
25951 public enableEORDelay_result(enableEORDelay_result other) {
25952 __isset_bitfield = other.__isset_bitfield;
25953 this.success = other.success;
25956 public enableEORDelay_result deepCopy() {
25957 return new enableEORDelay_result(this);
25961 public void clear() {
25962 setSuccessIsSet(false);
25966 public int getSuccess() {
25967 return this.success;
25970 public enableEORDelay_result setSuccess(int success) {
25971 this.success = success;
25972 setSuccessIsSet(true);
25976 public void unsetSuccess() {
25977 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25980 /** Returns true if field success is set (has been assigned a value) and false otherwise */
25981 public boolean isSetSuccess() {
25982 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
25985 public void setSuccessIsSet(boolean value) {
25986 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
25989 public void setFieldValue(_Fields field, Object value) {
25992 if (value == null) {
25995 setSuccess((Integer)value);
26002 public Object getFieldValue(_Fields field) {
26005 return Integer.valueOf(getSuccess());
26008 throw new IllegalStateException();
26011 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26012 public boolean isSet(_Fields field) {
26013 if (field == null) {
26014 throw new IllegalArgumentException();
26019 return isSetSuccess();
26021 throw new IllegalStateException();
26025 public boolean equals(Object that) {
26028 if (that instanceof enableEORDelay_result)
26029 return this.equals((enableEORDelay_result)that);
26033 public boolean equals(enableEORDelay_result that) {
26037 boolean this_present_success = true;
26038 boolean that_present_success = true;
26039 if (this_present_success || that_present_success) {
26040 if (!(this_present_success && that_present_success))
26042 if (this.success != that.success)
26050 public int hashCode() {
26051 List<Object> list = new ArrayList<Object>();
26053 boolean present_success = true;
26054 list.add(present_success);
26055 if (present_success)
26057 return list.hashCode();
26061 public int compareTo(enableEORDelay_result other) {
26062 if (!getClass().equals(other.getClass())) {
26063 return getClass().getName().compareTo(other.getClass().getName());
26066 int lastComparison = 0;
26068 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26069 if (lastComparison != 0) {
26070 return lastComparison;
26072 if (isSetSuccess()) {
26073 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26074 if (lastComparison != 0) {
26075 return lastComparison;
26081 public _Fields fieldForId(int fieldId) {
26082 return _Fields.findByThriftId(fieldId);
26085 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26086 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26089 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26090 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26094 public String toString() {
26095 StringBuilder sb = new StringBuilder("enableEORDelay_result(");
26096 boolean first = true;
26098 sb.append("success:");
26099 sb.append(this.success);
26102 return sb.toString();
26105 public void validate() throws org.apache.thrift.TException {
26106 // check for required fields
26107 // check for sub-struct validity
26110 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26112 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26113 } catch (org.apache.thrift.TException te) {
26114 throw new java.io.IOException(te);
26118 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26120 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26121 __isset_bitfield = 0;
26122 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26123 } catch (org.apache.thrift.TException te) {
26124 throw new java.io.IOException(te);
26128 private static class enableEORDelay_resultStandardSchemeFactory implements SchemeFactory {
26129 public enableEORDelay_resultStandardScheme getScheme() {
26130 return new enableEORDelay_resultStandardScheme();
26134 private static class enableEORDelay_resultStandardScheme extends StandardScheme<enableEORDelay_result> {
26136 public void read(org.apache.thrift.protocol.TProtocol iprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26137 org.apache.thrift.protocol.TField schemeField;
26138 iprot.readStructBegin();
26141 schemeField = iprot.readFieldBegin();
26142 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26145 switch (schemeField.id) {
26147 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26148 struct.success = iprot.readI32();
26149 struct.setSuccessIsSet(true);
26151 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26155 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26157 iprot.readFieldEnd();
26159 iprot.readStructEnd();
26161 // check for required fields of primitive type, which can't be checked in the validate method
26165 public void write(org.apache.thrift.protocol.TProtocol oprot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26168 oprot.writeStructBegin(STRUCT_DESC);
26169 if (struct.isSetSuccess()) {
26170 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26171 oprot.writeI32(struct.success);
26172 oprot.writeFieldEnd();
26174 oprot.writeFieldStop();
26175 oprot.writeStructEnd();
26180 private static class enableEORDelay_resultTupleSchemeFactory implements SchemeFactory {
26181 public enableEORDelay_resultTupleScheme getScheme() {
26182 return new enableEORDelay_resultTupleScheme();
26186 private static class enableEORDelay_resultTupleScheme extends TupleScheme<enableEORDelay_result> {
26189 public void write(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26190 TTupleProtocol oprot = (TTupleProtocol) prot;
26191 BitSet optionals = new BitSet();
26192 if (struct.isSetSuccess()) {
26195 oprot.writeBitSet(optionals, 1);
26196 if (struct.isSetSuccess()) {
26197 oprot.writeI32(struct.success);
26202 public void read(org.apache.thrift.protocol.TProtocol prot, enableEORDelay_result struct) throws org.apache.thrift.TException {
26203 TTupleProtocol iprot = (TTupleProtocol) prot;
26204 BitSet incoming = iprot.readBitSet(1);
26205 if (incoming.get(0)) {
26206 struct.success = iprot.readI32();
26207 struct.setSuccessIsSet(true);
26214 public static class sendEOR_args implements org.apache.thrift.TBase<sendEOR_args, sendEOR_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_args> {
26215 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_args");
26217 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
26219 schemes.put(StandardScheme.class, new sendEOR_argsStandardSchemeFactory());
26220 schemes.put(TupleScheme.class, new sendEOR_argsTupleSchemeFactory());
26224 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26225 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26228 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26231 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26232 byName.put(field.getFieldName(), field);
26237 * Find the _Fields constant that matches fieldId, or null if its not found.
26239 public static _Fields findByThriftId(int fieldId) {
26247 * Find the _Fields constant that matches fieldId, throwing an exception
26248 * if it is not found.
26250 public static _Fields findByThriftIdOrThrow(int fieldId) {
26251 _Fields fields = findByThriftId(fieldId);
26252 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26257 * Find the _Fields constant that matches name, or null if its not found.
26259 public static _Fields findByName(String name) {
26260 return byName.get(name);
26263 private final short _thriftId;
26264 private final String _fieldName;
26266 _Fields(short thriftId, String fieldName) {
26267 _thriftId = thriftId;
26268 _fieldName = fieldName;
26271 public short getThriftFieldId() {
26275 public String getFieldName() {
26279 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26281 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26282 metaDataMap = Collections.unmodifiableMap(tmpMap);
26283 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_args.class, metaDataMap);
26286 public sendEOR_args() {
26290 * Performs a deep copy on <i>other</i>.
26292 public sendEOR_args(sendEOR_args other) {
26295 public sendEOR_args deepCopy() {
26296 return new sendEOR_args(this);
26300 public void clear() {
26303 public void setFieldValue(_Fields field, Object value) {
26308 public Object getFieldValue(_Fields field) {
26311 throw new IllegalStateException();
26314 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26315 public boolean isSet(_Fields field) {
26316 if (field == null) {
26317 throw new IllegalArgumentException();
26322 throw new IllegalStateException();
26326 public boolean equals(Object that) {
26329 if (that instanceof sendEOR_args)
26330 return this.equals((sendEOR_args)that);
26334 public boolean equals(sendEOR_args that) {
26342 public int hashCode() {
26343 List<Object> list = new ArrayList<Object>();
26345 return list.hashCode();
26349 public int compareTo(sendEOR_args other) {
26350 if (!getClass().equals(other.getClass())) {
26351 return getClass().getName().compareTo(other.getClass().getName());
26354 int lastComparison = 0;
26359 public _Fields fieldForId(int fieldId) {
26360 return _Fields.findByThriftId(fieldId);
26363 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26364 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26367 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26368 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26372 public String toString() {
26373 StringBuilder sb = new StringBuilder("sendEOR_args(");
26374 boolean first = true;
26377 return sb.toString();
26380 public void validate() throws org.apache.thrift.TException {
26381 // check for required fields
26382 // check for sub-struct validity
26385 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26387 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26388 } catch (org.apache.thrift.TException te) {
26389 throw new java.io.IOException(te);
26393 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26395 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26396 } catch (org.apache.thrift.TException te) {
26397 throw new java.io.IOException(te);
26401 private static class sendEOR_argsStandardSchemeFactory implements SchemeFactory {
26402 public sendEOR_argsStandardScheme getScheme() {
26403 return new sendEOR_argsStandardScheme();
26407 private static class sendEOR_argsStandardScheme extends StandardScheme<sendEOR_args> {
26409 public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_args struct) throws org.apache.thrift.TException {
26410 org.apache.thrift.protocol.TField schemeField;
26411 iprot.readStructBegin();
26414 schemeField = iprot.readFieldBegin();
26415 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26418 switch (schemeField.id) {
26420 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26422 iprot.readFieldEnd();
26424 iprot.readStructEnd();
26426 // check for required fields of primitive type, which can't be checked in the validate method
26430 public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_args struct) throws org.apache.thrift.TException {
26433 oprot.writeStructBegin(STRUCT_DESC);
26434 oprot.writeFieldStop();
26435 oprot.writeStructEnd();
26440 private static class sendEOR_argsTupleSchemeFactory implements SchemeFactory {
26441 public sendEOR_argsTupleScheme getScheme() {
26442 return new sendEOR_argsTupleScheme();
26446 private static class sendEOR_argsTupleScheme extends TupleScheme<sendEOR_args> {
26449 public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26450 TTupleProtocol oprot = (TTupleProtocol) prot;
26454 public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_args struct) throws org.apache.thrift.TException {
26455 TTupleProtocol iprot = (TTupleProtocol) prot;
26461 public static class sendEOR_result implements org.apache.thrift.TBase<sendEOR_result, sendEOR_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendEOR_result> {
26462 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendEOR_result");
26464 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);
26466 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
26468 schemes.put(StandardScheme.class, new sendEOR_resultStandardSchemeFactory());
26469 schemes.put(TupleScheme.class, new sendEOR_resultTupleSchemeFactory());
26472 public int success; // required
26474 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26475 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26476 SUCCESS((short)0, "success");
26478 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26481 for (_Fields field : EnumSet.allOf(_Fields.class)) {
26482 byName.put(field.getFieldName(), field);
26487 * Find the _Fields constant that matches fieldId, or null if its not found.
26489 public static _Fields findByThriftId(int fieldId) {
26499 * Find the _Fields constant that matches fieldId, throwing an exception
26500 * if it is not found.
26502 public static _Fields findByThriftIdOrThrow(int fieldId) {
26503 _Fields fields = findByThriftId(fieldId);
26504 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26509 * Find the _Fields constant that matches name, or null if its not found.
26511 public static _Fields findByName(String name) {
26512 return byName.get(name);
26515 private final short _thriftId;
26516 private final String _fieldName;
26518 _Fields(short thriftId, String fieldName) {
26519 _thriftId = thriftId;
26520 _fieldName = fieldName;
26523 public short getThriftFieldId() {
26527 public String getFieldName() {
26532 // isset id assignments
26533 private static final int __SUCCESS_ISSET_ID = 0;
26534 private byte __isset_bitfield = 0;
26535 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26537 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26538 tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
26539 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
26540 metaDataMap = Collections.unmodifiableMap(tmpMap);
26541 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendEOR_result.class, metaDataMap);
26544 public sendEOR_result() {
26547 public sendEOR_result(
26551 this.success = success;
26552 setSuccessIsSet(true);
26556 * Performs a deep copy on <i>other</i>.
26558 public sendEOR_result(sendEOR_result other) {
26559 __isset_bitfield = other.__isset_bitfield;
26560 this.success = other.success;
26563 public sendEOR_result deepCopy() {
26564 return new sendEOR_result(this);
26568 public void clear() {
26569 setSuccessIsSet(false);
26573 public int getSuccess() {
26574 return this.success;
26577 public sendEOR_result setSuccess(int success) {
26578 this.success = success;
26579 setSuccessIsSet(true);
26583 public void unsetSuccess() {
26584 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26587 /** Returns true if field success is set (has been assigned a value) and false otherwise */
26588 public boolean isSetSuccess() {
26589 return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
26592 public void setSuccessIsSet(boolean value) {
26593 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value);
26596 public void setFieldValue(_Fields field, Object value) {
26599 if (value == null) {
26602 setSuccess((Integer)value);
26609 public Object getFieldValue(_Fields field) {
26612 return Integer.valueOf(getSuccess());
26615 throw new IllegalStateException();
26618 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26619 public boolean isSet(_Fields field) {
26620 if (field == null) {
26621 throw new IllegalArgumentException();
26626 return isSetSuccess();
26628 throw new IllegalStateException();
26632 public boolean equals(Object that) {
26635 if (that instanceof sendEOR_result)
26636 return this.equals((sendEOR_result)that);
26640 public boolean equals(sendEOR_result that) {
26644 boolean this_present_success = true;
26645 boolean that_present_success = true;
26646 if (this_present_success || that_present_success) {
26647 if (!(this_present_success && that_present_success))
26649 if (this.success != that.success)
26657 public int hashCode() {
26658 List<Object> list = new ArrayList<Object>();
26660 boolean present_success = true;
26661 list.add(present_success);
26662 if (present_success)
26664 return list.hashCode();
26668 public int compareTo(sendEOR_result other) {
26669 if (!getClass().equals(other.getClass())) {
26670 return getClass().getName().compareTo(other.getClass().getName());
26673 int lastComparison = 0;
26675 lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
26676 if (lastComparison != 0) {
26677 return lastComparison;
26679 if (isSetSuccess()) {
26680 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success);
26681 if (lastComparison != 0) {
26682 return lastComparison;
26688 public _Fields fieldForId(int fieldId) {
26689 return _Fields.findByThriftId(fieldId);
26692 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26693 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
26696 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26697 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
26701 public String toString() {
26702 StringBuilder sb = new StringBuilder("sendEOR_result(");
26703 boolean first = true;
26705 sb.append("success:");
26706 sb.append(this.success);
26709 return sb.toString();
26712 public void validate() throws org.apache.thrift.TException {
26713 // check for required fields
26714 // check for sub-struct validity
26717 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26719 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26720 } catch (org.apache.thrift.TException te) {
26721 throw new java.io.IOException(te);
26725 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26727 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26728 __isset_bitfield = 0;
26729 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26730 } catch (org.apache.thrift.TException te) {
26731 throw new java.io.IOException(te);
26735 private static class sendEOR_resultStandardSchemeFactory implements SchemeFactory {
26736 public sendEOR_resultStandardScheme getScheme() {
26737 return new sendEOR_resultStandardScheme();
26741 private static class sendEOR_resultStandardScheme extends StandardScheme<sendEOR_result> {
26743 public void read(org.apache.thrift.protocol.TProtocol iprot, sendEOR_result struct) throws org.apache.thrift.TException {
26744 org.apache.thrift.protocol.TField schemeField;
26745 iprot.readStructBegin();
26748 schemeField = iprot.readFieldBegin();
26749 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
26752 switch (schemeField.id) {
26754 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
26755 struct.success = iprot.readI32();
26756 struct.setSuccessIsSet(true);
26758 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26762 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
26764 iprot.readFieldEnd();
26766 iprot.readStructEnd();
26768 // check for required fields of primitive type, which can't be checked in the validate method
26772 public void write(org.apache.thrift.protocol.TProtocol oprot, sendEOR_result struct) throws org.apache.thrift.TException {
26775 oprot.writeStructBegin(STRUCT_DESC);
26776 if (struct.isSetSuccess()) {
26777 oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26778 oprot.writeI32(struct.success);
26779 oprot.writeFieldEnd();
26781 oprot.writeFieldStop();
26782 oprot.writeStructEnd();
26787 private static class sendEOR_resultTupleSchemeFactory implements SchemeFactory {
26788 public sendEOR_resultTupleScheme getScheme() {
26789 return new sendEOR_resultTupleScheme();
26793 private static class sendEOR_resultTupleScheme extends TupleScheme<sendEOR_result> {
26796 public void write(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26797 TTupleProtocol oprot = (TTupleProtocol) prot;
26798 BitSet optionals = new BitSet();
26799 if (struct.isSetSuccess()) {
26802 oprot.writeBitSet(optionals, 1);
26803 if (struct.isSetSuccess()) {
26804 oprot.writeI32(struct.success);
26809 public void read(org.apache.thrift.protocol.TProtocol prot, sendEOR_result struct) throws org.apache.thrift.TException {
26810 TTupleProtocol iprot = (TTupleProtocol) prot;
26811 BitSet incoming = iprot.readBitSet(1);
26812 if (incoming.get(0)) {
26813 struct.success = iprot.readI32();
26814 struct.setSuccessIsSet(true);