Subversion Repositories SmartDukaan

Rev

Rev 7423 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7386 anupam.sin 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.order;
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 StoreOrderDetail implements org.apache.thrift.TBase<StoreOrderDetail, StoreOrderDetail._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("StoreOrderDetail");
25
 
26
  private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
29
  private static final org.apache.thrift.protocol.TField CASH_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)4);
30
  private static final org.apache.thrift.protocol.TField CARD_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField PAY_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("payStatus", org.apache.thrift.protocol.TType.I32, (short)6);
7393 anupam.sin 32
  private static final org.apache.thrift.protocol.TField EDC_BANK_FIELD_DESC = new org.apache.thrift.protocol.TField("edcBank", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField CASH_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cashRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField CARD_REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("cardRefundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
7423 anupam.sin 35
  private static final org.apache.thrift.protocol.TField APPROVAL_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("approvalCode", org.apache.thrift.protocol.TType.STRING, (short)10);
7611 anupam.sin 36
  private static final org.apache.thrift.protocol.TField CARD_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("cardType", org.apache.thrift.protocol.TType.STRING, (short)11);
7386 anupam.sin 37
 
38
  private long orderId; // required
39
  private long storeId; // required
40
  private double advanceAmount; // required
41
  private double cashAmount; // required
42
  private double cardAmount; // required
43
  private StorePaymentStatus payStatus; // required
7393 anupam.sin 44
  private String edcBank; // required
45
  private double cashRefundAmount; // required
46
  private double cardRefundAmount; // required
7423 anupam.sin 47
  private String approvalCode; // required
7611 anupam.sin 48
  private String cardType; // required
7386 anupam.sin 49
 
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52
    ORDER_ID((short)1, "orderId"),
53
    STORE_ID((short)2, "storeId"),
54
    ADVANCE_AMOUNT((short)3, "advanceAmount"),
55
    CASH_AMOUNT((short)4, "cashAmount"),
56
    CARD_AMOUNT((short)5, "cardAmount"),
57
    /**
58
     * 
59
     * @see StorePaymentStatus
60
     */
7393 anupam.sin 61
    PAY_STATUS((short)6, "payStatus"),
62
    EDC_BANK((short)7, "edcBank"),
63
    CASH_REFUND_AMOUNT((short)8, "cashRefundAmount"),
7423 anupam.sin 64
    CARD_REFUND_AMOUNT((short)9, "cardRefundAmount"),
7611 anupam.sin 65
    APPROVAL_CODE((short)10, "approvalCode"),
66
    CARD_TYPE((short)11, "cardType");
7386 anupam.sin 67
 
68
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
69
 
70
    static {
71
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
72
        byName.put(field.getFieldName(), field);
73
      }
74
    }
75
 
76
    /**
77
     * Find the _Fields constant that matches fieldId, or null if its not found.
78
     */
79
    public static _Fields findByThriftId(int fieldId) {
80
      switch(fieldId) {
81
        case 1: // ORDER_ID
82
          return ORDER_ID;
83
        case 2: // STORE_ID
84
          return STORE_ID;
85
        case 3: // ADVANCE_AMOUNT
86
          return ADVANCE_AMOUNT;
87
        case 4: // CASH_AMOUNT
88
          return CASH_AMOUNT;
89
        case 5: // CARD_AMOUNT
90
          return CARD_AMOUNT;
91
        case 6: // PAY_STATUS
92
          return PAY_STATUS;
7393 anupam.sin 93
        case 7: // EDC_BANK
94
          return EDC_BANK;
95
        case 8: // CASH_REFUND_AMOUNT
96
          return CASH_REFUND_AMOUNT;
97
        case 9: // CARD_REFUND_AMOUNT
98
          return CARD_REFUND_AMOUNT;
7423 anupam.sin 99
        case 10: // APPROVAL_CODE
100
          return APPROVAL_CODE;
7611 anupam.sin 101
        case 11: // CARD_TYPE
102
          return CARD_TYPE;
7386 anupam.sin 103
        default:
104
          return null;
105
      }
106
    }
107
 
108
    /**
109
     * Find the _Fields constant that matches fieldId, throwing an exception
110
     * if it is not found.
111
     */
112
    public static _Fields findByThriftIdOrThrow(int fieldId) {
113
      _Fields fields = findByThriftId(fieldId);
114
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
115
      return fields;
116
    }
117
 
118
    /**
119
     * Find the _Fields constant that matches name, or null if its not found.
120
     */
121
    public static _Fields findByName(String name) {
122
      return byName.get(name);
123
    }
124
 
125
    private final short _thriftId;
126
    private final String _fieldName;
127
 
128
    _Fields(short thriftId, String fieldName) {
129
      _thriftId = thriftId;
130
      _fieldName = fieldName;
131
    }
132
 
133
    public short getThriftFieldId() {
134
      return _thriftId;
135
    }
136
 
137
    public String getFieldName() {
138
      return _fieldName;
139
    }
140
  }
141
 
142
  // isset id assignments
143
  private static final int __ORDERID_ISSET_ID = 0;
144
  private static final int __STOREID_ISSET_ID = 1;
145
  private static final int __ADVANCEAMOUNT_ISSET_ID = 2;
