Subversion Repositories SmartDukaan

Rev

Rev 6726 | Rev 7190 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6726 Rev 6903
Line 85... Line 85...
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
88
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
88
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
89
  private static final org.apache.thrift.protocol.TField COURIER_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("courier_delivery_time", org.apache.thrift.protocol.TType.I64, (short)64);
89
  private static final org.apache.thrift.protocol.TField COURIER_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("courier_delivery_time", org.apache.thrift.protocol.TType.I64, (short)64);
-
 
90
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)65);
-
 
91
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)66);
-
 
92
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)67);
-
 
93
  private static final org.apache.thrift.protocol.TField GUARDIAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("guardianName", org.apache.thrift.protocol.TType.STRING, (short)68);
90
 
94
 
91
  private long id; // required
95
  private long id; // required
92
  private long warehouse_id; // required
96
  private long warehouse_id; // required
93
  private List<LineItem> lineitems; // required
97
  private List<LineItem> lineitems; // required
94
  private long logistics_provider_id; // required
98
  private long logistics_provider_id; // required
Line 150... Line 154...
150
  private long pickupStoreId; // required
154
  private long pickupStoreId; // required
151
  private boolean logisticsCod; // required
155
  private boolean logisticsCod; // required
152
  private long gvAmount; // required
156
  private long gvAmount; // required
153
  private boolean otg; // required
157
  private boolean otg; // required
154
  private long courier_delivery_time; // required
158
  private long courier_delivery_time; // required
-
 
159
  private long insurer; // required
-
 
160
  private double insuranceAmount; // required
-
 
161
  private String dob; // required
-
 
162
  private String guardianName; // required
155
 
163
 
156
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
164
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
157
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
165
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
158
    ID((short)1, "id"),
166
    ID((short)1, "id"),
159
    WAREHOUSE_ID((short)2, "warehouse_id"),
167
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 254... Line 262...
254
    ORDER_TYPE((short)59, "orderType"),
262
    ORDER_TYPE((short)59, "orderType"),
255
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
263
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
256
    LOGISTICS_COD((short)61, "logisticsCod"),
264
    LOGISTICS_COD((short)61, "logisticsCod"),
257
    GV_AMOUNT((short)62, "gvAmount"),
265
    GV_AMOUNT((short)62, "gvAmount"),
258
    OTG((short)63, "otg"),
266
    OTG((short)63, "otg"),
259
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time");
267
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time"),
-
 
268
    INSURER((short)65, "insurer"),
-
 
269
    INSURANCE_AMOUNT((short)66, "insuranceAmount"),
-
 
270
    DOB((short)67, "dob"),
-
 
271
    GUARDIAN_NAME((short)68, "guardianName");
260
 
272
 
261
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
273
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
262
 
274
 
263
    static {
275
    static {
264
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
276
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 397... Line 409...
397
          return GV_AMOUNT;
409
          return GV_AMOUNT;
398
        case 63: // OTG
410
        case 63: // OTG
399
          return OTG;
411
          return OTG;
400
        case 64: // COURIER_DELIVERY_TIME
412
        case 64: // COURIER_DELIVERY_TIME
401
          return COURIER_DELIVERY_TIME;
413
          return COURIER_DELIVERY_TIME;
-
 
414
        case 65: // INSURER
-
 
415
          return INSURER;
-
 
416
        case 66: // INSURANCE_AMOUNT
-
 
417
          return INSURANCE_AMOUNT;
-
 
418
        case 67: // DOB
-
 
419
          return DOB;
-
 
420
        case 68: // GUARDIAN_NAME
-
 
421
          return GUARDIAN_NAME;
402
        default:
422
        default:
403
          return null;
423
          return null;
404
      }
424
      }
405
    }
425
    }
406
 
426
 
Line 478... Line 498...
478
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
498
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
479
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
499
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
480
  private static final int __GVAMOUNT_ISSET_ID = 38;
500
  private static final int __GVAMOUNT_ISSET_ID = 38;
481
  private static final int __OTG_ISSET_ID = 39;
