Subversion Repositories SmartDukaan

Rev

Rev 11890 | Rev 13146 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11890 kshitij.so 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.user;
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 PrivateDealUser implements org.apache.thrift.TBase<PrivateDealUser, PrivateDealUser._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("PrivateDealUser");
25
 
26
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)3);
12696 amit.gupta 29
  private static final org.apache.thrift.protocol.TField COUNTER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("counterId", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)5);
11890 kshitij.so 31
 
32
  private long userId; // required
33
  private long addedOn; // required
34
  private boolean isActive; // required
12696 amit.gupta 35
  private long counterId; // required
36
  private String tin; // required
11890 kshitij.so 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
    USER_ID((short)1, "userId"),
41
    ADDED_ON((short)2, "addedOn"),
12696 amit.gupta 42
    IS_ACTIVE((short)3, "isActive"),
43
    COUNTER_ID((short)4, "counterId"),
44
    TIN((short)5, "tin");
11890 kshitij.so 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: // USER_ID
60
          return USER_ID;
61
        case 2: // ADDED_ON
62
          return ADDED_ON;
63
        case 3: // IS_ACTIVE
64
          return IS_ACTIVE;
12696 amit.gupta 65
        case 4: // COUNTER_ID
66
          return COUNTER_ID;
67
        case 5: // TIN
68
          return TIN;
11890 kshitij.so 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 __USERID_ISSET_ID = 0;
110
  private static final int __ADDEDON_ISSET_ID = 1;
111
  private static final int __ISACTIVE_ISSET_ID = 2;
12696 amit.gupta 112
  private static final int __COUNTERID_ISSET_ID = 3;
113
  private BitSet __isset_bit_vector = new BitSet(4);
11890 kshitij.so 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.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
119
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
120
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
121
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
122
    tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12696 amit.gupta 124
    tmpMap.put(_Fields.COUNTER_ID, new org.apache.thrift.meta_data.FieldMetaData("counterId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
126
    tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11890 kshitij.so 128
    metaDataMap = Collections.unmodifiableMap(tmpMap);
129
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(PrivateDealUser.class, metaDataMap);
130
  }
131
 
132
  public PrivateDealUser() {
133
  }
134
 
135
  public PrivateDealUser(
136
    long userId,
137
    long addedOn,
12696 amit.gupta 138
    boolean isActive,
139
    long counterId,
140
    String tin)
11890 kshitij.so 141
  {
142
    this();
143
    this.userId = userId;
144
    setUserIdIsSet(true);
145
    this.addedOn = addedOn;
146
    setAddedOnIsSet(true);
147
    this.isActive = isActive;
148
    setIsActiveIsSet(true);
12696 amit.gupta 149
    this.counterId = counterId;
150
    setCounterIdIsSet(true);
151
    this.tin = tin;
11890 kshitij.so 152
  }
153
 
154
  /**
155
   * Performs a deep copy on <i>other</i>.
156
   */
157
  public PrivateDealUser(PrivateDealUser other) {
158
    __isset_bit_vector.clear();
159
    __isset_bit_vector.or(other.__isset_bit_vector);
160
    this.userId = other.userId;
161
    this.addedOn = other.addedOn;
162
    this.isActive = other.isActive;
12696 amit.gupta 163
    this.counterId = other.counterId;
164
    if (other.isSetTin()) {
165
      this.tin = other.tin;
166
    }
11890 kshitij.so 167
  }
168
 
169
  public PrivateDealUser deepCopy() {
170
    return new PrivateDealUser(this);
171
  }
172
 
173
  @Override
174
  public void clear() {
175
    setUserIdIsSet(false);
176
    this.userId = 0;
177
    setAddedOnIsSet(false);
178
    this.addedOn = 0;
179
    setIsActiveIsSet(false);
180
    this.isActive = false;
12696 amit.gupta 181
    setCounterIdIsSet(false);
182
    this.counterId = 0;
183
    this.tin = null;
11890 kshitij.so 184
  }
185
 
186
  public long getUserId() {
187
    return this.userId;
188
  }
189
 
190
  public void setUserId(long userId) {
191
    this.userId = userId;
192
    setUserIdIsSet(true);
193
  }
194
 
195
  public void unsetUserId() {
196
    __isset_bit_vector.clear(__USERID_ISSET_ID);
197
  }
198
 
199
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
200
  public boolean isSetUserId() {
201
    return __isset_bit_vector.get(__USERID_ISSET_ID);
202
  }
203
 
204
  public void setUserIdIsSet(boolean value) {
205
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
206
  }
207
 
208
  public long getAddedOn() {
209
    return this.addedOn;
210
  }
211
 
212
  public void setAddedOn(long addedOn) {
213
    this.addedOn = addedOn;
214
    setAddedOnIsSet(true);
215
  }
216
 
217
  public void unsetAddedOn() {
218
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
219
  }
220
 
221
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
222
  public boolean isSetAddedOn() {
223
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
224
  }
225
 
226
  public void setAddedOnIsSet(boolean value) {
227
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
228
  }
229
 
230
  public boolean isIsActive() {
231
    return this.isActive;
232
  }
233
 
234
  public void setIsActive(boolean isActive) {
235
    this.isActive = isActive;
236
    setIsActiveIsSet(true);
237
  }
238
 
239
  public void unsetIsActive() {
240
    __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
241
  }
242
 
243
  /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
244
  public boolean isSetIsActive() {
245
    return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
246
  }
247
 
248
  public void setIsActiveIsSet(boolean value) {
249
    __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
250
  }
251
 
12696 amit.gupta 252
  public long getCounterId() {
253
    return this.counterId;
254
  }
255
 
256
  public void setCounterId(long counterId) {
257
    this.counterId = counterId;
258
    setCounterIdIsSet(true);
259
  }
260
 
261
  public void unsetCounterId() {
262
    __isset_bit_vector.clear(__COUNTERID_ISSET_ID);
263
  }
264
 
265
  /** Returns true if field counterId is set (has been assigned a value) and false otherwise */
266
  public boolean isSetCounterId() {
267
    return __isset_bit_vector.get(__COUNTERID_ISSET_ID);
268
  }
269
 
270
  public void setCounterIdIsSet(boolean value) {
271
    __isset_bit_vector.set(__COUNTERID_ISSET_ID, value);
272
  }
273
 
274
  public String getTin() {
275
    return this.tin;
276
  }
277
 
278
  public void setTin(String tin) {
279
    this.tin = tin;
280
  }
281
 
282
  public void unsetTin() {
283
    this.tin = null;
284
  }
285
 
286
  /** Returns true if field tin is set (has been assigned a value) and false otherwise */
287
  public boolean isSetTin() {
288
    return this.tin != null;
289
  }
290
 
291
  public void setTinIsSet(boolean value) {
292
    if (!value) {
293
      this.tin = null;
294
    }
295
  }
296
 
11890 kshitij.so 297
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
299
    case USER_ID:
300
      if (value == null) {
301
        unsetUserId();
302
      } else {
303
        setUserId((Long)value);
304
      }
305
      break;
306
 
307
    case ADDED_ON:
308
      if (value == null) {
309
        unsetAddedOn();
310
      } else {
311
        setAddedOn((Long)value);
312
      }
313
      break;
314
 
315
    case IS_ACTIVE:
316
      if (value == null) {
317
        unsetIsActive();
318
      } else {
319
        setIsActive((Boolean)value);
320
      }
321
      break;
322
 
12696 amit.gupta 323
    case COUNTER_ID:
324
      if (value == null) {
325
        unsetCounterId();
326
      } else {
327
        setCounterId((Long)value);
328
      }
329
      break;
330
 
331
    case TIN:
332
      if (value == null) {
333
        unsetTin();
334
      } else {
335
        setTin((String)value);
336
      }
337
      break;
338
 
11890 kshitij.so 339
    }
