Subversion Repositories SmartDukaan

Rev

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

Rev 6903 Rev 9299
Line 33... Line 33...
33
  private static final org.apache.thrift.protocol.TField ACTUAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("actualPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
33
  private static final org.apache.thrift.protocol.TField ACTUAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("actualPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
35
  private static final org.apache.thrift.protocol.TField DISCOUNTS_FIELD_DESC = new org.apache.thrift.protocol.TField("discounts", org.apache.thrift.protocol.TType.LIST, (short)10);
36
  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)11);
36
  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)11);
37
  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)12);
37
  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)12);
-
 
38
  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)13);
-
 
39
  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)14);
38
 
40
 
39
  private long cartId; // required
41
  private long cartId; // required
40
  private long itemId; // required
42
  private long itemId; // required
41
  private double quantity; // required
43
  private double quantity; // required
42
  private long createdOn; // required
44
  private long createdOn; // required
Line 46... Line 48...
46
  private double actualPrice; // required
48
  private double actualPrice; // required
47
  private double discountedPrice; // required
49
  private double discountedPrice; // required
48
  private List<Discount> discounts; // required
50
  private List<Discount> discounts; // required
49
  private long insurer; // required
51
  private long insurer; // required
50
  private double insuranceAmount; // required
52
  private double insuranceAmount; // required
-
 
53
  private long dataProtectionInsurer; // required
-
 
54
  private double dataProtectionAmount; // required
51
 
55
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
56
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
57
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
54
    CART_ID((short)1, "cartId"),
58
    CART_ID((short)1, "cartId"),
55
    ITEM_ID((short)2, "itemId"),
59
    ITEM_ID((short)2, "itemId"),
Line 64... Line 68...
64
    ESTIMATE((short)7, "estimate"),
68
    ESTIMATE((short)7, "estimate"),
65
    ACTUAL_PRICE((short)8, "actualPrice"),
69
    ACTUAL_PRICE((short)8, "actualPrice"),
66
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
70
    DISCOUNTED_PRICE((short)9, "discountedPrice"),
67
    DISCOUNTS((short)10, "discounts"),
71
    DISCOUNTS((short)10, "discounts"),
68
    INSURER((short)11, "insurer"),
72
    INSURER((short)11, "insurer"),
69
    INSURANCE_AMOUNT((short)12, "insuranceAmount");
73
    INSURANCE_AMOUNT((short)12, "insuranceAmount"),
-
 
74
    DATA_PROTECTION_INSURER((short)13, "dataProtectionInsurer"),
-
 
75
    DATA_PROTECTION_AMOUNT((short)14, "dataProtectionAmount");
70
 
76
 
71
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
77
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
72
 
78
 
73
    static {
79
    static {
74
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
80
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 103... Line 109...
103
          return DISCOUNTS;
109
          return DISCOUNTS;
104
        case 11: // INSURER
110
        case 11: // INSURER
105
          return INSURER;
111
          return INSURER;
106
        case 12: // INSURANCE_AMOUNT
112
        case 12: // INSURANCE_AMOUNT
107
          return INSURANCE_AMOUNT;
113
          return INSURANCE_AMOUNT;
-
 
114
        case 13: // DATA_PROTECTION_INSURER
-
 
115
          return DATA_PROTECTION_INSURER;
-
 
116
        case 14: // DATA_PROTECTION_AMOUNT
-
 
117
          return DATA_PROTECTION_AMOUNT;
108
        default:
118
        default:
109
          return null;
119
          return null;
110
      }
120
      }
111
    }
121
    }
112
 
122
 
Line 153... Line 163...
153
  private static final int __ESTIMATE_ISSET_ID = 5;
163
  private static final int __ESTIMATE_ISSET_ID = 5;
154
  private static final int __ACTUALPRICE_ISSET_ID = 6;
164
  private static final int __ACTUALPRICE_ISSET_ID = 6;
155
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
165
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
156
  private static final int __INSURER_ISSET_ID = 8;
166
  private static final int __INSURER_ISSET_ID = 8;
157
  private static final int __INSURANCEAMOUNT_ISSET_ID = 9;
167
  private static final int __INSURANCEAMOUNT_ISSET_ID = 9;
-
 
168
  private static final int __DATAPROTECTIONINSURER_ISSET_ID = 10;
-
 
169
  private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 11;
