Subversion Repositories SmartDukaan

Rev

Rev 13154 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13154 Rev 13584
Line 27... Line 27...
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField TOTAL_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalOrderCount", org.apache.thrift.protocol.TType.I32, (short)3);
28
  private static final org.apache.thrift.protocol.TField TOTAL_ORDER_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("totalOrderCount", org.apache.thrift.protocol.TType.I32, (short)3);
29
  private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)4);
29
  private static final org.apache.thrift.protocol.TField IS_OUT_OF_STOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("isOutOfStock", org.apache.thrift.protocol.TType.BOOL, (short)4);
30
  private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
30
  private static final org.apache.thrift.protocol.TField TOTAL_SALE_FIELD_DESC = new org.apache.thrift.protocol.TField("totalSale", org.apache.thrift.protocol.TType.DOUBLE, (short)5);
31
  private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
31
  private static final org.apache.thrift.protocol.TField OUR_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("ourPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)6);
-
 
32
  private static final org.apache.thrift.protocol.TField FC_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("fcLocation", org.apache.thrift.protocol.TType.I32, (short)7);
-
 
33
  private static final org.apache.thrift.protocol.TField RETURN_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQuantity", org.apache.thrift.protocol.TType.I32, (short)8);
-
 
34
  private static final org.apache.thrift.protocol.TField RETURN_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("returnValue", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
32
 
35
 
33
  private long dateOfSale; // required
36
  private long dateOfSale; // required
34
  private long item_id; // required
37
  private long item_id; // required
35
  private int totalOrderCount; // required
38
  private int totalOrderCount; // required
36
  private boolean isOutOfStock; // required
39
  private boolean isOutOfStock; // required
37
  private double totalSale; // required
40
  private double totalSale; // required
38
  private double ourPrice; // required
41
  private double ourPrice; // required
-
 
42
  private FlipkartFCWarehouseLocation fcLocation; // required
-
 
43
  private int returnQuantity; // required
-
 
44
  private double returnValue; // required
39
 
45
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42
    DATE_OF_SALE((short)1, "dateOfSale"),
48
    DATE_OF_SALE((short)1, "dateOfSale"),
43
    ITEM_ID((short)2, "item_id"),
49
    ITEM_ID((short)2, "item_id"),
44
    TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
50
    TOTAL_ORDER_COUNT((short)3, "totalOrderCount"),
45
    IS_OUT_OF_STOCK((short)4, "isOutOfStock"),
51
    IS_OUT_OF_STOCK((short)4, "isOutOfStock"),
46
    TOTAL_SALE((short)5, "totalSale"),
52
    TOTAL_SALE((short)5, "totalSale"),
47
    OUR_PRICE((short)6, "ourPrice");
53
    OUR_PRICE((short)6, "ourPrice"),
-
 
54
    /**
-
 
55
     * 
-
 
56
     * @see FlipkartFCWarehouseLocation
-
 
57
     */
-
 
58
    FC_LOCATION((short)7, "fcLocation"),
-
 
59
    RETURN_QUANTITY((short)8, "returnQuantity"),
-
 
60
    RETURN_VALUE((short)9, "returnValue");
48
 
61
 
49
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50
 
63
 
51
    static {
64
    static {
52
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
65
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 69... Line 82...
69
          return IS_OUT_OF_STOCK;
82
          return IS_OUT_OF_STOCK;
70
        case 5: // TOTAL_SALE
83
        case 5: // TOTAL_SALE
71
          return TOTAL_SALE;
84
          return TOTAL_SALE;
72
        case 6: // OUR_PRICE
85
        case 6: // OUR_PRICE
73
          return OUR_PRICE;
86
          return OUR_PRICE;
-
 
87
        case 7: // FC_LOCATION
-
 
88
          return FC_LOCATION;
-
 
89
        case 8: // RETURN_QUANTITY
-
 
90
          return RETURN_QUANTITY;
-
 
91
        case 9: // RETURN_VALUE
-
 
92
          return RETURN_VALUE;
74
        default:
93
        default:
75
          return null;
94
          return null;
76
      }
95
      }
77
    }
96
    }
78
 
97
 
Line 115... Line 134...
115
  private static final int __ITEM_ID_ISSET_ID = 1;