501
  private static final int __OTG_ISSET_ID = 39;
482
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
502
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
-
 
503
  private static final int __INSURER_ISSET_ID = 41;
-
 
504
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
483
  private BitSet __isset_bit_vector = new BitSet(41);
505
  private BitSet __isset_bit_vector = new BitSet(43);
484
 
506
 
485
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
507
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
486
  static {
508
  static {
487
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
509
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
488
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
510
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 612... Line 634...
612
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
634
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
613
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
635
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
614
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
636
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
615
    tmpMap.put(_Fields.COURIER_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("courier_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
637
    tmpMap.put(_Fields.COURIER_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("courier_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
616
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
638
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
639
    tmpMap.put(_Fields.INSURER, new org.apache.thrift.meta_data.FieldMetaData("insurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
640
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
641
    tmpMap.put(_Fields.INSURANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("insuranceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
642
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
643
    tmpMap.put(_Fields.DOB, new org.apache.thrift.meta_data.FieldMetaData("dob", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
644
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
645
    tmpMap.put(_Fields.GUARDIAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("guardianName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
646
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
617
    metaDataMap = Collections.unmodifiableMap(tmpMap);
647
    metaDataMap = Collections.unmodifiableMap(tmpMap);
618
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
648
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
619
  }
649
  }
620
 
650
 
621
  public Order() {
651
  public Order() {
Line 676... Line 706...
676
    OrderType orderType,
706
    OrderType orderType,
677
    long pickupStoreId,
707
    long pickupStoreId,
678
    boolean logisticsCod,
708
    boolean logisticsCod,
679
    long gvAmount,
709
    long gvAmount,
680
    boolean otg,
710
    boolean otg,
681
    long courier_delivery_time)
711
    long courier_delivery_time,
-
 
712
    long insurer,
-
 
713
    double insuranceAmount,
-
 
714
    String dob,
-
 
715
    String guardianName)
682
  {
716
  {
683
    this();
717
    this();
684
    this.id = id;
718
    this.id = id;
685
    setIdIsSet(true);
719
    setIdIsSet(true);
686
    this.warehouse_id = warehouse_id;
720
    this.warehouse_id = warehouse_id;
Line 770... Line 804...
770
    setGvAmountIsSet(true);
804
    setGvAmountIsSet(true);
771
    this.otg = otg;
805
    this.otg = otg;
772
    setOtgIsSet(true);
806
    setOtgIsSet(true);
773
    this.courier_delivery_time = courier_delivery_time;
807
    this.courier_delivery_time = courier_delivery_time;
774
    setCourier_delivery_timeIsSet(true);
808
    setCourier_delivery_timeIsSet(true);
-
 
809
    this.insurer = insurer;
-
 
810
    setInsurerIsSet(true);
-
 
811
    this.insuranceAmount = insuranceAmount;
-
 
812
    setInsuranceAmountIsSet(true);
-
 
813
    this.dob = dob;
-
 
814
    this.guardianName = guardianName;
775
  }
815
  }
776
 
816
 
777
  /**
817
  /**
778
   * Performs a deep copy on <i>other</i>.
818
   * Performs a deep copy on <i>other</i>.
779
   */
819
   */
Line 892... Line 932...
892
    this.pickupStoreId = other.pickupStoreId;
932
    this.pickupStoreId = other.pickupStoreId;
893
    this.logisticsCod = other.logisticsCod;
933
    this.logisticsCod = other.logisticsCod;
894
    this.gvAmount = other.gvAmount;
934
    this.gvAmount = other.gvAmount;
895
    this.otg = other.otg;
935
    this.otg = other.otg;
896
    this.courier_delivery_time = other.courier_delivery_time;
936
    this.courier_delivery_time = other.courier_delivery_time;
-
 
937
    this.insurer = other.insurer;
-
 
938
    this.insuranceAmount = other.insuranceAmount;
-
 
939
    if (other.isSetDob()) {
-
 
940
      this.dob = other.dob;
-
 
941
    }
-
 
942
    if (other.isSetGuardianName()) {
-
 
943
      this.guardianName = other.guardianName;
-
 
944
    }
897
  }
945
  }
898
 
946
 
899
  public Order deepCopy() {
947
  public Order deepCopy() {
900
    return new Order(this);
948
    return new Order(this);
901
  }
949
  }
Line 1005... Line 1053...
1005
    this.gvAmount = 0;
1053
    this.gvAmount = 0;
1006
    setOtgIsSet(false);
1054
    setOtgIsSet(false);
1007
    this.otg = false;
1055
    this.otg = false;
1008
    setCourier_delivery_timeIsSet(false);
1056
    setCourier_delivery_timeIsSet(false);
1009
    this.courier_delivery_time = 0;
1057
    this.courier_delivery_time = 0;
-
 
1058
    setInsurerIsSet(false);
-
 
1059
    this.insurer = 0;
-
 
1060
    setInsuranceAmountIsSet(false);
-
 
1061
    this.insuranceAmount = 0.0;
-
 
1062
    this.dob = null;
-
 
1063
    this.guardianName = null;
1010
  }
1064
  }
1011
 
1065
 
1012
  public long getId() {
1066
  public long getId() {
1013
    return this.id;
1067
    return this.id;
1014
  }
1068
  }
Line 2529... Line 2583...
2529
 
2583
 
2530
  public void setCourier_delivery_timeIsSet(boolean value) {
2584
  public void setCourier_delivery_timeIsSet(boolean value) {
2531
    __isset_bit_vector.set(__COURIER_DELIVERY_TIME_ISSET_ID, value);
2585
    __isset_bit_vector.set(__COURIER_DELIVERY_TIME_ISSET_ID, value);
2532
  }
2586
  }
2533
 
2587
 
-
 
2588
  public long getInsurer() {
-
 
2589
    return this.insurer;
-
 
2590
  }
-
 
2591
 
-
 
2592
  public void setInsurer(long insurer) {
-
 
2593
    this.insurer = insurer;
-
 
2594
    setInsurerIsSet(true);
-
 
2595
  }
-
 
2596
 
-
 
2597
  public void unsetInsurer() {
-
 
2598
    __isset_bit_vector.clear(__INSURER_ISSET_ID);
-
 
2599
  }
-
 
2600
 
-
 
2601
  /** Returns true if field insurer is set (has been assigned a value) and false otherwise */
-
 
2602
  public boolean isSetInsurer() {
-
 
2603
    return __isset_bit_vector.get(__INSURER_ISSET_ID);
-
 
2604
  }
-
 
2605
 
-
 
2606
  public void setInsurerIsSet(boolean value) {
-
 
2607
    __isset_bit_vector.set(__INSURER_ISSET_ID, value);
-
 
2608
  }
-
 
2609
 
-
 
2610
  public double getInsuranceAmount() {
-
 
2611
    return this.insuranceAmount;
-
 
2612
  }
-
 
2613
 
-
 
2614
  public void setInsuranceAmount(double insuranceAmount) {
-
 
2615
    this.insuranceAmount = insuranceAmount;
-
 
2616
    setInsuranceAmountIsSet(true);
-
 
2617
  }
-
 
2618
 
-
 
2619
  public void unsetInsuranceAmount() {
-
 
2620
    __isset_bit_vector.clear(__INSURANCEAMOUNT_ISSET_ID);
-
 
2621
  }
-
 
2622
 
-
 
2623
  /** Returns true if field insuranceAmount is set (has been assigned a value) and false otherwise */
-
 
2624
  public boolean isSetInsuranceAmount() {
-
 
2625
    return __isset_bit_vector.get(__INSURANCEAMOUNT_ISSET_ID);
-
 
2626
  }
-
 
2627
 
-
 
2628
  public void setInsuranceAmountIsSet(boolean value) {
-
 
2629
    __isset_bit_vector.set(__INSURANCEAMOUNT_ISSET_ID, value);
-
 
2630
  }
-
 
2631
 
-
 
2632
  public String getDob() {
-
 
2633
    return this.dob;
-
 
2634
  }
-
 
2635
 
-
 
2636
  public void setDob(String dob) {
-
 
2637
    this.dob = dob;
-
 
2638
  }
-
 
2639
 
-
 
2640
  public void unsetDob() {
-
 
2641
    this.dob = null;
-
 
2642
  }
-
 
2643
 
-
 
2644
  /** Returns true if field dob is set (has been assigned a value) and false otherwise */
-
 
2645
  public boolean isSetDob() {
-
 
2646
    return this.dob != null;
-
 
2647
  }
-
 
2648
 
-
 
2649
  public void setDobIsSet(boolean value) {
-
 
2650
    if (!value) {
-
 
2651
      this.dob = null;
-
 
2652
    }
-
 
2653
  }
-
 
2654
 
-
 
2655
  public String getGuardianName() {
-
 
2656
    return this.guardianName;
-
 
2657
  }
-
 
2658
 
-
 
2659
  public void setGuardianName(String guardianName) {
-
 
2660
    this.guardianName = guardianName;
-
 
2661
  }
-
 
2662
 
-
 
2663
  public void unsetGuardianName() {
-
 
2664
    this.guardianName = null;
-
 
2665
  }
-
 
2666
 
-
 
2667
  /** Returns true if field guardianName is set (has been assigned a value) and false otherwise */
-
 
2668
  public boolean isSetGuardianName() {
-
 
2669
    return this.guardianName != null;
-
 
2670
  }
-
 
2671
 
-
 
2672
  public void setGuardianNameIsSet(boolean value) {
-
 
2673
    if (!value) {
-
 
2674
      this.guardianName = null;
-
 
2675
    }
-
 
2676
  }
-
 
2677
 
2534
  public void setFieldValue(_Fields field, Object value) {
2678
  public void setFieldValue(_Fields field, Object value) {
2535
    switch (field) {
2679
    switch (field) {
2536
    case ID:
2680
    case ID:
2537
      if (value == null) {
2681
      if (value == null) {
2538
        unsetId();
2682
        unsetId();
Line 3043... Line 3187...
3043
      } else {
3187
      } else {
3044
        setCourier_delivery_time((Long)value);
3188
        setCourier_delivery_time((Long)value);
3045
      }
3189
      }
3046
      break;
3190
      break;
3047
 
3191
 
-
 
3192
    case INSURER:
-
 
3193
      if (value == null) {
-
 
3194
        unsetInsurer();
-
 
3195
      } else {
-
 
3196
        setInsurer((Long)value);
-
 
3197
      }
-
 
3198
      break;
-
 
3199
 
-
 
3200
    case INSURANCE_AMOUNT:
-
 
3201
      if (value == null) {
-
 
3202
        unsetInsuranceAmount();
-
 
3203
      } else {
-
 
3204
        setInsuranceAmount((Double)value);
-
 
3205
      }
-
 
3206
      break;
-
 
3207
 
-
 
3208
    case DOB:
-
 
3209
      if (value == null) {
-
 
3210
        unsetDob();
-
 
3211
      } else {
-
 
3212
        setDob((String)value);
-
 
3213
      }
-
 
3214
      break;
-
 
3215
 
-
 
3216
    case GUARDIAN_NAME:
-
 
3217
      if (value == null) {
-
 
3218
        unsetGuardianName();
-
 
3219
      } else {
-
 
3220
        setGuardianName((String)value);
-
 
3221
      }
-
 
3222
      break;
-
 
3223
 
3048
    }
3224
    }
3049
  }
3225
  }
3050
 
3226
 
3051
  public Object getFieldValue(_Fields field) {
3227
  public Object getFieldValue(_Fields field) {
3052
    switch (field) {
3228
    switch (field) {
Line 3240... Line 3416...
3240
      return Boolean.valueOf(isOtg());
3416
      return Boolean.valueOf(isOtg());
3241
 
3417
 
3242
    case COURIER_DELIVERY_TIME:
3418
    case COURIER_DELIVERY_TIME:
3243
      return Long.valueOf(getCourier_delivery_time());
3419
      return Long.valueOf(getCourier_delivery_time());
3244
 
3420
 
-
 
3421
    case INSURER:
-
 
3422
      return Long.valueOf(getInsurer());
-
 
3423
 
-
 
3424
    case INSURANCE_AMOUNT:
-
 
3425
      return Double.valueOf(getInsuranceAmount());
-
 
3426
 
-
 
3427
    case DOB:
-
 
3428
      return getDob();
-
 
3429
 
-
 
3430
    case GUARDIAN_NAME:
-
 
3431
      return getGuardianName();
-
 
3432
 
3245
    }
3433
    }
3246
    throw new IllegalStateException();
3434
    throw new IllegalStateException();
3247
  }
3435
  }
3248
 
3436
 
3249
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3437
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3379... Line 3567...
3379
      return isSetGvAmount();
3567
      return isSetGvAmount();
3380
    case OTG:
3568
    case OTG:
3381
      return isSetOtg();
3569
      return isSetOtg();
3382
    case COURIER_DELIVERY_TIME:
3570
    case COURIER_DELIVERY_TIME:
3383
      return isSetCourier_delivery_time();
3571
      return isSetCourier_delivery_time();
-
 
3572
    case INSURER:
-
 
3573
      return isSetInsurer();
-
 
3574
    case INSURANCE_AMOUNT:
-
 
3575
      return isSetInsuranceAmount();
-
 
3576
    case DOB:
-
 
3577
      return isSetDob();
-
 
3578
    case GUARDIAN_NAME:
-
 
3579
      return isSetGuardianName();
3384
    }
3580
    }
3385
    throw new IllegalStateException();
3581
    throw new IllegalStateException();
3386
  }
3582
  }
3387
 
3583
 
3388
  @Override
3584
  @Override
Line 3972... Line 4168...
3972
        return false;
4168
        return false;
3973
      if (this.courier_delivery_time != that.courier_delivery_time)
4169
      if (this.courier_delivery_time != that.courier_delivery_time)
3974
        return false;
4170
        return false;
3975
    }
4171
    }
3976
 
4172
 
-
 
4173
    boolean this_present_insurer = true;
-
 
4174
    boolean that_present_insurer = true;
-
 
4175
    if (this_present_insurer || that_present_insurer) {
-
 
4176
      if (!(this_present_insurer && that_present_insurer))
-
 
4177
        return false;
-
 
4178
      if (this.insurer != that.insurer)
-
 
4179
        return false;
-
 
4180
    }
-
 
4181
 
-
 
4182
    boolean this_present_insuranceAmount = true;
-
 
4183
    boolean that_present_insuranceAmount = true;
-
 
4184
    if (this_present_insuranceAmount || that_present_insuranceAmount) {
-
 
4185
      if (!(this_present_insuranceAmount && that_present_insuranceAmount))
-
 
4186
        return false;
-
 
4187
      if (this.insuranceAmount != that.insuranceAmount)
-
 
4188
        return false;
-
 
4189
    }
-
 
4190
 
-
 
4191
    boolean this_present_dob = true && this.isSetDob();
-
 
4192
    boolean that_present_dob = true && that.isSetDob();
-
 
4193
    if (this_present_dob || that_present_dob) {
-
 
4194
      if (!(this_present_dob && that_present_dob))
-
 
4195
        return false;
-
 
4196
      if (!this.dob.equals(that.dob))
-
 
4197
        return false;
-
 
4198
    }
-
 
4199
 
-
 
4200
    boolean this_present_guardianName = true && this.isSetGuardianName();
-
 
4201
    boolean that_present_guardianName = true && that.isSetGuardianName();
-
 
4202
    if (this_present_guardianName || that_present_guardianName) {
-
 
4203
      if (!(this_present_guardianName && that_present_guardianName))
-
 
4204
        return false;
-
 
4205
      if (!this.guardianName.equals(that.guardianName))
-
 
4206
        return false;
-
 
4207
    }
-
 
4208
 
3977
    return true;
4209
    return true;
3978
  }
4210
  }
