Subversion Repositories SmartDukaan

Rev

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

Rev 9568 Rev 9724
Line 44... Line 44...
44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
44
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
45
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
45
  private static final org.apache.thrift.protocol.TField WEBSITE_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("websiteSellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
46
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
46
  private static final org.apache.thrift.protocol.TField MAX_NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("maxNlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
47
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)22);
47
  private static final org.apache.thrift.protocol.TField SKU_AT_SNAPDEAL_FIELD_DESC = new org.apache.thrift.protocol.TField("skuAtSnapdeal", org.apache.thrift.protocol.TType.STRING, (short)22);
48
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)23);
48
  private static final org.apache.thrift.protocol.TField SUPC_FIELD_DESC = new org.apache.thrift.protocol.TField("supc", org.apache.thrift.protocol.TType.STRING, (short)23);
-
 
49
  private static final org.apache.thrift.protocol.TField LAST_UPDATED_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedInventory", org.apache.thrift.protocol.TType.I64, (short)24);
-
 
50
  private static final org.apache.thrift.protocol.TField LAST_UPDATED_INVENTORY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("lastUpdatedInventoryTimestamp", org.apache.thrift.protocol.TType.I64, (short)25);
-
 
51
  private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.I64, (short)26);
49
 
52
 
50
  private long item_id; // required
53
  private long item_id; // required
51
  private long warehouseId; // required
54
  private long warehouseId; // required
52
  private double exceptionPrice; // required
55
  private double exceptionPrice; // required
53
  private boolean isListedOnSnapdeal; // required
56
  private boolean isListedOnSnapdeal; // required
Line 68... Line 71...
68
  private double mrp; // required
71
  private double mrp; // required
69
  private double websiteSellingPrice; // required
72
  private double websiteSellingPrice; // required
70
  private double maxNlc; // required
73
  private double maxNlc; // required
71
  private String skuAtSnapdeal; // required
74
  private String skuAtSnapdeal; // required
72
  private String supc; // required
75
  private String supc; // required
-
 
76
  private long lastUpdatedInventory; // required
-
 
77
  private long lastUpdatedInventoryTimestamp; // required
-
 
78
  private long shippingTime; // required
73
 
79
 
74
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
80
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
75
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
81
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
76
    ITEM_ID((short)1, "item_id"),
82
    ITEM_ID((short)1, "item_id"),
77
    WAREHOUSE_ID((short)2, "warehouseId"),
83
    WAREHOUSE_ID((short)2, "warehouseId"),
Line 97... Line 103...
97
    WEIGHT((short)18, "weight"),
103
    WEIGHT((short)18, "weight"),
98
    MRP((short)19, "mrp"),
104
    MRP((short)19, "mrp"),
99
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice"),
105
    WEBSITE_SELLING_PRICE((short)20, "websiteSellingPrice"),
100
    MAX_NLC((short)21, "maxNlc"),
106
    MAX_NLC((short)21, "maxNlc"),
101
    SKU_AT_SNAPDEAL((short)22, "skuAtSnapdeal"),
107
    SKU_AT_SNAPDEAL((short)22, "skuAtSnapdeal"),
102
    SUPC((short)23, "supc");
108
    SUPC((short)23, "supc"),
-
 
109
    LAST_UPDATED_INVENTORY((short)24, "lastUpdatedInventory"),
-
 
110
    LAST_UPDATED_INVENTORY_TIMESTAMP((short)25, "lastUpdatedInventoryTimestamp"),
-
 
111
    SHIPPING_TIME((short)26, "shippingTime");
103
 
112
 
104
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
113
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
105
 
114
 
106
    static {
115
    static {
107
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
116
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 158... Line 167...
158
          return MAX_NLC;
167
          return MAX_NLC;
159
        case 22: // SKU_AT_SNAPDEAL
168
        case 22: // SKU_AT_SNAPDEAL
160
          return SKU_AT_SNAPDEAL;
169
          return SKU_AT_SNAPDEAL;
161
        case 23: // SUPC
170
        case 23: // SUPC
162
          return SUPC;
171
          return SUPC;
-
 
172
        case 24: // LAST_UPDATED_INVENTORY
-
 
173
          return LAST_UPDATED_INVENTORY;
-
 
174
        case 25: // LAST_UPDATED_INVENTORY_TIMESTAMP
-
 
175
          return LAST_UPDATED_INVENTORY_TIMESTAMP;
-
 
176
        case 26: // SHIPPING_TIME
-
 
177
          return SHIPPING_TIME;
163
        default:
178
        default:
164
          return null;
179
          return null;
165
      }
180
      }