134
  private static final int __ITEM_ID_ISSET_ID = 1;
116
  private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
135
  private static final int __TOTALORDERCOUNT_ISSET_ID = 2;
117
  private static final int __ISOUTOFSTOCK_ISSET_ID = 3;
136
  private static final int __ISOUTOFSTOCK_ISSET_ID = 3;
118
  private static final int __TOTALSALE_ISSET_ID = 4;
137
  private static final int __TOTALSALE_ISSET_ID = 4;
119
  private static final int __OURPRICE_ISSET_ID = 5;
138
  private static final int __OURPRICE_ISSET_ID = 5;
-
 
139
  private static final int __RETURNQUANTITY_ISSET_ID = 6;
-
 
140
  private static final int __RETURNVALUE_ISSET_ID = 7;
120
  private BitSet __isset_bit_vector = new BitSet(6);
141
  private BitSet __isset_bit_vector = new BitSet(8);
121
 
142
 
122
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
143
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123
  static {
144
  static {
124
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
145
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
125
    tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
146
    tmpMap.put(_Fields.DATE_OF_SALE, new org.apache.thrift.meta_data.FieldMetaData("dateOfSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 132... Line 153...
132
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
133
    tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
154
    tmpMap.put(_Fields.TOTAL_SALE, new org.apache.thrift.meta_data.FieldMetaData("totalSale", org.apache.thrift.TFieldRequirementType.DEFAULT, 
134
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
135
    tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
    tmpMap.put(_Fields.OUR_PRICE, new org.apache.thrift.meta_data.FieldMetaData("ourPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
136
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
158
    tmpMap.put(_Fields.FC_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("fcLocation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, FlipkartFCWarehouseLocation.class)));
-
 
160
    tmpMap.put(_Fields.RETURN_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("returnQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
162
    tmpMap.put(_Fields.RETURN_VALUE, new org.apache.thrift.meta_data.FieldMetaData("returnValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
137
    metaDataMap = Collections.unmodifiableMap(tmpMap);
164
    metaDataMap = Collections.unmodifiableMap(tmpMap);
138
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FlipkartFaSalesSnapshot.class, metaDataMap);
165
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(FlipkartFaSalesSnapshot.class, metaDataMap);
139
  }
166
  }
140
 
167
 
141
  public FlipkartFaSalesSnapshot() {
168
  public FlipkartFaSalesSnapshot() {
Line 145... Line 172...
145
    long dateOfSale,
172
    long dateOfSale,
146
    long item_id,
173
    long item_id,
147
    int totalOrderCount,
174
    int totalOrderCount,
148
    boolean isOutOfStock,
175
    boolean isOutOfStock,
149
    double totalSale,
176
    double totalSale,
150
    double ourPrice)
177
    double ourPrice,
-
 
178
    FlipkartFCWarehouseLocation fcLocation,
-
 
179
    int returnQuantity,
-
 
180
    double returnValue)
151
  {
181
  {
152
    this();
182
    this();
153
    this.dateOfSale = dateOfSale;
183
    this.dateOfSale = dateOfSale;
154
    setDateOfSaleIsSet(true);
184
    setDateOfSaleIsSet(true);
155
    this.item_id = item_id;
185
    this.item_id = item_id;
Line 160... Line 190...
160
    setIsOutOfStockIsSet(true);
190
    setIsOutOfStockIsSet(true);
161
    this.totalSale = totalSale;
191
    this.totalSale = totalSale;
162
    setTotalSaleIsSet(true);
192
    setTotalSaleIsSet(true);
163
    this.ourPrice = ourPrice;
193
    this.ourPrice = ourPrice;
164
    setOurPriceIsSet(true);
194
    setOurPriceIsSet(true);
-
 
195
    this.fcLocation = fcLocation;
-
 
196
    this.returnQuantity = returnQuantity;
-
 
197
    setReturnQuantityIsSet(true);
-
 
198
    this.returnValue = returnValue;
-
 
199
    setReturnValueIsSet(true);
165
  }
200
  }
166
 
201
 
167
  /**
202
  /**
168
   * Performs a deep copy on <i>other</i>.
203
   * Performs a deep copy on <i>other</i>.
169
   */
204
   */
Line 174... Line 209...
174
    this.item_id = other.item_id;
209
    this.item_id = other.item_id;
175
    this.totalOrderCount = other.totalOrderCount;
210
    this.totalOrderCount = other.totalOrderCount;
176
    this.isOutOfStock = other.isOutOfStock;
211
    this.isOutOfStock = other.isOutOfStock;
177
    this.totalSale = other.totalSale;
212
    this.totalSale = other.totalSale;
178
    this.ourPrice = other.ourPrice;
213
    this.ourPrice = other.ourPrice;
-
 
214
    if (other.isSetFcLocation()) {
-
 
215
      this.fcLocation = other.fcLocation;
-
 
216
    }
-
 
217
    this.returnQuantity = other.returnQuantity;
-
 
218
    this.returnValue = other.returnValue;
179
  }
219
  }
180
 
220
 
181
  public FlipkartFaSalesSnapshot deepCopy() {
221
  public FlipkartFaSalesSnapshot deepCopy() {
182
    return new FlipkartFaSalesSnapshot(this);
222
    return new FlipkartFaSalesSnapshot(this);
183
  }
223
  }
Line 194... Line 234...
194
    this.isOutOfStock = false;
234
    this.isOutOfStock = false;
195
    setTotalSaleIsSet(false);
235
    setTotalSaleIsSet(false);
196
    this.totalSale = 0.0;
236
    this.totalSale = 0.0;
197
    setOurPriceIsSet(false);
237
    setOurPriceIsSet(false);
198
    this.ourPrice = 0.0;
238
    this.ourPrice = 0.0;
-
 
239
    this.fcLocation = null;
-
 
240
    setReturnQuantityIsSet(false);
-
 
241
    this.returnQuantity = 0;
-
 
242
    setReturnValueIsSet(false);
-
 
243
    this.returnValue = 0.0;
199
  }
244
  }
200
 
245
 
201
  public long getDateOfSale() {
246
  public long getDateOfSale() {
202
    return this.dateOfSale;
247
    return this.dateOfSale;
203
  }
248
  }
Line 328... Line 373...
328
 
373
 
329
  public void setOurPriceIsSet(boolean value) {
374
  public void setOurPriceIsSet(boolean value) {
330
    __isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
375
    __isset_bit_vector.set(__OURPRICE_ISSET_ID, value);
331
  }
376
  }
332
 
377
 
-
 
378
  /**
-
 
379
   * 
-
 
380
   * @see FlipkartFCWarehouseLocation
-
 
381
   */
-
 
382
  public FlipkartFCWarehouseLocation getFcLocation() {
-
 
383
    return this.fcLocation;
-
 
384
  }
-
 
385
 
-
 
386
  /**
-
 
387
   * 
-
 
388
   * @see FlipkartFCWarehouseLocation
-
 
389
   */
-
 
390
  public void setFcLocation(FlipkartFCWarehouseLocation fcLocation) {
-
 
391
    this.fcLocation = fcLocation;
-
 
392
  }
-
 
393
 
-
 
394
  public void unsetFcLocation() {
-
 
395
    this.fcLocation = null;
-
 
396
  }
-
 
397
 
-
 
398
  /** Returns true if field fcLocation is set (has been assigned a value) and false otherwise */
-
 
399
  public boolean isSetFcLocation() {
-
 
400
    return this.fcLocation != null;
-
 
401
  }
-
 
402
 
-
 
403
  public void setFcLocationIsSet(boolean value) {
-
 
404
    if (!value) {
-
 
405
      this.fcLocation = null;
-
 
406
    }
-
 
407
  }
-
 
408
 
-
 
409
  public int getReturnQuantity() {
-
 
410
    return this.returnQuantity;
-
 
411
  }
-
 
412
 
-
 
413
  public void setReturnQuantity(int returnQuantity) {
-
 
414
    this.returnQuantity = returnQuantity;
-
 
415
    setReturnQuantityIsSet(true);
-
 
416
  }
-
 
417
 
-
 
418
  public void unsetReturnQuantity() {
-
 
419
    __isset_bit_vector.clear(__RETURNQUANTITY_ISSET_ID);
-
 
420
  }
-
 
421
 
-
 
422
  /** Returns true if field returnQuantity is set (has been assigned a value) and false otherwise */
-
 
423
  public boolean isSetReturnQuantity() {
-
 
424
    return __isset_bit_vector.get(__RETURNQUANTITY_ISSET_ID);
-
 
425
  }
-
 
426
 
-
 
427
  public void setReturnQuantityIsSet(boolean value) {
-
 
428
    __isset_bit_vector.set(__RETURNQUANTITY_ISSET_ID, value);
-
 
429
  }
-
 
430
 
-
 
431
  public double getReturnValue() {
-
 
432
    return this.returnValue;
-
 
433
  }
-
 
434
 
-
 
435
  public void setReturnValue(double returnValue) {
-
 
436
    this.returnValue = returnValue;
-
 
437
    setReturnValueIsSet(true);
-
 
438
  }
-
 
439
 
-
 
440
  public void unsetReturnValue() {
-
 
441
    __isset_bit_vector.clear(__RETURNVALUE_ISSET_ID);
-
 
442
  }
-
 
443
 
-
 
444
  /** Returns true if field returnValue is set (has been assigned a value) and false otherwise */
-
 
445
  public boolean isSetReturnValue() {
-
 
446
    return __isset_bit_vector.get(__RETURNVALUE_ISSET_ID);
-
 
447
  }
-
 
448
 
-
 
449
  public void setReturnValueIsSet(boolean value) {
-
 
450
    __isset_bit_vector.set(__RETURNVALUE_ISSET_ID, value);
-
 
451
  }
-
 
452
 
333
  public void setFieldValue(_Fields field, Object value) {
453
  public void setFieldValue(_Fields field, Object value) {
334
    switch (field) {
454
    switch (field) {
335
    case DATE_OF_SALE:
455
    case DATE_OF_SALE:
336
      if (value == null) {
456
      if (value == null) {
337
        unsetDateOfSale();
457
        unsetDateOfSale();
Line 378... Line 498...
378
      } else {
498
      } else {
379
        setOurPrice((Double)value);
499
        setOurPrice((Double)value);
380
      }
500
      }
381
      break;
501
      break;
382
 
502
 
-
 
503
    case FC_LOCATION:
-
 
504
      if (value == null) {
-
 
505
        unsetFcLocation();
-
 
506
      } else {
-
 
507
        setFcLocation((FlipkartFCWarehouseLocation)value);
-
 
508
      }
-
 
509
      break;
-
 
510
 
-
 
511
    case RETURN_QUANTITY:
-
 
512
      if (value == null) {
-
 
513
        unsetReturnQuantity();
-
 
514
      } else {
-
 
515
        setReturnQuantity((Integer)value);
-
 
516
      }
-
 
517
      break;
-
 
518
 
-
 
519
    case RETURN_VALUE:
-
 
520
      if (value == null) {
-
 
521
        unsetReturnValue();
-
 
522
      } else {
-
 
523
        setReturnValue((Double)value);
-
 
524
      }
-
 
525
      break;
-
 
526
 
383
    }
527
    }
384
  }
528
  }
385
 
529
 
386
  public Object getFieldValue(_Fields field) {
530
  public Object getFieldValue(_Fields field) {
387
    switch (field) {
531
    switch (field) {
Line 401... Line 545...
401
      return Double.valueOf(getTotalSale());
545
      return Double.valueOf(getTotalSale());
402
 
546
 
403
    case OUR_PRICE:
547
    case OUR_PRICE:
404
      return Double.valueOf(getOurPrice());
548
      return Double.valueOf(getOurPrice());
405
 
549
 
-
 
550
    case FC_LOCATION:
-
 
551
      return getFcLocation();
-
 
552
 
-
 
553
    case RETURN_QUANTITY:
-
 
554
      return Integer.valueOf(getReturnQuantity());
-
 
555
 
-
 
556
    case RETURN_VALUE:
-
 
557
      return Double.valueOf(getReturnValue());
-
 
558
 
406
    }
559
    }
407
    throw new IllegalStateException();
560
    throw new IllegalStateException();
408
  }
561
  }
409
 
562
 
410
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
563
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 424... Line 577...
424
      return isSetIsOutOfStock();
577
      return isSetIsOutOfStock();
425
    case TOTAL_SALE:
578
    case TOTAL_SALE:
426
      return isSetTotalSale();
579
      return isSetTotalSale();
427
    case OUR_PRICE:
580
    case OUR_PRICE:
428
      return isSetOurPrice();
581
      return isSetOurPrice();
-
 
582
    case FC_LOCATION:
-
 
583
      return isSetFcLocation();
-
 
584
    case RETURN_QUANTITY:
-
 
585
      return isSetReturnQuantity();
-
 
586
    case RETURN_VALUE:
-
 
587
      return isSetReturnValue();
429
    }
588
    }
430
    throw new IllegalStateException();
589
    throw new IllegalStateException();
431
  }
590
  }
432
 
591
 
433
  @Override
592
  @Override
Line 495... Line 654...
495
        return false;
654
        return false;
496
      if (this.ourPrice != that.ourPrice)
655
      if (this.ourPrice != that.ourPrice)
497
        return false;
656
        return false;
498
    }
657
    }
499
 
658
 
-
 
659
    boolean this_present_fcLocation = true && this.isSetFcLocation();
-
 
660
    boolean that_present_fcLocation = true && that.isSetFcLocation();
-
 
661
    if (this_present_fcLocation || that_present_fcLocation) {
-
 
662
      if (!(this_present_fcLocation && that_present_fcLocation))
-
 
663
        return false;
-
 
664
      if (!this.fcLocation.equals(that.fcLocation))
-
 
665
        return false;
-
 
666
    }
-
 
667
 
-
 
668
    boolean this_present_returnQuantity = true;
-
 
669
    boolean that_present_returnQuantity = true;
-
 
670
    if (this_present_returnQuantity || that_present_returnQuantity) {
-
 
671
      if (!(this_present_returnQuantity && that_present_returnQuantity))
-
 
672
        return false;
-
 
673
      if (this.returnQuantity != that.returnQuantity)
-
 
674
        return false;
-
 
675
    }
-
 
676
 
-
 
677
    boolean this_present_returnValue = true;
-
 
678
    boolean that_present_returnValue = true;
-
 
679
    if (this_present_returnValue || that_present_returnValue) {
-
 
680
      if (!(this_present_returnValue && that_present_returnValue))
-
 
681
        return false;
-
 
682
      if (this.returnValue != that.returnValue)
-
 
683
        return false;
-
 
684
    }
-
 
685
 
500
    return true;
686
    return true;
501
  }
