Subversion Repositories SmartDukaan

Rev

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

Rev 5545 Rev 6361
Line 32... Line 32...
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)7);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("modelName", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
33
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("modelNumber", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)9);
34
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
35
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unitPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.I64, (short)11);
-
 
37
  private static final org.apache.thrift.protocol.TField PURCHASE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseId", org.apache.thrift.protocol.TType.I64, (short)12);
-
 
38
  private static final org.apache.thrift.protocol.TField PURCHASED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("purchasedAt", org.apache.thrift.protocol.TType.I64, (short)13);
37
 
39
 
38
  private long purchaseOrderId; // required
40
  private long purchaseOrderId; // required
39
  private long poCreatedAt; // required
41
  private long poCreatedAt; // required
40
  private String supplierName; // required
42
  private String supplierName; // required
41
  private String invoiceNumbers; // required
43
  private String invoiceNumbers; // required
Line 44... Line 46...
44
  private String modelName; // required
46
  private String modelName; // required
45
  private String modelNumber; // required
47
  private String modelNumber; // required
46
  private String color; // required
48
  private String color; // required
47
  private double unitPrice; // required
49
  private double unitPrice; // required
48
  private long quantity; // required
50
  private long quantity; // required
-
 
51
  private long purchaseId; // required
-
 
52
  private long purchasedAt; // required
49
 