146
  private static final int __CASHAMOUNT_ISSET_ID = 3;
147
  private static final int __CARDAMOUNT_ISSET_ID = 4;
7393 anupam.sin 148
  private static final int __CASHREFUNDAMOUNT_ISSET_ID = 5;
149
  private static final int __CARDREFUNDAMOUNT_ISSET_ID = 6;
150
  private BitSet __isset_bit_vector = new BitSet(7);
7386 anupam.sin 151
 
152
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
153
  static {
154
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
155
    tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
157
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
159
    tmpMap.put(_Fields.ADVANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("advanceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
161
    tmpMap.put(_Fields.CASH_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cashAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
163
    tmpMap.put(_Fields.CARD_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
165
    tmpMap.put(_Fields.PAY_STATUS, new org.apache.thrift.meta_data.FieldMetaData("payStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, StorePaymentStatus.class)));
7393 anupam.sin 167
    tmpMap.put(_Fields.EDC_BANK, new org.apache.thrift.meta_data.FieldMetaData("edcBank", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
    tmpMap.put(_Fields.CASH_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cashRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
171
    tmpMap.put(_Fields.CARD_REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("cardRefundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
7423 anupam.sin 173
    tmpMap.put(_Fields.APPROVAL_CODE, new org.apache.thrift.meta_data.FieldMetaData("approvalCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7611 anupam.sin 175
    tmpMap.put(_Fields.CARD_TYPE, new org.apache.thrift.meta_data.FieldMetaData("cardType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7386 anupam.sin 177
    metaDataMap = Collections.unmodifiableMap(tmpMap);
178
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(StoreOrderDetail.class, metaDataMap);
179
  }
180
 
181
  public StoreOrderDetail() {
182
  }
183
 
184
  public StoreOrderDetail(
185
    long orderId,
186
    long storeId,
187
    double advanceAmount,
188
    double cashAmount,
189
    double cardAmount,
7393 anupam.sin 190
    StorePaymentStatus payStatus,
191
    String edcBank,
192
    double cashRefundAmount,
7423 anupam.sin 193
    double cardRefundAmount,
7611 anupam.sin 194
    String approvalCode,
195
    String cardType)
7386 anupam.sin 196
  {
197
    this();
198
    this.orderId = orderId;
199
    setOrderIdIsSet(true);
200
    this.storeId = storeId;
201
    setStoreIdIsSet(true);
202
    this.advanceAmount = advanceAmount;
203
    setAdvanceAmountIsSet(true);
204
    this.cashAmount = cashAmount;
205
    setCashAmountIsSet(true);
206
    this.cardAmount = cardAmount;
207
    setCardAmountIsSet(true);
208
    this.payStatus = payStatus;
7393 anupam.sin 209
    this.edcBank = edcBank;
210
    this.cashRefundAmount = cashRefundAmount;
211
    setCashRefundAmountIsSet(true);
212
    this.cardRefundAmount = cardRefundAmount;
213
    setCardRefundAmountIsSet(true);
7423 anupam.sin 214
    this.approvalCode = approvalCode;
7611 anupam.sin 215
    this.cardType = cardType;
7386 anupam.sin 216
  }
217
 
218
  /**
219
   * Performs a deep copy on <i>other</i>.
220
   */
221
  public StoreOrderDetail(StoreOrderDetail other) {
222
    __isset_bit_vector.clear();
223
    __isset_bit_vector.or(other.__isset_bit_vector);
224
    this.orderId = other.orderId;
225
    this.storeId = other.storeId;
226
    this.advanceAmount = other.advanceAmount;
227
    this.cashAmount = other.cashAmount;
228
    this.cardAmount = other.cardAmount;
229
    if (other.isSetPayStatus()) {
230
      this.payStatus = other.payStatus;
231
    }
7393 anupam.sin 232
    if (other.isSetEdcBank()) {
233
      this.edcBank = other.edcBank;
234
    }
235
    this.cashRefundAmount = other.cashRefundAmount;
236
    this.cardRefundAmount = other.cardRefundAmount;
7423 anupam.sin 237
    if (other.isSetApprovalCode()) {
238
      this.approvalCode = other.approvalCode;
239
    }
7611 anupam.sin 240
    if (other.isSetCardType()) {
241
      this.cardType = other.cardType;
242
    }
7386 anupam.sin 243
  }
244
 
245
  public StoreOrderDetail deepCopy() {
246
    return new StoreOrderDetail(this);
247
  }
248
 
249
  @Override
250
  public void clear() {
251
    setOrderIdIsSet(false);
252
    this.orderId = 0;
253
    setStoreIdIsSet(false);
254
    this.storeId = 0;
255
    setAdvanceAmountIsSet(false);
256
    this.advanceAmount = 0.0;
257
    setCashAmountIsSet(false);
258
    this.cashAmount = 0.0;
259
    setCardAmountIsSet(false);
260
    this.cardAmount = 0.0;
261
    this.payStatus = null;
7393 anupam.sin 262
    this.edcBank = null;
263
    setCashRefundAmountIsSet(false);
264
    this.cashRefundAmount = 0.0;
265
    setCardRefundAmountIsSet(false);
266
    this.cardRefundAmount = 0.0;
7423 anupam.sin 267
    this.approvalCode = null;
7611 anupam.sin 268
    this.cardType = null;
7386 anupam.sin 269
  }
270
 
271
  public long getOrderId() {
272
    return this.orderId;
273
  }
274
 
275
  public void setOrderId(long orderId) {
276
    this.orderId = orderId;
277
    setOrderIdIsSet(true);
278
  }
279
 
280
  public void unsetOrderId() {
281
    __isset_bit_vector.clear(__ORDERID_ISSET_ID);
282
  }
283
 
284
  /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
285
  public boolean isSetOrderId() {
286
    return __isset_bit_vector.get(__ORDERID_ISSET_ID);
287
  }
288
 
289
  public void setOrderIdIsSet(boolean value) {
290
    __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
291
  }
292
 
293
  public long getStoreId() {
294
    return this.storeId;
295
  }
296
 
297
  public void setStoreId(long storeId) {
298
    this.storeId = storeId;
299
    setStoreIdIsSet(true);
300
  }
301
 
302
  public void unsetStoreId() {
303
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
304
  }
305
 
306
  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
307
  public boolean isSetStoreId() {
308
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
309
  }
310
 
311
  public void setStoreIdIsSet(boolean value) {
312
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
313
  }
314
 
315
  public double getAdvanceAmount() {
316
    return this.advanceAmount;
317
  }
318
 
319
  public void setAdvanceAmount(double advanceAmount) {
320
    this.advanceAmount = advanceAmount;
321
    setAdvanceAmountIsSet(true);
322
  }
323
 
324
  public void unsetAdvanceAmount() {
325
    __isset_bit_vector.clear(__ADVANCEAMOUNT_ISSET_ID);
326
  }
327
 
328
  /** Returns true if field advanceAmount is set (has been assigned a value) and false otherwise */
329
  public boolean isSetAdvanceAmount() {
330
    return __isset_bit_vector.get(__ADVANCEAMOUNT_ISSET_ID);
331
  }
332
 
333
  public void setAdvanceAmountIsSet(boolean value) {
334
    __isset_bit_vector.set(__ADVANCEAMOUNT_ISSET_ID, value);
335
  }
336
 
337
  public double getCashAmount() {
338
    return this.cashAmount;
339
  }
340
 
341
  public void setCashAmount(double cashAmount) {
342
    this.cashAmount = cashAmount;
343
    setCashAmountIsSet(true);
344
  }
345
 
346
  public void unsetCashAmount() {
347
    __isset_bit_vector.clear(__CASHAMOUNT_ISSET_ID);
348
  }
349
 
350
  /** Returns true if field cashAmount is set (has been assigned a value) and false otherwise */
351
  public boolean isSetCashAmount() {
352
    return __isset_bit_vector.get(__CASHAMOUNT_ISSET_ID);
353
  }
354
 
355
  public void setCashAmountIsSet(boolean value) {
356
    __isset_bit_vector.set(__CASHAMOUNT_ISSET_ID, value);
357
  }
358
 
359
  public double getCardAmount() {
360
    return this.cardAmount;
361
  }
362
 
363
  public void setCardAmount(double cardAmount) {
364
    this.cardAmount = cardAmount;
365
    setCardAmountIsSet(true);
366
  }
367
 
368
  public void unsetCardAmount() {
369
    __isset_bit_vector.clear(__CARDAMOUNT_ISSET_ID);
370
  }
371
 
372
  /** Returns true if field cardAmount is set (has been assigned a value) and false otherwise */
373
  public boolean isSetCardAmount() {
374
    return __isset_bit_vector.get(__CARDAMOUNT_ISSET_ID);
375
  }
376
 
377
  public void setCardAmountIsSet(boolean value) {
378
    __isset_bit_vector.set(__CARDAMOUNT_ISSET_ID, value);
379
  }
380
 
381
  /**
382
   * 
383
   * @see StorePaymentStatus
384
   */
385
  public StorePaymentStatus getPayStatus() {
386
    return this.payStatus;
387
  }
388
 
389
  /**
390
   * 
391
   * @see StorePaymentStatus
392
   */
393
  public void setPayStatus(StorePaymentStatus payStatus) {
394
    this.payStatus = payStatus;
395
  }
396
 
397
  public void unsetPayStatus() {
398
    this.payStatus = null;
399
  }
400
 
401
  /** Returns true if field payStatus is set (has been assigned a value) and false otherwise */
402
  public boolean isSetPayStatus() {
403
    return this.payStatus != null;
404
  }
405
 
406
  public void setPayStatusIsSet(boolean value) {
407
    if (!value) {
408
      this.payStatus = null;
409
    }
410
  }
411
 
7393 anupam.sin 412
  public String getEdcBank() {
413
    return this.edcBank;
414
  }
415
 
416
  public void setEdcBank(String edcBank) {
417
    this.edcBank = edcBank;
418
  }
419
 
420
  public void unsetEdcBank() {
421
    this.edcBank = null;
422
  }
423
 
424
  /** Returns true if field edcBank is set (has been assigned a value) and false otherwise */
425
  public boolean isSetEdcBank() {
426
    return this.edcBank != null;
427
  }
428
 
429
  public void setEdcBankIsSet(boolean value) {
430
    if (!value) {
431
      this.edcBank = null;
432
    }
433
  }
434
 
435
  public double getCashRefundAmount() {
436
    return this.cashRefundAmount;
437
  }
438
 
439
  public void setCashRefundAmount(double cashRefundAmount) {
440
    this.cashRefundAmount = cashRefundAmount;
441
    setCashRefundAmountIsSet(true);
442
  }
443
 
444
  public void unsetCashRefundAmount() {
445
    __isset_bit_vector.clear(__CASHREFUNDAMOUNT_ISSET_ID);
446
  }
447
 
448
  /** Returns true if field cashRefundAmount is set (has been assigned a value) and false otherwise */
449
  public boolean isSetCashRefundAmount() {
450
    return __isset_bit_vector.get(__CASHREFUNDAMOUNT_ISSET_ID);
451
  }
452
 
453
  public void setCashRefundAmountIsSet(boolean value) {
454
    __isset_bit_vector.set(__CASHREFUNDAMOUNT_ISSET_ID, value);
455
  }
456
 
457
  public double getCardRefundAmount() {
458
    return this.cardRefundAmount;
459
  }
460
 
461
  public void setCardRefundAmount(double cardRefundAmount) {
462
    this.cardRefundAmount = cardRefundAmount;
463
    setCardRefundAmountIsSet(true);
464
  }
465
 
466
  public void unsetCardRefundAmount() {
467
    __isset_bit_vector.clear(__CARDREFUNDAMOUNT_ISSET_ID);
468
  }
469
 
470
  /** Returns true if field cardRefundAmount is set (has been assigned a value) and false otherwise */
471
  public boolean isSetCardRefundAmount() {
472
    return __isset_bit_vector.get(__CARDREFUNDAMOUNT_ISSET_ID);
473
  }
474
 
475
  public void setCardRefundAmountIsSet(boolean value) {
476
    __isset_bit_vector.set(__CARDREFUNDAMOUNT_ISSET_ID, value);
477
  }
478
 
7423 anupam.sin 479
  public String getApprovalCode() {
480
    return this.approvalCode;
481
  }
482
 
483
  public void setApprovalCode(String approvalCode) {
484
    this.approvalCode = approvalCode;
485
  }
486
 
487
  public void unsetApprovalCode() {
488
    this.approvalCode = null;
489
  }
490
 
491
  /** Returns true if field approvalCode is set (has been assigned a value) and false otherwise */
492
  public boolean isSetApprovalCode() {
493
    return this.approvalCode != null;
494
  }
495
 
496
  public void setApprovalCodeIsSet(boolean value) {
497
    if (!value) {
498
      this.approvalCode = null;
499
    }
500
  }
501
 
7611 anupam.sin 502
  public String getCardType() {
503
    return this.cardType;
504
  }
505
 
506
  public void setCardType(String cardType) {
507
    this.cardType = cardType;
508
  }
509
 
510
  public void unsetCardType() {
511
    this.cardType = null;
512
  }
513
 
514
  /** Returns true if field cardType is set (has been assigned a value) and false otherwise */
515
  public boolean isSetCardType() {
516
    return this.cardType != null;
517
  }
518
 
519
  public void setCardTypeIsSet(boolean value) {
520
    if (!value) {
521
      this.cardType = null;
522
    }
523
  }
524
 
7386 anupam.sin 525
  public void setFieldValue(_Fields field, Object value) {
526
    switch (field) {
527
    case ORDER_ID:
528
      if (value == null) {
529
        unsetOrderId();
530
      } else {
531
        setOrderId((Long)value);
532
      }
533
      break;
534
 
535
    case STORE_ID:
536
      if (value == null) {
537
        unsetStoreId();
538
      } else {
539
        setStoreId((Long)value);
540
      }
541
      break;
542
 
543
    case ADVANCE_AMOUNT:
544
      if (value == null) {
545
        unsetAdvanceAmount();
546
      } else {
547
        setAdvanceAmount((Double)value);
548
      }
549
      break;
550
 
551
    case CASH_AMOUNT:
552
      if (value == null) {
553
        unsetCashAmount();
554
      } else {
555
        setCashAmount((Double)value);
556
      }
557
      break;
558
 
559
    case CARD_AMOUNT:
560
      if (value == null) {
561
        unsetCardAmount();
562
      } else {
563
        setCardAmount((Double)value);
564
      }
565
      break;
566
 
567
    case PAY_STATUS:
568
      if (value == null) {
569
        unsetPayStatus();
570
      } else {
571
        setPayStatus((StorePaymentStatus)value);
572
      }
573
      break;
574
 
7393 anupam.sin 575
    case EDC_BANK:
576
      if (value == null) {
577
        unsetEdcBank();
578
      } else {
579
        setEdcBank((String)value);
580
      }
581
      break;
582
 
583
    case CASH_REFUND_AMOUNT:
584
      if (value == null) {
585
        unsetCashRefundAmount();
586
      } else {
587
        setCashRefundAmount((Double)value);
588
      }
589
      break;
590
 
591
    case CARD_REFUND_AMOUNT:
592
      if (value == null) {
593
        unsetCardRefundAmount();
594
      } else {
595
        setCardRefundAmount((Double)value);
596
      }
597
      break;
598
 
7423 anupam.sin 599
    case APPROVAL_CODE:
600
      if (value == null) {
601
        unsetApprovalCode();
602
      } else {
603
        setApprovalCode((String)value);
604
      }
605
      break;
606
 
7611 anupam.sin 607
    case CARD_TYPE:
608
      if (value == null) {
609
        unsetCardType();
610
      } else {
611
        setCardType((String)value);
612
      }
613
      break;
614
 
7386 anupam.sin 615
    }
616
  }
617
 
618
  public Object getFieldValue(_Fields field) {
619
    switch (field) {
620
    case ORDER_ID:
621
      return Long.valueOf(getOrderId());
622
 
623
    case STORE_ID:
624
      return Long.valueOf(getStoreId());
625
 
626
    case ADVANCE_AMOUNT:
627
      return Double.valueOf(getAdvanceAmount());
628
 
629
    case CASH_AMOUNT:
630
      return Double.valueOf(getCashAmount());
631
 
632
    case CARD_AMOUNT:
633
      return Double.valueOf(getCardAmount());
634
 
635
    case PAY_STATUS:
636
      return getPayStatus();
637
 
7393 anupam.sin 638
    case EDC_BANK:
639
      return getEdcBank();
640
 
641
    case CASH_REFUND_AMOUNT:
642
      return Double.valueOf(getCashRefundAmount());
643
 
644
    case CARD_REFUND_AMOUNT:
645
      return Double.valueOf(getCardRefundAmount());
646
 
7423 anupam.sin 647
    case APPROVAL_CODE:
648
      return getApprovalCode();
649
 
7611 anupam.sin 650
    case CARD_TYPE:
651
      return getCardType();
652
 
7386 anupam.sin 653
    }
654
    throw new IllegalStateException();
655
  }
656
 
657
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
658
  public boolean isSet(_Fields field) {
659
    if (field == null) {
660
      throw new IllegalArgumentException();
661
    }
662
 
663
    switch (field) {
664
    case ORDER_ID:
665
      return isSetOrderId();
666
    case STORE_ID:
667
      return isSetStoreId();
668
    case ADVANCE_AMOUNT:
669
      return isSetAdvanceAmount();
670
    case CASH_AMOUNT:
671
      return isSetCashAmount();
672
    case CARD_AMOUNT:
673
      return isSetCardAmount();
674
    case PAY_STATUS:
675
      return isSetPayStatus();
7393 anupam.sin 676
    case EDC_BANK:
677
      return isSetEdcBank();
678
    case CASH_REFUND_AMOUNT:
679
      return isSetCashRefundAmount();
680
    case CARD_REFUND_AMOUNT:
681
      return isSetCardRefundAmount();
7423 anupam.sin 682
    case APPROVAL_CODE:
683
      return isSetApprovalCode();
7611 anupam.sin 684
    case CARD_TYPE:
685
      return isSetCardType();
7386 anupam.sin 686
    }
687
    throw new IllegalStateException();
688
  }
689
 
690
  @Override
691
  public boolean equals(Object that) {
692
    if (that == null)
693
      return false;
694
    if (that instanceof StoreOrderDetail)
695
      return this.equals((StoreOrderDetail)that);
696
    return false;
697
  }
698
 
699
  public boolean equals(StoreOrderDetail that) {
700
    if (that == null)
701
      return false;
702
 
703
    boolean this_present_orderId = true;
704
    boolean that_present_orderId = true;
705
    if (this_present_orderId || that_present_orderId) {
706
      if (!(this_present_orderId && that_present_orderId))
707
        return false;
708
      if (this.orderId != that.orderId)
709
        return false;
710
    }
711
 
712
    boolean this_present_storeId = true;
713
    boolean that_present_storeId = true;
714
    if (this_present_storeId || that_present_storeId) {
715
      if (!(this_present_storeId && that_present_storeId))
716
        return false;
717
      if (this.storeId != that.storeId)
718
        return false;
719
    }
720
 
721
    boolean this_present_advanceAmount = true;
722
    boolean that_present_advanceAmount = true;
723
    if (this_present_advanceAmount || that_present_advanceAmount) {
724
      if (!(this_present_advanceAmount && that_present_advanceAmount))
725
        return false;
726
      if (this.advanceAmount != that.advanceAmount)
727
        return false;
728
    }
729
 
730
    boolean this_present_cashAmount = true;
731
    boolean that_present_cashAmount = true;
732
    if (this_present_cashAmount || that_present_cashAmount) {
733
      if (!(this_present_cashAmount && that_present_cashAmount))
734
        return false;
735
      if (this.cashAmount != that.cashAmount)
736
        return false;
737
    }
738
 
739
    boolean this_present_cardAmount = true;
740
    boolean that_present_cardAmount = true;
741
    if (this_present_cardAmount || that_present_cardAmount) {
742
      if (!(this_present_cardAmount && that_present_cardAmount))
743
        return false;
744
      if (this.cardAmount != that.cardAmount)
745
        return false;
746
    }
747
 
748
    boolean this_present_payStatus = true && this.isSetPayStatus();
749
    boolean that_present_payStatus = true && that.isSetPayStatus();
750
    if (this_present_payStatus || that_present_payStatus) {
751
      if (!(this_present_payStatus && that_present_payStatus))
752
        return false;
753
      if (!this.payStatus.equals(that.payStatus))
754
        return false;
755
    }
756
 
7393 anupam.sin 757
    boolean this_present_edcBank = true && this.isSetEdcBank();
758
    boolean that_present_edcBank = true && that.isSetEdcBank();
759
    if (this_present_edcBank || that_present_edcBank) {
760
      if (!(this_present_edcBank && that_present_edcBank))
761
        return false;
762
      if (!this.edcBank.equals(that.edcBank))
763
        return false;
764
    }
765
 
766
    boolean this_present_cashRefundAmount = true;
767
    boolean that_present_cashRefundAmount = true;
768
    if (this_present_cashRefundAmount || that_present_cashRefundAmount) {
769
      if (!(this_present_cashRefundAmount && that_present_cashRefundAmount))
770
        return false;
771
      if (this.cashRefundAmount != that.cashRefundAmount)
772
        return false;
773
    }
774
 
775
    boolean this_present_cardRefundAmount = true;
776
    boolean that_present_cardRefundAmount = true;
777
    if (this_present_cardRefundAmount || that_present_cardRefundAmount) {
778
      if (!(this_present_cardRefundAmount && that_present_cardRefundAmount))
779
        return false;
780
      if (this.cardRefundAmount != that.cardRefundAmount)
781
        return false;
782
    }
783
 
7423 anupam.sin 784
    boolean this_present_approvalCode = true && this.isSetApprovalCode();
785
    boolean that_present_approvalCode = true && that.isSetApprovalCode();
786
    if (this_present_approvalCode || that_present_approvalCode) {
787
      if (!(this_present_approvalCode && that_present_approvalCode))
788
        return false;
789
      if (!this.approvalCode.equals(that.approvalCode))
790
        return false;
791
    }
792
 
7611 anupam.sin 793
    boolean this_present_cardType = true && this.isSetCardType();
794
    boolean that_present_cardType = true && that.isSetCardType();
795
    if (this_present_cardType || that_present_cardType) {
796
      if (!(this_present_cardType && that_present_cardType))
797
        return false;
798
      if (!this.cardType.equals(that.cardType))
799
        return false;
800
    }
801
 
7386 anupam.sin 802
    return true;
803
  }
804
 
805
  @Override
806
  public int hashCode() {
807
    return 0;
808
  }
809
 
810
  public int compareTo(StoreOrderDetail other) {
811
    if (!getClass().equals(other.getClass())) {
812
      return getClass().getName().compareTo(other.getClass().getName());
813
    }
814
 
815
    int lastComparison = 0;
816
    StoreOrderDetail typedOther = (StoreOrderDetail)other;
817
 
818
    lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
819
    if (lastComparison != 0) {
820
      return lastComparison;
821
    }
822
    if (isSetOrderId()) {
823
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
824
      if (lastComparison != 0) {
825
        return lastComparison;
826
      }
827
    }
828
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
829
    if (lastComparison != 0) {
830
      return lastComparison;
831
    }
832
    if (isSetStoreId()) {
833
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
834
      if (lastComparison != 0) {
835
        return lastComparison;
836
      }
837
    }
838
    lastComparison = Boolean.valueOf(isSetAdvanceAmount()).compareTo(typedOther.isSetAdvanceAmount());
839
    if (lastComparison != 0) {
840
      return lastComparison;
841
    }
842
    if (isSetAdvanceAmount()) {
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.advanceAmount, typedOther.advanceAmount);
844
      if (lastComparison != 0) {
845
        return lastComparison;
846
      }
847
    }
848
    lastComparison = Boolean.valueOf(isSetCashAmount()).compareTo(typedOther.isSetCashAmount());
849
    if (lastComparison != 0) {
850
      return lastComparison;
851
    }
852
    if (isSetCashAmount()) {
853
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cashAmount, typedOther.cashAmount);
854
      if (lastComparison != 0) {
855
        return lastComparison;
856
      }
857
    }
858
    lastComparison = Boolean.valueOf(isSetCardAmount()).compareTo(typedOther.isSetCardAmount());
859
    if (lastComparison != 0) {
860
      return lastComparison;
861
    }
862
    if (isSetCardAmount()) {
863
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cardAmount, typedOther.cardAmount);
864
      if (lastComparison != 0) {
865
        return lastComparison;
866
      }
867
    }
868
    lastComparison = Boolean.valueOf(isSetPayStatus()).compareTo(typedOther.isSetPayStatus());
869
    if (lastComparison != 0) {
870
      return lastComparison;
871
    }
872
    if (isSetPayStatus()) {
873
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.payStatus, typedOther.payStatus);
874
      if (lastComparison != 0) {
875
        return lastComparison;
876
      }
877
    }
7393 anupam.sin 878
    lastComparison = Boolean.valueOf(isSetEdcBank()).compareTo(typedOther.isSetEdcBank());
879
    if (lastComparison != 0) {
880
      return lastComparison;
881
    }
882
    if (isSetEdcBank()) {
883
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.edcBank, typedOther.edcBank);
884
      if (lastComparison != 0) {
885
        return lastComparison;
886
      }
887
    }
888
    lastComparison = Boolean.valueOf(isSetCashRefundAmount()).compareTo(typedOther.isSetCashRefundAmount());
889
    if (lastComparison != 0) {
890
      return lastComparison;
891
    }
892
    if (isSetCashRefundAmount()) {
893
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cashRefundAmount, typedOther.cashRefundAmount);
894
      if (lastComparison != 0) {
895
        return lastComparison;
896
      }
897
    }
898
    lastComparison = Boolean.valueOf(isSetCardRefundAmount()).compareTo(typedOther.isSetCardRefundAmount());
899
    if (lastComparison != 0) {
900
      return lastComparison;
901
    }
902
    if (isSetCardRefundAmount()) {
903
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cardRefundAmount, typedOther.cardRefundAmount);
904
      if (lastComparison != 0) {
905
        return lastComparison;
906
      }
907
    }
7423 anupam.sin 908
    lastComparison = Boolean.valueOf(isSetApprovalCode()).compareTo(typedOther.isSetApprovalCode());
909
    if (lastComparison != 0) {
910
      return lastComparison;
911
    }
912
    if (isSetApprovalCode()) {
913
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.approvalCode, typedOther.approvalCode);
914
      if (lastComparison != 0) {
915
        return lastComparison;
916
      }
917
    }
7611 anupam.sin 918
    lastComparison = Boolean.valueOf(isSetCardType()).compareTo(typedOther.isSetCardType());
919
    if (lastComparison != 0) {
920
      return lastComparison;
921
    }
922
    if (isSetCardType()) {
923
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cardType, typedOther.cardType);
924
      if (lastComparison != 0) {
925
        return lastComparison;
926
      }
927
    }
7386 anupam.sin 928
    return 0;
929
  }
930
 
931
  public _Fields fieldForId(int fieldId) {
932
    return _Fields.findByThriftId(fieldId);
933
  }
934
 
935
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
936
    org.apache.thrift.protocol.TField field;
937
    iprot.readStructBegin();
938
    while (true)
939
    {
940
      field = iprot.readFieldBegin();
941
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
942
        break;
943
      }
944
      switch (field.id) {
945
        case 1: // ORDER_ID
946
          if (field.type == org.apache.thrift.protocol.TType.I64) {
947
            this.orderId = iprot.readI64();
948
            setOrderIdIsSet(true);
949
          } else { 
950
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
951
          }
952
          break;
953
        case 2: // STORE_ID
954
          if (field.type == org.apache.thrift.protocol.TType.I64) {
955
            this.storeId = iprot.readI64();
956
            setStoreIdIsSet(true);
957
          } else { 
958
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
959
          }
960
          break;
961
        case 3: // ADVANCE_AMOUNT
962
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
963
            this.advanceAmount = iprot.readDouble();
964
            setAdvanceAmountIsSet(true);
965
          } else { 
966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
967
          }
968
          break;
969
        case 4: // CASH_AMOUNT
970
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
971
            this.cashAmount = iprot.readDouble();
972
            setCashAmountIsSet(true);
973
          } else { 
974
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
975
          }
976
          break;
977
        case 5: // CARD_AMOUNT
978
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
979
            this.cardAmount = iprot.readDouble();
980
            setCardAmountIsSet(true);
981
          } else { 
982
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
983
          }
984
          break;
985
        case 6: // PAY_STATUS
986
          if (field.type == org.apache.thrift.protocol.TType.I32) {
987
            this.payStatus = StorePaymentStatus.findByValue(iprot.readI32());
988
          } else { 
989
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
990
          }
991
          break;
7393 anupam.sin 992
        case 7: // EDC_BANK
993
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
994
            this.edcBank = iprot.readString();
995
          } else { 
996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
997
          }
998
          break;
999
        case 8: // CASH_REFUND_AMOUNT
1000
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1001
            this.cashRefundAmount = iprot.readDouble();
1002
            setCashRefundAmountIsSet(true);
1003
          } else { 
1004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1005
          }
1006
          break;
1007
        case 9: // CARD_REFUND_AMOUNT
1008
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1009
            this.cardRefundAmount = iprot.readDouble();
1010
            setCardRefundAmountIsSet(true);
1011
          } else { 
1012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1013
          }
1014
          break;
7423 anupam.sin 1015
        case 10: // APPROVAL_CODE
1016
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1017
            this.approvalCode = iprot.readString();
1018
          } else { 
1019
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1020
          }