3979
 
4211
 
3980
  @Override
4212
  @Override
3981
  public int hashCode() {
4213
  public int hashCode() {
Line 4628... Line 4860...
4628
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courier_delivery_time, typedOther.courier_delivery_time);
4860
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courier_delivery_time, typedOther.courier_delivery_time);
4629
      if (lastComparison != 0) {
4861
      if (lastComparison != 0) {
4630
        return lastComparison;
4862
        return lastComparison;
4631
      }
4863
      }
4632
    }
4864
    }
-
 
4865
    lastComparison = Boolean.valueOf(isSetInsurer()).compareTo(typedOther.isSetInsurer());
-
 
4866
    if (lastComparison != 0) {
-
 
4867
      return lastComparison;
-
 
4868
    }
-
 
4869
    if (isSetInsurer()) {
-
 
4870
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurer, typedOther.insurer);
-
 
4871
      if (lastComparison != 0) {
-
 
4872
        return lastComparison;
-
 
4873
      }
-
 
4874
    }
-
 
4875
    lastComparison = Boolean.valueOf(isSetInsuranceAmount()).compareTo(typedOther.isSetInsuranceAmount());
-
 
4876
    if (lastComparison != 0) {
-
 
4877
      return lastComparison;
-
 
4878
    }
-
 