53
 
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
54
  /** 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 {
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
56
    PURCHASE_ORDER_ID((short)1, "purchaseOrderId"),
53
    PO_CREATED_AT((short)2, "poCreatedAt"),
57
    PO_CREATED_AT((short)2, "poCreatedAt"),
Line 57... Line 61...
57
    BRAND((short)6, "brand"),
61
    BRAND((short)6, "brand"),
58
    MODEL_NAME((short)7, "modelName"),
62
    MODEL_NAME((short)7, "modelName"),
59
    MODEL_NUMBER((short)8, "modelNumber"),
63
    MODEL_NUMBER((short)8, "modelNumber"),
60
    COLOR((short)9, "color"),
64
    COLOR((short)9, "color"),
61
    UNIT_PRICE((short)10, "unitPrice"),
65
    UNIT_PRICE((short)10, "unitPrice"),
62
    QUANTITY((short)11, "quantity");
66
    QUANTITY((short)11, "quantity"),
-
 
67
    PURCHASE_ID((short)12, "purchaseId"),
-
 
68
    PURCHASED_AT((short)13, "purchasedAt");
63
 
69
 
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
 
71
 
66
    static {
72
    static {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 94... Line 100...
94
          return COLOR;
100
          return COLOR;
95
        case 10: // UNIT_PRICE
101
        case 10: // UNIT_PRICE
96
          return UNIT_PRICE;
102
          return UNIT_PRICE;
97
        case 11: // QUANTITY
103
        case 11: // QUANTITY
98
          return QUANTITY;
104
          return QUANTITY;
-
 
105
        case 12: // PURCHASE_ID
-
 
106
          return PURCHASE_ID;
-
 
107
        case 13: // PURCHASED_AT
-
 
108
          return PURCHASED_AT;
99
        default:
109
        default:
100
          return null;
110
          return null;
101
      }
111
      }
102
    }
112
    }
103
 
113
 
Line 139... Line 149...
139
  private static final int __PURCHASEORDERID_ISSET_ID = 0;
149
  private static final int __PURCHASEORDERID_ISSET_ID = 0;
140
  private static final int __POCREATEDAT_ISSET_ID = 1;
150
  private static final int __POCREATEDAT_ISSET_ID = 1;
141
  private static final int __ITEMID_ISSET_ID = 2;
151
  private static final int __ITEMID_ISSET_ID = 2;
142
  private static final int __UNITPRICE_ISSET_ID = 3;
152
  private static final int __UNITPRICE_ISSET_ID = 3;
143
  private static final int __QUANTITY_ISSET_ID = 4;
153
  private static final int __QUANTITY_ISSET_ID = 4;
-
 
154
  private static final int __PURCHASEID_ISSET_ID = 5;
-
 
155
  private static final int __PURCHASEDAT_ISSET_ID = 6;
144
  private BitSet __isset_bit_vector = new BitSet(5);
156
  private BitSet __isset_bit_vector = new BitSet(7);
145
 
157
 
146
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
158
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
147
  static {
159
  static {
148
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
160
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
149
    tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
    tmpMap.put(_Fields.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 166... Line 178...
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
167
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
179
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
169
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
181
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
183
    tmpMap.put(_Fields.PURCHASE_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
185
    tmpMap.put(_Fields.PURCHASED_AT, new org.apache.thrift.meta_data.FieldMetaData("purchasedAt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
    metaDataMap = Collections.unmodifiableMap(tmpMap);
187
    metaDataMap = Collections.unmodifiableMap(tmpMap);
172
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DetailedPurchaseScan.class, metaDataMap);
188
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(DetailedPurchaseScan.class, metaDataMap);
173
  }
189
  }
174
 
190
 
175
  public DetailedPurchaseScan() {
191
  public DetailedPurchaseScan() {
Line 184... Line 200...
184
    String brand,
200
    String brand,
185
    String modelName,
201
    String modelName,
186
    String modelNumber,
202
    String modelNumber,
187
    String color,
203
    String color,
188
    double unitPrice,
204
    double unitPrice,
189
    long quantity)
205
    long quantity,
-
 
206
    long purchaseId,
-
 
207
    long purchasedAt)
190
  {
208
  {
191
    this();
209
    this();
192
    this.purchaseOrderId = purchaseOrderId;
210
    this.purchaseOrderId = purchaseOrderId;
193
    setPurchaseOrderIdIsSet(true);
211
    setPurchaseOrderIdIsSet(true);
194
    this.poCreatedAt = poCreatedAt;
212
    this.poCreatedAt = poCreatedAt;
Line 203... Line 221...
203
    this.color = color;
221
    this.color = color;
204
    this.unitPrice = unitPrice;
222
    this.unitPrice = unitPrice;
205
    setUnitPriceIsSet(true);
223
    setUnitPriceIsSet(true);
206
    this.quantity = quantity;
224
    this.quantity = quantity;
207
    setQuantityIsSet(true);
225
    setQuantityIsSet(true);
-
 
226
    this.purchaseId = purchaseId;
-
 
227
    setPurchaseIdIsSet(true);
-
 
228
    this.purchasedAt = purchasedAt;
-
 
229
    setPurchasedAtIsSet(true);
208
  }
230
  }
209
 
231
 
210
  /**
232
  /**
211
   * Performs a deep copy on <i>other</i>.
233
   * Performs a deep copy on <i>other</i>.
212
   */
234
   */
Line 234... Line 256...
234
    if (other.isSetColor()) {
256
    if (other.isSetColor()) {
235
      this.color = other.color;
257
      this.color = other.color;
236
    }
258
    }
237
    this.unitPrice = other.unitPrice;
259
    this.unitPrice = other.unitPrice;
238
    this.quantity = other.quantity;
260
    this.quantity = other.quantity;
-
 
261
    this.purchaseId = other.purchaseId;
-
 
262
    this.purchasedAt = other.purchasedAt;
239
  }
263
  }
240
 
264
 
241
  public DetailedPurchaseScan deepCopy() {
265
  public DetailedPurchaseScan deepCopy() {
242
    return new DetailedPurchaseScan(this);
266
    return new DetailedPurchaseScan(this);
243
  }
267
  }
Line 258... Line 282...
258
    this.color = null;
282
    this.color = null;
259
    setUnitPriceIsSet(false);
283
    setUnitPriceIsSet(false);
260
    this.unitPrice = 0.0;
284
    this.unitPrice = 0.0;
261
    setQuantityIsSet(false);
285
    setQuantityIsSet(false);
262
    this.quantity = 0;
286
    this.quantity = 0;