687
  }
502
 
688
 
503
  @Override
689
  @Override
504
  public int hashCode() {
690
  public int hashCode() {
Line 571... Line 757...
571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
757
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ourPrice, typedOther.ourPrice);
572
      if (lastComparison != 0) {
758
      if (lastComparison != 0) {
573
        return lastComparison;
759
        return lastComparison;
574
      }
760
      }
575
    }
761
    }
-
 
762
    lastComparison = Boolean.valueOf(isSetFcLocation()).compareTo(typedOther.isSetFcLocation());
-
 
763
    if (lastComparison != 0) {
-
 
764
      return lastComparison;
-
 
765
    }
-
 
766
    if (isSetFcLocation()) {
-
 
767
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fcLocation, typedOther.fcLocation);
-
 
768
      if (lastComparison != 0) {
-
 
769
        return lastComparison;
-
 
770
      }
-
 
771
    }
-
 
772
    lastComparison = Boolean.valueOf(isSetReturnQuantity()).compareTo(typedOther.isSetReturnQuantity());
-
 
773
    if (lastComparison != 0) {
-
 
774
      return lastComparison;
-
 
775
    }
-
 
776
    if (isSetReturnQuantity()) {
-
 
777
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnQuantity, typedOther.returnQuantity);
-
 
778
      if (lastComparison != 0) {
-
 
779
        return lastComparison;
-
 
780
      }