166
    }
181
    }
167
 
182
 
Line 214... Line 229...
214
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
229
  private static final int __SUPPRESSINVENTORYFEED_ISSET_ID = 11;
215
  private static final int __WEIGHT_ISSET_ID = 12;
230
  private static final int __WEIGHT_ISSET_ID = 12;
216
  private static final int __MRP_ISSET_ID = 13;
231
  private static final int __MRP_ISSET_ID = 13;
217
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
232
  private static final int __WEBSITESELLINGPRICE_ISSET_ID = 14;
218
  private static final int __MAXNLC_ISSET_ID = 15;
233
  private static final int __MAXNLC_ISSET_ID = 15;
-
 
234
  private static final int __LASTUPDATEDINVENTORY_ISSET_ID = 16;
-
 
235
  private static final int __LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID = 17;
-
 
236
  private static final int __SHIPPINGTIME_ISSET_ID = 18;
219
  private BitSet __isset_bit_vector = new BitSet(16);
237
  private BitSet __isset_bit_vector = new BitSet(19);
220
 
238
 
221
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
239
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
222
  static {
240
  static {
223
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
241
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
224
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
242
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 265... Line 283...
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
283
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
266
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
284
    tmpMap.put(_Fields.SKU_AT_SNAPDEAL, new org.apache.thrift.meta_data.FieldMetaData("skuAtSnapdeal", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
285
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
268
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
286
    tmpMap.put(_Fields.SUPC, new org.apache.thrift.meta_data.FieldMetaData("supc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
287
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
288
    tmpMap.put(_Fields.LAST_UPDATED_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
289
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
290
    tmpMap.put(_Fields.LAST_UPDATED_INVENTORY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("lastUpdatedInventoryTimestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
291
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
292
    tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
293
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
270
    metaDataMap = Collections.unmodifiableMap(tmpMap);
294
    metaDataMap = Collections.unmodifiableMap(tmpMap);
271
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
295
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SnapdealItemDetails.class, metaDataMap);
272
  }
296
  }
273
 
297
 
274
  public SnapdealItemDetails() {
298
  public SnapdealItemDetails() {
Line 295... Line 319...
295
    double weight,
319
    double weight,
296
    double mrp,
320
    double mrp,
297
    double websiteSellingPrice,
321
    double websiteSellingPrice,
298
    double maxNlc,
322
    double maxNlc,
299
    String skuAtSnapdeal,
323
    String skuAtSnapdeal,
300
    String supc)
324
    String supc,
-
 
325
    long lastUpdatedInventory,
-
 
326
    long lastUpdatedInventoryTimestamp,
-
 
327
    long shippingTime)
301
  {
328
  {
302
    this();
329
    this();
303
    this.item_id = item_id;
330
    this.item_id = item_id;
304
    setItem_idIsSet(true);
331
    setItem_idIsSet(true);
305
    this.warehouseId = warehouseId;
332
    this.warehouseId = warehouseId;
Line 337... Line 364...
337
    setWebsiteSellingPriceIsSet(true);
364
    setWebsiteSellingPriceIsSet(true);
338
    this.maxNlc = maxNlc;
365
    this.maxNlc = maxNlc;
339
    setMaxNlcIsSet(true);
366
    setMaxNlcIsSet(true);
340
    this.skuAtSnapdeal = skuAtSnapdeal;
367
    this.skuAtSnapdeal = skuAtSnapdeal;
341
    this.supc = supc;
368
    this.supc = supc;
-
 
369
    this.lastUpdatedInventory = lastUpdatedInventory;
-
 
370
    setLastUpdatedInventoryIsSet(true);
-
 
371
    this.lastUpdatedInventoryTimestamp = lastUpdatedInventoryTimestamp;
-
 
372
    setLastUpdatedInventoryTimestampIsSet(true);
-
 
373
    this.shippingTime = shippingTime;
-
 
374
    setShippingTimeIsSet(true);
342
  }
375
  }
343
 
376
 
344
  /**
377
  /**
345
   * Performs a deep copy on <i>other</i>.
378
   * Performs a deep copy on <i>other</i>.
346
   */
379
   */
Line 382... Line 415...
382
      this.skuAtSnapdeal = other.skuAtSnapdeal;
415
      this.skuAtSnapdeal = other.skuAtSnapdeal;
383
    }
416
    }
384
    if (other.isSetSupc()) {
417
    if (other.isSetSupc()) {
385
      this.supc = other.supc;
418
      this.supc = other.supc;
386
    }
419
    }
-
 
420
    this.lastUpdatedInventory = other.lastUpdatedInventory;
-
 
421
    this.lastUpdatedInventoryTimestamp = other.lastUpdatedInventoryTimestamp;
-
 
422
    this.shippingTime = other.shippingTime;
387
  }
423
  }
388
 
424
 
389
  public SnapdealItemDetails deepCopy() {
425
  public SnapdealItemDetails deepCopy() {
390
    return new SnapdealItemDetails(this);
426
    return new SnapdealItemDetails(this);
391
  }
427
  }
Line 429... Line 465...
429
    this.websiteSellingPrice = 0.0;
465
    this.websiteSellingPrice = 0.0;
430
    setMaxNlcIsSet(false);
466
    setMaxNlcIsSet(false);
431
    this.maxNlc = 0.0;
467
    this.maxNlc = 0.0;
432
    this.skuAtSnapdeal = null;
468
    this.skuAtSnapdeal = null;
433
    this.supc = null;
469
    this.supc = null;
-
 
470
    setLastUpdatedInventoryIsSet(false);
-
 
471
    this.lastUpdatedInventory = 0;
-
 
472
    setLastUpdatedInventoryTimestampIsSet(false);
-
 
473
    this.lastUpdatedInventoryTimestamp = 0;
-
 
474
    setShippingTimeIsSet(false);
-
 
475
    this.shippingTime = 0;
434
  }
476
  }
