2 * Autogenerated by Thrift Compiler (0.9.1)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 package org.opendaylight.netvirt.bgpmanager.thrift.gen;
10 import org.apache.thrift.scheme.IScheme;
11 import org.apache.thrift.scheme.SchemeFactory;
12 import org.apache.thrift.scheme.StandardScheme;
14 import org.apache.thrift.scheme.TupleScheme;
15 import org.apache.thrift.protocol.TTupleProtocol;
16 import org.apache.thrift.EncodingUtils;
18 import java.util.HashMap;
19 import java.util.EnumMap;
20 import java.util.EnumSet;
21 import java.util.Collections;
22 import java.util.BitSet;
24 public class Update implements org.apache.thrift.TBase<Update, Update._Fields>, java.io.Serializable, Cloneable, Comparable<Update> {
25 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Update");
27 private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)1);
28 private static final org.apache.thrift.protocol.TField RESERVED_FIELD_DESC = new org.apache.thrift.protocol.TField("reserved", org.apache.thrift.protocol.TType.I32, (short)2);
29 private static final org.apache.thrift.protocol.TField PREFIXLEN_FIELD_DESC = new org.apache.thrift.protocol.TField("prefixlen", org.apache.thrift.protocol.TType.I32, (short)3);
30 private static final org.apache.thrift.protocol.TField LABEL_FIELD_DESC = new org.apache.thrift.protocol.TField("label", org.apache.thrift.protocol.TType.I32, (short)4);
31 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)5);
32 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)6);
33 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)7);
35 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<>();
37 schemes.put(StandardScheme.class, new UpdateStandardSchemeFactory());
38 schemes.put(TupleScheme.class, new UpdateTupleSchemeFactory());
41 public int type; // required
42 public int reserved; // required
43 public int prefixlen; // required
44 public int label; // required
45 public String rd; // required
46 public String prefix; // required
47 public String nexthop; // required
49 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51 TYPE((short)1, "type"),
52 RESERVED((short)2, "reserved"),
53 PREFIXLEN((short)3, "prefixlen"),
54 LABEL((short)4, "label"),
56 PREFIX((short)6, "prefix"),
57 NEXTHOP((short)7, "nexthop");
59 private static final Map<String, _Fields> byName = new HashMap<>();
62 for (_Fields field : EnumSet.allOf(_Fields.class)) {
63 byName.put(field.getFieldName(), field);
68 * Find the _Fields constant that matches fieldId, or null if its not found.
70 public static _Fields findByThriftId(int fieldId) {
92 * Find the _Fields constant that matches fieldId, throwing an exception
95 public static _Fields findByThriftIdOrThrow(int fieldId) {
96 _Fields fields = findByThriftId(fieldId);
97 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
102 * Find the _Fields constant that matches name, or null if its not found.
104 public static _Fields findByName(String name) {
105 return byName.get(name);
108 private final short _thriftId;
109 private final String _fieldName;
111 _Fields(short thriftId, String fieldName) {
112 _thriftId = thriftId;
113 _fieldName = fieldName;
116 public short getThriftFieldId() {
120 public String getFieldName() {
125 // isset id assignments
126 private static final int __TYPE_ISSET_ID = 0;
127 private static final int __RESERVED_ISSET_ID = 1;
128 private static final int __PREFIXLEN_ISSET_ID = 2;
129 private static final int __LABEL_ISSET_ID = 3;
130 private byte __isset_bitfield = 0;
131 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
133 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<>(_Fields.class);
134 tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
135 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
136 tmpMap.put(_Fields.RESERVED, new org.apache.thrift.meta_data.FieldMetaData("reserved", org.apache.thrift.TFieldRequirementType.DEFAULT,
137 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
138 tmpMap.put(_Fields.PREFIXLEN, new org.apache.thrift.meta_data.FieldMetaData("prefixlen", org.apache.thrift.TFieldRequirementType.DEFAULT,
139 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
140 tmpMap.put(_Fields.LABEL, new org.apache.thrift.meta_data.FieldMetaData("label", org.apache.thrift.TFieldRequirementType.DEFAULT,
141 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
142 tmpMap.put(_Fields.RD, new org.apache.thrift.meta_data.FieldMetaData("rd", org.apache.thrift.TFieldRequirementType.DEFAULT,
143 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
144 tmpMap.put(_Fields.PREFIX, new org.apache.thrift.meta_data.FieldMetaData("prefix", org.apache.thrift.TFieldRequirementType.DEFAULT,
145 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
146 tmpMap.put(_Fields.NEXTHOP, new org.apache.thrift.meta_data.FieldMetaData("nexthop", org.apache.thrift.TFieldRequirementType.DEFAULT,
147 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
148 metaDataMap = Collections.unmodifiableMap(tmpMap);
149 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Update.class, metaDataMap);
167 this.reserved = reserved;
168 setReservedIsSet(true);
169 this.prefixlen = prefixlen;
170 setPrefixlenIsSet(true);
174 this.prefix = prefix;
175 this.nexthop = nexthop;
179 * Performs a deep copy on <i>other</i>.
181 public Update(Update other) {
182 __isset_bitfield = other.__isset_bitfield;
183 this.type = other.type;
184 this.reserved = other.reserved;
185 this.prefixlen = other.prefixlen;
186 this.label = other.label;
187 if (other.isSetRd()) {
190 if (other.isSetPrefix()) {
191 this.prefix = other.prefix;
193 if (other.isSetNexthop()) {
194 this.nexthop = other.nexthop;
198 public Update deepCopy() {
199 return new Update(this);
203 public void clear() {
206 setReservedIsSet(false);
208 setPrefixlenIsSet(false);
210 setLabelIsSet(false);
217 public int getType() {
221 public Update setType(int type) {
227 public void unsetType() {
228 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __TYPE_ISSET_ID);
231 /** Returns true if field type is set (has been assigned a value) and false otherwise */
232 public boolean isSetType() {
233 return EncodingUtils.testBit(__isset_bitfield, __TYPE_ISSET_ID);
236 public void setTypeIsSet(boolean value) {
237 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __TYPE_ISSET_ID, value);
240 public int getReserved() {
241 return this.reserved;
244 public Update setReserved(int reserved) {
245 this.reserved = reserved;
246 setReservedIsSet(true);
250 public void unsetReserved() {
251 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __RESERVED_ISSET_ID);
254 /** Returns true if field reserved is set (has been assigned a value) and false otherwise */
255 public boolean isSetReserved() {
256 return EncodingUtils.testBit(__isset_bitfield, __RESERVED_ISSET_ID);
259 public void setReservedIsSet(boolean value) {
260 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __RESERVED_ISSET_ID, value);
263 public int getPrefixlen() {
264 return this.prefixlen;
267 public Update setPrefixlen(int prefixlen) {
268 this.prefixlen = prefixlen;
269 setPrefixlenIsSet(true);
273 public void unsetPrefixlen() {
274 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
277 /** Returns true if field prefixlen is set (has been assigned a value) and false otherwise */
278 public boolean isSetPrefixlen() {
279 return EncodingUtils.testBit(__isset_bitfield, __PREFIXLEN_ISSET_ID);
282 public void setPrefixlenIsSet(boolean value) {
283 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PREFIXLEN_ISSET_ID, value);
286 public int getLabel() {
290 public Update setLabel(int label) {
296 public void unsetLabel() {
297 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __LABEL_ISSET_ID);
300 /** Returns true if field label is set (has been assigned a value) and false otherwise */
301 public boolean isSetLabel() {
302 return EncodingUtils.testBit(__isset_bitfield, __LABEL_ISSET_ID);
305 public void setLabelIsSet(boolean value) {
306 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __LABEL_ISSET_ID, value);
309 public String getRd() {
313 public Update setRd(String rd) {
318 public void unsetRd() {
322 /** Returns true if field rd is set (has been assigned a value) and false otherwise */
323 public boolean isSetRd() {
324 return this.rd != null;
327 public void setRdIsSet(boolean value) {
333 public String getPrefix() {
337 public Update setPrefix(String prefix) {
338 this.prefix = prefix;
342 public void unsetPrefix() {
346 /** Returns true if field prefix is set (has been assigned a value) and false otherwise */
347 public boolean isSetPrefix() {
348 return this.prefix != null;
351 public void setPrefixIsSet(boolean value) {
357 public String getNexthop() {
361 public Update setNexthop(String nexthop) {
362 this.nexthop = nexthop;
366 public void unsetNexthop() {
370 /** Returns true if field nexthop is set (has been assigned a value) and false otherwise */
371 public boolean isSetNexthop() {
372 return this.nexthop != null;
375 public void setNexthopIsSet(boolean value) {
381 public void setFieldValue(_Fields field, Object value) {
387 setType((Integer)value);
395 setReserved((Integer)value);
403 setPrefixlen((Integer)value);
411 setLabel((Integer)value);
419 setRd((String)value);
427 setPrefix((String)value);
435 setNexthop((String)value);
442 public Object getFieldValue(_Fields field) {
445 return Integer.valueOf(getType());
448 return Integer.valueOf(getReserved());
451 return Integer.valueOf(getPrefixlen());
454 return Integer.valueOf(getLabel());
466 throw new IllegalStateException();
469 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
470 public boolean isSet(_Fields field) {
472 throw new IllegalArgumentException();
479 return isSetReserved();
481 return isSetPrefixlen();
487 return isSetPrefix();
489 return isSetNexthop();
491 throw new IllegalStateException();
495 public boolean equals(Object that) {
498 if (that instanceof Update)
499 return this.equals((Update)that);
503 public boolean equals(Update that) {
507 boolean this_present_type = true;
508 boolean that_present_type = true;
509 if (this_present_type || that_present_type) {
510 if (!(this_present_type && that_present_type))
512 if (this.type != that.type)
516 boolean this_present_reserved = true;
517 boolean that_present_reserved = true;
518 if (this_present_reserved || that_present_reserved) {
519 if (!(this_present_reserved && that_present_reserved))
521 if (this.reserved != that.reserved)
525 boolean this_present_prefixlen = true;
526 boolean that_present_prefixlen = true;
527 if (this_present_prefixlen || that_present_prefixlen) {
528 if (!(this_present_prefixlen && that_present_prefixlen))
530 if (this.prefixlen != that.prefixlen)
534 boolean this_present_label = true;
535 boolean that_present_label = true;
536 if (this_present_label || that_present_label) {
537 if (!(this_present_label && that_present_label))
539 if (this.label != that.label)
543 boolean this_present_rd = this.isSetRd();
544 boolean that_present_rd = that.isSetRd();
545 if (this_present_rd || that_present_rd) {
546 if (!(this_present_rd && that_present_rd))
548 if (!this.rd.equals(that.rd))
552 boolean this_present_prefix = this.isSetPrefix();
553 boolean that_present_prefix = that.isSetPrefix();
554 if (this_present_prefix || that_present_prefix) {
555 if (!(this_present_prefix && that_present_prefix))
557 if (!this.prefix.equals(that.prefix))
561 boolean this_present_nexthop = this.isSetNexthop();
562 boolean that_present_nexthop = that.isSetNexthop();
563 if (this_present_nexthop || that_present_nexthop) {
564 if (!(this_present_nexthop && that_present_nexthop))
566 if (!this.nexthop.equals(that.nexthop))
574 public int hashCode() {
579 public int compareTo(Update other) {
580 if (!getClass().equals(other.getClass())) {
581 return getClass().getName().compareTo(other.getClass().getName());
584 int lastComparison = 0;
586 lastComparison = Boolean.valueOf(isSetType()).compareTo(other.isSetType());
587 if (lastComparison != 0) {
588 return lastComparison;
591 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, other.type);
592 if (lastComparison != 0) {
593 return lastComparison;
596 lastComparison = Boolean.valueOf(isSetReserved()).compareTo(other.isSetReserved());
597 if (lastComparison != 0) {
598 return lastComparison;
600 if (isSetReserved()) {
601 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reserved, other.reserved);
602 if (lastComparison != 0) {
603 return lastComparison;
606 lastComparison = Boolean.valueOf(isSetPrefixlen()).compareTo(other.isSetPrefixlen());
607 if (lastComparison != 0) {
608 return lastComparison;
610 if (isSetPrefixlen()) {
611 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefixlen, other.prefixlen);
612 if (lastComparison != 0) {
613 return lastComparison;
616 lastComparison = Boolean.valueOf(isSetLabel()).compareTo(other.isSetLabel());
617 if (lastComparison != 0) {
618 return lastComparison;
621 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.label, other.label);
622 if (lastComparison != 0) {
623 return lastComparison;
626 lastComparison = Boolean.valueOf(isSetRd()).compareTo(other.isSetRd());
627 if (lastComparison != 0) {
628 return lastComparison;
631 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rd, other.rd);
632 if (lastComparison != 0) {
633 return lastComparison;
636 lastComparison = Boolean.valueOf(isSetPrefix()).compareTo(other.isSetPrefix());
637 if (lastComparison != 0) {
638 return lastComparison;
641 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.prefix, other.prefix);
642 if (lastComparison != 0) {
643 return lastComparison;
646 lastComparison = Boolean.valueOf(isSetNexthop()).compareTo(other.isSetNexthop());
647 if (lastComparison != 0) {
648 return lastComparison;
650 if (isSetNexthop()) {
651 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nexthop, other.nexthop);
652 if (lastComparison != 0) {
653 return lastComparison;
659 public _Fields fieldForId(int fieldId) {
660 return _Fields.findByThriftId(fieldId);
663 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
664 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
667 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
668 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
672 public String toString() {
673 StringBuilder sb = new StringBuilder("Update(");
674 boolean first = true;
677 sb.append(this.type);
679 if (!first) sb.append(", ");
680 sb.append("reserved:");
681 sb.append(this.reserved);
683 if (!first) sb.append(", ");
684 sb.append("prefixlen:");
685 sb.append(this.prefixlen);
687 if (!first) sb.append(", ");
689 sb.append(this.label);
691 if (!first) sb.append(", ");
693 if (this.rd == null) {
699 if (!first) sb.append(", ");
700 sb.append("prefix:");
701 if (this.prefix == null) {
704 sb.append(this.prefix);
707 if (!first) sb.append(", ");
708 sb.append("nexthop:");
709 if (this.nexthop == null) {
712 sb.append(this.nexthop);
716 return sb.toString();
719 public void validate() throws org.apache.thrift.TException {
720 // check for required fields
721 // check for sub-struct validity
724 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
726 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
727 } catch (org.apache.thrift.TException te) {
728 throw new java.io.IOException(te);
732 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
734 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
735 __isset_bitfield = 0;
736 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
737 } catch (org.apache.thrift.TException te) {
738 throw new java.io.IOException(te);
742 private static class UpdateStandardSchemeFactory implements SchemeFactory {
743 public UpdateStandardScheme getScheme() {
744 return new UpdateStandardScheme();
748 private static class UpdateStandardScheme extends StandardScheme<Update> {
750 public void read(org.apache.thrift.protocol.TProtocol iprot, Update struct) throws org.apache.thrift.TException {
751 org.apache.thrift.protocol.TField schemeField;
752 iprot.readStructBegin();
755 schemeField = iprot.readFieldBegin();
756 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
759 switch (schemeField.id) {
761 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
762 struct.type = iprot.readI32();
763 struct.setTypeIsSet(true);
765 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
769 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
770 struct.reserved = iprot.readI32();
771 struct.setReservedIsSet(true);
773 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
777 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
778 struct.prefixlen = iprot.readI32();
779 struct.setPrefixlenIsSet(true);
781 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
785 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
786 struct.label = iprot.readI32();
787 struct.setLabelIsSet(true);
789 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
793 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
794 struct.rd = iprot.readString();
795 struct.setRdIsSet(true);
797 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
801 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
802 struct.prefix = iprot.readString();
803 struct.setPrefixIsSet(true);
805 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
809 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
810 struct.nexthop = iprot.readString();
811 struct.setNexthopIsSet(true);
813 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
817 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
819 iprot.readFieldEnd();
821 iprot.readStructEnd();
823 // check for required fields of primitive type, which can't be checked in the validate method
827 public void write(org.apache.thrift.protocol.TProtocol oprot, Update struct) throws org.apache.thrift.TException {
830 oprot.writeStructBegin(STRUCT_DESC);
831 oprot.writeFieldBegin(TYPE_FIELD_DESC);
832 oprot.writeI32(struct.type);
833 oprot.writeFieldEnd();
834 oprot.writeFieldBegin(RESERVED_FIELD_DESC);
835 oprot.writeI32(struct.reserved);
836 oprot.writeFieldEnd();
837 oprot.writeFieldBegin(PREFIXLEN_FIELD_DESC);
838 oprot.writeI32(struct.prefixlen);
839 oprot.writeFieldEnd();
840 oprot.writeFieldBegin(LABEL_FIELD_DESC);
841 oprot.writeI32(struct.label);
842 oprot.writeFieldEnd();
843 if (struct.rd != null) {
844 oprot.writeFieldBegin(RD_FIELD_DESC);
845 oprot.writeString(struct.rd);
846 oprot.writeFieldEnd();
848 if (struct.prefix != null) {
849 oprot.writeFieldBegin(PREFIX_FIELD_DESC);
850 oprot.writeString(struct.prefix);
851 oprot.writeFieldEnd();
853 if (struct.nexthop != null) {
854 oprot.writeFieldBegin(NEXTHOP_FIELD_DESC);
855 oprot.writeString(struct.nexthop);
856 oprot.writeFieldEnd();
858 oprot.writeFieldStop();
859 oprot.writeStructEnd();
864 private static class UpdateTupleSchemeFactory implements SchemeFactory {
865 public UpdateTupleScheme getScheme() {
866 return new UpdateTupleScheme();
870 private static class UpdateTupleScheme extends TupleScheme<Update> {
873 public void write(org.apache.thrift.protocol.TProtocol prot, Update struct) throws org.apache.thrift.TException {
874 TTupleProtocol oprot = (TTupleProtocol) prot;
875 BitSet optionals = new BitSet();
876 if (struct.isSetType()) {
879 if (struct.isSetReserved()) {
882 if (struct.isSetPrefixlen()) {
885 if (struct.isSetLabel()) {
888 if (struct.isSetRd()) {
891 if (struct.isSetPrefix()) {
894 if (struct.isSetNexthop()) {
897 oprot.writeBitSet(optionals, 7);
898 if (struct.isSetType()) {
899 oprot.writeI32(struct.type);
901 if (struct.isSetReserved()) {
902 oprot.writeI32(struct.reserved);
904 if (struct.isSetPrefixlen()) {
905 oprot.writeI32(struct.prefixlen);
907 if (struct.isSetLabel()) {
908 oprot.writeI32(struct.label);
910 if (struct.isSetRd()) {
911 oprot.writeString(struct.rd);
913 if (struct.isSetPrefix()) {
914 oprot.writeString(struct.prefix);
916 if (struct.isSetNexthop()) {
917 oprot.writeString(struct.nexthop);
922 public void read(org.apache.thrift.protocol.TProtocol prot, Update struct) throws org.apache.thrift.TException {
923 TTupleProtocol iprot = (TTupleProtocol) prot;
924 BitSet incoming = iprot.readBitSet(7);
925 if (incoming.get(0)) {
926 struct.type = iprot.readI32();
927 struct.setTypeIsSet(true);
929 if (incoming.get(1)) {
930 struct.reserved = iprot.readI32();
931 struct.setReservedIsSet(true);
933 if (incoming.get(2)) {
934 struct.prefixlen = iprot.readI32();
935 struct.setPrefixlenIsSet(true);
937 if (incoming.get(3)) {
938 struct.label = iprot.readI32();
939 struct.setLabelIsSet(true);
941 if (incoming.get(4)) {
942 struct.rd = iprot.readString();
943 struct.setRdIsSet(true);
945 if (incoming.get(5)) {
946 struct.prefix = iprot.readString();
947 struct.setPrefixIsSet(true);
949 if (incoming.get(6)) {
950 struct.nexthop = iprot.readString();
951 struct.setNexthopIsSet(true);