1021
          break;
7611 anupam.sin 1022
        case 11: // CARD_TYPE
1023
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1024
            this.cardType = iprot.readString();
1025
          } else { 
1026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1027
          }
1028
          break;
7386 anupam.sin 1029
        default:
1030
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1031
      }
1032
      iprot.readFieldEnd();
1033
    }
1034
    iprot.readStructEnd();
1035
    validate();
1036
  }
1037
 
1038
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1039
    validate();
1040
 
1041
    oprot.writeStructBegin(STRUCT_DESC);
1042
    oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
1043
    oprot.writeI64(this.orderId);
1044
    oprot.writeFieldEnd();
1045
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
1046
    oprot.writeI64(this.storeId);
1047
    oprot.writeFieldEnd();
1048
    oprot.writeFieldBegin(ADVANCE_AMOUNT_FIELD_DESC);
1049
    oprot.writeDouble(this.advanceAmount);
1050
    oprot.writeFieldEnd();
1051
    oprot.writeFieldBegin(CASH_AMOUNT_FIELD_DESC);
1052
    oprot.writeDouble(this.cashAmount);
1053
    oprot.writeFieldEnd();
1054
    oprot.writeFieldBegin(CARD_AMOUNT_FIELD_DESC);
1055
    oprot.writeDouble(this.cardAmount);