-
 
287
    setPurchaseIdIsSet(false);
-
 
288
    this.purchaseId = 0;
-
 
289
    setPurchasedAtIsSet(false);
-
 
290
    this.purchasedAt = 0;
263
  }
291
  }
264
 
292
 
265
  public long getPurchaseOrderId() {
293
  public long getPurchaseOrderId() {
266
    return this.purchaseOrderId;
294
    return this.purchaseOrderId;
267
  }
295
  }
Line 508... Line 536...
508
 
536
 
509
  public void setQuantityIsSet(boolean value) {
537
  public void setQuantityIsSet(boolean value) {
510
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
538
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
511
  }
539
  }
512
 
540
 
-
 
541
  public long getPurchaseId() {
-
 
542
    return this.purchaseId;
-
 
543
  }
-
 
544
 
-
 
545
  public void setPurchaseId(long purchaseId) {
-
 
546
    this.purchaseId = purchaseId;
-
 
547
    setPurchaseIdIsSet(true);
-
 
548
  }
-
 
549
 
-
 
550
  public void unsetPurchaseId() {
-
 
551
    __isset_bit_vector.clear(__PURCHASEID_ISSET_ID);
-
 
552
  }
-
 
553
 
-
 
554
  /** Returns true if field purchaseId is set (has been assigned a value) and false otherwise */
-
 
555
  public boolean isSetPurchaseId() {
-
 
556
    return __isset_bit_vector.get(__PURCHASEID_ISSET_ID);
-
 
557
  }
-
 
558
 
-
 
559
  public void setPurchaseIdIsSet(boolean value) {
-
 
560
    __isset_bit_vector.set(__PURCHASEID_ISSET_ID, value);
-
 
561
  }
-
 
562
 
-
 
563
  public long getPurchasedAt() {
-
 
564
    return this.purchasedAt;
-
 
565
  }
-
 
566
 
-
 
567
  public void setPurchasedAt(long purchasedAt) {
-
 
568
    this.purchasedAt = purchasedAt;
-
 
569
    setPurchasedAtIsSet(true);
-
 
570
  }
-
 
571
 
-
 
572
  public void unsetPurchasedAt() {
-
 
573
    __isset_bit_vector.clear(__PURCHASEDAT_ISSET_ID);
-
 
574
  }
-
 
575
 
-
 
576
  /** Returns true if field purchasedAt is set (has been assigned a value) and false otherwise */
-
 
577
  public boolean isSetPurchasedAt() {
-
 
578
    return __isset_bit_vector.get(__PURCHASEDAT_ISSET_ID);
-
 
579
  }
-
 
580
 
-
 
581
  public void setPurchasedAtIsSet(boolean value) {
-
 
582
    __isset_bit_vector.set(__PURCHASEDAT_ISSET_ID, value);
-
 
583
  }
-
 
584
 
513
  public void setFieldValue(_Fields field, Object value) {
585
  public void setFieldValue(_Fields field, Object value) {
514
    switch (field) {
586
    switch (field) {
515
    case PURCHASE_ORDER_ID:
587
    case PURCHASE_ORDER_ID:
516
      if (value == null) {
588
      if (value == null) {
517
        unsetPurchaseOrderId();
589
        unsetPurchaseOrderId();
Line 598... Line 670...
598
      } else {
670
      } else {
599
        setQuantity((Long)value);
671
        setQuantity((Long)value);
600
      }
672
      }
601
      break;
673
      break;
602
 
674
 
-
 
675
    case PURCHASE_ID:
-
 
676
      if (value == null) {
-
 
677
        unsetPurchaseId();
-
 
678
      } else {
-
 
679
        setPurchaseId((Long)value);
-
 
680
      }
-
 
681
      break;
-
 
682
 
-
 
683
    case PURCHASED_AT:
-
 
684
      if (value == null) {
-
 
685
        unsetPurchasedAt();
-
 
686
      } else {
-
 
687
        setPurchasedAt((Long)value);
-
 
688
      }
-
 
689
      break;
-
 
690
 
603
    }
691
    }
604
  }
692
  }