340
  }
341
 
342
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
344
    case USER_ID:
345
      return Long.valueOf(getUserId());
346
 
347
    case ADDED_ON:
348
      return Long.valueOf(getAddedOn());
349
 
350
    case IS_ACTIVE:
351
      return Boolean.valueOf(isIsActive());
352
 
12696 amit.gupta 353
    case COUNTER_ID:
354
      return Long.valueOf(getCounterId());
355
 
356
    case TIN:
357
      return getTin();
358
 
11890 kshitij.so 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 USER_ID:
371
      return isSetUserId();
372
    case ADDED_ON:
373
      return isSetAddedOn();
374
    case IS_ACTIVE:
375
      return isSetIsActive();
12696 amit.gupta 376
    case COUNTER_ID:
377
      return isSetCounterId();
378
    case TIN:
379
      return isSetTin();
11890 kshitij.so 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 PrivateDealUser)
389
      return this.equals((PrivateDealUser)that);
390
    return false;
391
  }
392
 
393
  public boolean equals(PrivateDealUser that) {
394
    if (that == null)
395
      return false;
396
 
397
    boolean this_present_userId = true;
398
    boolean that_present_userId = true;
399
    if (this_present_userId || that_present_userId) {
400
      if (!(this_present_userId && that_present_userId))
401
        return false;
402
      if (this.userId != that.userId)
403
        return false;
404
    }
405
 
406
    boolean this_present_addedOn = true;
407
    boolean that_present_addedOn = true;
408
    if (this_present_addedOn || that_present_addedOn) {
409
      if (!(this_present_addedOn && that_present_addedOn))
410
        return false;
411
      if (this.addedOn != that.addedOn)
412
        return false;
413
    }
414
 
415
    boolean this_present_isActive = true;
416
    boolean that_present_isActive = true;
417
    if (this_present_isActive || that_present_isActive) {
418
      if (!(this_present_isActive && that_present_isActive))
419
        return false;
420
      if (this.isActive != that.isActive)
421
        return false;
422
    }
423
 
12696 amit.gupta 424
    boolean this_present_counterId = true;
425
    boolean that_present_counterId = true;
426
    if (this_present_counterId || that_present_counterId) {
427
      if (!(this_present_counterId && that_present_counterId))
428
        return false;
429
      if (this.counterId != that.counterId)
430
        return false;
431
    }
432
 
433
    boolean this_present_tin = true && this.isSetTin();
434
    boolean that_present_tin = true && that.isSetTin();
435
    if (this_present_tin || that_present_tin) {
436
      if (!(this_present_tin && that_present_tin))
437
        return false;
438
      if (!this.tin.equals(that.tin))
439
        return false;
440
    }
441
 
11890 kshitij.so 442
    return true;
443
  }