-
 
781
    }
-
 
782
    lastComparison = Boolean.valueOf(isSetReturnValue()).compareTo(typedOther.isSetReturnValue());
-
 
783
    if (lastComparison != 0) {
-
 
784
      return lastComparison;
-
 
785
    }
-
 
786
    if (isSetReturnValue()) {
-
 
787
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnValue, typedOther.returnValue);
-
 
788
      if (lastComparison != 0) {
-
 
789
        return lastComparison;
-
 
790
      }
-
 
791
    }
576
    return 0;
792
    return 0;
577
  }
793
  }
578
 
794
 
579
  public _Fields fieldForId(int fieldId) {
795
  public _Fields fieldForId(int fieldId) {
580
    return _Fields.findByThriftId(fieldId);
796
    return _Fields.findByThriftId(fieldId);
Line 636... Line 852...
636
            setOurPriceIsSet(true);
852
            setOurPriceIsSet(true);
637
          } else { 
853
          } else { 
638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
639
          }
855
          }
640
          break;
856
          break;
-
 
857
        case 7: // FC_LOCATION
-
 
858
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
859
            this.fcLocation = FlipkartFCWarehouseLocation.findByValue(iprot.readI32());
-
 
860
          } else { 
-
 
861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
862
          }
-
 
863
          break;