4879
    if (isSetInsuranceAmount()) {
-
 
4880
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insuranceAmount, typedOther.insuranceAmount);
-
 
4881
      if (lastComparison != 0) {
-
 
4882
        return lastComparison;
-
 
4883
      }
-
 
4884
    }
-
 
4885
    lastComparison = Boolean.valueOf(isSetDob()).compareTo(typedOther.isSetDob());
-
 
4886
    if (lastComparison != 0) {
-
 
4887
      return lastComparison;
-
 
4888
    }
-
 
4889
    if (isSetDob()) {
-
 
4890
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dob, typedOther.dob);
-
 
4891
      if (lastComparison != 0) {
-
 
4892
        return lastComparison;
-
 
4893
      }
-
 
4894
    }
-
 
4895
    lastComparison = Boolean.valueOf(isSetGuardianName()).compareTo(typedOther.isSetGuardianName());
-
 
4896
    if (lastComparison != 0) {
-
 
4897
      return lastComparison;
-
 
4898
    }
-
 
4899
    if (isSetGuardianName()) {
-
 
4900
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guardianName, typedOther.guardianName);
-
 
4901
      if (lastComparison != 0) {
-
 
4902
        return lastComparison;
-
 
4903
      }
-
 
4904
    }
4633
    return 0;