444
 
445
  @Override
446
  public int hashCode() {
447
    return 0;
448
  }
449
 
450
  public int compareTo(PrivateDealUser other) {
451
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
454
 
455
    int lastComparison = 0;
456
    PrivateDealUser typedOther = (PrivateDealUser)other;
457
 
458
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
459
    if (lastComparison != 0) {
460
      return lastComparison;
461
    }
462
    if (isSetUserId()) {
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
464
      if (lastComparison != 0) {
465
        return lastComparison;
466
      }
467
    }
468
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
469
    if (lastComparison != 0) {
470
      return lastComparison;
471
    }
472
    if (isSetAddedOn()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
474
      if (lastComparison != 0) {
475
        return lastComparison;
476
      }
477
    }
478
    lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
479
    if (lastComparison != 0) {
480
      return lastComparison;
481
    }
482
    if (isSetIsActive()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
484
      if (lastComparison != 0) {
485
        return lastComparison;
486
      }
487
    }
12696 amit.gupta 488
    lastComparison = Boolean.valueOf(isSetCounterId()).compareTo(typedOther.isSetCounterId());
489
    if (lastComparison != 0) {
490
      return lastComparison;
491
    }
492
    if (isSetCounterId()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.counterId, typedOther.counterId);
494
      if (lastComparison != 0) {
495
        return lastComparison;
496
      }
497
    }
498
    lastComparison = Boolean.valueOf(isSetTin()).compareTo(typedOther.isSetTin());
499
    if (lastComparison != 0) {
500
      return lastComparison;
501
    }
502
    if (isSetTin()) {
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tin, typedOther.tin);
504
      if (lastComparison != 0) {
505
        return lastComparison;
506
      }
507
    }
11890 kshitij.so 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: // USER_ID
526
          if (field.type == org.apache.thrift.protocol.TType.I64) {
527
            this.userId = iprot.readI64();
528
            setUserIdIsSet(true);
529
          } else { 
530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
531
          }
532
          break;
533
        case 2: // ADDED_ON
534
          if (field.type == org.apache.thrift.protocol.TType.I64) {
535
            this.addedOn = iprot.readI64();
536
            setAddedOnIsSet(true);
537
          } else { 
538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
539
          }
540
          break;
541
        case 3: // IS_ACTIVE
542
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
543
            this.isActive = iprot.readBool();
544
            setIsActiveIsSet(true);
545
          } else { 
546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
547
          }
548
          break;
12696 amit.gupta 549
        case 4: // COUNTER_ID
550
          if (field.type == org.apache.thrift.protocol.TType.I64) {
551
            this.counterId = iprot.readI64();
552
            setCounterIdIsSet(true);
553
          } else { 
554
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
555
          }
556
          break;
557
        case 5: // TIN
558
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
559
            this.tin = iprot.readString();
560
          } else { 
561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
562
          }
563
          break;
11890 kshitij.so 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(USER_ID_FIELD_DESC);
578
    oprot.writeI64(this.userId);
579
    oprot.writeFieldEnd();
580
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
581
    oprot.writeI64(this.addedOn);
582
    oprot.writeFieldEnd();
583
    oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
584
    oprot.writeBool(this.isActive);
585
    oprot.writeFieldEnd();
12696 amit.gupta 586
    oprot.writeFieldBegin(COUNTER_ID_FIELD_DESC);
587
    oprot.writeI64(this.counterId);
588
    oprot.writeFieldEnd();
589
    if (this.tin != null) {
590
      oprot.writeFieldBegin(TIN_FIELD_DESC);
591
      oprot.writeString(this.tin);
592
      oprot.writeFieldEnd();
593
    }
11890 kshitij.so 594
    oprot.writeFieldStop();
595
    oprot.writeStructEnd();
596
  }
597
 
598
  @Override
599
  public String toString() {
600
    StringBuilder sb = new StringBuilder("PrivateDealUser(");
601
    boolean first = true;
602
 
603
    sb.append("userId:");
604
    sb.append(this.userId);
605
    first = false;
606
    if (!first) sb.append(", ");
607
    sb.append("addedOn:");
608
    sb.append(this.addedOn);
609
    first = false;
610
    if (!first) sb.append(", ");
611
    sb.append("isActive:");
612
    sb.append(this.isActive);
613
    first = false;
12696 amit.gupta 614
    if (!first) sb.append(", ");
615
    sb.append("counterId:");
616
    sb.append(this.counterId);
617
    first = false;
618
    if (!first) sb.append(", ");
619
    sb.append("tin:");
620
    if (this.tin == null) {
621
      sb.append("null");
622
    } else {
623
      sb.append(this.tin);
624
    }
625
    first = false;
11890 kshitij.so 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