-
 
864
        case 8: // RETURN_QUANTITY
-
 
865
          if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
866
            this.returnQuantity = iprot.readI32();
-
 
867
            setReturnQuantityIsSet(true);
-
 
868
          } else { 
-
 
869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
870
          }
-
 
871
          break;
-
 
872
        case 9: // RETURN_VALUE
-
 
873
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
-
 
874
            this.returnValue = iprot.readDouble();
-
 
875
            setReturnValueIsSet(true);
-
 
876
          } else { 
-
 
877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
878
          }
-
 
879
          break;
641
        default:
880
        default:
642
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
881
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
643
      }
882
      }
644
      iprot.readFieldEnd();
883
      iprot.readFieldEnd();
645
    }
884
    }
Line 667... Line 906...
667
    oprot.writeDouble(this.totalSale);
906
    oprot.writeDouble(this.totalSale);
668
    oprot.writeFieldEnd();
907
    oprot.writeFieldEnd();
669
    oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
908
    oprot.writeFieldBegin(OUR_PRICE_FIELD_DESC);
670
    oprot.writeDouble(this.ourPrice);
909
    oprot.writeDouble(this.ourPrice);
671
    oprot.writeFieldEnd();
910
    oprot.writeFieldEnd();
-
 
911
    if (this.fcLocation != null) {
-
 
912
      oprot.writeFieldBegin(FC_LOCATION_FIELD_DESC);
-
 
913
      oprot.writeI32(this.fcLocation.getValue());
-
 
914
      oprot.writeFieldEnd();
-
 
915
    }