4905
    return 0;
4634
  }
4906
  }
4635
 
4907
 
4636
  public _Fields fieldForId(int fieldId) {
4908
  public _Fields fieldForId(int fieldId) {
4637
    return _Fields.findByThriftId(fieldId);
4909
    return _Fields.findByThriftId(fieldId);
Line 5145... Line 5417...
5145
            setCourier_delivery_timeIsSet(true);
5417
            setCourier_delivery_timeIsSet(true);
5146
          } else { 
5418
          } else { 
5147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5419
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5148
          }
5420
          }
5149
          break;
5421
          break;
-
 
5422
        case 65: // INSURER
-
 
5423
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5424
            this.insurer = iprot.readI64();
-
 
5425
            setInsurerIsSet(true);
-
 
5426
          } else { 
-
 
5427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5428
          }
-
 
5429
          break;
-
 
5430
        case 66: // INSURANCE_AMOUNT
-
 
5431
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
5432
            this.insuranceAmount = iprot.readDouble();
-
 
5433
            setInsuranceAmountIsSet(true);
-
 
5434
          } else { 
-
 
5435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5436
          }
-
 
5437
          break;
-
 
5438
        case 67: // DOB
-
 
5439
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
5440
            this.dob = iprot.readString();
-
 
5441
          } else { 
-
 
5442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5443
          }
