Subversion Repositories SmartDukaan

Rev

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

Rev 8717 Rev 9299
Line 94... Line 94...
94
  private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)69);
94
  private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)69);
95
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)70);
95
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)70);
96
  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)71);
96
  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)71);
97
  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)72);
97
  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)72);
98
  private static final org.apache.thrift.protocol.TField PRODUCT_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("productCondition", org.apache.thrift.protocol.TType.I32, (short)73);
98
  private static final org.apache.thrift.protocol.TField PRODUCT_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("productCondition", org.apache.thrift.protocol.TType.I32, (short)73);
-
 
99
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)74);
-
 
100
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)75);
99
 
101
 
100
  private long id; // required
102
  private long id; // required
101
  private long warehouse_id; // required
103
  private long warehouse_id; // required
102
  private List<LineItem> lineitems; // required
104
  private List<LineItem> lineitems; // required
103
  private long logistics_provider_id; // required
105
  private long logistics_provider_id; // required
Line 168... Line 170...
168
  private long freebieItemId; // required
170
  private long freebieItemId; // required
169
  private long source; // required
171
  private long source; // required
170
  private double advanceAmount; // required
172
  private double advanceAmount; // required
171
  private long storeId; // required
173
  private long storeId; // required
172
  private ProductCondition productCondition; // required
174
  private ProductCondition productCondition; // required
-
 
175
  private long dataProtectionInsurer; // required
-
 
176
  private double dataProtectionAmount; // required
173
 
177
 
174
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
178
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
175
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
179
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
176
    ID((short)1, "id"),
180
    ID((short)1, "id"),
177
    WAREHOUSE_ID((short)2, "warehouse_id"),
181
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 285... Line 289...
285
    STORE_ID((short)72, "storeId"),
289
    STORE_ID((short)72, "storeId"),
286
    /**
290
    /**
287
     * 
291
     * 
288
     * @see ProductCondition
292
     * @see ProductCondition
289
     */
293
     */
290
    PRODUCT_CONDITION((short)73, "productCondition");
294
    PRODUCT_CONDITION((short)73, "productCondition"),
-
 
295
    DATA_PROTECTION_INSURER((short)74, "dataProtectionInsurer"),
-
 
296
    DATA_PROTECTION_AMOUNT((short)75, "dataProtectionAmount");
291
 
297
 
292
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
298
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
293
 
299
 
294
    static {
300
    static {
295
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
301
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 446... Line 452...
446
          return ADVANCE_AMOUNT;
452
          return ADVANCE_AMOUNT;
447
        case 72: // STORE_ID
453
        case 72: // STORE_ID
448
          return STORE_ID;
454
          return STORE_ID;
449
        case 73: // PRODUCT_CONDITION
455
        case 73: // PRODUCT_CONDITION
450
          return PRODUCT_CONDITION;
456
          return PRODUCT_CONDITION;
-
 
457
        case 74: // DATA_PROTECTION_INSURER
-
 
458
          return DATA_PROTECTION_INSURER;
-
 
459
        case 75: // DATA_PROTECTION_AMOUNT
-
 
460
          return DATA_PROTECTION_AMOUNT;
451
        default:
461
        default:
452
          return null;
462
          return null;
453
      }
463
      }
454
    }
464
    }
455
 
465
 
Line 533... Line 543...
533
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
543
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
534
  private static final int __FREEBIEITEMID_ISSET_ID = 43;
544
  private static final int __FREEBIEITEMID_ISSET_ID = 43;
535
  private static final int __SOURCE_ISSET_ID = 44;
545
  private static final int __SOURCE_ISSET_ID = 44;
536
  private static final int __ADVANCEAMOUNT_ISSET_ID = 45;
546
  private static final int __ADVANCEAMOUNT_ISSET_ID = 45;
537
  private static final int __STOREID_ISSET_ID = 46;
547
  private static final int __STOREID_ISSET_ID = 46;
-
 
548
  private static final int __DATAPROTECTIONINSURER_ISSET_ID = 47;
-
 
549
  private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 48;
538
  private BitSet __isset_bit_vector = new BitSet(47);
550
  private BitSet __isset_bit_vector = new BitSet(49);
539
 
551
 