158
  private BitSet __isset_bit_vector = new BitSet(10);
170
  private BitSet __isset_bit_vector = new BitSet(12);
159
 
171
 
160
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
172
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
161
  static {
173
  static {
162
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
174
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
163
    tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
    tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 183... Line 195...
183
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
195
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Discount.class))));
184
    tmpMap.put(_Fields.INSURER, new org.apache.thrift.meta_data.FieldMetaData("insurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
    tmpMap.put(_Fields.INSURER, new org.apache.thrift.meta_data.FieldMetaData("insurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
186
    tmpMap.put(_Fields.INSURANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("insuranceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
    tmpMap.put(_Fields.INSURANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("insuranceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
200
    tmpMap.put(_Fields.DATA_PROTECTION_INSURER, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
202
    tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
188
    metaDataMap = Collections.unmodifiableMap(tmpMap);
204
    metaDataMap = Collections.unmodifiableMap(tmpMap);
189
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
205
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
190
  }
206
  }
191
 
207
 
192
  public Line() {
208
  public Line() {
Line 202... Line 218...
202
    int estimate,
218
    int estimate,
203
    double actualPrice,
219
    double actualPrice,
204
    double discountedPrice,
220
    double discountedPrice,
205
    List<Discount> discounts,
221
    List<Discount> discounts,
206
    long insurer,
222
    long insurer,
207
    double insuranceAmount)
223
    double insuranceAmount,
-
 
224
    long dataProtectionInsurer,
-
 
225
    double dataProtectionAmount)
208
  {
226
  {
209
    this();
227
    this();
210
    this.cartId = cartId;
228
    this.cartId = cartId;
211
    setCartIdIsSet(true);
229
    setCartIdIsSet(true);
212
    this.itemId = itemId;
230
    this.itemId = itemId;
Line 227... Line 245...
227
    this.discounts = discounts;
245
    this.discounts = discounts;
228
    this.insurer = insurer;
246
    this.insurer = insurer;
229
    setInsurerIsSet(true);
247
    setInsurerIsSet(true);
230
    this.insuranceAmount = insuranceAmount;
248
    this.insuranceAmount = insuranceAmount;
231
    setInsuranceAmountIsSet(true);
249
    setInsuranceAmountIsSet(true);
-
 
250
    this.dataProtectionInsurer = dataProtectionInsurer;
-
 
251
    setDataProtectionInsurerIsSet(true);
-
 
252
    this.dataProtectionAmount = dataProtectionAmount;
-
 
253
    setDataProtectionAmountIsSet(true);
232
  }
254
  }
233
 
255
 
234
  /**
256
  /**
235
   * Performs a deep copy on <i>other</i>.
257
   * Performs a deep copy on <i>other</i>.
236
   */
258
   */
Line 255... Line 277...
255
      }
277
      }
256
      this.discounts = __this__discounts;
278
      this.discounts = __this__discounts;
257
    }
279
    }
258
    this.insurer = other.insurer;
280
    this.insurer = other.insurer;
259
    this.insuranceAmount = other.insuranceAmount;
281
    this.insuranceAmount = other.insuranceAmount;
-
 
282
    this.dataProtectionInsurer = other.dataProtectionInsurer;
-
 
283
    this.dataProtectionAmount = other.dataProtectionAmount;
260
  }
284
  }
261
 
285
 
262
  public Line deepCopy() {
286
  public Line deepCopy() {
263
    return new Line(this);
287
    return new Line(this);
264
  }
288
  }
Line 285... Line 309...
285
    this.discounts = null;
309
    this.discounts = null;
286
    setInsurerIsSet(false);
310
    setInsurerIsSet(false);
287
    this.insurer = 0;
311
    this.insurer = 0;
288
    setInsuranceAmountIsSet(false);
312
    setInsuranceAmountIsSet(false);
289
    this.insuranceAmount = 0.0;
313
    this.insuranceAmount = 0.0;
-
 
314
    setDataProtectionInsurerIsSet(false);
-
 
315
    this.dataProtectionInsurer = 0;
-
 
316
    setDataProtectionAmountIsSet(false);
-
 
317
    this.dataProtectionAmount = 0.0;
290
  }
318
  }
291
 
319
 
292
  public long getCartId() {
320
  public long getCartId() {
293
    return this.cartId;
321
    return this.cartId;
294
  }
322
  }