435
 
477
 
436
  public long getItem_id() {
478
  public long getItem_id() {
437
    return this.item_id;
479
    return this.item_id;
438
  }
480
  }
Line 952... Line 994...
952
    if (!value) {
994
    if (!value) {
953
      this.supc = null;
995
      this.supc = null;
954
    }
996
    }
955
  }
997
  }
956
 
998
 
-
 
999
  public long getLastUpdatedInventory() {
-
 
1000
    return this.lastUpdatedInventory;
-
 
1001
  }
-
 
1002
 
-
 
1003
  public void setLastUpdatedInventory(long lastUpdatedInventory) {
-
 
1004
    this.lastUpdatedInventory = lastUpdatedInventory;
-
 
1005
    setLastUpdatedInventoryIsSet(true);
-
 
1006
  }
-
 
1007
 
-
 
1008
  public void unsetLastUpdatedInventory() {
-
 
1009
    __isset_bit_vector.clear(__LASTUPDATEDINVENTORY_ISSET_ID);
-
 
1010
  }
-
 
1011
 
-
 
1012
  /** Returns true if field lastUpdatedInventory is set (has been assigned a value) and false otherwise */
-
 
1013
  public boolean isSetLastUpdatedInventory() {
-
 
1014
    return __isset_bit_vector.get(__LASTUPDATEDINVENTORY_ISSET_ID);
-
 
1015
  }
-
 
1016
 
-
 
1017
  public void setLastUpdatedInventoryIsSet(boolean value) {
-
 
1018
    __isset_bit_vector.set(__LASTUPDATEDINVENTORY_ISSET_ID, value);
-
 
1019
  }
-
 
1020
 
-
 
1021
  public long getLastUpdatedInventoryTimestamp() {
-
 
1022
    return this.lastUpdatedInventoryTimestamp;
-
 
1023
  }
-
 
1024
 
-
 
1025
  public void setLastUpdatedInventoryTimestamp(long lastUpdatedInventoryTimestamp) {
-
 
1026
    this.lastUpdatedInventoryTimestamp = lastUpdatedInventoryTimestamp;
-
 
1027
    setLastUpdatedInventoryTimestampIsSet(true);
-
 
1028
  }
-
 
1029
 
-
 
1030
  public void unsetLastUpdatedInventoryTimestamp() {
-
 
1031
    __isset_bit_vector.clear(__LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID);
-
 
1032
  }
-
 
1033
 
-
 
1034
  /** Returns true if field lastUpdatedInventoryTimestamp is set (has been assigned a value) and false otherwise */
-
 
1035
  public boolean isSetLastUpdatedInventoryTimestamp() {
-
 
1036
    return __isset_bit_vector.get(__LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID);
-
 
1037
  }
-
 
1038
 
-
 
1039
  public void setLastUpdatedInventoryTimestampIsSet(boolean value) {
-
 
1040
    __isset_bit_vector.set(__LASTUPDATEDINVENTORYTIMESTAMP_ISSET_ID, value);
-
 
1041
  }