-
 
5444
          break;
-
 
5445
        case 68: // GUARDIAN_NAME
-
 
5446
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
5447
            this.guardianName = iprot.readString();
-
 
5448
          } else { 
-
 
5449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5450
          }
-
 
5451
          break;
5150
        default:
5452
        default:
5151
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5453
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5152
      }
5454
      }
5153
      iprot.readFieldEnd();
5455
      iprot.readFieldEnd();
5154
    }
5456
    }
Line 5417... Line 5719...
5417
    oprot.writeBool(this.otg);
5719
    oprot.writeBool(this.otg);
5418
    oprot.writeFieldEnd();
5720
    oprot.writeFieldEnd();
5419
    oprot.writeFieldBegin(COURIER_DELIVERY_TIME_FIELD_DESC);
5721
    oprot.writeFieldBegin(COURIER_DELIVERY_TIME_FIELD_DESC);
5420
    oprot.writeI64(this.courier_delivery_time);
5722
    oprot.writeI64(this.courier_delivery_time);
5421
    oprot.writeFieldEnd();
5723
    oprot.writeFieldEnd();
-
 
5724
    oprot.writeFieldBegin(INSURER_FIELD_DESC);
-
 
5725
    oprot.writeI64(this.insurer);
-
 
5726
    oprot.writeFieldEnd();