1056
    oprot.writeFieldEnd();
1057
    if (this.payStatus != null) {
1058
      oprot.writeFieldBegin(PAY_STATUS_FIELD_DESC);
1059
      oprot.writeI32(this.payStatus.getValue());
1060
      oprot.writeFieldEnd();
1061
    }
7393 anupam.sin 1062
    if (this.edcBank != null) {
1063
      oprot.writeFieldBegin(EDC_BANK_FIELD_DESC);
1064
      oprot.writeString(this.edcBank);
1065
      oprot.writeFieldEnd();
1066
    }
1067
    oprot.writeFieldBegin(CASH_REFUND_AMOUNT_FIELD_DESC);
1068
    oprot.writeDouble(this.cashRefundAmount);
1069
    oprot.writeFieldEnd();
1070
    oprot.writeFieldBegin(CARD_REFUND_AMOUNT_FIELD_DESC);
1071
    oprot.writeDouble(this.cardRefundAmount);
1072
    oprot.writeFieldEnd();
7423 anupam.sin 1073
    if (this.approvalCode != null) {
1074
      oprot.writeFieldBegin(APPROVAL_CODE_FIELD_DESC);
1075
      oprot.writeString(this.approvalCode);
1076
      oprot.writeFieldEnd();
1077
    }
7611 anupam.sin 1078
    if (this.cardType != null) {
1079
      oprot.writeFieldBegin(CARD_TYPE_FIELD_DESC);
1080
      oprot.writeString(this.cardType);
1081
      oprot.writeFieldEnd();
1082
    }