Line 576... Line 604...
576
 
604
 
577
  public void setInsuranceAmountIsSet(boolean value) {
605
  public void setInsuranceAmountIsSet(boolean value) {
578
    __isset_bit_vector.set(__INSURANCEAMOUNT_ISSET_ID, value);
606
    __isset_bit_vector.set(__INSURANCEAMOUNT_ISSET_ID, value);
579
  }
607
  }
580
 
608
 
-
 
609
  public long getDataProtectionInsurer() {
-
 
610
    return this.dataProtectionInsurer;
-
 
611
  }
-
 
612
 
-
 
613
  public void setDataProtectionInsurer(long dataProtectionInsurer) {
-
 
614
    this.dataProtectionInsurer = dataProtectionInsurer;
-
 
615
    setDataProtectionInsurerIsSet(true);
-
 
616
  }
-
 
617
 
-
 
618
  public void unsetDataProtectionInsurer() {
-
 
619
    __isset_bit_vector.clear(__DATAPROTECTIONINSURER_ISSET_ID);
-
 
620
  }
-
 
621
 
-
 
622
  /** Returns true if field dataProtectionInsurer is set (has been assigned a value) and false otherwise */
-
 
623
  public boolean isSetDataProtectionInsurer() {
-
 
624
    return __isset_bit_vector.get(__DATAPROTECTIONINSURER_ISSET_ID);
-
 
625
  }
-
 
626
 
-
 
627
  public void setDataProtectionInsurerIsSet(boolean value) {
-
 
628
    __isset_bit_vector.set(__DATAPROTECTIONINSURER_ISSET_ID, value);
-
 
629
  }
-
 
630
 
-
 
631
  public double getDataProtectionAmount() {
-
 
632
    return this.dataProtectionAmount;
-
 
633
  }
-
 
634
 
-
 
635
  public void setDataProtectionAmount(double dataProtectionAmount) {
-
 
636
    this.dataProtectionAmount = dataProtectionAmount;
-
 
637
    setDataProtectionAmountIsSet(true);
-
 
638
  }
-
 
639
 
-
 
640
  public void unsetDataProtectionAmount() {
-
 
641
    __isset_bit_vector.clear(__DATAPROTECTIONAMOUNT_ISSET_ID);
-
 
642
  }
-
 
643
 
-
 
644
  /** Returns true if field dataProtectionAmount is set (has been assigned a value) and false otherwise */
-
 
645
  public boolean isSetDataProtectionAmount() {
-
 
646
    return __isset_bit_vector.get(__DATAPROTECTIONAMOUNT_ISSET_ID);
-
 
647
  }
-
 
648
 
-
 
649
  public void setDataProtectionAmountIsSet(boolean value) {
-
 
650
    __isset_bit_vector.set(__DATAPROTECTIONAMOUNT_ISSET_ID, value);
-
 
651
  }
-
 
652
 
581
  public void setFieldValue(_Fields field, Object value) {
653
  public void setFieldValue(_Fields field, Object value) {
582
    switch (field) {
654
    switch (field) {
583
    case CART_ID:
655
    case CART_ID:
584
      if (value == null) {
656
      if (value == null) {
585
        unsetCartId();
657
        unsetCartId();
Line 674... Line 746...
674
      } else {
746
      } else {
675
        setInsuranceAmount((Double)value);
747
        setInsuranceAmount((Double)value);
676
      }
748
      }
677
      break;
749
      break;
678
 
750
 
-
 
751
    case DATA_PROTECTION_INSURER:
-
 
752
      if (value == null) {
-
 
753
        unsetDataProtectionInsurer();
-
 
754
      } else {
-
 
755
        setDataProtectionInsurer((Long)value);
-
 
756
      }
-
 
757
      break;
-
 
758
 
-
 
759
    case DATA_PROTECTION_AMOUNT:
-
 
760
      if (value == null) {
-
 
761
        unsetDataProtectionAmount();
-
 
762
      } else {
-
 
763
        setDataProtectionAmount((Double)value);
-
 
764
      }
-
 
765
      break;
-
 
766
 
679
    }
767
    }
680
  }
768
  }
681
 
769
 