-
 
5727
    oprot.writeFieldBegin(INSURANCE_AMOUNT_FIELD_DESC);
-
 
5728
    oprot.writeDouble(this.insuranceAmount);
-
 
5729
    oprot.writeFieldEnd();
-
 
5730
    if (this.dob != null) {
-
 
5731
      oprot.writeFieldBegin(DOB_FIELD_DESC);
-
 
5732
      oprot.writeString(this.dob);
-
 
5733
      oprot.writeFieldEnd();
-
 
5734
    }
-
 
5735
    if (this.guardianName != null) {
-
 
5736
      oprot.writeFieldBegin(GUARDIAN_NAME_FIELD_DESC);
-
 
5737
      oprot.writeString(this.guardianName);
-
 
5738
      oprot.writeFieldEnd();
-
 
5739
    }
5422
    oprot.writeFieldStop();
5740
    oprot.writeFieldStop();
5423
    oprot.writeStructEnd();
5741
    oprot.writeStructEnd();
5424
  }
5742
  }
5425
 
5743
 
5426
  @Override
5744
  @Override
Line 5787... Line 6105...
5787
    first = false;
6105
    first = false;
5788
    if (!first) sb.append(", ");
6106
    if (!first) sb.append(", ");
5789
    sb.append("courier_delivery_time:");
6107
    sb.append("courier_delivery_time:");
5790
    sb.append(this.courier_delivery_time);
6108
    sb.append(this.courier_delivery_time);
5791
    first = false;
6109
    first = false;
-
 
6110
    if (!first) sb.append(", ");
-
 
6111
    sb.append("insurer:");
-
 
6112
    sb.append(this.insurer);
-
 
6113
    first = false;
-
 
6114
    if (!first) sb.append(", ");
-
 
6115
    sb.append("insuranceAmount:");
-
 
6116
    sb.append(this.insuranceAmount);
-
 
6117
    first = false;
-
 
6118
    if (!first) sb.append(", ");
-
 
6119
    sb.append("dob:");
-
 
6120
    if (this.dob == null) {
-
 
6121
      sb.append("null");
-
 
6122
    } else {
-
 
6123
      sb.append(this.dob);
-
 
6124
    }
-
 
6125
    first = false;
-
 
6126
    if (!first) sb.append(", ");
-
 
6127
    sb.append("guardianName:");
-
 
6128
    if (this.guardianName == null) {
-
 
6129
      sb.append("null");
-
 
6130
    } else {
-
 
6131
      sb.append(this.guardianName);
-
 
6132
    }
-
 
6133
    first = false;
5792
    sb.append(")");
6134
    sb.append(")");
5793
    return sb.toString();
6135
    return sb.toString();
5794
  }
6136
  }
5795
 
6137
 
5796
  public void validate() throws org.apache.thrift.TException {
6138
  public void validate() throws org.apache.thrift.TException {