Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
648 chandransh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
648 chandransh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.logistics;
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;
3430 rajveer 18
import java.nio.ByteBuffer;
648 chandransh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class AwbUpdate implements org.apache.thrift.TBase<AwbUpdate, AwbUpdate._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AwbUpdate");
648 chandransh 25
 
3430 rajveer 26
  private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
27
  private static final org.apache.thrift.protocol.TField PROVIDER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("providerName", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("location", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField ENTRY_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("entryDate", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("description", org.apache.thrift.protocol.TType.STRING, (short)5);
648 chandransh 31
 
3430 rajveer 32
  private String awbNumber; // required
33
  private String providerName; // required
34
  private String location; // required
35
  private long entryDate; // required
36
  private String description; // required
648 chandransh 37
 
38
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 39
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
648 chandransh 40
    AWB_NUMBER((short)1, "awbNumber"),
41
    PROVIDER_NAME((short)2, "providerName"),
42
    LOCATION((short)3, "location"),
43
    ENTRY_DATE((short)4, "entryDate"),
44
    DESCRIPTION((short)5, "description");
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) {
3430 rajveer 58
      switch(fieldId) {
59
        case 1: // AWB_NUMBER
60
          return AWB_NUMBER;
61
        case 2: // PROVIDER_NAME
62
          return PROVIDER_NAME;
63
        case 3: // LOCATION
64
          return LOCATION;
65
        case 4: // ENTRY_DATE
66
          return ENTRY_DATE;
67
        case 5: // DESCRIPTION
68
          return DESCRIPTION;
69
        default:
70
          return null;
71
      }
648 chandransh 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 __ENTRYDATE_ISSET_ID = 0;
110
  private BitSet __isset_bit_vector = new BitSet(1);
111
 
3430 rajveer 112
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
648 chandransh 113
  static {
3430 rajveer 114
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
115
    tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
117
    tmpMap.put(_Fields.PROVIDER_NAME, new org.apache.thrift.meta_data.FieldMetaData("providerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
119
    tmpMap.put(_Fields.LOCATION, new org.apache.thrift.meta_data.FieldMetaData("location", org.apache.thrift.TFieldRequirementType.DEFAULT, 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
121
    tmpMap.put(_Fields.ENTRY_DATE, new org.apache.thrift.meta_data.FieldMetaData("entryDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
122
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
123
    tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
124
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
125
    metaDataMap = Collections.unmodifiableMap(tmpMap);
126
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AwbUpdate.class, metaDataMap);
648 chandransh 127
  }
128
 
129
  public AwbUpdate() {
130
  }
131
 
132
  public AwbUpdate(
133
    String awbNumber,
134
    String providerName,
135
    String location,
136
    long entryDate,
137
    String description)
138
  {
139
    this();
140
    this.awbNumber = awbNumber;
141
    this.providerName = providerName;
142
    this.location = location;
143
    this.entryDate = entryDate;
144
    setEntryDateIsSet(true);
145
    this.description = description;
146
  }
147
 
148
  /**
149
   * Performs a deep copy on <i>other</i>.
150
   */
151
  public AwbUpdate(AwbUpdate other) {
152
    __isset_bit_vector.clear();
153
    __isset_bit_vector.or(other.__isset_bit_vector);
154
    if (other.isSetAwbNumber()) {
155
      this.awbNumber = other.awbNumber;
156
    }
157
    if (other.isSetProviderName()) {
158
      this.providerName = other.providerName;
159
    }
160
    if (other.isSetLocation()) {
161
      this.location = other.location;
162
    }
163
    this.entryDate = other.entryDate;
164
    if (other.isSetDescription()) {
165
      this.description = other.description;
166
    }
167
  }
168
 
169
  public AwbUpdate deepCopy() {
170
    return new AwbUpdate(this);
171
  }
172
 
3430 rajveer 173
  @Override
174
  public void clear() {
175
    this.awbNumber = null;
176
    this.providerName = null;
177
    this.location = null;
178
    setEntryDateIsSet(false);
179
    this.entryDate = 0;
180
    this.description = null;
648 chandransh 181
  }
182
 
183
  public String getAwbNumber() {
184
    return this.awbNumber;
185
  }
186
 
3430 rajveer 187
  public void setAwbNumber(String awbNumber) {
648 chandransh 188
    this.awbNumber = awbNumber;
189
  }
190
 
191
  public void unsetAwbNumber() {
192
    this.awbNumber = null;
193
  }
194
 
3430 rajveer 195
  /** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
648 chandransh 196
  public boolean isSetAwbNumber() {
197
    return this.awbNumber != null;
198
  }
199
 
200
  public void setAwbNumberIsSet(boolean value) {
201
    if (!value) {
202
      this.awbNumber = null;
203
    }
204
  }
205
 
206
  public String getProviderName() {
207
    return this.providerName;
208
  }
209
 
3430 rajveer 210
  public void setProviderName(String providerName) {
648 chandransh 211
    this.providerName = providerName;
212
  }
213
 
214
  public void unsetProviderName() {
215
    this.providerName = null;
216
  }
217
 
3430 rajveer 218
  /** Returns true if field providerName is set (has been assigned a value) and false otherwise */
648 chandransh 219
  public boolean isSetProviderName() {
220
    return this.providerName != null;
221
  }
222
 
223
  public void setProviderNameIsSet(boolean value) {
224
    if (!value) {
225
      this.providerName = null;
226
    }
227
  }
228
 
229
  public String getLocation() {
230
    return this.location;
231
  }
232
 
3430 rajveer 233
  public void setLocation(String location) {
648 chandransh 234
    this.location = location;
235
  }
236
 
237
  public void unsetLocation() {
238
    this.location = null;
239
  }
240
 
3430 rajveer 241
  /** Returns true if field location is set (has been assigned a value) and false otherwise */
648 chandransh 242
  public boolean isSetLocation() {
243
    return this.location != null;
244
  }
245
 
246
  public void setLocationIsSet(boolean value) {
247
    if (!value) {
248
      this.location = null;
249
    }
250
  }
251
 
252
  public long getEntryDate() {
253
    return this.entryDate;
254
  }
255
 
3430 rajveer 256
  public void setEntryDate(long entryDate) {
648 chandransh 257
    this.entryDate = entryDate;
258
    setEntryDateIsSet(true);
259
  }
260
 
261
  public void unsetEntryDate() {
262
    __isset_bit_vector.clear(__ENTRYDATE_ISSET_ID);
263
  }
264
 
3430 rajveer 265
  /** Returns true if field entryDate is set (has been assigned a value) and false otherwise */
648 chandransh 266
  public boolean isSetEntryDate() {
267
    return __isset_bit_vector.get(__ENTRYDATE_ISSET_ID);
268
  }
269
 
270
  public void setEntryDateIsSet(boolean value) {
271
    __isset_bit_vector.set(__ENTRYDATE_ISSET_ID, value);
272
  }
273
 
274
  public String getDescription() {
275
    return this.description;
276
  }
277
 
3430 rajveer 278
  public void setDescription(String description) {
648 chandransh 279
    this.description = description;
280
  }
281
 
282
  public void unsetDescription() {
283
    this.description = null;
284
  }
285
 
3430 rajveer 286
  /** Returns true if field description is set (has been assigned a value) and false otherwise */
648 chandransh 287
  public boolean isSetDescription() {
288
    return this.description != null;
289
  }
290
 
291
  public void setDescriptionIsSet(boolean value) {
292
    if (!value) {
293
      this.description = null;
294
    }
295
  }
296
 
297
  public void setFieldValue(_Fields field, Object value) {
298
    switch (field) {
299
    case AWB_NUMBER:
300
      if (value == null) {
301
        unsetAwbNumber();
302
      } else {
303
        setAwbNumber((String)value);
304
      }
305
      break;
306
 
307
    case PROVIDER_NAME:
308
      if (value == null) {
309
        unsetProviderName();
310
      } else {
311
        setProviderName((String)value);
312
      }
313
      break;
314
 
315
    case LOCATION:
316
      if (value == null) {
317
        unsetLocation();
318
      } else {
319
        setLocation((String)value);
320
      }
321
      break;
322
 
323
    case ENTRY_DATE:
324
      if (value == null) {
325
        unsetEntryDate();
326
      } else {
327
        setEntryDate((Long)value);
328
      }
329
      break;
330
 
331
    case DESCRIPTION:
332
      if (value == null) {
333
        unsetDescription();
334
      } else {
335
        setDescription((String)value);
336
      }
337
      break;
338
 
339
    }
340
  }
341
 
342
  public Object getFieldValue(_Fields field) {
343
    switch (field) {
344
    case AWB_NUMBER:
345
      return getAwbNumber();
346
 
347
    case PROVIDER_NAME:
348
      return getProviderName();
349
 
350
    case LOCATION:
351
      return getLocation();
352
 
353
    case ENTRY_DATE:
3430 rajveer 354
      return Long.valueOf(getEntryDate());
648 chandransh 355
 
356
    case DESCRIPTION:
357
      return getDescription();
358
 
359
    }
360
    throw new IllegalStateException();
361
  }
362
 
3430 rajveer 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
    }
648 chandransh 368
 
369
    switch (field) {
370
    case AWB_NUMBER:
371
      return isSetAwbNumber();
372
    case PROVIDER_NAME:
373
      return isSetProviderName();
374
    case LOCATION:
375
      return isSetLocation();
376
    case ENTRY_DATE:
377
      return isSetEntryDate();
378
    case DESCRIPTION:
379
      return isSetDescription();
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 AwbUpdate)
389
      return this.equals((AwbUpdate)that);
390
    return false;
391
  }
392
 
393
  public boolean equals(AwbUpdate that) {
394
    if (that == null)
395
      return false;
396
 
397
    boolean this_present_awbNumber = true && this.isSetAwbNumber();
398
    boolean that_present_awbNumber = true && that.isSetAwbNumber();
399
    if (this_present_awbNumber || that_present_awbNumber) {
400
      if (!(this_present_awbNumber && that_present_awbNumber))
401
        return false;
402
      if (!this.awbNumber.equals(that.awbNumber))
403
        return false;
404
    }
405
 
406
    boolean this_present_providerName = true && this.isSetProviderName();
407
    boolean that_present_providerName = true && that.isSetProviderName();
408
    if (this_present_providerName || that_present_providerName) {
409
      if (!(this_present_providerName && that_present_providerName))
410
        return false;
411
      if (!this.providerName.equals(that.providerName))
412
        return false;
413
    }
414
 
415
    boolean this_present_location = true && this.isSetLocation();
416
    boolean that_present_location = true && that.isSetLocation();
417
    if (this_present_location || that_present_location) {
418
      if (!(this_present_location && that_present_location))
419
        return false;
420
      if (!this.location.equals(that.location))
421
        return false;
422
    }
423
 
424
    boolean this_present_entryDate = true;
425
    boolean that_present_entryDate = true;
426
    if (this_present_entryDate || that_present_entryDate) {
427
      if (!(this_present_entryDate && that_present_entryDate))
428
        return false;
429
      if (this.entryDate != that.entryDate)
430
        return false;
431
    }
432
 
433
    boolean this_present_description = true && this.isSetDescription();
434
    boolean that_present_description = true && that.isSetDescription();
435
    if (this_present_description || that_present_description) {
436
      if (!(this_present_description && that_present_description))
437
        return false;
438
      if (!this.description.equals(that.description))
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(AwbUpdate other) {
451
    if (!getClass().equals(other.getClass())) {
452
      return getClass().getName().compareTo(other.getClass().getName());
453
    }
454
 
455
    int lastComparison = 0;
456
    AwbUpdate typedOther = (AwbUpdate)other;
457
 
3430 rajveer 458
    lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
648 chandransh 459
    if (lastComparison != 0) {
460
      return lastComparison;
461
    }
3430 rajveer 462
    if (isSetAwbNumber()) {
463
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
464
      if (lastComparison != 0) {
465
        return lastComparison;
466
      }
648 chandransh 467
    }
3430 rajveer 468
    lastComparison = Boolean.valueOf(isSetProviderName()).compareTo(typedOther.isSetProviderName());
648 chandransh 469
    if (lastComparison != 0) {
470
      return lastComparison;
471
    }
3430 rajveer 472
    if (isSetProviderName()) {
473
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerName, typedOther.providerName);
474
      if (lastComparison != 0) {
475
        return lastComparison;
476
      }
648 chandransh 477
    }
3430 rajveer 478
    lastComparison = Boolean.valueOf(isSetLocation()).compareTo(typedOther.isSetLocation());
648 chandransh 479
    if (lastComparison != 0) {
480
      return lastComparison;
481
    }
3430 rajveer 482
    if (isSetLocation()) {
483
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.location, typedOther.location);
484
      if (lastComparison != 0) {
485
        return lastComparison;
486
      }
648 chandransh 487
    }
3430 rajveer 488
    lastComparison = Boolean.valueOf(isSetEntryDate()).compareTo(typedOther.isSetEntryDate());
648 chandransh 489
    if (lastComparison != 0) {
490
      return lastComparison;
491
    }
3430 rajveer 492
    if (isSetEntryDate()) {
493
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entryDate, typedOther.entryDate);
494
      if (lastComparison != 0) {
495
        return lastComparison;
496
      }
648 chandransh 497
    }
3430 rajveer 498
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
648 chandransh 499
    if (lastComparison != 0) {
500
      return lastComparison;
501
    }
3430 rajveer 502
    if (isSetDescription()) {
503
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
504
      if (lastComparison != 0) {
505
        return lastComparison;
506
      }
648 chandransh 507
    }
508
    return 0;
509
  }
510
 
3430 rajveer 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;
648 chandransh 517
    iprot.readStructBegin();
518
    while (true)
519
    {
520
      field = iprot.readFieldBegin();
3430 rajveer 521
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
648 chandransh 522
        break;
523
      }
3430 rajveer 524
      switch (field.id) {
525
        case 1: // AWB_NUMBER
526
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
527
            this.awbNumber = iprot.readString();
528
          } else { 
529
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
530
          }
531
          break;
532
        case 2: // PROVIDER_NAME
533
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
534
            this.providerName = iprot.readString();
535
          } else { 
536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
537
          }
538
          break;
539
        case 3: // LOCATION
540
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
541
            this.location = iprot.readString();
542
          } else { 
543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
544
          }
545
          break;
546
        case 4: // ENTRY_DATE
547
          if (field.type == org.apache.thrift.protocol.TType.I64) {
548
            this.entryDate = iprot.readI64();
549
            setEntryDateIsSet(true);
550
          } else { 
551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
552
          }
553
          break;
554
        case 5: // DESCRIPTION
555
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
556
            this.description = iprot.readString();
557
          } else { 
558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
559
          }
560
          break;
561
        default:
562
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
648 chandransh 563
      }
3430 rajveer 564
      iprot.readFieldEnd();
648 chandransh 565
    }
