Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21838 amit.gupta 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.model.v1.catalog;
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 CategoryGst implements org.apache.thrift.TBase<CategoryGst, CategoryGst._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("CategoryGst");
25
 
26
  private static final org.apache.thrift.protocol.TField SGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("sgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)1);
27
  private static final org.apache.thrift.protocol.TField CGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("cgstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)2);
28
  private static final org.apache.thrift.protocol.TField IGST_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("igstRate", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField HSN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("hsnCode", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField CATEGORY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("categoryId", org.apache.thrift.protocol.TType.I64, (short)5);
31
 
32
  private double sgstRate; // required
33
  private double cgstRate; // required
34
  private double igstRate; // required
35
  private String hsnCode; // required
36
  private long categoryId; // 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
    SGST_RATE((short)1, "sgstRate"),
41
    CGST_RATE((short)2, "cgstRate"),
42
    IGST_RATE((short)3, "igstRate"),
43
    HSN_CODE((short)4, "hsnCode"),
44
    CATEGORY_ID((short)5, "categoryId");
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: // SGST_RATE
60
          return SGST_RATE;
61
        case 2: // CGST_RATE
62
          return CGST_RATE;
63
        case 3: // IGST_RATE
64
          return IGST_RATE;
65
        case 4: // HSN_CODE
66
          return HSN_CODE;
67
        case 5: // CATEGORY_ID
68
          return CATEGORY_ID;
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 __SGSTRATE_ISSET_ID = 0;
110
  private static final int __CGSTRATE_ISSET_ID = 1;
111
  private static final int __IGSTRATE_ISSET_ID = 2;
112
  private static final int __CATEGORYID_ISSET_ID = 3;
113
  private BitSet __isset_bit_vector = new BitSet(4);
114
 
115
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
116
  static {
117
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
118
    tmpMap.put(_Fields.SGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("sgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
120
    tmpMap.put(_Fields.CGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("cgstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
121
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
122
    tmpMap.put(_Fields.IGST_RATE, new org.apache.thrift.meta_data.FieldMetaData("igstRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
124
    tmpMap.put(_Fields.HSN_CODE, new org.apache.thrift.meta_data.FieldMetaData("hsnCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
126
    tmpMap.put(_Fields.CATEGORY_ID, new org.apache.thrift.meta_data.FieldMetaData("categoryId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
128
    metaDataMap = Collections.unmodifiableMap(tmpMap);
129
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(CategoryGst.class, metaDataMap);
130
  }
131
 
132
  public CategoryGst() {
133
  }
134
 
135
  public CategoryGst(
136
    double sgstRate,
137
    double cgstRate,
138
    double igstRate,
139
    String hsnCode,
140
    long categoryId)
141
  {
142
    this();
143
    this.sgstRate = sgstRate;
144
    setSgstRateIsSet(true);
145
    this.cgstRate = cgstRate;
146
    setCgstRateIsSet(true);
147
    this.igstRate = igstRate;
148
    setIgstRateIsSet(true);
149
    this.hsnCode = hsnCode;
150
    this.categoryId = categoryId;
151
    setCategoryIdIsSet(true);
152
  }
153
 
154
  /**
155
   * Performs a deep copy on <i>other</i>.
156
   */
157
  public CategoryGst(CategoryGst other) {
158
    __isset_bit_vector.clear();
159
    __isset_bit_vector.or(other.__isset_bit_vector);
160
    this.sgstRate = other.sgstRate;
161
    this.cgstRate = other.cgstRate;
162
    this.igstRate = other.igstRate;
163
    if (other.isSetHsnCode()) {
164
      this.hsnCode = other.hsnCode;
165
    }
166
    this.categoryId = other.categoryId;
167
  }
168
 
169
  public CategoryGst deepCopy() {
170
    return new CategoryGst(this);
171
  }
172
 
173
  @Override
174
  public void clear() {
175
    setSgstRateIsSet(false);
176
    this.sgstRate = 0.0;
177
    setCgstRateIsSet(false);
178
    this.cgstRate = 0.0;
179
    setIgstRateIsSet(false);
180
    this.igstRate = 0.0;
181
    this.hsnCode = null;
182
    setCategoryIdIsSet(false);
183
    this.categoryId = 0;
184
  }
185
 
186
  public double getSgstRate() {
187
    return this.sgstRate;
188
  }
189
 
190
  public void setSgstRate(double sgstRate) {
191
    this.sgstRate = sgstRate;
192
    setSgstRateIsSet(true);
193
  }
194
 
195
  public void unsetSgstRate() {
196
    __isset_bit_vector.clear(__SGSTRATE_ISSET_ID);
197
  }
198
 
199
  /** Returns true if field sgstRate is set (has been assigned a value) and false otherwise */
200
  public boolean isSetSgstRate() {
201
    return __isset_bit_vector.get(__SGSTRATE_ISSET_ID);
202
  }
203
 
204
  public void setSgstRateIsSet(boolean value) {
205
    __isset_bit_vector.set(__SGSTRATE_ISSET_ID, value);
206
  }
207
 
208
  public double getCgstRate() {
209
    return this.cgstRate;
210
  }
211
 
212
  public void setCgstRate(double cgstRate) {
213
    this.cgstRate = cgstRate;
214
    setCgstRateIsSet(true);
215
  }
216
 
217
  public void unsetCgstRate() {
218
    __isset_bit_vector.clear(__CGSTRATE_ISSET_ID);
219
  }
220
 
221
  /** Returns true if field cgstRate is set (has been assigned a value) and false otherwise */
222
  public boolean isSetCgstRate() {
223
    return __isset_bit_vector.get(__CGSTRATE_ISSET_ID);
224
  }
225
 
226
  public void setCgstRateIsSet(boolean value) {
227
    __isset_bit_vector.set(__CGSTRATE_ISSET_ID, value);
228
  }
229
 
230
  public double getIgstRate() {
231
    return this.igstRate;
232
  }
233
 
234
  public void setIgstRate(double igstRate) {
235
    this.igstRate = igstRate;
236
    setIgstRateIsSet(true);
237
  }
238
 
239
  public void unsetIgstRate() {
240
    __isset_bit_vector.clear(__IGSTRATE_ISSET_ID);
241
  }
242
 
243
  /** Returns true if field igstRate is set (has been assigned a value) and false otherwise */
244
  public boolean isSetIgstRate() {
245
    return __isset_bit_vector.get(__IGSTRATE_ISSET_ID);
246
  }
247
 
248
  public void setIgstRateIsSet(boolean value) {
249
    __isset_bit_vector.set(__IGSTRATE_ISSET_ID, value);
250
  }
251
 
252
  public String getHsnCode() {
253
    return this.hsnCode;
254
  }
255
 
256
  public void setHsnCode(String hsnCode) {
257
    this.hsnCode = hsnCode;
258
  }
259
 
260
  public void unsetHsnCode() {
261
    this.hsnCode = null;
262
  }
263
 
264
  /** Returns true if field hsnCode is set (has been assigned a value) and false otherwise */
265
  public boolean isSetHsnCode() {
266
    return this.hsnCode != null;
267
  }
268
 
269
  public void setHsnCodeIsSet(boolean value) {
270
    if (!value) {
271
      this.hsnCode = null;
272
    }
273
  }
274
 
275
  public long getCategoryId() {
276
    return this.categoryId;
277
  }
278
 
279
  public void setCategoryId(long categoryId) {
280
    this.categoryId = categoryId;
281
    setCategoryIdIsSet(true);
282
  }
283
 
284
  public void unsetCategoryId() {
285
    __isset_bit_vector.clear(__CATEGORYID_ISSET_ID);
286
  }
287
 
288
  /** Returns true if field categoryId is set (has been assigned a value) and false otherwise */
289
  public boolean isSetCategoryId() {
290
    return __isset_bit_vector.get(__CATEGORYID_ISSET_ID);
291
  }
292
 
293
  public void setCategoryIdIsSet(boolean value) {
294
    __isset_bit_vector.set(__CATEGORYID_ISSET_ID, value);
295
  }
296
 
297
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
299
    case SGST_RATE:
300
      if (value == null) {
301
        unsetSgstRate();
302
      } else {
303
        setSgstRate((Double)value);
304
      }
305
      break;
306
 
307
    case CGST_RATE:
308
      if (value == null) {
309
        unsetCgstRate();
310
      } else {
311
        setCgstRate((Double)value);
312
      }
313
      break;
314
 
315
    case IGST_RATE:
316
      if (value == null) {
317
        unsetIgstRate();
318
      } else {
319
        setIgstRate((Double)value);
320
      }
321
      break;
322
 
323
    case HSN_CODE:
324
      if (value == null) {
325
        unsetHsnCode();
326
      } else {
327
        setHsnCode((String)value);
328
      }
329
      break;
330
 
331
    case CATEGORY_ID:
332
      if (value == null) {
333
        unsetCategoryId();
334
      } else {
335
        setCategoryId((Long)value);
336
      }
337
      break;
338
 
339
    }
340
  }
341
 
342
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
344
    case SGST_RATE:
345
      return Double.valueOf(getSgstRate());
346
 
347
    case CGST_RATE:
348
      return Double.valueOf(getCgstRate());
349
 
350
    case IGST_RATE:
351
      return Double.valueOf(getIgstRate());
352
 
353
    case HSN_CODE:
354
      return getHsnCode();
355
 
356
    case CATEGORY_ID:
357
      return Long.valueOf(getCategoryId());
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 SGST_RATE:
371
      return isSetSgstRate();
372
    case CGST_RATE:
373
      return isSetCgstRate();
374
    case IGST_RATE:
375
      return isSetIgstRate();
376
    case HSN_CODE:
377
      return isSetHsnCode();
378
    case CATEGORY_ID:
379
      return isSetCategoryId();
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 CategoryGst)
389
      return this.equals((CategoryGst)that);
390
    return false;
391
  }
392
 
393
  public boolean equals(CategoryGst that) {
394
    if (that == null)
395
      return false;
396
 
397
    boolean this_present_sgstRate = true;
398
    boolean that_present_sgstRate = true;
399
    if (this_present_sgstRate || that_present_sgstRate) {
400
      if (!(this_present_sgstRate && that_present_sgstRate))
401
        return false;
402
      if (this.sgstRate != that.sgstRate)
403
        return false;
404
    }
405
 
406
    boolean this_present_cgstRate = true;
407
    boolean that_present_cgstRate = true;
408
    if (this_present_cgstRate || that_present_cgstRate) {
409
      if (!(this_present_cgstRate && that_present_cgstRate))
410
        return false;
411
      if (this.cgstRate != that.cgstRate)
412
        return false;
413
    }
414
 
415
    boolean this_present_igstRate = true;
416
    boolean that_present_igstRate = true;
417
    if (this_present_igstRate || that_present_igstRate) {
418
      if (!(this_present_igstRate && that_present_igstRate))
419
        return false;
420
      if (this.igstRate != that.igstRate)
421
        return false;
422
    }
423
 
424
    boolean this_present_hsnCode = true && this.isSetHsnCode();
425
    boolean that_present_hsnCode = true && that.isSetHsnCode();
426
    if (this_present_hsnCode || that_present_hsnCode) {
427
      if (!(this_present_hsnCode && that_present_hsnCode))
428
        return false;
429
      if (!this.hsnCode.equals(that.hsnCode))
430
        return false;
431
    }
432
 
433
    boolean this_present_categoryId = true;
434
    boolean that_present_categoryId = true;
435
    if (this_present_categoryId || that_present_categoryId) {
436
      if (!(this_present_categoryId && that_present_categoryId))
437
        return false;
438
      if (this.categoryId != that.categoryId)
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(CategoryGst other) {
451
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
454
 
455
    int lastComparison = 0;
456
    CategoryGst typedOther = (CategoryGst)other;
457
 
458
    lastComparison = Boolean.valueOf(isSetSgstRate()).compareTo(typedOther.isSetSgstRate());
459
    if (lastComparison != 0) {
460
      return lastComparison;
461
    }
462
    if (isSetSgstRate()) {
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sgstRate, typedOther.sgstRate);
464
      if (lastComparison != 0) {
465
        return lastComparison;
466
      }
467
    }
468
    lastComparison = Boolean.valueOf(isSetCgstRate()).compareTo(typedOther.isSetCgstRate());
469
    if (lastComparison != 0) {
470
      return lastComparison;
471
    }
472
    if (isSetCgstRate()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cgstRate, typedOther.cgstRate);
474
      if (lastComparison != 0) {
475
        return lastComparison;
476
      }
477
    }
478
    lastComparison = Boolean.valueOf(isSetIgstRate()).compareTo(typedOther.isSetIgstRate());
479
    if (lastComparison != 0) {
480
      return lastComparison;
481
    }
482
    if (isSetIgstRate()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.igstRate, typedOther.igstRate);
484
      if (lastComparison != 0) {
485
        return lastComparison;
486
      }
487
    }
488
    lastComparison = Boolean.valueOf(isSetHsnCode()).compareTo(typedOther.isSetHsnCode());
489
    if (lastComparison != 0) {
490
      return lastComparison;
491
    }
492
    if (isSetHsnCode()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hsnCode, typedOther.hsnCode);
494
      if (lastComparison != 0) {
495
        return lastComparison;
496
      }
497
    }
498
    lastComparison = Boolean.valueOf(isSetCategoryId()).compareTo(typedOther.isSetCategoryId());
499
    if (lastComparison != 0) {
500
      return lastComparison;
501
    }
502
    if (isSetCategoryId()) {
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.categoryId, typedOther.categoryId);
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: // SGST_RATE
526
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
527
            this.sgstRate = iprot.readDouble();
528
            setSgstRateIsSet(true);
529
          } else { 
530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
          }
532
          break;
533
        case 2: // CGST_RATE
534
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
535
            this.cgstRate = iprot.readDouble();
536
            setCgstRateIsSet(true);
537
          } else { 
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
          }
540
          break;
541
        case 3: // IGST_RATE
542
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
543
            this.igstRate = iprot.readDouble();
544
            setIgstRateIsSet(true);
545
          } else { 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
547
          }
548
          break;
549
        case 4: // HSN_CODE
550
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
551
            this.hsnCode = iprot.readString();
552
          } else { 
553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
554
          }
555
          break;
556
        case 5: // CATEGORY_ID
557
          if (field.type == org.apache.thrift.protocol.TType.I64) {
558
            this.categoryId = iprot.readI64();
559
            setCategoryIdIsSet(true);
560
          } else { 
561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
562
          }
563
          break;
564
        default:
565
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
566
      }
567
      iprot.readFieldEnd();
568
    }
569
    iprot.readStructEnd();
570
    validate();
571
  }
572
 
573
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
574
    validate();
575
 
576
    oprot.writeStructBegin(STRUCT_DESC);
577
    oprot.writeFieldBegin(SGST_RATE_FIELD_DESC);
578
    oprot.writeDouble(this.sgstRate);
579
    oprot.writeFieldEnd();
580
    oprot.writeFieldBegin(CGST_RATE_FIELD_DESC);
581
    oprot.writeDouble(this.cgstRate);
582
    oprot.writeFieldEnd();
583
    oprot.writeFieldBegin(IGST_RATE_FIELD_DESC);
584
    oprot.writeDouble(this.igstRate);
585
    oprot.writeFieldEnd();
586
    if (this.hsnCode != null) {
587
      oprot.writeFieldBegin(HSN_CODE_FIELD_DESC);
588
      oprot.writeString(this.hsnCode);
589
      oprot.writeFieldEnd();
590
    }
591
    oprot.writeFieldBegin(CATEGORY_ID_FIELD_DESC);
592
    oprot.writeI64(this.categoryId);
593
    oprot.writeFieldEnd();
594
    oprot.writeFieldStop();
595
    oprot.writeStructEnd();
596
  }
597
 
598
  @Override
599
  public String toString() {
600
    StringBuilder sb = new StringBuilder("CategoryGst(");
601
    boolean first = true;
602
 
603
    sb.append("sgstRate:");
604
    sb.append(this.sgstRate);
605
    first = false;
606
    if (!first) sb.append(", ");
607
    sb.append("cgstRate:");
608
    sb.append(this.cgstRate);
609
    first = false;
610
    if (!first) sb.append(", ");
611
    sb.append("igstRate:");
612
    sb.append(this.igstRate);
613
    first = false;
614
    if (!first) sb.append(", ");
615
    sb.append("hsnCode:");
616
    if (this.hsnCode == null) {
617
      sb.append("null");
618
    } else {
619
      sb.append(this.hsnCode);
620
    }
621
    first = false;
622
    if (!first) sb.append(", ");
623
    sb.append("categoryId:");
624
    sb.append(this.categoryId);
625
    first = false;
626
    sb.append(")");
627
    return sb.toString();
628
  }
629
 
630
  public void validate() throws org.apache.thrift.TException {
631
    // check for required fields
632
  }
633
 
634
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
635
    try {
636
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
637
    } catch (org.apache.thrift.TException te) {
638
      throw new java.io.IOException(te);
639
    }
640
  }
641
 
642
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
643
    try {
644
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
645
      __isset_bit_vector = new BitSet(1);
646
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
647
    } catch (org.apache.thrift.TException te) {
648
      throw new java.io.IOException(te);
649
    }
650
  }
651
 
652
}
653