540
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
552
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
541
  static {
553
  static {
542
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
554
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
543
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
555
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 685... Line 697...
685
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
697
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
686
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
698
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
687
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
699
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
688
    tmpMap.put(_Fields.PRODUCT_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("productCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
700
    tmpMap.put(_Fields.PRODUCT_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("productCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
689
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ProductCondition.class)));
701
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ProductCondition.class)));
-
 
702
    tmpMap.put(_Fields.DATA_PROTECTION_INSURER, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
703
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
704
    tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
705
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
690
    metaDataMap = Collections.unmodifiableMap(tmpMap);
706
    metaDataMap = Collections.unmodifiableMap(tmpMap);
691
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
707
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
692
  }
708
  }
693
 
709
 
694
  public Order() {
710
  public Order() {
Line 758... Line 774...
758
    String guardianName,
774
    String guardianName,
759
    long freebieItemId,
775
    long freebieItemId,
760
    long source,
776
    long source,
761
    double advanceAmount,
777
    double advanceAmount,
762
    long storeId,
778
    long storeId,
763
    ProductCondition productCondition)
779
    ProductCondition productCondition,
-
 
780
    long dataProtectionInsurer,
-
 
781
    double dataProtectionAmount)
764
  {
782
  {
765
    this();
783
    this();
766
    this.id = id;
784
    this.id = id;
767
    setIdIsSet(true);
785
    setIdIsSet(true);
768
    this.warehouse_id = warehouse_id;
786
    this.warehouse_id = warehouse_id;
Line 867... Line 885...
867
    this.advanceAmount = advanceAmount;
885
    this.advanceAmount = advanceAmount;
868
    setAdvanceAmountIsSet(true);
886
    setAdvanceAmountIsSet(true);
869
    this.storeId = storeId;
887
    this.storeId = storeId;
870
    setStoreIdIsSet(true);
888
    setStoreIdIsSet(true);
871
    this.productCondition = productCondition;
889
    this.productCondition = productCondition;
-
 
890
    this.dataProtectionInsurer = dataProtectionInsurer;
-
 
891
    setDataProtectionInsurerIsSet(true);
-
 
892
    this.dataProtectionAmount = dataProtectionAmount;
-
 
893
    setDataProtectionAmountIsSet(true);
872
  }
894
  }
873
 
895
 
874
  /**
896
  /**
875
   * Performs a deep copy on <i>other</i>.
897
   * Performs a deep copy on <i>other</i>.
876
   */
898
   */
Line 1004... Line 1026...
1004
    this.advanceAmount = other.advanceAmount;
1026
    this.advanceAmount = other.advanceAmount;
1005
    this.storeId = other.storeId;
1027
    this.storeId = other.storeId;
1006
    if (other.isSetProductCondition()) {
1028
    if (other.isSetProductCondition()) {
1007
      this.productCondition = other.productCondition;
1029
      this.productCondition = other.productCondition;
1008
    }
1030
    }
-
 
1031
    this.dataProtectionInsurer = other.dataProtectionInsurer;
-
 
1032
    this.dataProtectionAmount = other.dataProtectionAmount;
1009
  }
1033
  }
1010
 
1034
 
1011
  public Order deepCopy() {
1035
  public Order deepCopy() {
1012
    return new Order(this);
1036
    return new Order(this);
1013
  }
1037
  }
Line 1132... Line 1156...
1132
    setAdvanceAmountIsSet(false);
1156
    setAdvanceAmountIsSet(false);
1133
    this.advanceAmount = 0.0;
1157
    this.advanceAmount = 0.0;
1134
    setStoreIdIsSet(false);
1158
    setStoreIdIsSet(false);
1135
    this.storeId = 0;
1159
    this.storeId = 0;
1136
    this.productCondition = null;
1160
    this.productCondition = null;
-
 
1161
    setDataProtectionInsurerIsSet(false);
-
 
1162
    this.dataProtectionInsurer = 0;
-
 
1163
    setDataProtectionAmountIsSet(false);
-
 
1164
    this.dataProtectionAmount = 0.0;
1137
  }
1165
  }
1138
 
1166
 
1139
  public long getId() {
1167
  public long getId() {
1140
    return this.id;
1168
    return this.id;
1141
  }
1169
  }
Line 2865... Line 2893...
2865
    if (!value) {
2893
    if (!value) {
2866
      this.productCondition = null;
2894
      this.productCondition = null;
2867
    }
2895
    }