605
 
693
 
606
  public Object getFieldValue(_Fields field) {
694
  public Object getFieldValue(_Fields field) {
607
    switch (field) {
695
    switch (field) {
Line 636... Line 724...
636
      return Double.valueOf(getUnitPrice());
724
      return Double.valueOf(getUnitPrice());
637
 
725
 
638
    case QUANTITY:
726
    case QUANTITY:
639
      return Long.valueOf(getQuantity());
727
      return Long.valueOf(getQuantity());
640
 
728
 
-
 
729
    case PURCHASE_ID:
-
 
730
      return Long.valueOf(getPurchaseId());
-
 
731
 
-
 
732
    case PURCHASED_AT:
-
 
733
      return Long.valueOf(getPurchasedAt());
-
 
734
 
641
    }
735
    }
642
    throw new IllegalStateException();
736
    throw new IllegalStateException();
643
  }
737
  }
644
 
738
 
645
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
739
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 669... Line 763...
669
      return isSetColor();
763
      return isSetColor();
670
    case UNIT_PRICE:
764
    case UNIT_PRICE:
671
      return isSetUnitPrice();
765
      return isSetUnitPrice();
672
    case QUANTITY:
766
    case QUANTITY:
673
      return isSetQuantity();
767
      return isSetQuantity();
-
 
768
    case PURCHASE_ID:
-
 
769
      return isSetPurchaseId();
-
 
770
    case PURCHASED_AT:
-
 
771
      return isSetPurchasedAt();
674
    }
772
    }
675
    throw new IllegalStateException();
773
    throw new IllegalStateException();
676
  }
774
  }
677
 
775
 
678
  @Override
776
  @Override
Line 785... Line 883...
785
        return false;
883
        return false;
786
      if (this.quantity != that.quantity)
884
      if (this.quantity != that.quantity)
787
        return false;
885
        return false;
788
    }
886
    }
789
 
887
 
-
 
888
    boolean this_present_purchaseId = true;
-
 
889
    boolean that_present_purchaseId = true;
-
 
890
    if (this_present_purchaseId || that_present_purchaseId) {
-
 
891
      if (!(this_present_purchaseId && that_present_purchaseId))
-
 
892
        return false;
-
 
893
      if (this.purchaseId != that.purchaseId)
-
 
894
        return false;
-
 
895
    }
-
 
896
 
-
 
897
    boolean this_present_purchasedAt = true;
-
 
898
    boolean that_present_purchasedAt = true;
-
 
899
    if (this_present_purchasedAt || that_present_purchasedAt) {
-
 
900
      if (!(this_present_purchasedAt && that_present_purchasedAt))
-
 
901
        return false;
-
 
902
      if (this.purchasedAt != that.purchasedAt)
-
 
903
        return false;
-
 
904
    }
-
 
905
 
790
    return true;
906
    return true;
791
  }
907
  }
792
 
908
 
793
  @Override
909
  @Override
794
  public int hashCode() {
910
  public int hashCode() {
Line 911... Line 1027...
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1027
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
912
      if (lastComparison != 0) {
1028
      if (lastComparison != 0) {
913
        return lastComparison;
1029
        return lastComparison;
914
      }
1030
      }
915
    }
1031
    }
-
 
1032
    lastComparison = Boolean.valueOf(isSetPurchaseId()).compareTo(typedOther.isSetPurchaseId());
-
 
1033
    if (lastComparison != 0) {
-
 
1034
      return lastComparison;
-
 
1035
    }
-
 
1036
    if (isSetPurchaseId()) {
-
 
1037
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseId, typedOther.purchaseId);
-
 
1038
      if (lastComparison != 0) {
-
 
1039
        return lastComparison;
-
 
1040
      }
-
 
1041
    }
-
 
1042
    lastComparison = Boolean.valueOf(isSetPurchasedAt()).compareTo(typedOther.isSetPurchasedAt());