7386 anupam.sin 1083
    oprot.writeFieldStop();
1084
    oprot.writeStructEnd();
1085
  }
1086
 
1087
  @Override
1088
  public String toString() {
1089
    StringBuilder sb = new StringBuilder("StoreOrderDetail(");
1090
    boolean first = true;
1091
 
1092
    sb.append("orderId:");
1093
    sb.append(this.orderId);
1094
    first = false;
1095
    if (!first) sb.append(", ");
1096
    sb.append("storeId:");
1097
    sb.append(this.storeId);
1098
    first = false;
1099
    if (!first) sb.append(", ");
1100
    sb.append("advanceAmount:");
1101
    sb.append(this.advanceAmount);
1102
    first = false;
1103
    if (!first) sb.append(", ");
1104
    sb.append("cashAmount:");
1105
    sb.append(this.cashAmount);
1106
    first = false;
1107
    if (!first) sb.append(", ");
1108
    sb.append("cardAmount:");
1109
    sb.append(this.cardAmount);
1110
    first = false;
1111
    if (!first) sb.append(", ");
1112
    sb.append("payStatus:");
1113
    if (this.payStatus == null) {
1114
      sb.append("null");
1115
    } else {
1116
      sb.append(this.payStatus);
1117
    }
1118
    first = false;
7393 anupam.sin 1119
    if (!first) sb.append(", ");
1120
    sb.append("edcBank:");
1121
    if (this.edcBank == null) {
1122
      sb.append("null");
1123
    } else {
1124
      sb.append(this.edcBank);
1125
    }
1126
    first = false;
1127
    if (!first) sb.append(", ");
1128
    sb.append("cashRefundAmount:");
1129
    sb.append(this.cashRefundAmount);
1130
    first = false;
1131
    if (!first) sb.append(", ");
1132
    sb.append("cardRefundAmount:");
1133
    sb.append(this.cardRefundAmount);
1134
    first = false;
7423 anupam.sin 1135
    if (!first) sb.append(", ");
1136
    sb.append("approvalCode:");
1137
    if (this.approvalCode == null) {
1138
      sb.append("null");
1139
    } else {
1140
      sb.append(this.approvalCode);
1141
    }
1142
    first = false;
7611 anupam.sin 1143
    if (!first) sb.append(", ");
1144
    sb.append("cardType:");
1145
    if (this.cardType == null) {
1146
      sb.append("null");
1147
    } else {
1148
      sb.append(this.cardType);
1149
    }
1150
    first = false;
7386 anupam.sin 1151
    sb.append(")");
1152
    return sb.toString();
1153
  }
1154
 
1155
  public void validate() throws org.apache.thrift.TException {
1156
    // check for required fields
1157
  }
1158
 
1159
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1160
    try {
1161
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1162
    } catch (org.apache.thrift.TException te) {
1163
      throw new java.io.IOException(te);
1164
    }
1165
  }
1166
 
1167
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1168
    try {
1169
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1170
      __isset_bit_vector = new BitSet(1);
1171
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1172
    } catch (org.apache.thrift.TException te) {
1173
      throw new java.io.IOException(te);
1174
    }
1175
  }
1176
 
1177
}
1178