-
 
916
    oprot.writeFieldBegin(RETURN_QUANTITY_FIELD_DESC);
-
 
917
    oprot.writeI32(this.returnQuantity);
-
 
918
    oprot.writeFieldEnd();
-
 
919
    oprot.writeFieldBegin(RETURN_VALUE_FIELD_DESC);
-
 
920
    oprot.writeDouble(this.returnValue);
-
 
921
    oprot.writeFieldEnd();
672
    oprot.writeFieldStop();
922
    oprot.writeFieldStop();
673
    oprot.writeStructEnd();
923
    oprot.writeStructEnd();
674
  }
924
  }
675
 
925
 
676
  @Override
926
  @Override
Line 699... Line 949...
699
    first = false;
949
    first = false;
700
    if (!first) sb.append(", ");
950
    if (!first) sb.append(", ");
701
    sb.append("ourPrice:");
951
    sb.append("ourPrice:");
702
    sb.append(this.ourPrice);
952
    sb.append(this.ourPrice);
703
    first = false;
953
    first = false;
-
 
954
    if (!first) sb.append(", ");
-
 
955
    sb.append("fcLocation:");
-
 
956
    if (this.fcLocation == null) {
-
 
957
      sb.append("null");
-
 
958
    } else {
-
 
959
      sb.append(this.fcLocation);
-
 
960
    }
-
 
961
    first = false;
-
 
962
    if (!first) sb.append(", ");
-
 
963
    sb.append("returnQuantity:");
-
 
964
    sb.append(this.returnQuantity);
-
 
965
    first = false;
-
 
966
    if (!first) sb.append(", ");
-
 
967
    sb.append("returnValue:");
-
 
968
    sb.append(this.returnValue);
-
 
969
    first = false;
704
    sb.append(")");
970
    sb.append(")");
705
    return sb.toString();
971
    return sb.toString();
706
  }
972
  }
707
 
973
 
708
  public void validate() throws org.apache.thrift.TException {
974
  public void validate() throws org.apache.thrift.TException {