-
 
1042
 
-
 
1043
  public long getShippingTime() {
-
 
1044
    return this.shippingTime;
-
 
1045
  }
-
 
1046
 
-
 
1047
  public void setShippingTime(long shippingTime) {
-
 
1048
    this.shippingTime = shippingTime;
-
 
1049
    setShippingTimeIsSet(true);
-
 
1050
  }
-
 
1051
 
-
 
1052
  public void unsetShippingTime() {
-
 
1053
    __isset_bit_vector.clear(__SHIPPINGTIME_ISSET_ID);
-
 
1054
  }
-
 
1055
 
-
 
1056
  /** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
-
 
1057
  public boolean isSetShippingTime() {
-
 
1058
    return __isset_bit_vector.get(__SHIPPINGTIME_ISSET_ID);
-
 
1059
  }
-
 
1060
 
-
 
1061
  public void setShippingTimeIsSet(boolean value) {
-
 
1062
    __isset_bit_vector.set(__SHIPPINGTIME_ISSET_ID, value);
-
 
1063
  }
-
 
1064
 
957
  public void setFieldValue(_Fields field, Object value) {
1065
  public void setFieldValue(_Fields field, Object value) {
958
    switch (field) {
1066
    switch (field) {
959
    case ITEM_ID:
1067
    case ITEM_ID:
960
      if (value == null) {
1068
      if (value == null) {
961
        unsetItem_id();
1069
        unsetItem_id();
Line 1138... Line 1246...
1138
      } else {
1246
      } else {
1139
        setSupc((String)value);
1247
        setSupc((String)value);
1140
      }
1248
      }
1141
      break;
1249
      break;
1142
 
1250
 
-
 
1251
    case LAST_UPDATED_INVENTORY:
-
 
1252
      if (value == null) {
-
 
1253
        unsetLastUpdatedInventory();
-
 
1254
      } else {
-
 
1255
        setLastUpdatedInventory((Long)value);
-
 
1256
      }
-
 
1257
      break;
-
 
1258
 
-
 
1259
    case LAST_UPDATED_INVENTORY_TIMESTAMP:
-
 
1260
      if (value == null) {
-
 
1261
        unsetLastUpdatedInventoryTimestamp();
-
 
1262
      } else {
-
 
1263
        setLastUpdatedInventoryTimestamp((Long)value);
-
 
1264
      }
-
 
1265
      break;
-
 
1266
 
-
 
1267
    case SHIPPING_TIME:
-
 
1268
      if (value == null) {
-
 
1269
        unsetShippingTime();
-
 
1270
      } else {
-
 
1271
        setShippingTime((Long)value);
-
 
1272
      }
-
 
1273
      break;
-
 
1274
 
1143
    }
1275
    }
1144
  }
1276
  }
1145
 
1277
 
1146
  public Object getFieldValue(_Fields field) {
1278
  public Object getFieldValue(_Fields field) {
1147
    switch (field) {
1279
    switch (field) {
Line 1212... Line 1344...
1212
      return getSkuAtSnapdeal();
1344
      return getSkuAtSnapdeal();
1213
 
1345
 
1214
    case SUPC:
1346
    case SUPC:
1215
      return getSupc();
1347
      return getSupc();
1216
 
1348
 
-
 
1349
    case LAST_UPDATED_INVENTORY:
-
 
1350
      return Long.valueOf(getLastUpdatedInventory());
-
 
1351
 
-
 
1352
    case LAST_UPDATED_INVENTORY_TIMESTAMP:
-
 
1353
      return Long.valueOf(getLastUpdatedInventoryTimestamp());
-
 
1354
 
-
 
1355
    case SHIPPING_TIME:
-
 
1356
      return Long.valueOf(getShippingTime());
-
 
1357
 
1217
    }
1358
    }
1218
    throw new IllegalStateException();
1359
    throw new IllegalStateException();
1219
  }
1360
  }
1220
 
1361
 
1221
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1362
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 1269... Line 1410...
1269
      return isSetMaxNlc();
1410
      return isSetMaxNlc();
1270
    case SKU_AT_SNAPDEAL:
1411
    case SKU_AT_SNAPDEAL:
1271
      return isSetSkuAtSnapdeal();
1412
      return isSetSkuAtSnapdeal();
1272
    case SUPC:
1413
    case SUPC:
1273
      return isSetSupc();
1414
      return isSetSupc();
-
 
1415
    case LAST_UPDATED_INVENTORY:
-
 
1416
      return isSetLastUpdatedInventory();
-
 
1417
    case LAST_UPDATED_INVENTORY_TIMESTAMP:
-
 
1418
      return isSetLastUpdatedInventoryTimestamp();
-
 
1419
    case SHIPPING_TIME:
-
 
1420
      return isSetShippingTime();
1274
    }
1421
    }
1275
    throw new IllegalStateException();
1422
    throw new IllegalStateException();
1276
  }
1423
  }
1277
 
1424
 
1278
  @Override
1425
  @Override
Line 1493... Line 1640...
1493
        return false;
1640
        return false;
1494
      if (!this.supc.equals(that.supc))
1641
      if (!this.supc.equals(that.supc))
1495
        return false;
1642
        return false;
1496
    }
1643
    }
1497
 
1644
 
-
 
1645
    boolean this_present_lastUpdatedInventory = true;
-
 
1646
    boolean that_present_lastUpdatedInventory = true;
-
 
1647
    if (this_present_lastUpdatedInventory || that_present_lastUpdatedInventory) {
-
 
1648
      if (!(this_present_lastUpdatedInventory && that_present_lastUpdatedInventory))
-
 
1649
        return false;
-
 
1650
      if (this.lastUpdatedInventory != that.lastUpdatedInventory)
-
 
1651
        return false;
-
 
1652
    }
-
 
1653
 
-
 
1654
    boolean this_present_lastUpdatedInventoryTimestamp = true;
-
 
1655
    boolean that_present_lastUpdatedInventoryTimestamp = true;
-
 
1656
    if (this_present_lastUpdatedInventoryTimestamp || that_present_lastUpdatedInventoryTimestamp) {
-
 
1657
      if (!(this_present_lastUpdatedInventoryTimestamp && that_present_lastUpdatedInventoryTimestamp))
-
 
1658
        return false;
-
 
1659
      if (this.lastUpdatedInventoryTimestamp != that.lastUpdatedInventoryTimestamp)
-
 
1660
        return false;
-
 
1661
    }
-
 
1662
 
-
 
1663
    boolean this_present_shippingTime = true;
-
 
1664
    boolean that_present_shippingTime = true;
-
 
1665
    if (this_present_shippingTime || that_present_shippingTime) {
-
 
1666
      if (!(this_present_shippingTime && that_present_shippingTime))
-
 
1667
        return false;
-
 
1668
      if (this.shippingTime != that.shippingTime)
-
 
1669
        return false;
-
 
1670
    }
-
 
1671
 
1498
    return true;
1672
    return true;
1499
  }
1673
  }
1500
 
1674
 
1501
  @Override
1675
  @Override
1502
  public int hashCode() {
1676
  public int hashCode() {
Line 1739... Line 1913...
1739
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
1913
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.supc, typedOther.supc);
1740
      if (lastComparison != 0) {
1914
      if (lastComparison != 0) {
1741
        return lastComparison;
1915
        return lastComparison;
1742
      }
1916
      }
1743
    }
1917
    }
-
 
1918
    lastComparison = Boolean.valueOf(isSetLastUpdatedInventory()).compareTo(typedOther.isSetLastUpdatedInventory());
-
 
1919
    if (lastComparison != 0) {
-
 
1920
      return lastComparison;
-
 
1921
    }
-
 
1922
    if (isSetLastUpdatedInventory()) {
-
 
1923
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedInventory, typedOther.lastUpdatedInventory);
-
 
1924
      if (lastComparison != 0) {
-
 
1925
        return lastComparison;
-
 
1926
      }
-
 
1927
    }
-
 
1928
    lastComparison = Boolean.valueOf(isSetLastUpdatedInventoryTimestamp()).compareTo(typedOther.isSetLastUpdatedInventoryTimestamp());
-
 
1929
    if (lastComparison != 0) {
-
 
1930
      return lastComparison;
-
 
1931
    }
-
 
1932
    if (isSetLastUpdatedInventoryTimestamp()) {
-
 
1933
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastUpdatedInventoryTimestamp, typedOther.lastUpdatedInventoryTimestamp);
-
 
1934
      if (lastComparison != 0) {
-
 
1935
        return lastComparison;
-
 
1936
      }
-
 
1937
    }
-
 
1938
    lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
-
 
1939
    if (lastComparison != 0) {
-
 
1940
      return lastComparison;
-
 
1941
    }
-
 
1942
    if (isSetShippingTime()) {
-
 
1943
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
-
 
1944
      if (lastComparison != 0) {
-
 
1945
        return lastComparison;
-
 
1946
      }
-
 
1947
    }
1744
    return 0;
1948
    return 0;
1745
  }
1949
  }
1746
 
1950
 
1747
  public _Fields fieldForId(int fieldId) {
1951
  public _Fields fieldForId(int fieldId) {
1748
    return _Fields.findByThriftId(fieldId);
1952
    return _Fields.findByThriftId(fieldId);
Line 1933... Line 2137...
1933
            this.supc = iprot.readString();
2137
            this.supc = iprot.readString();
1934
          } else { 
2138
          } else { 
1935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1936
          }
2140
          }
1937
          break;
2141
          break;
-
 
2142
        case 24: // LAST_UPDATED_INVENTORY
-
 
2143
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
2144
            this.lastUpdatedInventory = iprot.readI64();
-
 
2145
            setLastUpdatedInventoryIsSet(true);
-
 
2146
          } else { 
-
 
2147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2148
          }
-
 
2149
          break;
-
 
2150
        case 25: // LAST_UPDATED_INVENTORY_TIMESTAMP
-
 
2151
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
2152
            this.lastUpdatedInventoryTimestamp = iprot.readI64();
-
 
2153
            setLastUpdatedInventoryTimestampIsSet(true);
-
 
2154
          } else { 
-
 
2155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2156
          }
-
 
2157
          break;
-
 
2158
        case 26: // SHIPPING_TIME
-
 
2159
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
2160
            this.shippingTime = iprot.readI64();
-
 
2161
            setShippingTimeIsSet(true);
-
 
2162
          } else { 
-
 
2163
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2164
          }
-
 
2165
          break;
1938
        default:
2166
        default:
1939
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2167
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1940
      }
2168
      }
1941
      iprot.readFieldEnd();
2169
      iprot.readFieldEnd();
1942
    }
2170
    }
Line 2029... Line 2257...
2029
    if (this.supc != null) {
2257
    if (this.supc != null) {
2030
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
2258
      oprot.writeFieldBegin(SUPC_FIELD_DESC);
2031
      oprot.writeString(this.supc);
2259
      oprot.writeString(this.supc);
2032
      oprot.writeFieldEnd();
2260
      oprot.writeFieldEnd();
2033
    }
2261
    }
-
 
2262
    oprot.writeFieldBegin(LAST_UPDATED_INVENTORY_FIELD_DESC);
-
 
2263
    oprot.writeI64(this.lastUpdatedInventory);
-
 
2264
    oprot.writeFieldEnd();
-
 
2265
    oprot.writeFieldBegin(LAST_UPDATED_INVENTORY_TIMESTAMP_FIELD_DESC);
-
 
2266
    oprot.writeI64(this.lastUpdatedInventoryTimestamp);
-
 
2267
    oprot.writeFieldEnd();
-
 
2268
    oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
-
 
2269
    oprot.writeI64(this.shippingTime);
-
 
2270
    oprot.writeFieldEnd();
2034
    oprot.writeFieldStop();
2271
    oprot.writeFieldStop();
2035
    oprot.writeStructEnd();
2272
    oprot.writeStructEnd();
2036
  }
2273
  }
2037
 
2274
 
2038
  @Override
2275
  @Override
Line 2157... Line 2394...
2157
      sb.append("null");
2394
      sb.append("null");
2158
    } else {
2395
    } else {
2159
      sb.append(this.supc);
2396
      sb.append(this.supc);
2160
    }
2397
    }
2161
    first = false;
2398
    first = false;
-
 
2399
    if (!first) sb.append(", ");
-
 
2400
    sb.append("lastUpdatedInventory:");
-
 
2401
    sb.append(this.lastUpdatedInventory);
-
 
2402
    first = false;
-
 
2403
    if (!first) sb.append(", ");
-
 
2404
    sb.append("lastUpdatedInventoryTimestamp:");
-
 
2405
    sb.append(this.lastUpdatedInventoryTimestamp);
-
 
2406
    first = false;
-
 
2407
    if (!first) sb.append(", ");
-
 
2408
    sb.append("shippingTime:");
-
 
2409
    sb.append(this.shippingTime);
-
 
2410
    first = false;
2162
    sb.append(")");
2411
    sb.append(")");
2163
    return sb.toString();
2412
    return sb.toString();
2164
  }
2413
  }
2165
 
2414
 
2166
  public void validate() throws org.apache.thrift.TException {
2415
  public void validate() throws org.apache.thrift.TException {