682
  public Object getFieldValue(_Fields field) {
770
  public Object getFieldValue(_Fields field) {
683
    switch (field) {
771
    switch (field) {
Line 715... Line 803...
715
      return Long.valueOf(getInsurer());
803
      return Long.valueOf(getInsurer());
716
 
804
 
717
    case INSURANCE_AMOUNT:
805
    case INSURANCE_AMOUNT:
718
      return Double.valueOf(getInsuranceAmount());
806
      return Double.valueOf(getInsuranceAmount());
719
 
807
 
-
 
808
    case DATA_PROTECTION_INSURER:
-
 
809
      return Long.valueOf(getDataProtectionInsurer());
-
 
810
 
-
 
811
    case DATA_PROTECTION_AMOUNT:
-
 
812
      return Double.valueOf(getDataProtectionAmount());
-
 
813
 
720
    }
814
    }
721
    throw new IllegalStateException();
815
    throw new IllegalStateException();
722
  }
816
  }
723
 
817
 
724
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
818
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 750... Line 844...
750
      return isSetDiscounts();
844
      return isSetDiscounts();
751
    case INSURER:
845
    case INSURER:
752
      return isSetInsurer();
846
      return isSetInsurer();
753
    case INSURANCE_AMOUNT:
847
    case INSURANCE_AMOUNT:
754
      return isSetInsuranceAmount();
848
      return isSetInsuranceAmount();
-
 
849
    case DATA_PROTECTION_INSURER:
-
 
850
      return isSetDataProtectionInsurer();
-
 
851
    case DATA_PROTECTION_AMOUNT:
-
 
852
      return isSetDataProtectionAmount();
755
    }
853
    }
756
    throw new IllegalStateException();
854
    throw new IllegalStateException();
757
  }
855
  }
758
 
856
 
759
  @Override
857
  @Override
Line 875... Line 973...
875
        return false;
973
        return false;
876
      if (this.insuranceAmount != that.insuranceAmount)
974
      if (this.insuranceAmount != that.insuranceAmount)
877
        return false;
975
        return false;
878
    }
976
    }
879
 
977
 
-
 
978
    boolean this_present_dataProtectionInsurer = true;
-
 
979
    boolean that_present_dataProtectionInsurer = true;
-
 
980
    if (this_present_dataProtectionInsurer || that_present_dataProtectionInsurer) {
-
 
981
      if (!(this_present_dataProtectionInsurer && that_present_dataProtectionInsurer))
-
 
982
        return false;
-
 
983
      if (this.dataProtectionInsurer != that.dataProtectionInsurer)
-
 
984
        return false;
-
 
985
    }
-
 
986
 
-
 
987
    boolean this_present_dataProtectionAmount = true;
-
 
988
    boolean that_present_dataProtectionAmount = true;
-
 
989
    if (this_present_dataProtectionAmount || that_present_dataProtectionAmount) {
-
 
990
      if (!(this_present_dataProtectionAmount && that_present_dataProtectionAmount))
-
 
991
        return false;
-
 
992
      if (this.dataProtectionAmount != that.dataProtectionAmount)
-
 
993
        return false;
-
 
994
    }
-
 
995
 
880
    return true;
996
    return true;
881
  }
997
  }
882
 
998
 
883
  @Override
999
  @Override
884
  public int hashCode() {
1000
  public int hashCode() {
Line 1011... Line 1127...
1011
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insuranceAmount, typedOther.insuranceAmount);
1127
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insuranceAmount, typedOther.insuranceAmount);
1012
      if (lastComparison != 0) {
1128
      if (lastComparison != 0) {
1013
        return lastComparison;
1129
        return lastComparison;
1014
      }
1130
      }
1015
    }
1131
    }
-
 
1132
    lastComparison = Boolean.valueOf(isSetDataProtectionInsurer()).compareTo(typedOther.isSetDataProtectionInsurer());
-
 
1133
    if (lastComparison != 0) {
-
 
1134
      return lastComparison;
-
 
1135
    }
-
 
1136
    if (isSetDataProtectionInsurer()) {
-
 
1137
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionInsurer, typedOther.dataProtectionInsurer);
-
 
1138
      if (lastComparison != 0) {
-
 
1139
        return lastComparison;
-
 
1140
      }
-
 
1141
    }
-
 
1142
    lastComparison = Boolean.valueOf(isSetDataProtectionAmount()).compareTo(typedOther.isSetDataProtectionAmount());
-
 
1143
    if (lastComparison != 0) {
-
 
1144
      return lastComparison;
-
 
1145
    }
