Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

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