566
    iprot.readStructEnd();
567
    validate();
568
  }
569
 
3430 rajveer 570
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648 chandransh 571
    validate();
572
 
573
    oprot.writeStructBegin(STRUCT_DESC);
574
    if (this.awbNumber != null) {
575
      oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
576
      oprot.writeString(this.awbNumber);
577
      oprot.writeFieldEnd();
578
    }
579
    if (this.providerName != null) {
580
      oprot.writeFieldBegin(PROVIDER_NAME_FIELD_DESC);
581
      oprot.writeString(this.providerName);
582
      oprot.writeFieldEnd();
583
    }
584
    if (this.location != null) {
585
      oprot.writeFieldBegin(LOCATION_FIELD_DESC);
586
      oprot.writeString(this.location);
587
      oprot.writeFieldEnd();
588
    }
589
    oprot.writeFieldBegin(ENTRY_DATE_FIELD_DESC);
590
    oprot.writeI64(this.entryDate);
591
    oprot.writeFieldEnd();
592
    if (this.description != null) {
593
      oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
594
      oprot.writeString(this.description);
595
      oprot.writeFieldEnd();
596
    }
597
    oprot.writeFieldStop();
598
    oprot.writeStructEnd();
599
  }
600
 
601
  @Override
602
  public String toString() {
603
    StringBuilder sb = new StringBuilder("AwbUpdate(");
604
    boolean first = true;
605
 
606
    sb.append("awbNumber:");
607
    if (this.awbNumber == null) {
608
      sb.append("null");
609
    } else {
610
      sb.append(this.awbNumber);
611
    }
612
    first = false;
613
    if (!first) sb.append(", ");
614
    sb.append("providerName:");
615
    if (this.providerName == null) {
616
      sb.append("null");
617
    } else {
618
      sb.append(this.providerName);
619
    }
620
    first = false;
621
    if (!first) sb.append(", ");
622
    sb.append("location:");
623
    if (this.location == null) {
624
      sb.append("null");
625
    } else {
626
      sb.append(this.location);
627
    }
628
    first = false;
629
    if (!first) sb.append(", ");
630
    sb.append("entryDate:");
631
    sb.append(this.entryDate);
632
    first = false;
633
    if (!first) sb.append(", ");
634
    sb.append("description:");
635
    if (this.description == null) {
636
      sb.append("null");
637
    } else {
638
      sb.append(this.description);
639
    }
640
    first = false;
641
    sb.append(")");
642
    return sb.toString();
643
  }
644
 
3430 rajveer 645
  public void validate() throws org.apache.thrift.TException {
648 chandransh 646
    // check for required fields
647
  }
648
 
3430 rajveer 649
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
650
    try {
651
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
652
    } catch (org.apache.thrift.TException te) {
653
      throw new java.io.IOException(te);
654
    }
655
  }
656
 
657
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
658
    try {
659
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
660
      __isset_bit_vector = new BitSet(1);
661
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
662
    } catch (org.apache.thrift.TException te) {
663
      throw new java.io.IOException(te);
664
    }
665
  }
666
 
648 chandransh 667
}
668