1 /** 2 * Autogenerated by Thrift Compiler (0.9.3) 3 * 4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING 5 * @generated 6 */ 7 package org.apache.hadoop.hbase.thrift2.generated; 8 9 import org.apache.thrift.scheme.IScheme; 10 import org.apache.thrift.scheme.SchemeFactory; 11 import org.apache.thrift.scheme.StandardScheme; 12 13 import org.apache.thrift.scheme.TupleScheme; 14 import org.apache.thrift.protocol.TTupleProtocol; 15 import org.apache.thrift.protocol.TProtocolException; 16 import org.apache.thrift.EncodingUtils; 17 import org.apache.thrift.TException; 18 import org.apache.thrift.async.AsyncMethodCallback; 19 import org.apache.thrift.server.AbstractNonblockingServer.*; 20 import java.util.List; 21 import java.util.ArrayList; 22 import java.util.Map; 23 import java.util.HashMap; 24 import java.util.EnumMap; 25 import java.util.Set; 26 import java.util.HashSet; 27 import java.util.EnumSet; 28 import java.util.Collections; 29 import java.util.BitSet; 30 import java.nio.ByteBuffer; 31 import java.util.Arrays; 32 import javax.annotation.Generated; 33 import org.slf4j.Logger; 34 import org.slf4j.LoggerFactory; 35 36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) 37 /** 38 * Represents a single cell and the amount to increment it by 39 */ 40 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)", date = "2015-11-22") 41 public class TColumnIncrement implements org.apache.thrift.TBase<TColumnIncrement, TColumnIncrement._Fields>, java.io.Serializable, Cloneable, Comparable<TColumnIncrement> { 42 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TColumnIncrement"); 43 44 private static final org.apache.thrift.protocol.TField FAMILY_FIELD_DESC = new org.apache.thrift.protocol.TField("family", org.apache.thrift.protocol.TType.STRING, (short)1); 45 private static final org.apache.thrift.protocol.TField QUALIFIER_FIELD_DESC = new org.apache.thrift.protocol.TField("qualifier", org.apache.thrift.protocol.TType.STRING, (short)2); 46 private static final org.apache.thrift.protocol.TField AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("amount", org.apache.thrift.protocol.TType.I64, (short)3); 47 48 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>(); 49 static { schemes.put(StandardScheme.class, new TColumnIncrementStandardSchemeFactory())50 schemes.put(StandardScheme.class, new TColumnIncrementStandardSchemeFactory()); schemes.put(TupleScheme.class, new TColumnIncrementTupleSchemeFactory())51 schemes.put(TupleScheme.class, new TColumnIncrementTupleSchemeFactory()); 52 } 53 54 public ByteBuffer family; // required 55 public ByteBuffer qualifier; // required 56 public long amount; // optional 57 58 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ 59 public enum _Fields implements org.apache.thrift.TFieldIdEnum { 60 FAMILY((short)1, "family"), 61 QUALIFIER((short)2, "qualifier"), 62 AMOUNT((short)3, "amount"); 63 64 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>(); 65 66 static { 67 for (_Fields field : EnumSet.allOf(_Fields.class)) { field.getFieldName()68 byName.put(field.getFieldName(), field); 69 } 70 } 71 72 /** 73 * Find the _Fields constant that matches fieldId, or null if its not found. 74 */ findByThriftId(int fieldId)75 public static _Fields findByThriftId(int fieldId) { 76 switch(fieldId) { 77 case 1: // FAMILY 78 return FAMILY; 79 case 2: // QUALIFIER 80 return QUALIFIER; 81 case 3: // AMOUNT 82 return AMOUNT; 83 default: 84 return null; 85 } 86 } 87 88 /** 89 * Find the _Fields constant that matches fieldId, throwing an exception 90 * if it is not found. 91 */ findByThriftIdOrThrow(int fieldId)92 public static _Fields findByThriftIdOrThrow(int fieldId) { 93 _Fields fields = findByThriftId(fieldId); 94 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); 95 return fields; 96 } 97 98 /** 99 * Find the _Fields constant that matches name, or null if its not found. 100 */ findByName(String name)101 public static _Fields findByName(String name) { 102 return byName.get(name); 103 } 104 105 private final short _thriftId; 106 private final String _fieldName; 107 _Fields(short thriftId, String fieldName)108 _Fields(short thriftId, String fieldName) { 109 _thriftId = thriftId; 110 _fieldName = fieldName; 111 } 112 getThriftFieldId()113 public short getThriftFieldId() { 114 return _thriftId; 115 } 116 getFieldName()117 public String getFieldName() { 118 return _fieldName; 119 } 120 } 121 122 // isset id assignments 123 private static final int __AMOUNT_ISSET_ID = 0; 124 private byte __isset_bitfield = 0; 125 private static final _Fields optionals[] = {_Fields.AMOUNT}; 126 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; 127 static { 128 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData(R, org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))129 tmpMap.put(_Fields.FAMILY, new org.apache.thrift.meta_data.FieldMetaData("family", org.apache.thrift.TFieldRequirementType.REQUIRED, 130 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData(R, org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true)))131 tmpMap.put(_Fields.QUALIFIER, new org.apache.thrift.meta_data.FieldMetaData("qualifier", org.apache.thrift.TFieldRequirementType.REQUIRED, 132 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING , true))); tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData(R, org.apache.thrift.TFieldRequirementType.OPTIONAL, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)))133 tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.OPTIONAL, 134 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); 135 metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumnIncrement.class, metaDataMap)136 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TColumnIncrement.class, metaDataMap); 137 } 138 TColumnIncrement()139 public TColumnIncrement() { 140 this.amount = 1L; 141 142 } 143 TColumnIncrement( ByteBuffer family, ByteBuffer qualifier)144 public TColumnIncrement( 145 ByteBuffer family, 146 ByteBuffer qualifier) 147 { 148 this(); 149 this.family = org.apache.thrift.TBaseHelper.copyBinary(family); 150 this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); 151 } 152 153 /** 154 * Performs a deep copy on <i>other</i>. 155 */ TColumnIncrement(TColumnIncrement other)156 public TColumnIncrement(TColumnIncrement other) { 157 __isset_bitfield = other.__isset_bitfield; 158 if (other.isSetFamily()) { 159 this.family = org.apache.thrift.TBaseHelper.copyBinary(other.family); 160 } 161 if (other.isSetQualifier()) { 162 this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(other.qualifier); 163 } 164 this.amount = other.amount; 165 } 166 deepCopy()167 public TColumnIncrement deepCopy() { 168 return new TColumnIncrement(this); 169 } 170 171 @Override clear()172 public void clear() { 173 this.family = null; 174 this.qualifier = null; 175 this.amount = 1L; 176 177 } 178 getFamily()179 public byte[] getFamily() { 180 setFamily(org.apache.thrift.TBaseHelper.rightSize(family)); 181 return family == null ? null : family.array(); 182 } 183 bufferForFamily()184 public ByteBuffer bufferForFamily() { 185 return org.apache.thrift.TBaseHelper.copyBinary(family); 186 } 187 setFamily(byte[] family)188 public TColumnIncrement setFamily(byte[] family) { 189 this.family = family == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(family, family.length)); 190 return this; 191 } 192 setFamily(ByteBuffer family)193 public TColumnIncrement setFamily(ByteBuffer family) { 194 this.family = org.apache.thrift.TBaseHelper.copyBinary(family); 195 return this; 196 } 197 unsetFamily()198 public void unsetFamily() { 199 this.family = null; 200 } 201 202 /** Returns true if field family is set (has been assigned a value) and false otherwise */ isSetFamily()203 public boolean isSetFamily() { 204 return this.family != null; 205 } 206 setFamilyIsSet(boolean value)207 public void setFamilyIsSet(boolean value) { 208 if (!value) { 209 this.family = null; 210 } 211 } 212 getQualifier()213 public byte[] getQualifier() { 214 setQualifier(org.apache.thrift.TBaseHelper.rightSize(qualifier)); 215 return qualifier == null ? null : qualifier.array(); 216 } 217 bufferForQualifier()218 public ByteBuffer bufferForQualifier() { 219 return org.apache.thrift.TBaseHelper.copyBinary(qualifier); 220 } 221 setQualifier(byte[] qualifier)222 public TColumnIncrement setQualifier(byte[] qualifier) { 223 this.qualifier = qualifier == null ? (ByteBuffer)null : ByteBuffer.wrap(Arrays.copyOf(qualifier, qualifier.length)); 224 return this; 225 } 226 setQualifier(ByteBuffer qualifier)227 public TColumnIncrement setQualifier(ByteBuffer qualifier) { 228 this.qualifier = org.apache.thrift.TBaseHelper.copyBinary(qualifier); 229 return this; 230 } 231 unsetQualifier()232 public void unsetQualifier() { 233 this.qualifier = null; 234 } 235 236 /** Returns true if field qualifier is set (has been assigned a value) and false otherwise */ isSetQualifier()237 public boolean isSetQualifier() { 238 return this.qualifier != null; 239 } 240 setQualifierIsSet(boolean value)241 public void setQualifierIsSet(boolean value) { 242 if (!value) { 243 this.qualifier = null; 244 } 245 } 246 getAmount()247 public long getAmount() { 248 return this.amount; 249 } 250 setAmount(long amount)251 public TColumnIncrement setAmount(long amount) { 252 this.amount = amount; 253 setAmountIsSet(true); 254 return this; 255 } 256 unsetAmount()257 public void unsetAmount() { 258 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __AMOUNT_ISSET_ID); 259 } 260 261 /** Returns true if field amount is set (has been assigned a value) and false otherwise */ isSetAmount()262 public boolean isSetAmount() { 263 return EncodingUtils.testBit(__isset_bitfield, __AMOUNT_ISSET_ID); 264 } 265 setAmountIsSet(boolean value)266 public void setAmountIsSet(boolean value) { 267 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __AMOUNT_ISSET_ID, value); 268 } 269 setFieldValue(_Fields field, Object value)270 public void setFieldValue(_Fields field, Object value) { 271 switch (field) { 272 case FAMILY: 273 if (value == null) { 274 unsetFamily(); 275 } else { 276 setFamily((ByteBuffer)value); 277 } 278 break; 279 280 case QUALIFIER: 281 if (value == null) { 282 unsetQualifier(); 283 } else { 284 setQualifier((ByteBuffer)value); 285 } 286 break; 287 288 case AMOUNT: 289 if (value == null) { 290 unsetAmount(); 291 } else { 292 setAmount((Long)value); 293 } 294 break; 295 296 } 297 } 298 getFieldValue(_Fields field)299 public Object getFieldValue(_Fields field) { 300 switch (field) { 301 case FAMILY: 302 return getFamily(); 303 304 case QUALIFIER: 305 return getQualifier(); 306 307 case AMOUNT: 308 return getAmount(); 309 310 } 311 throw new IllegalStateException(); 312 } 313 314 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ isSet(_Fields field)315 public boolean isSet(_Fields field) { 316 if (field == null) { 317 throw new IllegalArgumentException(); 318 } 319 320 switch (field) { 321 case FAMILY: 322 return isSetFamily(); 323 case QUALIFIER: 324 return isSetQualifier(); 325 case AMOUNT: 326 return isSetAmount(); 327 } 328 throw new IllegalStateException(); 329 } 330 331 @Override equals(Object that)332 public boolean equals(Object that) { 333 if (that == null) 334 return false; 335 if (that instanceof TColumnIncrement) 336 return this.equals((TColumnIncrement)that); 337 return false; 338 } 339 equals(TColumnIncrement that)340 public boolean equals(TColumnIncrement that) { 341 if (that == null) 342 return false; 343 344 boolean this_present_family = true && this.isSetFamily(); 345 boolean that_present_family = true && that.isSetFamily(); 346 if (this_present_family || that_present_family) { 347 if (!(this_present_family && that_present_family)) 348 return false; 349 if (!this.family.equals(that.family)) 350 return false; 351 } 352 353 boolean this_present_qualifier = true && this.isSetQualifier(); 354 boolean that_present_qualifier = true && that.isSetQualifier(); 355 if (this_present_qualifier || that_present_qualifier) { 356 if (!(this_present_qualifier && that_present_qualifier)) 357 return false; 358 if (!this.qualifier.equals(that.qualifier)) 359 return false; 360 } 361 362 boolean this_present_amount = true && this.isSetAmount(); 363 boolean that_present_amount = true && that.isSetAmount(); 364 if (this_present_amount || that_present_amount) { 365 if (!(this_present_amount && that_present_amount)) 366 return false; 367 if (this.amount != that.amount) 368 return false; 369 } 370 371 return true; 372 } 373 374 @Override hashCode()375 public int hashCode() { 376 List<Object> list = new ArrayList<Object>(); 377 378 boolean present_family = true && (isSetFamily()); 379 list.add(present_family); 380 if (present_family) 381 list.add(family); 382 383 boolean present_qualifier = true && (isSetQualifier()); 384 list.add(present_qualifier); 385 if (present_qualifier) 386 list.add(qualifier); 387 388 boolean present_amount = true && (isSetAmount()); 389 list.add(present_amount); 390 if (present_amount) 391 list.add(amount); 392 393 return list.hashCode(); 394 } 395 396 @Override compareTo(TColumnIncrement other)397 public int compareTo(TColumnIncrement other) { 398 if (!getClass().equals(other.getClass())) { 399 return getClass().getName().compareTo(other.getClass().getName()); 400 } 401 402 int lastComparison = 0; 403 404 lastComparison = Boolean.valueOf(isSetFamily()).compareTo(other.isSetFamily()); 405 if (lastComparison != 0) { 406 return lastComparison; 407 } 408 if (isSetFamily()) { 409 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.family, other.family); 410 if (lastComparison != 0) { 411 return lastComparison; 412 } 413 } 414 lastComparison = Boolean.valueOf(isSetQualifier()).compareTo(other.isSetQualifier()); 415 if (lastComparison != 0) { 416 return lastComparison; 417 } 418 if (isSetQualifier()) { 419 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.qualifier, other.qualifier); 420 if (lastComparison != 0) { 421 return lastComparison; 422 } 423 } 424 lastComparison = Boolean.valueOf(isSetAmount()).compareTo(other.isSetAmount()); 425 if (lastComparison != 0) { 426 return lastComparison; 427 } 428 if (isSetAmount()) { 429 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, other.amount); 430 if (lastComparison != 0) { 431 return lastComparison; 432 } 433 } 434 return 0; 435 } 436 fieldForId(int fieldId)437 public _Fields fieldForId(int fieldId) { 438 return _Fields.findByThriftId(fieldId); 439 } 440 read(org.apache.thrift.protocol.TProtocol iprot)441 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { 442 schemes.get(iprot.getScheme()).getScheme().read(iprot, this); 443 } 444 write(org.apache.thrift.protocol.TProtocol oprot)445 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { 446 schemes.get(oprot.getScheme()).getScheme().write(oprot, this); 447 } 448 449 @Override toString()450 public String toString() { 451 StringBuilder sb = new StringBuilder("TColumnIncrement("); 452 boolean first = true; 453 454 sb.append("family:"); 455 if (this.family == null) { 456 sb.append("null"); 457 } else { 458 org.apache.thrift.TBaseHelper.toString(this.family, sb); 459 } 460 first = false; 461 if (!first) sb.append(", "); 462 sb.append("qualifier:"); 463 if (this.qualifier == null) { 464 sb.append("null"); 465 } else { 466 org.apache.thrift.TBaseHelper.toString(this.qualifier, sb); 467 } 468 first = false; 469 if (isSetAmount()) { 470 if (!first) sb.append(", "); 471 sb.append("amount:"); 472 sb.append(this.amount); 473 first = false; 474 } 475 sb.append(")"); 476 return sb.toString(); 477 } 478 validate()479 public void validate() throws org.apache.thrift.TException { 480 // check for required fields 481 if (family == null) { 482 throw new org.apache.thrift.protocol.TProtocolException("Required field 'family' was not present! Struct: " + toString()); 483 } 484 if (qualifier == null) { 485 throw new org.apache.thrift.protocol.TProtocolException("Required field 'qualifier' was not present! Struct: " + toString()); 486 } 487 // check for sub-struct validity 488 } 489 writeObject(java.io.ObjectOutputStream out)490 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { 491 try { 492 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); 493 } catch (org.apache.thrift.TException te) { 494 throw new java.io.IOException(te); 495 } 496 } 497 readObject(java.io.ObjectInputStream in)498 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { 499 try { 500 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. 501 __isset_bitfield = 0; 502 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); 503 } catch (org.apache.thrift.TException te) { 504 throw new java.io.IOException(te); 505 } 506 } 507 508 private static class TColumnIncrementStandardSchemeFactory implements SchemeFactory { getScheme()509 public TColumnIncrementStandardScheme getScheme() { 510 return new TColumnIncrementStandardScheme(); 511 } 512 } 513 514 private static class TColumnIncrementStandardScheme extends StandardScheme<TColumnIncrement> { 515 read(org.apache.thrift.protocol.TProtocol iprot, TColumnIncrement struct)516 public void read(org.apache.thrift.protocol.TProtocol iprot, TColumnIncrement struct) throws org.apache.thrift.TException { 517 org.apache.thrift.protocol.TField schemeField; 518 iprot.readStructBegin(); 519 while (true) 520 { 521 schemeField = iprot.readFieldBegin(); 522 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { 523 break; 524 } 525 switch (schemeField.id) { 526 case 1: // FAMILY 527 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 528 struct.family = iprot.readBinary(); 529 struct.setFamilyIsSet(true); 530 } else { 531 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 532 } 533 break; 534 case 2: // QUALIFIER 535 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { 536 struct.qualifier = iprot.readBinary(); 537 struct.setQualifierIsSet(true); 538 } else { 539 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 540 } 541 break; 542 case 3: // AMOUNT 543 if (schemeField.type == org.apache.thrift.protocol.TType.I64) { 544 struct.amount = iprot.readI64(); 545 struct.setAmountIsSet(true); 546 } else { 547 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 548 } 549 break; 550 default: 551 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); 552 } 553 iprot.readFieldEnd(); 554 } 555 iprot.readStructEnd(); 556 557 // check for required fields of primitive type, which can't be checked in the validate method 558 struct.validate(); 559 } 560 write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct)561 public void write(org.apache.thrift.protocol.TProtocol oprot, TColumnIncrement struct) throws org.apache.thrift.TException { 562 struct.validate(); 563 564 oprot.writeStructBegin(STRUCT_DESC); 565 if (struct.family != null) { 566 oprot.writeFieldBegin(FAMILY_FIELD_DESC); 567 oprot.writeBinary(struct.family); 568 oprot.writeFieldEnd(); 569 } 570 if (struct.qualifier != null) { 571 oprot.writeFieldBegin(QUALIFIER_FIELD_DESC); 572 oprot.writeBinary(struct.qualifier); 573 oprot.writeFieldEnd(); 574 } 575 if (struct.isSetAmount()) { 576 oprot.writeFieldBegin(AMOUNT_FIELD_DESC); 577 oprot.writeI64(struct.amount); 578 oprot.writeFieldEnd(); 579 } 580 oprot.writeFieldStop(); 581 oprot.writeStructEnd(); 582 } 583 584 } 585 586 private static class TColumnIncrementTupleSchemeFactory implements SchemeFactory { getScheme()587 public TColumnIncrementTupleScheme getScheme() { 588 return new TColumnIncrementTupleScheme(); 589 } 590 } 591 592 private static class TColumnIncrementTupleScheme extends TupleScheme<TColumnIncrement> { 593 594 @Override write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct)595 public void write(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { 596 TTupleProtocol oprot = (TTupleProtocol) prot; 597 oprot.writeBinary(struct.family); 598 oprot.writeBinary(struct.qualifier); 599 BitSet optionals = new BitSet(); 600 if (struct.isSetAmount()) { 601 optionals.set(0); 602 } 603 oprot.writeBitSet(optionals, 1); 604 if (struct.isSetAmount()) { 605 oprot.writeI64(struct.amount); 606 } 607 } 608 609 @Override read(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct)610 public void read(org.apache.thrift.protocol.TProtocol prot, TColumnIncrement struct) throws org.apache.thrift.TException { 611 TTupleProtocol iprot = (TTupleProtocol) prot; 612 struct.family = iprot.readBinary(); 613 struct.setFamilyIsSet(true); 614 struct.qualifier = iprot.readBinary(); 615 struct.setQualifierIsSet(true); 616 BitSet incoming = iprot.readBitSet(1); 617 if (incoming.get(0)) { 618 struct.amount = iprot.readI64(); 619 struct.setAmountIsSet(true); 620 } 621 } 622 } 623 624 } 625 626