-
 
1146
    if (isSetDataProtectionAmount()) {
-
 
1147
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionAmount, typedOther.dataProtectionAmount);
-
 
1148
      if (lastComparison != 0) {
-
 
1149
        return lastComparison;
-
 
1150
      }
-
 
1151
    }
1016
    return 0;
1152
    return 0;
1017
  }
1153
  }
1018
 
1154
 
1019
  public _Fields fieldForId(int fieldId) {
1155
  public _Fields fieldForId(int fieldId) {
1020
    return _Fields.findByThriftId(fieldId);
1156
    return _Fields.findByThriftId(fieldId);
Line 1133... Line 1269...
1133
            setInsuranceAmountIsSet(true);
1269
            setInsuranceAmountIsSet(true);
1134
          } else { 
1270
          } else { 
1135
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1136
          }
1272
          }
1137
          break;
1273
          break;
-
 
1274
        case 13: // DATA_PROTECTION_INSURER
-
 
1275
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1276
            this.dataProtectionInsurer = iprot.readI64();
-
 
1277
            setDataProtectionInsurerIsSet(true);
-
 
1278
          } else { 
-
 
1279
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1280
          }
-
 
1281
          break;
-
 
1282
        case 14: // DATA_PROTECTION_AMOUNT
-
 
1283
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
1284
            this.dataProtectionAmount = iprot.readDouble();
-
 
1285
            setDataProtectionAmountIsSet(true);
-
 
1286
          } else { 
-
 
1287
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1288
          }
-
 
1289
          break;
1138
        default:
1290
        default:
1139
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1291
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1140
      }
1292
      }
1141
      iprot.readFieldEnd();
1293
      iprot.readFieldEnd();
1142
    }
1294
    }
Line 1193... Line 1345...
1193
    oprot.writeI64(this.insurer);
1345
    oprot.writeI64(this.insurer);
1194
    oprot.writeFieldEnd();
1346
    oprot.writeFieldEnd();
1195
    oprot.writeFieldBegin(INSURANCE_AMOUNT_FIELD_DESC);
1347
    oprot.writeFieldBegin(INSURANCE_AMOUNT_FIELD_DESC);
1196
    oprot.writeDouble(this.insuranceAmount);
1348
    oprot.writeDouble(this.insuranceAmount);
1197
    oprot.writeFieldEnd();
1349
    oprot.writeFieldEnd();
-
 
1350
    oprot.writeFieldBegin(DATA_PROTECTION_INSURER_FIELD_DESC);
-
 
1351
    oprot.writeI64(this.dataProtectionInsurer);
-
 
1352
    oprot.writeFieldEnd();
-
 
1353
    oprot.writeFieldBegin(DATA_PROTECTION_AMOUNT_FIELD_DESC);
-
 
1354
    oprot.writeDouble(this.dataProtectionAmount);
-
 
1355
    oprot.writeFieldEnd();
1198
    oprot.writeFieldStop();
1356
    oprot.writeFieldStop();
1199
    oprot.writeStructEnd();
1357
    oprot.writeStructEnd();
1200
  }
1358
  }
1201
 
1359
 
1202
  @Override
1360
  @Override
Line 1257... Line 1415...
1257
    first = false;
1415
    first = false;
1258
    if (!first) sb.append(", ");
1416
    if (!first) sb.append(", ");
1259
    sb.append("insuranceAmount:");
1417
    sb.append("insuranceAmount:");
1260
    sb.append(this.insuranceAmount);
1418
    sb.append(this.insuranceAmount);
1261
    first = false;
1419
    first = false;
-
 
1420
    if (!first) sb.append(", ");
-
 
1421
    sb.append("dataProtectionInsurer:");
-
 
1422
    sb.append(this.dataProtectionInsurer);
-
 
1423
    first = false;
-
 
1424
    if (!first) sb.append(", ");
-
 
1425
    sb.append("dataProtectionAmount:");
-
 
1426
    sb.append(this.dataProtectionAmount);
-
 
1427
    first = false;
1262
    sb.append(")");
1428
    sb.append(")");
1263
    return sb.toString();
1429
    return sb.toString();
1264
  }
1430
  }
1265
 
1431
 
1266
  public void validate() throws org.apache.thrift.TException {
1432
  public void validate() throws org.apache.thrift.TException {