-
 
1043
    if (lastComparison != 0) {
-
 
1044
      return lastComparison;
-
 
1045
    }
-
 
1046
    if (isSetPurchasedAt()) {
-
 
1047
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchasedAt, typedOther.purchasedAt);
-
 
1048
      if (lastComparison != 0) {
-
 
1049
        return lastComparison;
-
 
1050
      }
-
 
1051
    }
916
    return 0;
1052
    return 0;
917
  }
1053
  }
918
 
1054
 
919
  public _Fields fieldForId(int fieldId) {
1055
  public _Fields fieldForId(int fieldId) {
920
    return _Fields.findByThriftId(fieldId);
1056
    return _Fields.findByThriftId(fieldId);
Line 1010... Line 1146...
1010
            setQuantityIsSet(true);
1146
            setQuantityIsSet(true);
1011
          } else { 
1147
          } else { 
1012
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1013
          }
1149
          }
1014
          break;
1150
          break;
-
 
1151
        case 12: // PURCHASE_ID
-
 
1152
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1153
            this.purchaseId = iprot.readI64();
-
 
1154
            setPurchaseIdIsSet(true);
-
 
1155
          } else { 
-
 
1156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1157
          }
-
 
1158
          break;
-
 
1159
        case 13: // PURCHASED_AT
-
 
1160
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1161
            this.purchasedAt = iprot.readI64();
-
 
1162
            setPurchasedAtIsSet(true);
-
 
1163
          } else { 
-
 
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1165
          }
-
 
1166
          break;
1015
        default:
1167
        default:
1016
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1168
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1017
      }
1169
      }
1018
      iprot.readFieldEnd();
1170
      iprot.readFieldEnd();
1019
    }
1171
    }
Line 1068... Line 1220...
1068
    oprot.writeDouble(this.unitPrice);
1220
    oprot.writeDouble(this.unitPrice);
1069
    oprot.writeFieldEnd();
1221
    oprot.writeFieldEnd();
1070
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
1222
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
1071
    oprot.writeI64(this.quantity);
1223
    oprot.writeI64(this.quantity);
1072
    oprot.writeFieldEnd();
1224
    oprot.writeFieldEnd();
-
 
1225
    oprot.writeFieldBegin(PURCHASE_ID_FIELD_DESC);
-
 
1226
    oprot.writeI64(this.purchaseId);
-
 
1227
    oprot.writeFieldEnd();
-
 
1228
    oprot.writeFieldBegin(PURCHASED_AT_FIELD_DESC);
-
 
1229
    oprot.writeI64(this.purchasedAt);
-
 
1230
    oprot.writeFieldEnd();
1073
    oprot.writeFieldStop();
1231
    oprot.writeFieldStop();
1074
    oprot.writeStructEnd();
1232
    oprot.writeStructEnd();
1075
  }
1233
  }
1076
 
1234
 
1077
  @Override
1235
  @Override
Line 1144... Line 1302...
1144
    first = false;
1302
    first = false;
1145
    if (!first) sb.append(", ");
1303
    if (!first) sb.append(", ");
1146
    sb.append("quantity:");
1304
    sb.append("quantity:");
1147
    sb.append(this.quantity);
1305
    sb.append(this.quantity);
1148
    first = false;
1306
    first = false;
-
 
1307
    if (!first) sb.append(", ");
-
 
1308
    sb.append("purchaseId:");
-
 
1309
    sb.append(this.purchaseId);
-
 
1310
    first = false;
-
 
1311
    if (!first) sb.append(", ");
-
 
1312
    sb.append("purchasedAt:");
-
 
1313
    sb.append(this.purchasedAt);
-
 
1314
    first = false;
1149
    sb.append(")");
1315
    sb.append(")");
1150
    return sb.toString();
1316
    return sb.toString();
1151
  }
1317
  }
1152
 
1318
 
1153
  public void validate() throws org.apache.thrift.TException {
1319
  public void validate() throws org.apache.thrift.TException {