2868
  }
2896
  }
2869
 
2897
 
-
 
2898
  public long getDataProtectionInsurer() {
-
 
2899
    return this.dataProtectionInsurer;
-
 
2900
  }
-
 
2901
 
-
 
2902
  public void setDataProtectionInsurer(long dataProtectionInsurer) {
-
 
2903
    this.dataProtectionInsurer = dataProtectionInsurer;
-
 
2904
    setDataProtectionInsurerIsSet(true);
-
 
2905
  }
-
 
2906
 
-
 
2907
  public void unsetDataProtectionInsurer() {
-
 
2908
    __isset_bit_vector.clear(__DATAPROTECTIONINSURER_ISSET_ID);
-
 
2909
  }
-
 
2910
 
-
 
2911
  /** Returns true if field dataProtectionInsurer is set (has been assigned a value) and false otherwise */
-
 
2912
  public boolean isSetDataProtectionInsurer() {
-
 
2913
    return __isset_bit_vector.get(__DATAPROTECTIONINSURER_ISSET_ID);
-
 
2914
  }
-
 
2915
 
-
 
2916
  public void setDataProtectionInsurerIsSet(boolean value) {
-
 
2917
    __isset_bit_vector.set(__DATAPROTECTIONINSURER_ISSET_ID, value);
-
 
2918
  }
-
 
2919
 
-
 
2920
  public double getDataProtectionAmount() {
-
 
2921
    return this.dataProtectionAmount;
-
 
2922
  }
-
 
2923
 
-
 
2924
  public void setDataProtectionAmount(double dataProtectionAmount) {
-
 
2925
    this.dataProtectionAmount = dataProtectionAmount;
-
 
2926
    setDataProtectionAmountIsSet(true);
-
 
2927
  }
-
 
2928
 
-
 
2929
  public void unsetDataProtectionAmount() {
-
 
2930
    __isset_bit_vector.clear(__DATAPROTECTIONAMOUNT_ISSET_ID);
-
 
2931
  }
-
 
2932
 
-
 
2933
  /** Returns true if field dataProtectionAmount is set (has been assigned a value) and false otherwise */
-
 
2934
  public boolean isSetDataProtectionAmount() {
-
 
2935
    return __isset_bit_vector.get(__DATAPROTECTIONAMOUNT_ISSET_ID);
-
 
2936
  }
-
 
2937
 
-
 
2938
  public void setDataProtectionAmountIsSet(boolean value) {
-
 
2939
    __isset_bit_vector.set(__DATAPROTECTIONAMOUNT_ISSET_ID, value);
-
 
2940
  }
-
 
2941
 
2870
  public void setFieldValue(_Fields field, Object value) {
2942
  public void setFieldValue(_Fields field, Object value) {
2871
    switch (field) {
2943
    switch (field) {
2872
    case ID:
2944
    case ID:
2873
      if (value == null) {
2945
      if (value == null) {
2874
        unsetId();
2946
        unsetId();
Line 3451... Line 3523...
3451
      } else {
3523
      } else {
3452
        setProductCondition((ProductCondition)value);
3524
        setProductCondition((ProductCondition)value);
3453
      }
3525
      }
3454
      break;
3526
      break;
3455
 
3527
 
-
 
3528
    case DATA_PROTECTION_INSURER:
-
 
3529
      if (value == null) {
-
 
3530
        unsetDataProtectionInsurer();
-
 
3531
      } else {
-
 
3532
        setDataProtectionInsurer((Long)value);
-
 
3533
      }
-
 
3534
      break;
-
 
3535
 
-
 
3536
    case DATA_PROTECTION_AMOUNT:
-
 
3537
      if (value == null) {
-
 
3538
        unsetDataProtectionAmount();
-
 
3539
      } else {
-
 
3540
        setDataProtectionAmount((Double)value);
-
 
3541
      }
-
 
3542
      break;
-
 
3543
 
3456
    }
3544
    }
3457
  }
3545
  }
3458
 
3546
 
3459
  public Object getFieldValue(_Fields field) {
3547
  public Object getFieldValue(_Fields field) {
3460
    switch (field) {
3548
    switch (field) {
Line 3675... Line 3763...
3675
      return Long.valueOf(getStoreId());
3763
      return Long.valueOf(getStoreId());
3676
 
3764
 
3677
    case PRODUCT_CONDITION:
3765
    case PRODUCT_CONDITION:
3678
      return getProductCondition();
3766
      return getProductCondition();
3679
 
3767
 
-
 
3768
    case DATA_PROTECTION_INSURER:
-
 
3769
      return Long.valueOf(getDataProtectionInsurer());
-
 
3770
 
-
 
3771
    case DATA_PROTECTION_AMOUNT:
-
 
3772
      return Double.valueOf(getDataProtectionAmount());
-
 
3773
 
3680
    }
3774
    }
3681
    throw new IllegalStateException();
3775
    throw new IllegalStateException();
3682
  }
3776
  }
3683
 
3777
 
3684
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3778
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3832... Line 3926...
3832
      return isSetAdvanceAmount();
3926
      return isSetAdvanceAmount();
3833
    case STORE_ID:
3927
    case STORE_ID:
3834
      return isSetStoreId();
3928
      return isSetStoreId();
3835
    case PRODUCT_CONDITION:
3929
    case PRODUCT_CONDITION:
3836
      return isSetProductCondition();
3930
      return isSetProductCondition();
-
 
3931
    case DATA_PROTECTION_INSURER:
-
 
3932
      return isSetDataProtectionInsurer();
-
 
3933
    case DATA_PROTECTION_AMOUNT:
-
 
3934
      return isSetDataProtectionAmount();
3837
    }
3935
    }
3838
    throw new IllegalStateException();
3936
    throw new IllegalStateException();
3839
  }
3937
  }
3840
 
3938
 
3841
  @Override
3939
  @Override
Line 4506... Line 4604...
4506
        return false;
4604
        return false;
4507
      if (!this.productCondition.equals(that.productCondition))
4605
      if (!this.productCondition.equals(that.productCondition))
4508
        return false;
4606
        return false;
4509
    }
4607
    }
4510
 
4608
 
-
 
4609
    boolean this_present_dataProtectionInsurer = true;
-
 
4610
    boolean that_present_dataProtectionInsurer = true;
-
 
4611
    if (this_present_dataProtectionInsurer || that_present_dataProtectionInsurer) {
-
 
4612
      if (!(this_present_dataProtectionInsurer && that_present_dataProtectionInsurer))
-
 
4613
        return false;
-
 
4614
      if (this.dataProtectionInsurer != that.dataProtectionInsurer)
-
 
4615
        return false;
-
 
4616
    }
-
 
4617
 
-
 
4618
    boolean this_present_dataProtectionAmount = true;
-
 
4619
    boolean that_present_dataProtectionAmount = true;
-
 
4620
    if (this_present_dataProtectionAmount || that_present_dataProtectionAmount) {
-
 
4621
      if (!(this_present_dataProtectionAmount && that_present_dataProtectionAmount))
-
 
4622
        return false;
-
 
4623
      if (this.dataProtectionAmount != that.dataProtectionAmount)
-
 
4624
        return false;
-
 
4625
    }
-
 
4626
 
4511
    return true;
4627
    return true;
4512
  }
4628
  }
4513
 
4629
 
4514
  @Override
4630
  @Override
4515
  public int hashCode() {
4631
  public int hashCode() {
Line 5252... Line 5368...
5252
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productCondition, typedOther.productCondition);
5368
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productCondition, typedOther.productCondition);
5253
      if (lastComparison != 0) {
5369
      if (lastComparison != 0) {
5254
        return lastComparison;
5370
        return lastComparison;
5255
      }
5371
      }
5256
    }
5372
    }
-
 
5373
    lastComparison = Boolean.valueOf(isSetDataProtectionInsurer()).compareTo(typedOther.isSetDataProtectionInsurer());
-
 
5374
    if (lastComparison != 0) {
-
 
5375
      return lastComparison;
-
 
5376
    }
-
 
5377
    if (isSetDataProtectionInsurer()) {
-
 
5378
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionInsurer, typedOther.dataProtectionInsurer);
-
 
5379
      if (lastComparison != 0) {
-
 
5380
        return lastComparison;
-
 
5381
      }
-
 
5382
    }
-
 
5383
    lastComparison = Boolean.valueOf(isSetDataProtectionAmount()).compareTo(typedOther.isSetDataProtectionAmount());
-
 
5384
    if (lastComparison != 0) {
-
 
5385
      return lastComparison;
-
 
5386
    }
-
 
5387
    if (isSetDataProtectionAmount()) {
-
 
5388
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionAmount, typedOther.dataProtectionAmount);
-
 
5389
      if (lastComparison != 0) {
-
 
5390
        return lastComparison;
-
 
5391
      }
-
 
5392
    }
5257
    return 0;
5393
    return 0;
5258
  }
5394
  }
5259
 
5395
 
5260
  public _Fields fieldForId(int fieldId) {
5396
  public _Fields fieldForId(int fieldId) {
5261
    return _Fields.findByThriftId(fieldId);
5397
    return _Fields.findByThriftId(fieldId);
Line 5838... Line 5974...
5838
            this.productCondition = ProductCondition.findByValue(iprot.readI32());
5974
            this.productCondition = ProductCondition.findByValue(iprot.readI32());
5839
          } else { 
5975
          } else { 
5840
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5841
          }
5977
          }
5842
          break;
5978
          break;
-
 
5979
        case 74: // DATA_PROTECTION_INSURER
-
 
5980
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5981
            this.dataProtectionInsurer = iprot.readI64();
-
 
5982
            setDataProtectionInsurerIsSet(true);
-
 
5983
          } else { 
-
 
5984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5985
          }
-
 
5986
          break;
-
 
5987
        case 75: // DATA_PROTECTION_AMOUNT
-
 
5988
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
5989
            this.dataProtectionAmount = iprot.readDouble();
-
 
5990
            setDataProtectionAmountIsSet(true);
-
 
5991
          } else { 
-
 
5992
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5993
          }
-
 
5994
          break;
5843
        default:
5995
        default:
5844
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5996
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5845
      }
5997
      }
5846
      iprot.readFieldEnd();
5998
      iprot.readFieldEnd();
5847
    }
5999
    }
Line 6143... Line 6295...
6143
    if (this.productCondition != null) {
6295
    if (this.productCondition != null) {
6144
      oprot.writeFieldBegin(PRODUCT_CONDITION_FIELD_DESC);
6296
      oprot.writeFieldBegin(PRODUCT_CONDITION_FIELD_DESC);
6145
      oprot.writeI32(this.productCondition.getValue());
6297
      oprot.writeI32(this.productCondition.getValue());
6146
      oprot.writeFieldEnd();
6298
      oprot.writeFieldEnd();
6147
    }
6299
    }
-
 
6300
    oprot.writeFieldBegin(DATA_PROTECTION_INSURER_FIELD_DESC);
-
 
6301
    oprot.writeI64(this.dataProtectionInsurer);
-
 
6302
    oprot.writeFieldEnd();
-
 
6303
    oprot.writeFieldBegin(DATA_PROTECTION_AMOUNT_FIELD_DESC);
-
 
6304
    oprot.writeDouble(this.dataProtectionAmount);
-
 
6305
    oprot.writeFieldEnd();
6148
    oprot.writeFieldStop();
6306
    oprot.writeFieldStop();
6149
    oprot.writeStructEnd();
6307
    oprot.writeStructEnd();
6150
  }
6308
  }
6151
 
6309
 
6152
  @Override
6310
  @Override
Line 6561... Line 6719...
6561
      sb.append("null");
6719
      sb.append("null");
6562
    } else {
6720
    } else {
6563
      sb.append(this.productCondition);
6721
      sb.append(this.productCondition);
6564
    }
6722
    }
6565
    first = false;
6723
    first = false;
-
 
6724
    if (!first) sb.append(", ");
-
 
6725
    sb.append("dataProtectionInsurer:");
-
 
6726
    sb.append(this.dataProtectionInsurer);
-
 
6727
    first = false;
-
 
6728
    if (!first) sb.append(", ");
-
 
6729
    sb.append("dataProtectionAmount:");
-
 
6730
    sb.append(this.dataProtectionAmount);
-
 
6731
    first = false;
6566
    sb.append(")");
6732
    sb.append(")");
6567
    return sb.toString();
6733
    return sb.toString();
6568
  }
6734
  }
6569
 
6735
 
6570
  public void validate() throws org.apache.thrift.TException {
6736
  public void validate() throws org.apache.thrift.TException {