Subversion Repositories SmartDukaan

Rev

Rev 18150 | Rev 19756 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
100 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
100 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.catalog;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
100 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class Item implements org.apache.thrift.TBase<Item, Item._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Item");
100 ashish 25
 
3430 rajveer 26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  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)4);
30
  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)5);
31
  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)6);
32
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField COMMENTS_FIELD_DESC = new org.apache.thrift.protocol.TField("comments", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField FEATURE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("featureId", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField FEATURE_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("featureDescription", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  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)13);
4762 phani.kuma 38
  private static final org.apache.thrift.protocol.TField SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("sellingPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
39
  private static final org.apache.thrift.protocol.TField WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("weight", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
40
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)16);
41
  private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)17);
42
  private static final org.apache.thrift.protocol.TField RETIRE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("retireDate", org.apache.thrift.protocol.TType.I64, (short)18);
43
  private static final org.apache.thrift.protocol.TField ITEM_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemStatus", org.apache.thrift.protocol.TType.I32, (short)19);
44
  private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("status_description", org.apache.thrift.protocol.TType.STRING, (short)20);
5336 rajveer 45
  private static final org.apache.thrift.protocol.TField OTHER_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("otherInfo", org.apache.thrift.protocol.TType.MAP, (short)21);
4762 phani.kuma 46
  private static final org.apache.thrift.protocol.TField BEST_DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealText", org.apache.thrift.protocol.TType.STRING, (short)22);
47
  private static final org.apache.thrift.protocol.TField BEST_DEAL_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealValue", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
48
  private static final org.apache.thrift.protocol.TField DEFAULT_FOR_ENTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultForEntity", org.apache.thrift.protocol.TType.BOOL, (short)24);
49
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)25);
50
  private static final org.apache.thrift.protocol.TField BEST_SELLING_RANK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestSellingRank", org.apache.thrift.protocol.TType.I64, (short)26);
51
  private static final org.apache.thrift.protocol.TField RISKY_FIELD_DESC = new org.apache.thrift.protocol.TField("risky", org.apache.thrift.protocol.TType.BOOL, (short)27);
52
  private static final org.apache.thrift.protocol.TField EXPECTED_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedDelay", org.apache.thrift.protocol.TType.I32, (short)28);
5440 phani.kuma 53
  private static final org.apache.thrift.protocol.TField IS_WAREHOUSE_PREFERENCE_STICKY_FIELD_DESC = new org.apache.thrift.protocol.TField("isWarehousePreferenceSticky", org.apache.thrift.protocol.TType.BOOL, (short)29);
54
  private static final org.apache.thrift.protocol.TField WARRANTY_PERIOD_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantyPeriod", org.apache.thrift.protocol.TType.I32, (short)30);
55
  private static final org.apache.thrift.protocol.TField PREFERRED_VENDOR_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredVendor", org.apache.thrift.protocol.TType.I64, (short)31);
56
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)32);
57
  private static final org.apache.thrift.protocol.TField COMING_SOON_START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("comingSoonStartDate", org.apache.thrift.protocol.TType.I64, (short)33);
58
  private static final org.apache.thrift.protocol.TField EXPECTED_ARRIVAL_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("expectedArrivalDate", org.apache.thrift.protocol.TType.I64, (short)34);
59
  private static final org.apache.thrift.protocol.TField HAS_ITEM_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("hasItemNo", org.apache.thrift.protocol.TType.BOOL, (short)35);
7256 rajveer 60
  private static final org.apache.thrift.protocol.TField ACTIVE_ON_STORE_FIELD_DESC = new org.apache.thrift.protocol.TField("activeOnStore", org.apache.thrift.protocol.TType.BOOL, (short)36);
6241 amit.gupta 61
  private static final org.apache.thrift.protocol.TField SHOW_SELLING_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("showSellingPrice", org.apache.thrift.protocol.TType.BOOL, (short)38);
6777 vikram.rag 62
  private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsText", org.apache.thrift.protocol.TType.STRING, (short)39);
63
  private static final org.apache.thrift.protocol.TField BEST_DEALS_DETAILS_LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("bestDealsDetailsLink", org.apache.thrift.protocol.TType.STRING, (short)40);
6805 anupam.sin 64
  private static final org.apache.thrift.protocol.TField PREFERRED_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("preferredInsurer", org.apache.thrift.protocol.TType.I64, (short)41);
7291 vikram.rag 65
  private static final org.apache.thrift.protocol.TField ASIN_FIELD_DESC = new org.apache.thrift.protocol.TField("asin", org.apache.thrift.protocol.TType.STRING, (short)42);
66
  private static final org.apache.thrift.protocol.TField DEFAULT_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultInventory", org.apache.thrift.protocol.TType.I64, (short)43);
67
  private static final org.apache.thrift.protocol.TField HOLD_INVENTORY_FIELD_DESC = new org.apache.thrift.protocol.TField("holdInventory", org.apache.thrift.protocol.TType.I64, (short)44);
9841 rajveer 68
  private static final org.apache.thrift.protocol.TField HOLD_OVERRIDE_FIELD_DESC = new org.apache.thrift.protocol.TField("holdOverride", org.apache.thrift.protocol.TType.BOOL, (short)45);
18002 kshitij.so 69
  private static final org.apache.thrift.protocol.TField PACK_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("packQuantity", org.apache.thrift.protocol.TType.I64, (short)46);
18150 kshitij.so 70
  private static final org.apache.thrift.protocol.TField QUANTITY_STEP_FIELD_DESC = new org.apache.thrift.protocol.TField("quantityStep", org.apache.thrift.protocol.TType.I64, (short)47);
71
  private static final org.apache.thrift.protocol.TField MINIMUM_BUY_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("minimumBuyQuantity", org.apache.thrift.protocol.TType.I64, (short)48);
18414 kshitij.so 72
  private static final org.apache.thrift.protocol.TField MAXIMUM_BUY_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("maximumBuyQuantity", org.apache.thrift.protocol.TType.I64, (short)49);
100 ashish 73
 
3430 rajveer 74
  private long id; // required
75
  private String productGroup; // required
76
  private String brand; // required
77
  private String modelNumber; // required
78
  private String modelName; // required
79
  private String color; // required
80
  private long category; // required
81
  private String comments; // required
82
  private long catalogItemId; // required
83
  private long featureId; // required
84
  private String featureDescription; // required
85
  private double mrp; // required
86
  private double sellingPrice; // required
87
  private double weight; // required
88
  private long addedOn; // required
89
  private long startDate; // required
90
  private long retireDate; // required
91
  private status itemStatus; // required
92
  private String status_description; // required
5336 rajveer 93
  private Map<String,String> otherInfo; // required
3430 rajveer 94
  private String bestDealText; // required
95
  private double bestDealValue; // required
96
  private boolean defaultForEntity; // required
97
  private long updatedOn; // required
98
  private long bestSellingRank; // required
99
  private boolean risky; // required
100
  private int expectedDelay; // required
4406 anupam.sin 101
  private boolean isWarehousePreferenceSticky; // required
4295 varun.gupt 102
  private int warrantyPeriod; // required
4506 phani.kuma 103
  private long preferredVendor; // required
5110 mandeep.dh 104
  private ItemType type; // required
5217 amit.gupta 105
  private long comingSoonStartDate; // required
106
  private long expectedArrivalDate; // required
5385 phani.kuma 107
  private boolean hasItemNo; // required
7256 rajveer 108
  private boolean activeOnStore; // required
6241 amit.gupta 109
  private boolean showSellingPrice; // required
6777 vikram.rag 110
  private String bestDealsDetailsText; // required
111
  private String bestDealsDetailsLink; // required
6805 anupam.sin 112
  private long preferredInsurer; // required
7291 vikram.rag 113
  private String asin; // required
114
  private long defaultInventory; // required
115
  private long holdInventory; // required
9841 rajveer 116
  private boolean holdOverride; // required
18002 kshitij.so 117
  private long packQuantity; // required
18150 kshitij.so 118
  private long quantityStep; // required
119
  private long minimumBuyQuantity; // required
18414 kshitij.so 120
  private long maximumBuyQuantity; // required
100 ashish 121
 
122
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 123
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
100 ashish 124
    ID((short)1, "id"),
957 chandransh 125
    PRODUCT_GROUP((short)2, "productGroup"),
126
    BRAND((short)3, "brand"),
127
    MODEL_NUMBER((short)4, "modelNumber"),
128
    MODEL_NAME((short)5, "modelName"),
1329 chandransh 129
    COLOR((short)6, "color"),
130
    CATEGORY((short)7, "category"),
131
    COMMENTS((short)8, "comments"),
132
    CATALOG_ITEM_ID((short)9, "catalogItemId"),
483 rajveer 133
    FEATURE_ID((short)10, "featureId"),
134
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
135
    MRP((short)13, "mrp"),
4762 phani.kuma 136
    SELLING_PRICE((short)14, "sellingPrice"),
137
    WEIGHT((short)15, "weight"),
138
    ADDED_ON((short)16, "addedOn"),
139
    START_DATE((short)17, "startDate"),
140
    RETIRE_DATE((short)18, "retireDate"),
103 ashish 141
    /**
142
     * 
143
     * @see status
144
     */
4762 phani.kuma 145
    ITEM_STATUS((short)19, "itemStatus"),
146
    STATUS_DESCRIPTION((short)20, "status_description"),
5336 rajveer 147
    OTHER_INFO((short)21, "otherInfo"),
4762 phani.kuma 148
    BEST_DEAL_TEXT((short)22, "bestDealText"),
149
    BEST_DEAL_VALUE((short)23, "bestDealValue"),
150
    DEFAULT_FOR_ENTITY((short)24, "defaultForEntity"),
151
    UPDATED_ON((short)25, "updatedOn"),
152
    BEST_SELLING_RANK((short)26, "bestSellingRank"),
153
    RISKY((short)27, "risky"),
154
    EXPECTED_DELAY((short)28, "expectedDelay"),
5440 phani.kuma 155
    IS_WAREHOUSE_PREFERENCE_STICKY((short)29, "isWarehousePreferenceSticky"),
156
    WARRANTY_PERIOD((short)30, "warrantyPeriod"),
157
    PREFERRED_VENDOR((short)31, "preferredVendor"),
5110 mandeep.dh 158
    /**
159
     * 
160
     * @see ItemType
161
     */
5440 phani.kuma 162
    TYPE((short)32, "type"),
163
    COMING_SOON_START_DATE((short)33, "comingSoonStartDate"),
164
    EXPECTED_ARRIVAL_DATE((short)34, "expectedArrivalDate"),
5460 phani.kuma 165
    HAS_ITEM_NO((short)35, "hasItemNo"),
7256 rajveer 166
    ACTIVE_ON_STORE((short)36, "activeOnStore"),
6777 vikram.rag 167
    SHOW_SELLING_PRICE((short)38, "showSellingPrice"),
168
    BEST_DEALS_DETAILS_TEXT((short)39, "bestDealsDetailsText"),
6805 anupam.sin 169
    BEST_DEALS_DETAILS_LINK((short)40, "bestDealsDetailsLink"),
7291 vikram.rag 170
    PREFERRED_INSURER((short)41, "preferredInsurer"),
171
    ASIN((short)42, "asin"),
172
    DEFAULT_INVENTORY((short)43, "defaultInventory"),
9841 rajveer 173
    HOLD_INVENTORY((short)44, "holdInventory"),
18002 kshitij.so 174
    HOLD_OVERRIDE((short)45, "holdOverride"),
18150 kshitij.so 175
    PACK_QUANTITY((short)46, "packQuantity"),
176
    QUANTITY_STEP((short)47, "quantityStep"),
18414 kshitij.so 177
    MINIMUM_BUY_QUANTITY((short)48, "minimumBuyQuantity"),
178
    MAXIMUM_BUY_QUANTITY((short)49, "maximumBuyQuantity");
100 ashish 179
 
180
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
181
 
182
    static {
183
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
184
        byName.put(field.getFieldName(), field);
185
      }
186
    }
187
 
188
    /**
189
     * Find the _Fields constant that matches fieldId, or null if its not found.
190
     */
191
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 192
      switch(fieldId) {
193
        case 1: // ID
194
          return ID;
195
        case 2: // PRODUCT_GROUP
196
          return PRODUCT_GROUP;
197
        case 3: // BRAND
198
          return BRAND;
199
        case 4: // MODEL_NUMBER
200
          return MODEL_NUMBER;
201
        case 5: // MODEL_NAME
202
          return MODEL_NAME;
203
        case 6: // COLOR
204
          return COLOR;
205
        case 7: // CATEGORY
206
          return CATEGORY;
207
        case 8: // COMMENTS
208
          return COMMENTS;
209
        case 9: // CATALOG_ITEM_ID
210
          return CATALOG_ITEM_ID;
211
        case 10: // FEATURE_ID
212
          return FEATURE_ID;
213
        case 11: // FEATURE_DESCRIPTION
214
          return FEATURE_DESCRIPTION;
215
        case 13: // MRP
216
          return MRP;
4762 phani.kuma 217
        case 14: // SELLING_PRICE
3430 rajveer 218
          return SELLING_PRICE;
4762 phani.kuma 219
        case 15: // WEIGHT
3430 rajveer 220
          return WEIGHT;
4762 phani.kuma 221
        case 16: // ADDED_ON
3430 rajveer 222
          return ADDED_ON;
4762 phani.kuma 223
        case 17: // START_DATE
3430 rajveer 224
          return START_DATE;
4762 phani.kuma 225
        case 18: // RETIRE_DATE
3430 rajveer 226
          return RETIRE_DATE;
4762 phani.kuma 227
        case 19: // ITEM_STATUS
3430 rajveer 228
          return ITEM_STATUS;
4762 phani.kuma 229
        case 20: // STATUS_DESCRIPTION
3430 rajveer 230
          return STATUS_DESCRIPTION;
5336 rajveer 231
        case 21: // OTHER_INFO
232
          return OTHER_INFO;
4762 phani.kuma 233
        case 22: // BEST_DEAL_TEXT
3430 rajveer 234
          return BEST_DEAL_TEXT;
4762 phani.kuma 235
        case 23: // BEST_DEAL_VALUE
3430 rajveer 236
          return BEST_DEAL_VALUE;
4762 phani.kuma 237
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 238
          return DEFAULT_FOR_ENTITY;
4762 phani.kuma 239
        case 25: // UPDATED_ON
3430 rajveer 240
          return UPDATED_ON;
4762 phani.kuma 241
        case 26: // BEST_SELLING_RANK
3430 rajveer 242
          return BEST_SELLING_RANK;
4762 phani.kuma 243
        case 27: // RISKY
3430 rajveer 244
          return RISKY;
4762 phani.kuma 245
        case 28: // EXPECTED_DELAY
3430 rajveer 246
          return EXPECTED_DELAY;
5440 phani.kuma 247
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 248
          return IS_WAREHOUSE_PREFERENCE_STICKY;
5440 phani.kuma 249
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 250
          return WARRANTY_PERIOD;
5440 phani.kuma 251
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 252
          return PREFERRED_VENDOR;
5440 phani.kuma 253
        case 32: // TYPE
5110 mandeep.dh 254
          return TYPE;
5440 phani.kuma 255
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 256
          return COMING_SOON_START_DATE;
5440 phani.kuma 257
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 258
          return EXPECTED_ARRIVAL_DATE;
5440 phani.kuma 259
        case 35: // HAS_ITEM_NO
5385 phani.kuma 260
          return HAS_ITEM_NO;
7256 rajveer 261
        case 36: // ACTIVE_ON_STORE
262
          return ACTIVE_ON_STORE;
6241 amit.gupta 263
        case 38: // SHOW_SELLING_PRICE
264
          return SHOW_SELLING_PRICE;
6777 vikram.rag 265
        case 39: // BEST_DEALS_DETAILS_TEXT
266
          return BEST_DEALS_DETAILS_TEXT;
267
        case 40: // BEST_DEALS_DETAILS_LINK
268
          return BEST_DEALS_DETAILS_LINK;
6805 anupam.sin 269
        case 41: // PREFERRED_INSURER
270
          return PREFERRED_INSURER;
7291 vikram.rag 271
        case 42: // ASIN
272
          return ASIN;
273
        case 43: // DEFAULT_INVENTORY
274
          return DEFAULT_INVENTORY;
275
        case 44: // HOLD_INVENTORY
276
          return HOLD_INVENTORY;
9841 rajveer 277
        case 45: // HOLD_OVERRIDE
278
          return HOLD_OVERRIDE;
18002 kshitij.so 279
        case 46: // PACK_QUANTITY
280
          return PACK_QUANTITY;
18150 kshitij.so 281
        case 47: // QUANTITY_STEP
282
          return QUANTITY_STEP;
283
        case 48: // MINIMUM_BUY_QUANTITY
284
          return MINIMUM_BUY_QUANTITY;
18414 kshitij.so 285
        case 49: // MAXIMUM_BUY_QUANTITY
286
          return MAXIMUM_BUY_QUANTITY;
3430 rajveer 287
        default:
288
          return null;
289
      }
100 ashish 290
    }
291
 
292
    /**
293
     * Find the _Fields constant that matches fieldId, throwing an exception
294
     * if it is not found.
295
     */
296
    public static _Fields findByThriftIdOrThrow(int fieldId) {
297
      _Fields fields = findByThriftId(fieldId);
298
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
299
      return fields;
300
    }
301
 
302
    /**
303
     * Find the _Fields constant that matches name, or null if its not found.
304
     */
305
    public static _Fields findByName(String name) {
306
      return byName.get(name);
307
    }
308
 
309
    private final short _thriftId;
310
    private final String _fieldName;
311
 
312
    _Fields(short thriftId, String fieldName) {
313
      _thriftId = thriftId;
314
      _fieldName = fieldName;
315
    }
316
 
317
    public short getThriftFieldId() {
318
      return _thriftId;
319
    }
320
 
321
    public String getFieldName() {
322
      return _fieldName;
323
    }
324
  }
325
 
326
  // isset id assignments
327
  private static final int __ID_ISSET_ID = 0;
622 chandransh 328
  private static final int __CATEGORY_ISSET_ID = 1;
329
  private static final int __CATALOGITEMID_ISSET_ID = 2;
330
  private static final int __FEATUREID_ISSET_ID = 3;
331
  private static final int __MRP_ISSET_ID = 4;
4762 phani.kuma 332
  private static final int __SELLINGPRICE_ISSET_ID = 5;
333
  private static final int __WEIGHT_ISSET_ID = 6;
334
  private static final int __ADDEDON_ISSET_ID = 7;
335
  private static final int __STARTDATE_ISSET_ID = 8;
336
  private static final int __RETIREDATE_ISSET_ID = 9;
337
  private static final int __BESTDEALVALUE_ISSET_ID = 10;
338
  private static final int __DEFAULTFORENTITY_ISSET_ID = 11;
339
  private static final int __UPDATEDON_ISSET_ID = 12;
340
  private static final int __BESTSELLINGRANK_ISSET_ID = 13;
341
  private static final int __RISKY_ISSET_ID = 14;
342
  private static final int __EXPECTEDDELAY_ISSET_ID = 15;
5440 phani.kuma 343
  private static final int __ISWAREHOUSEPREFERENCESTICKY_ISSET_ID = 16;
344
  private static final int __WARRANTYPERIOD_ISSET_ID = 17;
345
  private static final int __PREFERREDVENDOR_ISSET_ID = 18;
346
  private static final int __COMINGSOONSTARTDATE_ISSET_ID = 19;
347
  private static final int __EXPECTEDARRIVALDATE_ISSET_ID = 20;
348
  private static final int __HASITEMNO_ISSET_ID = 21;
7256 rajveer 349
  private static final int __ACTIVEONSTORE_ISSET_ID = 22;
7330 amit.gupta 350
  private static final int __SHOWSELLINGPRICE_ISSET_ID = 23;
351
  private static final int __PREFERREDINSURER_ISSET_ID = 24;
352
  private static final int __DEFAULTINVENTORY_ISSET_ID = 25;
353
  private static final int __HOLDINVENTORY_ISSET_ID = 26;
9841 rajveer 354
  private static final int __HOLDOVERRIDE_ISSET_ID = 27;
18002 kshitij.so 355
  private static final int __PACKQUANTITY_ISSET_ID = 28;
18150 kshitij.so 356
  private static final int __QUANTITYSTEP_ISSET_ID = 29;
357
  private static final int __MINIMUMBUYQUANTITY_ISSET_ID = 30;
18414 kshitij.so 358
  private static final int __MAXIMUMBUYQUANTITY_ISSET_ID = 31;
359
  private BitSet __isset_bit_vector = new BitSet(32);
100 ashish 360
 
3430 rajveer 361
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
100 ashish 362
  static {
3430 rajveer 363
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
364
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
365
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
366
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
367
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
368
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
369
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
370
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("modelNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
371
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
372
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("modelName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
373
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
374
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
375
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
376
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
377
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
378
    tmpMap.put(_Fields.COMMENTS, new org.apache.thrift.meta_data.FieldMetaData("comments", org.apache.thrift.TFieldRequirementType.DEFAULT, 
379
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
380
    tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
381
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
382
    tmpMap.put(_Fields.FEATURE_ID, new org.apache.thrift.meta_data.FieldMetaData("featureId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
383
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
384
    tmpMap.put(_Fields.FEATURE_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("featureDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
385
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
386
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
387
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
388
    tmpMap.put(_Fields.SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("sellingPrice", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
389
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
390
    tmpMap.put(_Fields.WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("weight", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
391
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
392
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
393
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
394
    tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
395
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
396
    tmpMap.put(_Fields.RETIRE_DATE, new org.apache.thrift.meta_data.FieldMetaData("retireDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
397
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
398
    tmpMap.put(_Fields.ITEM_STATUS, new org.apache.thrift.meta_data.FieldMetaData("itemStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
399
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, status.class)));
400
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("status_description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
401
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5336 rajveer 402
    tmpMap.put(_Fields.OTHER_INFO, new org.apache.thrift.meta_data.FieldMetaData("otherInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
403
        new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
404
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
405
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 406
    tmpMap.put(_Fields.BEST_DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
407
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
408
    tmpMap.put(_Fields.BEST_DEAL_VALUE, new org.apache.thrift.meta_data.FieldMetaData("bestDealValue", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
409
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
410
    tmpMap.put(_Fields.DEFAULT_FOR_ENTITY, new org.apache.thrift.meta_data.FieldMetaData("defaultForEntity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
411
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
412
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
413
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
414
    tmpMap.put(_Fields.BEST_SELLING_RANK, new org.apache.thrift.meta_data.FieldMetaData("bestSellingRank", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
415
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
416
    tmpMap.put(_Fields.RISKY, new org.apache.thrift.meta_data.FieldMetaData("risky", org.apache.thrift.TFieldRequirementType.DEFAULT, 
417
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
418
    tmpMap.put(_Fields.EXPECTED_DELAY, new org.apache.thrift.meta_data.FieldMetaData("expectedDelay", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
419
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4406 anupam.sin 420
    tmpMap.put(_Fields.IS_WAREHOUSE_PREFERENCE_STICKY, new org.apache.thrift.meta_data.FieldMetaData("isWarehousePreferenceSticky", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
421
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
4295 varun.gupt 422
    tmpMap.put(_Fields.WARRANTY_PERIOD, new org.apache.thrift.meta_data.FieldMetaData("warrantyPeriod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
423
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4506 phani.kuma 424
    tmpMap.put(_Fields.PREFERRED_VENDOR, new org.apache.thrift.meta_data.FieldMetaData("preferredVendor", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
425
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 426
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
427
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ItemType.class)));
5217 amit.gupta 428
    tmpMap.put(_Fields.COMING_SOON_START_DATE, new org.apache.thrift.meta_data.FieldMetaData("comingSoonStartDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
429
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
430
    tmpMap.put(_Fields.EXPECTED_ARRIVAL_DATE, new org.apache.thrift.meta_data.FieldMetaData("expectedArrivalDate", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
431
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5385 phani.kuma 432
    tmpMap.put(_Fields.HAS_ITEM_NO, new org.apache.thrift.meta_data.FieldMetaData("hasItemNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
433
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7256 rajveer 434
    tmpMap.put(_Fields.ACTIVE_ON_STORE, new org.apache.thrift.meta_data.FieldMetaData("activeOnStore", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5460 phani.kuma 435
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6241 amit.gupta 436
    tmpMap.put(_Fields.SHOW_SELLING_PRICE, new org.apache.thrift.meta_data.FieldMetaData("showSellingPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
437
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6777 vikram.rag 438
    tmpMap.put(_Fields.BEST_DEALS_DETAILS_TEXT, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
439
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
440
    tmpMap.put(_Fields.BEST_DEALS_DETAILS_LINK, new org.apache.thrift.meta_data.FieldMetaData("bestDealsDetailsLink", org.apache.thrift.TFieldRequirementType.DEFAULT, 
441
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6805 anupam.sin 442
    tmpMap.put(_Fields.PREFERRED_INSURER, new org.apache.thrift.meta_data.FieldMetaData("preferredInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
443
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7291 vikram.rag 444
    tmpMap.put(_Fields.ASIN, new org.apache.thrift.meta_data.FieldMetaData("asin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
445
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
446
    tmpMap.put(_Fields.DEFAULT_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("defaultInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
447
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
448
    tmpMap.put(_Fields.HOLD_INVENTORY, new org.apache.thrift.meta_data.FieldMetaData("holdInventory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
449
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9841 rajveer 450
    tmpMap.put(_Fields.HOLD_OVERRIDE, new org.apache.thrift.meta_data.FieldMetaData("holdOverride", org.apache.thrift.TFieldRequirementType.DEFAULT, 
451
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18002 kshitij.so 452
    tmpMap.put(_Fields.PACK_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("packQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
453
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18150 kshitij.so 454
    tmpMap.put(_Fields.QUANTITY_STEP, new org.apache.thrift.meta_data.FieldMetaData("quantityStep", org.apache.thrift.TFieldRequirementType.DEFAULT, 
455
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
456
    tmpMap.put(_Fields.MINIMUM_BUY_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("minimumBuyQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
457
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18414 kshitij.so 458
    tmpMap.put(_Fields.MAXIMUM_BUY_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("maximumBuyQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
459
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 460
    metaDataMap = Collections.unmodifiableMap(tmpMap);
461
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
100 ashish 462
  }
463
 
464
  public Item() {
465
  }
466
 
467
  public Item(
468
    long id,
957 chandransh 469
    String productGroup,
470
    String brand,
483 rajveer 471
    String modelNumber,
472
    String modelName,
1329 chandransh 473
    String color,
622 chandransh 474
    long category,
483 rajveer 475
    String comments,
123 ashish 476
    long catalogItemId,
483 rajveer 477
    long featureId,
478
    String featureDescription,
103 ashish 479
    long addedOn,
480
    status itemStatus,
2034 rajveer 481
    String status_description,
5336 rajveer 482
    Map<String,String> otherInfo,
607 chandransh 483
    String bestDealText,
1910 varun.gupt 484
    boolean defaultForEntity,
2064 ankur.sing 485
    long updatedOn,
4295 varun.gupt 486
    boolean risky,
5110 mandeep.dh 487
    int warrantyPeriod,
5385 phani.kuma 488
    ItemType type,
5460 phani.kuma 489
    boolean hasItemNo,
7256 rajveer 490
    boolean activeOnStore,
6777 vikram.rag 491
    boolean showSellingPrice,
492
    String bestDealsDetailsText,
6805 anupam.sin 493
    String bestDealsDetailsLink,
7291 vikram.rag 494
    long preferredInsurer,
495
    String asin,
496
    long defaultInventory,
9841 rajveer 497
    long holdInventory,
18002 kshitij.so 498
    boolean holdOverride,
18150 kshitij.so 499
    long packQuantity,
500
    long quantityStep,
18414 kshitij.so 501
    long minimumBuyQuantity,
502
    long maximumBuyQuantity)
100 ashish 503
  {
504
    this();
505
    this.id = id;
506
    setIdIsSet(true);
957 chandransh 507
    this.productGroup = productGroup;
508
    this.brand = brand;
483 rajveer 509
    this.modelNumber = modelNumber;
510
    this.modelName = modelName;
1329 chandransh 511
    this.color = color;
483 rajveer 512
    this.category = category;
622 chandransh 513
    setCategoryIsSet(true);
483 rajveer 514
    this.comments = comments;
123 ashish 515
    this.catalogItemId = catalogItemId;
516
    setCatalogItemIdIsSet(true);
483 rajveer 517
    this.featureId = featureId;
518
    setFeatureIdIsSet(true);
519
    this.featureDescription = featureDescription;
103 ashish 520
    this.addedOn = addedOn;
521
    setAddedOnIsSet(true);
522
    this.itemStatus = itemStatus;
2034 rajveer 523
    this.status_description = status_description;
5336 rajveer 524
    this.otherInfo = otherInfo;
607 chandransh 525
    this.bestDealText = bestDealText;
1910 varun.gupt 526
    this.defaultForEntity = defaultForEntity;
527
    setDefaultForEntityIsSet(true);
607 chandransh 528
    this.updatedOn = updatedOn;
529
    setUpdatedOnIsSet(true);
2250 ankur.sing 530
    this.risky = risky;
531
    setRiskyIsSet(true);
4295 varun.gupt 532
    this.warrantyPeriod = warrantyPeriod;
533
    setWarrantyPeriodIsSet(true);
5110 mandeep.dh 534
    this.type = type;
5385 phani.kuma 535
    this.hasItemNo = hasItemNo;
536
    setHasItemNoIsSet(true);
7256 rajveer 537
    this.activeOnStore = activeOnStore;
538
    setActiveOnStoreIsSet(true);
6241 amit.gupta 539
    this.showSellingPrice = showSellingPrice;
540
    setShowSellingPriceIsSet(true);
6777 vikram.rag 541
    this.bestDealsDetailsText = bestDealsDetailsText;
542
    this.bestDealsDetailsLink = bestDealsDetailsLink;
6805 anupam.sin 543
    this.preferredInsurer = preferredInsurer;
544
    setPreferredInsurerIsSet(true);
7291 vikram.rag 545
    this.asin = asin;
546
    this.defaultInventory = defaultInventory;
547
    setDefaultInventoryIsSet(true);
548
    this.holdInventory = holdInventory;
549
    setHoldInventoryIsSet(true);
9841 rajveer 550
    this.holdOverride = holdOverride;
551
    setHoldOverrideIsSet(true);
18002 kshitij.so 552
    this.packQuantity = packQuantity;
553
    setPackQuantityIsSet(true);
18150 kshitij.so 554
    this.quantityStep = quantityStep;
555
    setQuantityStepIsSet(true);
556
    this.minimumBuyQuantity = minimumBuyQuantity;
557
    setMinimumBuyQuantityIsSet(true);
18414 kshitij.so 558
    this.maximumBuyQuantity = maximumBuyQuantity;
559
    setMaximumBuyQuantityIsSet(true);
100 ashish 560
  }
561
 
562
  /**
563
   * Performs a deep copy on <i>other</i>.
564
   */
565
  public Item(Item other) {
566
    __isset_bit_vector.clear();
567
    __isset_bit_vector.or(other.__isset_bit_vector);
568
    this.id = other.id;
957 chandransh 569
    if (other.isSetProductGroup()) {
570
      this.productGroup = other.productGroup;
483 rajveer 571
    }
957 chandransh 572
    if (other.isSetBrand()) {
573
      this.brand = other.brand;
574
    }
483 rajveer 575
    if (other.isSetModelNumber()) {
576
      this.modelNumber = other.modelNumber;
577
    }
578
    if (other.isSetModelName()) {
579
      this.modelName = other.modelName;
580
    }
1329 chandransh 581
    if (other.isSetColor()) {
582
      this.color = other.color;
583
    }
622 chandransh 584
    this.category = other.category;
483 rajveer 585
    if (other.isSetComments()) {
586
      this.comments = other.comments;
587
    }
123 ashish 588
    this.catalogItemId = other.catalogItemId;
483 rajveer 589
    this.featureId = other.featureId;
590
    if (other.isSetFeatureDescription()) {
591
      this.featureDescription = other.featureDescription;
592
    }
593
    this.mrp = other.mrp;
594
    this.sellingPrice = other.sellingPrice;
595
    this.weight = other.weight;
103 ashish 596
    this.addedOn = other.addedOn;
597
    this.startDate = other.startDate;
483 rajveer 598
    this.retireDate = other.retireDate;
103 ashish 599
    if (other.isSetItemStatus()) {
600
      this.itemStatus = other.itemStatus;
601
    }
2034 rajveer 602
    if (other.isSetStatus_description()) {
603
      this.status_description = other.status_description;
604
    }
5336 rajveer 605
    if (other.isSetOtherInfo()) {
606
      Map<String,String> __this__otherInfo = new HashMap<String,String>();
607
      for (Map.Entry<String, String> other_element : other.otherInfo.entrySet()) {
608
 
609
        String other_element_key = other_element.getKey();
610
        String other_element_value = other_element.getValue();
611
 
612
        String __this__otherInfo_copy_key = other_element_key;
613
 
614
        String __this__otherInfo_copy_value = other_element_value;
615
 
616
        __this__otherInfo.put(__this__otherInfo_copy_key, __this__otherInfo_copy_value);
617
      }
618
      this.otherInfo = __this__otherInfo;
619
    }
607 chandransh 620
    if (other.isSetBestDealText()) {
621
      this.bestDealText = other.bestDealText;
622
    }
623
    this.bestDealValue = other.bestDealValue;
1910 varun.gupt 624
    this.defaultForEntity = other.defaultForEntity;
607 chandransh 625
    this.updatedOn = other.updatedOn;
2064 ankur.sing 626
    this.bestSellingRank = other.bestSellingRank;
2250 ankur.sing 627
    this.risky = other.risky;
3355 chandransh 628
    this.expectedDelay = other.expectedDelay;
4406 anupam.sin 629
    this.isWarehousePreferenceSticky = other.isWarehousePreferenceSticky;
4295 varun.gupt 630
    this.warrantyPeriod = other.warrantyPeriod;
4506 phani.kuma 631
    this.preferredVendor = other.preferredVendor;
5110 mandeep.dh 632
    if (other.isSetType()) {
633
      this.type = other.type;
634
    }
5217 amit.gupta 635
    this.comingSoonStartDate = other.comingSoonStartDate;
636
    this.expectedArrivalDate = other.expectedArrivalDate;
5385 phani.kuma 637
    this.hasItemNo = other.hasItemNo;
7256 rajveer 638
    this.activeOnStore = other.activeOnStore;
6241 amit.gupta 639
    this.showSellingPrice = other.showSellingPrice;
6777 vikram.rag 640
    if (other.isSetBestDealsDetailsText()) {
641
      this.bestDealsDetailsText = other.bestDealsDetailsText;
642
    }
643
    if (other.isSetBestDealsDetailsLink()) {
644
      this.bestDealsDetailsLink = other.bestDealsDetailsLink;
645
    }
6805 anupam.sin 646
    this.preferredInsurer = other.preferredInsurer;
7291 vikram.rag 647
    if (other.isSetAsin()) {
648
      this.asin = other.asin;
649
    }
650
    this.defaultInventory = other.defaultInventory;
651
    this.holdInventory = other.holdInventory;
9841 rajveer 652
    this.holdOverride = other.holdOverride;
18002 kshitij.so 653
    this.packQuantity = other.packQuantity;
18150 kshitij.so 654
    this.quantityStep = other.quantityStep;
655
    this.minimumBuyQuantity = other.minimumBuyQuantity;
18414 kshitij.so 656
    this.maximumBuyQuantity = other.maximumBuyQuantity;
100 ashish 657
  }
658
 
659
  public Item deepCopy() {
660
    return new Item(this);
661
  }
662
 
3430 rajveer 663
  @Override
664
  public void clear() {
665
    setIdIsSet(false);
666
    this.id = 0;
667
    this.productGroup = null;
668
    this.brand = null;
669
    this.modelNumber = null;
670
    this.modelName = null;
671
    this.color = null;
672
    setCategoryIsSet(false);
673
    this.category = 0;
674
    this.comments = null;
675
    setCatalogItemIdIsSet(false);
676
    this.catalogItemId = 0;
677
    setFeatureIdIsSet(false);
678
    this.featureId = 0;
679
    this.featureDescription = null;
680
    setMrpIsSet(false);
681
    this.mrp = 0.0;
682
    setSellingPriceIsSet(false);
683
    this.sellingPrice = 0.0;
684
    setWeightIsSet(false);
685
    this.weight = 0.0;
686
    setAddedOnIsSet(false);
687
    this.addedOn = 0;
688
    setStartDateIsSet(false);
689
    this.startDate = 0;
690
    setRetireDateIsSet(false);
691
    this.retireDate = 0;
692
    this.itemStatus = null;
693
    this.status_description = null;
5336 rajveer 694
    this.otherInfo = null;
3430 rajveer 695
    this.bestDealText = null;
696
    setBestDealValueIsSet(false);
697
    this.bestDealValue = 0.0;
698
    setDefaultForEntityIsSet(false);
699
    this.defaultForEntity = false;
700
    setUpdatedOnIsSet(false);
701
    this.updatedOn = 0;
702
    setBestSellingRankIsSet(false);
703
    this.bestSellingRank = 0;
704
    setRiskyIsSet(false);
705
    this.risky = false;
706
    setExpectedDelayIsSet(false);
707
    this.expectedDelay = 0;
4406 anupam.sin 708
    setIsWarehousePreferenceStickyIsSet(false);
709
    this.isWarehousePreferenceSticky = false;
4295 varun.gupt 710
    setWarrantyPeriodIsSet(false);
711
    this.warrantyPeriod = 0;
4506 phani.kuma 712
    setPreferredVendorIsSet(false);
713
    this.preferredVendor = 0;
5110 mandeep.dh 714
    this.type = null;
5217 amit.gupta 715
    setComingSoonStartDateIsSet(false);
716
    this.comingSoonStartDate = 0;
717
    setExpectedArrivalDateIsSet(false);
718
    this.expectedArrivalDate = 0;
5385 phani.kuma 719
    setHasItemNoIsSet(false);
720
    this.hasItemNo = false;
7256 rajveer 721
    setActiveOnStoreIsSet(false);
722
    this.activeOnStore = false;
6241 amit.gupta 723
    setShowSellingPriceIsSet(false);
724
    this.showSellingPrice = false;
6777 vikram.rag 725
    this.bestDealsDetailsText = null;
726
    this.bestDealsDetailsLink = null;
6805 anupam.sin 727
    setPreferredInsurerIsSet(false);
728
    this.preferredInsurer = 0;
7291 vikram.rag 729
    this.asin = null;
730
    setDefaultInventoryIsSet(false);
731
    this.defaultInventory = 0;
732
    setHoldInventoryIsSet(false);
733
    this.holdInventory = 0;
9841 rajveer 734
    setHoldOverrideIsSet(false);
735
    this.holdOverride = false;
18002 kshitij.so 736
    setPackQuantityIsSet(false);
737
    this.packQuantity = 0;
18150 kshitij.so 738
    setQuantityStepIsSet(false);
739
    this.quantityStep = 0;
740
    setMinimumBuyQuantityIsSet(false);
741
    this.minimumBuyQuantity = 0;
18414 kshitij.so 742
    setMaximumBuyQuantityIsSet(false);
743
    this.maximumBuyQuantity = 0;
100 ashish 744
  }
745
 
746
  public long getId() {
747
    return this.id;
748
  }
749
 
3430 rajveer 750
  public void setId(long id) {
100 ashish 751
    this.id = id;
752
    setIdIsSet(true);
753
  }
754
 
755
  public void unsetId() {
756
    __isset_bit_vector.clear(__ID_ISSET_ID);
757
  }
758
 
3430 rajveer 759
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
100 ashish 760
  public boolean isSetId() {
761
    return __isset_bit_vector.get(__ID_ISSET_ID);
762
  }
763
 
764
  public void setIdIsSet(boolean value) {
765
    __isset_bit_vector.set(__ID_ISSET_ID, value);
766
  }
767
 
957 chandransh 768
  public String getProductGroup() {
769
    return this.productGroup;
483 rajveer 770
  }
771
 
3430 rajveer 772
  public void setProductGroup(String productGroup) {
957 chandransh 773
    this.productGroup = productGroup;
483 rajveer 774
  }
775
 
957 chandransh 776
  public void unsetProductGroup() {
777
    this.productGroup = null;
483 rajveer 778
  }
779
 
3430 rajveer 780
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
957 chandransh 781
  public boolean isSetProductGroup() {
782
    return this.productGroup != null;
483 rajveer 783
  }
784
 
957 chandransh 785
  public void setProductGroupIsSet(boolean value) {
483 rajveer 786
    if (!value) {
957 chandransh 787
      this.productGroup = null;
483 rajveer 788
    }
789
  }
790
 
957 chandransh 791
  public String getBrand() {
792
    return this.brand;
793
  }
794
 
3430 rajveer 795
  public void setBrand(String brand) {
957 chandransh 796
    this.brand = brand;
797
  }
798
 
799
  public void unsetBrand() {
800
    this.brand = null;
801
  }
802
 
3430 rajveer 803
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
957 chandransh 804
  public boolean isSetBrand() {
805
    return this.brand != null;
806
  }
807
 
808
  public void setBrandIsSet(boolean value) {
809
    if (!value) {
810
      this.brand = null;
811
    }
812
  }
813
 
483 rajveer 814
  public String getModelNumber() {
815
    return this.modelNumber;
816
  }
817
 
3430 rajveer 818
  public void setModelNumber(String modelNumber) {
483 rajveer 819
    this.modelNumber = modelNumber;
820
  }
821
 
822
  public void unsetModelNumber() {
823
    this.modelNumber = null;
824
  }
825
 
3430 rajveer 826
  /** Returns true if field modelNumber is set (has been assigned a value) and false otherwise */
483 rajveer 827
  public boolean isSetModelNumber() {
828
    return this.modelNumber != null;
829
  }
830
 
831
  public void setModelNumberIsSet(boolean value) {
832
    if (!value) {
833
      this.modelNumber = null;
834
    }
835
  }
836
 
837
  public String getModelName() {
838
    return this.modelName;
839
  }
840
 
3430 rajveer 841
  public void setModelName(String modelName) {
483 rajveer 842
    this.modelName = modelName;
843
  }
844
 
845
  public void unsetModelName() {
846
    this.modelName = null;
847
  }
848
 
3430 rajveer 849
  /** Returns true if field modelName is set (has been assigned a value) and false otherwise */
483 rajveer 850
  public boolean isSetModelName() {
851
    return this.modelName != null;
852
  }
853
 
854
  public void setModelNameIsSet(boolean value) {
855
    if (!value) {
856
      this.modelName = null;
857
    }
858
  }
859
 
1329 chandransh 860
  public String getColor() {
861
    return this.color;
862
  }
863
 
3430 rajveer 864
  public void setColor(String color) {
1329 chandransh 865
    this.color = color;
866
  }
867
 
868
  public void unsetColor() {
869
    this.color = null;
870
  }
871
 
3430 rajveer 872
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
1329 chandransh 873
  public boolean isSetColor() {
874
    return this.color != null;
875
  }
876
 
877
  public void setColorIsSet(boolean value) {
878
    if (!value) {
879
      this.color = null;
880
    }
881
  }
882
 
622 chandransh 883
  public long getCategory() {
483 rajveer 884
    return this.category;
885
  }
886
 
3430 rajveer 887
  public void setCategory(long category) {
483 rajveer 888
    this.category = category;
622 chandransh 889
    setCategoryIsSet(true);
483 rajveer 890
  }
891
 
892
  public void unsetCategory() {
622 chandransh 893
    __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
483 rajveer 894
  }
895
 
3430 rajveer 896
  /** Returns true if field category is set (has been assigned a value) and false otherwise */
483 rajveer 897
  public boolean isSetCategory() {
622 chandransh 898
    return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
483 rajveer 899
  }
900
 
901
  public void setCategoryIsSet(boolean value) {
622 chandransh 902
    __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
483 rajveer 903
  }
904
 
905
  public String getComments() {
906
    return this.comments;
907
  }
908
 
3430 rajveer 909
  public void setComments(String comments) {
483 rajveer 910
    this.comments = comments;
911
  }
912
 
913
  public void unsetComments() {
914
    this.comments = null;
915
  }
916
 
3430 rajveer 917
  /** Returns true if field comments is set (has been assigned a value) and false otherwise */
483 rajveer 918
  public boolean isSetComments() {
919
    return this.comments != null;
920
  }
921
 
922
  public void setCommentsIsSet(boolean value) {
923
    if (!value) {
924
      this.comments = null;
925
    }
926
  }
927
 
123 ashish 928
  public long getCatalogItemId() {
929
    return this.catalogItemId;
100 ashish 930
  }
931
 
3430 rajveer 932
  public void setCatalogItemId(long catalogItemId) {
123 ashish 933
    this.catalogItemId = catalogItemId;
934
    setCatalogItemIdIsSet(true);
100 ashish 935
  }
936
 
123 ashish 937
  public void unsetCatalogItemId() {
938
    __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
100 ashish 939
  }
940
 
3430 rajveer 941
  /** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
123 ashish 942
  public boolean isSetCatalogItemId() {
943
    return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
100 ashish 944
  }
945
 
123 ashish 946
  public void setCatalogItemIdIsSet(boolean value) {
947
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
100 ashish 948
  }
949
 
483 rajveer 950
  public long getFeatureId() {
951
    return this.featureId;
952
  }
953
 
3430 rajveer 954
  public void setFeatureId(long featureId) {
483 rajveer 955
    this.featureId = featureId;
956
    setFeatureIdIsSet(true);
957
  }
958
 
959
  public void unsetFeatureId() {
960
    __isset_bit_vector.clear(__FEATUREID_ISSET_ID);
961
  }
962
 
3430 rajveer 963
  /** Returns true if field featureId is set (has been assigned a value) and false otherwise */
483 rajveer 964
  public boolean isSetFeatureId() {
965
    return __isset_bit_vector.get(__FEATUREID_ISSET_ID);
966
  }
967
 
968
  public void setFeatureIdIsSet(boolean value) {
969
    __isset_bit_vector.set(__FEATUREID_ISSET_ID, value);
970
  }
971
 
972
  public String getFeatureDescription() {
973
    return this.featureDescription;
974
  }
975
 
3430 rajveer 976
  public void setFeatureDescription(String featureDescription) {
483 rajveer 977
    this.featureDescription = featureDescription;
978
  }
979
 
980
  public void unsetFeatureDescription() {
981
    this.featureDescription = null;
982
  }
983
 
3430 rajveer 984
  /** Returns true if field featureDescription is set (has been assigned a value) and false otherwise */
483 rajveer 985
  public boolean isSetFeatureDescription() {
986
    return this.featureDescription != null;
987
  }
988
 
989
  public void setFeatureDescriptionIsSet(boolean value) {
990
    if (!value) {
991
      this.featureDescription = null;
992
    }
993
  }
994
 
995
  public double getMrp() {
996
    return this.mrp;
997
  }
998
 
3430 rajveer 999
  public void setMrp(double mrp) {
483 rajveer 1000
    this.mrp = mrp;
1001
    setMrpIsSet(true);
1002
  }
1003
 
1004
  public void unsetMrp() {
1005
    __isset_bit_vector.clear(__MRP_ISSET_ID);
1006
  }
1007
 
3430 rajveer 1008
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
483 rajveer 1009
  public boolean isSetMrp() {
1010
    return __isset_bit_vector.get(__MRP_ISSET_ID);
1011
  }
1012
 
1013
  public void setMrpIsSet(boolean value) {
1014
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
1015
  }
1016
 
1017
  public double getSellingPrice() {
1018
    return this.sellingPrice;
1019
  }
1020
 
3430 rajveer 1021
  public void setSellingPrice(double sellingPrice) {
483 rajveer 1022
    this.sellingPrice = sellingPrice;
1023
    setSellingPriceIsSet(true);
1024
  }
1025
 
1026
  public void unsetSellingPrice() {
1027
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
1028
  }
1029
 
3430 rajveer 1030
  /** Returns true if field sellingPrice is set (has been assigned a value) and false otherwise */
483 rajveer 1031
  public boolean isSetSellingPrice() {
1032
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
1033
  }
1034
 
1035
  public void setSellingPriceIsSet(boolean value) {
1036
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
1037
  }
1038
 
1039
  public double getWeight() {
1040
    return this.weight;
1041
  }
1042
 
3430 rajveer 1043
  public void setWeight(double weight) {
483 rajveer 1044
    this.weight = weight;
1045
    setWeightIsSet(true);
1046
  }
1047
 
1048
  public void unsetWeight() {
1049
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
1050
  }
1051
 
3430 rajveer 1052
  /** Returns true if field weight is set (has been assigned a value) and false otherwise */
483 rajveer 1053
  public boolean isSetWeight() {
1054
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
1055
  }
1056
 
1057
  public void setWeightIsSet(boolean value) {
1058
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
1059
  }
1060
 
103 ashish 1061
  public long getAddedOn() {
1062
    return this.addedOn;
1063
  }
1064
 
3430 rajveer 1065
  public void setAddedOn(long addedOn) {
103 ashish 1066
    this.addedOn = addedOn;
1067
    setAddedOnIsSet(true);
1068
  }
1069
 
1070
  public void unsetAddedOn() {
1071
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
1072
  }
1073
 
3430 rajveer 1074
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
103 ashish 1075
  public boolean isSetAddedOn() {
1076
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
1077
  }
1078
 
1079
  public void setAddedOnIsSet(boolean value) {
1080
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
1081
  }
1082
 
1083
  public long getStartDate() {
1084
    return this.startDate;
1085
  }
1086
 
3430 rajveer 1087
  public void setStartDate(long startDate) {
103 ashish 1088
    this.startDate = startDate;
1089
    setStartDateIsSet(true);
1090
  }
1091
 
1092
  public void unsetStartDate() {
1093
    __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
1094
  }
1095
 
3430 rajveer 1096
  /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
103 ashish 1097
  public boolean isSetStartDate() {
1098
    return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
1099
  }
1100
 
1101
  public void setStartDateIsSet(boolean value) {
1102
    __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
1103
  }
1104
 
483 rajveer 1105
  public long getRetireDate() {
1106
    return this.retireDate;
1107
  }
1108
 
3430 rajveer 1109
  public void setRetireDate(long retireDate) {
483 rajveer 1110
    this.retireDate = retireDate;
1111
    setRetireDateIsSet(true);
1112
  }
1113
 
1114
  public void unsetRetireDate() {
1115
    __isset_bit_vector.clear(__RETIREDATE_ISSET_ID);
1116
  }
1117
 
3430 rajveer 1118
  /** Returns true if field retireDate is set (has been assigned a value) and false otherwise */
483 rajveer 1119
  public boolean isSetRetireDate() {
1120
    return __isset_bit_vector.get(__RETIREDATE_ISSET_ID);
1121
  }
1122
 
1123
  public void setRetireDateIsSet(boolean value) {
1124
    __isset_bit_vector.set(__RETIREDATE_ISSET_ID, value);
1125
  }
1126
 
103 ashish 1127
  /**
1128
   * 
1129
   * @see status
1130
   */
1131
  public status getItemStatus() {
1132
    return this.itemStatus;
1133
  }
1134
 
1135
  /**
1136
   * 
1137
   * @see status
1138
   */
3430 rajveer 1139
  public void setItemStatus(status itemStatus) {
103 ashish 1140
    this.itemStatus = itemStatus;
1141
  }
1142
 
1143
  public void unsetItemStatus() {
1144
    this.itemStatus = null;
1145
  }
1146
 
3430 rajveer 1147
  /** Returns true if field itemStatus is set (has been assigned a value) and false otherwise */
103 ashish 1148
  public boolean isSetItemStatus() {
1149
    return this.itemStatus != null;
1150
  }
1151
 
1152
  public void setItemStatusIsSet(boolean value) {
1153
    if (!value) {
1154
      this.itemStatus = null;
1155
    }
1156
  }
1157
 
2034 rajveer 1158
  public String getStatus_description() {
1159
    return this.status_description;
1160
  }
1161
 
3430 rajveer 1162
  public void setStatus_description(String status_description) {
2034 rajveer 1163
    this.status_description = status_description;
1164
  }
1165
 
1166
  public void unsetStatus_description() {
1167
    this.status_description = null;
1168
  }
1169
 
3430 rajveer 1170
  /** Returns true if field status_description is set (has been assigned a value) and false otherwise */
2034 rajveer 1171
  public boolean isSetStatus_description() {
1172
    return this.status_description != null;
1173
  }
1174
 
1175
  public void setStatus_descriptionIsSet(boolean value) {
1176
    if (!value) {
1177
      this.status_description = null;
1178
    }
1179
  }
1180
 
5336 rajveer 1181
  public int getOtherInfoSize() {
1182
    return (this.otherInfo == null) ? 0 : this.otherInfo.size();
1183
  }
1184
 
1185
  public void putToOtherInfo(String key, String val) {
1186
    if (this.otherInfo == null) {
1187
      this.otherInfo = new HashMap<String,String>();
1188
    }
1189
    this.otherInfo.put(key, val);
1190
  }
1191
 
1192
  public Map<String,String> getOtherInfo() {
1193
    return this.otherInfo;
1194
  }
1195
 
1196
  public void setOtherInfo(Map<String,String> otherInfo) {
1197
    this.otherInfo = otherInfo;
1198
  }
1199
 
1200
  public void unsetOtherInfo() {
1201
    this.otherInfo = null;
1202
  }
1203
 
1204
  /** Returns true if field otherInfo is set (has been assigned a value) and false otherwise */
1205
  public boolean isSetOtherInfo() {
1206
    return this.otherInfo != null;
1207
  }
1208
 
1209
  public void setOtherInfoIsSet(boolean value) {
1210
    if (!value) {
1211
      this.otherInfo = null;
1212
    }
1213
  }
1214
 
607 chandransh 1215
  public String getBestDealText() {
1216
    return this.bestDealText;
1217
  }
1218
 
3430 rajveer 1219
  public void setBestDealText(String bestDealText) {
607 chandransh 1220
    this.bestDealText = bestDealText;
1221
  }
1222
 
1223
  public void unsetBestDealText() {
1224
    this.bestDealText = null;
1225
  }
1226
 
3430 rajveer 1227
  /** Returns true if field bestDealText is set (has been assigned a value) and false otherwise */
607 chandransh 1228
  public boolean isSetBestDealText() {
1229
    return this.bestDealText != null;
1230
  }
1231
 
1232
  public void setBestDealTextIsSet(boolean value) {
1233
    if (!value) {
1234
      this.bestDealText = null;
1235
    }
1236
  }
1237
 
1238
  public double getBestDealValue() {
1239
    return this.bestDealValue;
1240
  }
1241
 
3430 rajveer 1242
  public void setBestDealValue(double bestDealValue) {
607 chandransh 1243
    this.bestDealValue = bestDealValue;
1244
    setBestDealValueIsSet(true);
1245
  }
1246
 
1247
  public void unsetBestDealValue() {
1248
    __isset_bit_vector.clear(__BESTDEALVALUE_ISSET_ID);
1249
  }
1250
 
3430 rajveer 1251
  /** Returns true if field bestDealValue is set (has been assigned a value) and false otherwise */
607 chandransh 1252
  public boolean isSetBestDealValue() {
1253
    return __isset_bit_vector.get(__BESTDEALVALUE_ISSET_ID);
1254
  }
1255
 
1256
  public void setBestDealValueIsSet(boolean value) {
1257
    __isset_bit_vector.set(__BESTDEALVALUE_ISSET_ID, value);
1258
  }
1259
 
1910 varun.gupt 1260
  public boolean isDefaultForEntity() {
1261
    return this.defaultForEntity;
1262
  }
1263
 
3430 rajveer 1264
  public void setDefaultForEntity(boolean defaultForEntity) {
1910 varun.gupt 1265
    this.defaultForEntity = defaultForEntity;
1266
    setDefaultForEntityIsSet(true);
1267
  }
1268
 
1269
  public void unsetDefaultForEntity() {
1270
    __isset_bit_vector.clear(__DEFAULTFORENTITY_ISSET_ID);
1271
  }
1272
 
3430 rajveer 1273
  /** Returns true if field defaultForEntity is set (has been assigned a value) and false otherwise */
1910 varun.gupt 1274
  public boolean isSetDefaultForEntity() {
1275
    return __isset_bit_vector.get(__DEFAULTFORENTITY_ISSET_ID);
1276
  }
1277
 
1278
  public void setDefaultForEntityIsSet(boolean value) {
1279
    __isset_bit_vector.set(__DEFAULTFORENTITY_ISSET_ID, value);
1280
  }
1281
 
607 chandransh 1282
  public long getUpdatedOn() {
1283
    return this.updatedOn;
1284
  }
1285
 
3430 rajveer 1286
  public void setUpdatedOn(long updatedOn) {
607 chandransh 1287
    this.updatedOn = updatedOn;
1288
    setUpdatedOnIsSet(true);
1289
  }
1290
 
1291
  public void unsetUpdatedOn() {
1292
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
1293
  }
1294
 
3430 rajveer 1295
  /** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
607 chandransh 1296
  public boolean isSetUpdatedOn() {
1297
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
1298
  }
1299
 
1300
  public void setUpdatedOnIsSet(boolean value) {
1301
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1302
  }
1303
 
2064 ankur.sing 1304
  public long getBestSellingRank() {
1305
    return this.bestSellingRank;
1306
  }
1307
 
3430 rajveer 1308
  public void setBestSellingRank(long bestSellingRank) {
2064 ankur.sing 1309
    this.bestSellingRank = bestSellingRank;
1310
    setBestSellingRankIsSet(true);
1311
  }
1312
 
1313
  public void unsetBestSellingRank() {
1314
    __isset_bit_vector.clear(__BESTSELLINGRANK_ISSET_ID);
1315
  }
1316
 
3430 rajveer 1317
  /** Returns true if field bestSellingRank is set (has been assigned a value) and false otherwise */
2064 ankur.sing 1318
  public boolean isSetBestSellingRank() {
1319
    return __isset_bit_vector.get(__BESTSELLINGRANK_ISSET_ID);
1320
  }
1321
 
1322
  public void setBestSellingRankIsSet(boolean value) {
1323
    __isset_bit_vector.set(__BESTSELLINGRANK_ISSET_ID, value);
1324
  }
1325
 
2250 ankur.sing 1326
  public boolean isRisky() {
1327
    return this.risky;
1328
  }
1329
 
3430 rajveer 1330
  public void setRisky(boolean risky) {
2250 ankur.sing 1331
    this.risky = risky;
1332
    setRiskyIsSet(true);
1333
  }
1334
 
1335
  public void unsetRisky() {
1336
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
1337
  }
1338
 
3430 rajveer 1339
  /** Returns true if field risky is set (has been assigned a value) and false otherwise */
2250 ankur.sing 1340
  public boolean isSetRisky() {
1341
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
1342
  }
1343
 
1344
  public void setRiskyIsSet(boolean value) {
1345
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
1346
  }
1347
 
3355 chandransh 1348
  public int getExpectedDelay() {
1349
    return this.expectedDelay;
1350
  }
1351
 
3430 rajveer 1352
  public void setExpectedDelay(int expectedDelay) {
3355 chandransh 1353
    this.expectedDelay = expectedDelay;
1354
    setExpectedDelayIsSet(true);
1355
  }
1356
 
1357
  public void unsetExpectedDelay() {
1358
    __isset_bit_vector.clear(__EXPECTEDDELAY_ISSET_ID);
1359
  }
1360
 
3430 rajveer 1361
  /** Returns true if field expectedDelay is set (has been assigned a value) and false otherwise */
3355 chandransh 1362
  public boolean isSetExpectedDelay() {
1363
    return __isset_bit_vector.get(__EXPECTEDDELAY_ISSET_ID);
1364
  }
1365
 
1366
  public void setExpectedDelayIsSet(boolean value) {
1367
    __isset_bit_vector.set(__EXPECTEDDELAY_ISSET_ID, value);
1368
  }
1369
 
4406 anupam.sin 1370
  public boolean isIsWarehousePreferenceSticky() {
1371
    return this.isWarehousePreferenceSticky;
1372
  }
1373
 
1374
  public void setIsWarehousePreferenceSticky(boolean isWarehousePreferenceSticky) {
1375
    this.isWarehousePreferenceSticky = isWarehousePreferenceSticky;
1376
    setIsWarehousePreferenceStickyIsSet(true);
1377
  }
1378
 
1379
  public void unsetIsWarehousePreferenceSticky() {
1380
    __isset_bit_vector.clear(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1381
  }
1382
 
1383
  /** Returns true if field isWarehousePreferenceSticky is set (has been assigned a value) and false otherwise */
1384
  public boolean isSetIsWarehousePreferenceSticky() {
1385
    return __isset_bit_vector.get(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID);
1386
  }
1387
 
1388
  public void setIsWarehousePreferenceStickyIsSet(boolean value) {
1389
    __isset_bit_vector.set(__ISWAREHOUSEPREFERENCESTICKY_ISSET_ID, value);
1390
  }
1391
 
4295 varun.gupt 1392
  public int getWarrantyPeriod() {
1393
    return this.warrantyPeriod;
1394
  }
1395
 
1396
  public void setWarrantyPeriod(int warrantyPeriod) {
1397
    this.warrantyPeriod = warrantyPeriod;
1398
    setWarrantyPeriodIsSet(true);
1399
  }
1400
 
1401
  public void unsetWarrantyPeriod() {
1402
    __isset_bit_vector.clear(__WARRANTYPERIOD_ISSET_ID);
1403
  }
1404
 
1405
  /** Returns true if field warrantyPeriod is set (has been assigned a value) and false otherwise */
1406
  public boolean isSetWarrantyPeriod() {
1407
    return __isset_bit_vector.get(__WARRANTYPERIOD_ISSET_ID);
1408
  }
1409
 
1410
  public void setWarrantyPeriodIsSet(boolean value) {
1411
    __isset_bit_vector.set(__WARRANTYPERIOD_ISSET_ID, value);
1412
  }
1413
 
4506 phani.kuma 1414
  public long getPreferredVendor() {
1415
    return this.preferredVendor;
1416
  }
1417
 
1418
  public void setPreferredVendor(long preferredVendor) {
1419
    this.preferredVendor = preferredVendor;
1420
    setPreferredVendorIsSet(true);
1421
  }
1422
 
1423
  public void unsetPreferredVendor() {
1424
    __isset_bit_vector.clear(__PREFERREDVENDOR_ISSET_ID);
1425
  }
1426
 
1427
  /** Returns true if field preferredVendor is set (has been assigned a value) and false otherwise */
1428
  public boolean isSetPreferredVendor() {
1429
    return __isset_bit_vector.get(__PREFERREDVENDOR_ISSET_ID);
1430
  }
1431
 
1432
  public void setPreferredVendorIsSet(boolean value) {
1433
    __isset_bit_vector.set(__PREFERREDVENDOR_ISSET_ID, value);
1434
  }
1435
 
5110 mandeep.dh 1436
  /**
1437
   * 
1438
   * @see ItemType
1439
   */
1440
  public ItemType getType() {
1441
    return this.type;
1442
  }
1443
 
1444
  /**
1445
   * 
1446
   * @see ItemType
1447
   */
1448
  public void setType(ItemType type) {
1449
    this.type = type;
1450
  }
1451
 
1452
  public void unsetType() {
1453
    this.type = null;
1454
  }
1455
 
1456
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
1457
  public boolean isSetType() {
1458
    return this.type != null;
1459
  }
1460
 
1461
  public void setTypeIsSet(boolean value) {
1462
    if (!value) {
1463
      this.type = null;
1464
    }
1465
  }
1466
 
5217 amit.gupta 1467
  public long getComingSoonStartDate() {
1468
    return this.comingSoonStartDate;
1469
  }
1470
 
1471
  public void setComingSoonStartDate(long comingSoonStartDate) {
1472
    this.comingSoonStartDate = comingSoonStartDate;
1473
    setComingSoonStartDateIsSet(true);
1474
  }
1475
 
1476
  public void unsetComingSoonStartDate() {
1477
    __isset_bit_vector.clear(__COMINGSOONSTARTDATE_ISSET_ID);
1478
  }
1479
 
1480
  /** Returns true if field comingSoonStartDate is set (has been assigned a value) and false otherwise */
1481
  public boolean isSetComingSoonStartDate() {
1482
    return __isset_bit_vector.get(__COMINGSOONSTARTDATE_ISSET_ID);
1483
  }
1484
 
1485
  public void setComingSoonStartDateIsSet(boolean value) {
1486
    __isset_bit_vector.set(__COMINGSOONSTARTDATE_ISSET_ID, value);
1487
  }
1488
 
1489
  public long getExpectedArrivalDate() {
1490
    return this.expectedArrivalDate;
1491
  }
1492
 
1493
  public void setExpectedArrivalDate(long expectedArrivalDate) {
1494
    this.expectedArrivalDate = expectedArrivalDate;
1495
    setExpectedArrivalDateIsSet(true);
1496
  }
1497
 
1498
  public void unsetExpectedArrivalDate() {
1499
    __isset_bit_vector.clear(__EXPECTEDARRIVALDATE_ISSET_ID);
1500
  }
1501
 
1502
  /** Returns true if field expectedArrivalDate is set (has been assigned a value) and false otherwise */
1503
  public boolean isSetExpectedArrivalDate() {
1504
    return __isset_bit_vector.get(__EXPECTEDARRIVALDATE_ISSET_ID);
1505
  }
1506
 
1507
  public void setExpectedArrivalDateIsSet(boolean value) {
1508
    __isset_bit_vector.set(__EXPECTEDARRIVALDATE_ISSET_ID, value);
1509
  }
1510
 
5385 phani.kuma 1511
  public boolean isHasItemNo() {
1512
    return this.hasItemNo;
1513
  }
1514
 
1515
  public void setHasItemNo(boolean hasItemNo) {
1516
    this.hasItemNo = hasItemNo;
1517
    setHasItemNoIsSet(true);
1518
  }
1519
 
1520
  public void unsetHasItemNo() {
1521
    __isset_bit_vector.clear(__HASITEMNO_ISSET_ID);
1522
  }
1523
 
1524
  /** Returns true if field hasItemNo is set (has been assigned a value) and false otherwise */
1525
  public boolean isSetHasItemNo() {
1526
    return __isset_bit_vector.get(__HASITEMNO_ISSET_ID);
1527
  }
1528
 
1529
  public void setHasItemNoIsSet(boolean value) {
1530
    __isset_bit_vector.set(__HASITEMNO_ISSET_ID, value);
1531
  }
1532
 
7256 rajveer 1533
  public boolean isActiveOnStore() {
1534
    return this.activeOnStore;
5460 phani.kuma 1535
  }
1536
 
7256 rajveer 1537
  public void setActiveOnStore(boolean activeOnStore) {
1538
    this.activeOnStore = activeOnStore;
1539
    setActiveOnStoreIsSet(true);
5460 phani.kuma 1540
  }
1541
 
7256 rajveer 1542
  public void unsetActiveOnStore() {
1543
    __isset_bit_vector.clear(__ACTIVEONSTORE_ISSET_ID);
5460 phani.kuma 1544
  }
1545
 
7256 rajveer 1546
  /** Returns true if field activeOnStore is set (has been assigned a value) and false otherwise */
1547
  public boolean isSetActiveOnStore() {
1548
    return __isset_bit_vector.get(__ACTIVEONSTORE_ISSET_ID);
5460 phani.kuma 1549
  }
1550
 
7256 rajveer 1551
  public void setActiveOnStoreIsSet(boolean value) {
1552
    __isset_bit_vector.set(__ACTIVEONSTORE_ISSET_ID, value);
5460 phani.kuma 1553
  }
1554
 
6241 amit.gupta 1555
  public boolean isShowSellingPrice() {
1556
    return this.showSellingPrice;
1557
  }
1558
 
1559
  public void setShowSellingPrice(boolean showSellingPrice) {
1560
    this.showSellingPrice = showSellingPrice;
1561
    setShowSellingPriceIsSet(true);
1562
  }
1563
 
1564
  public void unsetShowSellingPrice() {
1565
    __isset_bit_vector.clear(__SHOWSELLINGPRICE_ISSET_ID);
1566
  }
1567
 
1568
  /** Returns true if field showSellingPrice is set (has been assigned a value) and false otherwise */
1569
  public boolean isSetShowSellingPrice() {
1570
    return __isset_bit_vector.get(__SHOWSELLINGPRICE_ISSET_ID);
1571
  }
1572
 
1573
  public void setShowSellingPriceIsSet(boolean value) {
1574
    __isset_bit_vector.set(__SHOWSELLINGPRICE_ISSET_ID, value);
1575
  }
1576
 
6777 vikram.rag 1577
  public String getBestDealsDetailsText() {
1578
    return this.bestDealsDetailsText;
1579
  }
1580
 
1581
  public void setBestDealsDetailsText(String bestDealsDetailsText) {
1582
    this.bestDealsDetailsText = bestDealsDetailsText;
1583
  }
1584
 
1585
  public void unsetBestDealsDetailsText() {
1586
    this.bestDealsDetailsText = null;
1587
  }
1588
 
1589
  /** Returns true if field bestDealsDetailsText is set (has been assigned a value) and false otherwise */
1590
  public boolean isSetBestDealsDetailsText() {
1591
    return this.bestDealsDetailsText != null;
1592
  }
1593
 
1594
  public void setBestDealsDetailsTextIsSet(boolean value) {
1595
    if (!value) {
1596
      this.bestDealsDetailsText = null;
1597
    }
1598
  }
1599
 
1600
  public String getBestDealsDetailsLink() {
1601
    return this.bestDealsDetailsLink;
1602
  }
1603
 
1604
  public void setBestDealsDetailsLink(String bestDealsDetailsLink) {
1605
    this.bestDealsDetailsLink = bestDealsDetailsLink;
1606
  }
1607
 
1608
  public void unsetBestDealsDetailsLink() {
1609
    this.bestDealsDetailsLink = null;
1610
  }
1611
 
1612
  /** Returns true if field bestDealsDetailsLink is set (has been assigned a value) and false otherwise */
1613
  public boolean isSetBestDealsDetailsLink() {
1614
    return this.bestDealsDetailsLink != null;
1615
  }
1616
 
1617
  public void setBestDealsDetailsLinkIsSet(boolean value) {
1618
    if (!value) {
1619
      this.bestDealsDetailsLink = null;
1620
    }
1621
  }
1622
 
6805 anupam.sin 1623
  public long getPreferredInsurer() {
1624
    return this.preferredInsurer;
1625
  }
1626
 
1627
  public void setPreferredInsurer(long preferredInsurer) {
1628
    this.preferredInsurer = preferredInsurer;
1629
    setPreferredInsurerIsSet(true);
1630
  }
1631
 
1632
  public void unsetPreferredInsurer() {
1633
    __isset_bit_vector.clear(__PREFERREDINSURER_ISSET_ID);
1634
  }
1635
 
1636
  /** Returns true if field preferredInsurer is set (has been assigned a value) and false otherwise */
1637
  public boolean isSetPreferredInsurer() {
1638
    return __isset_bit_vector.get(__PREFERREDINSURER_ISSET_ID);
1639
  }
1640
 
1641
  public void setPreferredInsurerIsSet(boolean value) {
1642
    __isset_bit_vector.set(__PREFERREDINSURER_ISSET_ID, value);
1643
  }
1644
 
7291 vikram.rag 1645
  public String getAsin() {
1646
    return this.asin;
1647
  }
1648
 
1649
  public void setAsin(String asin) {
1650
    this.asin = asin;
1651
  }
1652
 
1653
  public void unsetAsin() {
1654
    this.asin = null;
1655
  }
1656
 
1657
  /** Returns true if field asin is set (has been assigned a value) and false otherwise */
1658
  public boolean isSetAsin() {
1659
    return this.asin != null;
1660
  }
1661
 
1662
  public void setAsinIsSet(boolean value) {
1663
    if (!value) {
1664
      this.asin = null;
1665
    }
1666
  }
1667
 
1668
  public long getDefaultInventory() {
1669
    return this.defaultInventory;
1670
  }
1671
 
1672
  public void setDefaultInventory(long defaultInventory) {
1673
    this.defaultInventory = defaultInventory;
1674
    setDefaultInventoryIsSet(true);
1675
  }
1676
 
1677
  public void unsetDefaultInventory() {
1678
    __isset_bit_vector.clear(__DEFAULTINVENTORY_ISSET_ID);
1679
  }
1680
 
1681
  /** Returns true if field defaultInventory is set (has been assigned a value) and false otherwise */
1682
  public boolean isSetDefaultInventory() {
1683
    return __isset_bit_vector.get(__DEFAULTINVENTORY_ISSET_ID);
1684
  }
1685
 
1686
  public void setDefaultInventoryIsSet(boolean value) {
1687
    __isset_bit_vector.set(__DEFAULTINVENTORY_ISSET_ID, value);
1688
  }
1689
 
1690
  public long getHoldInventory() {
1691
    return this.holdInventory;
1692
  }
1693
 
1694
  public void setHoldInventory(long holdInventory) {
1695
    this.holdInventory = holdInventory;
1696
    setHoldInventoryIsSet(true);
1697
  }
1698
 
1699
  public void unsetHoldInventory() {
1700
    __isset_bit_vector.clear(__HOLDINVENTORY_ISSET_ID);
1701
  }
1702
 
1703
  /** Returns true if field holdInventory is set (has been assigned a value) and false otherwise */
1704
  public boolean isSetHoldInventory() {
1705
    return __isset_bit_vector.get(__HOLDINVENTORY_ISSET_ID);
1706
  }
1707
 
1708
  public void setHoldInventoryIsSet(boolean value) {
1709
    __isset_bit_vector.set(__HOLDINVENTORY_ISSET_ID, value);
1710
  }
1711
 
9841 rajveer 1712
  public boolean isHoldOverride() {
1713
    return this.holdOverride;
1714
  }
1715
 
1716
  public void setHoldOverride(boolean holdOverride) {
1717
    this.holdOverride = holdOverride;
1718
    setHoldOverrideIsSet(true);
1719
  }
1720
 
1721
  public void unsetHoldOverride() {
1722
    __isset_bit_vector.clear(__HOLDOVERRIDE_ISSET_ID);
1723
  }
1724
 
1725
  /** Returns true if field holdOverride is set (has been assigned a value) and false otherwise */
1726
  public boolean isSetHoldOverride() {
1727
    return __isset_bit_vector.get(__HOLDOVERRIDE_ISSET_ID);
1728
  }
1729
 
1730
  public void setHoldOverrideIsSet(boolean value) {
1731
    __isset_bit_vector.set(__HOLDOVERRIDE_ISSET_ID, value);
1732
  }
1733
 
18002 kshitij.so 1734
  public long getPackQuantity() {
1735
    return this.packQuantity;
1736
  }
1737
 
1738
  public void setPackQuantity(long packQuantity) {
1739
    this.packQuantity = packQuantity;
1740
    setPackQuantityIsSet(true);
1741
  }
1742
 
1743
  public void unsetPackQuantity() {
1744
    __isset_bit_vector.clear(__PACKQUANTITY_ISSET_ID);
1745
  }
1746
 
1747
  /** Returns true if field packQuantity is set (has been assigned a value) and false otherwise */
1748
  public boolean isSetPackQuantity() {
1749
    return __isset_bit_vector.get(__PACKQUANTITY_ISSET_ID);
1750
  }
1751
 
1752
  public void setPackQuantityIsSet(boolean value) {
1753
    __isset_bit_vector.set(__PACKQUANTITY_ISSET_ID, value);
1754
  }
1755
 
18150 kshitij.so 1756
  public long getQuantityStep() {
1757
    return this.quantityStep;
1758
  }
1759
 
1760
  public void setQuantityStep(long quantityStep) {
1761
    this.quantityStep = quantityStep;
1762
    setQuantityStepIsSet(true);
1763
  }
1764
 
1765
  public void unsetQuantityStep() {
1766
    __isset_bit_vector.clear(__QUANTITYSTEP_ISSET_ID);
1767
  }
1768
 
1769
  /** Returns true if field quantityStep is set (has been assigned a value) and false otherwise */
1770
  public boolean isSetQuantityStep() {
1771
    return __isset_bit_vector.get(__QUANTITYSTEP_ISSET_ID);
1772
  }
1773
 
1774
  public void setQuantityStepIsSet(boolean value) {
1775
    __isset_bit_vector.set(__QUANTITYSTEP_ISSET_ID, value);
1776
  }
1777
 
1778
  public long getMinimumBuyQuantity() {
1779
    return this.minimumBuyQuantity;
1780
  }
1781
 
1782
  public void setMinimumBuyQuantity(long minimumBuyQuantity) {
1783
    this.minimumBuyQuantity = minimumBuyQuantity;
1784
    setMinimumBuyQuantityIsSet(true);
1785
  }
1786
 
1787
  public void unsetMinimumBuyQuantity() {
1788
    __isset_bit_vector.clear(__MINIMUMBUYQUANTITY_ISSET_ID);
1789
  }
1790
 
1791
  /** Returns true if field minimumBuyQuantity is set (has been assigned a value) and false otherwise */
1792
  public boolean isSetMinimumBuyQuantity() {
1793
    return __isset_bit_vector.get(__MINIMUMBUYQUANTITY_ISSET_ID);
1794
  }
1795
 
1796
  public void setMinimumBuyQuantityIsSet(boolean value) {
1797
    __isset_bit_vector.set(__MINIMUMBUYQUANTITY_ISSET_ID, value);
1798
  }
1799
 
18414 kshitij.so 1800
  public long getMaximumBuyQuantity() {
1801
    return this.maximumBuyQuantity;
1802
  }
1803
 
1804
  public void setMaximumBuyQuantity(long maximumBuyQuantity) {
1805
    this.maximumBuyQuantity = maximumBuyQuantity;
1806
    setMaximumBuyQuantityIsSet(true);
1807
  }
1808
 
1809
  public void unsetMaximumBuyQuantity() {
1810
    __isset_bit_vector.clear(__MAXIMUMBUYQUANTITY_ISSET_ID);
1811
  }
1812
 
1813
  /** Returns true if field maximumBuyQuantity is set (has been assigned a value) and false otherwise */
1814
  public boolean isSetMaximumBuyQuantity() {
1815
    return __isset_bit_vector.get(__MAXIMUMBUYQUANTITY_ISSET_ID);
1816
  }
1817
 
1818
  public void setMaximumBuyQuantityIsSet(boolean value) {
1819
    __isset_bit_vector.set(__MAXIMUMBUYQUANTITY_ISSET_ID, value);
1820
  }
1821
 
100 ashish 1822
  public void setFieldValue(_Fields field, Object value) {
1823
    switch (field) {
1824
    case ID:
1825
      if (value == null) {
1826
        unsetId();
1827
      } else {
1828
        setId((Long)value);
1829
      }
1830
      break;
1831
 
957 chandransh 1832
    case PRODUCT_GROUP:
483 rajveer 1833
      if (value == null) {
957 chandransh 1834
        unsetProductGroup();
483 rajveer 1835
      } else {
957 chandransh 1836
        setProductGroup((String)value);
483 rajveer 1837
      }
1838
      break;
1839
 
957 chandransh 1840
    case BRAND:
1841
      if (value == null) {
1842
        unsetBrand();
1843
      } else {
1844
        setBrand((String)value);
1845
      }
1846
      break;
1847
 
483 rajveer 1848
    case MODEL_NUMBER:
1849
      if (value == null) {
1850
        unsetModelNumber();
1851
      } else {
1852
        setModelNumber((String)value);
1853
      }
1854
      break;
1855
 
1856
    case MODEL_NAME:
1857
      if (value == null) {
1858
        unsetModelName();
1859
      } else {
1860
        setModelName((String)value);
1861
      }
1862
      break;
1863
 
1329 chandransh 1864
    case COLOR:
1865
      if (value == null) {
1866
        unsetColor();
1867
      } else {
1868
        setColor((String)value);
1869
      }
1870
      break;
1871
 
483 rajveer 1872
    case CATEGORY:
1873
      if (value == null) {
1874
        unsetCategory();
1875
      } else {
622 chandransh 1876
        setCategory((Long)value);
483 rajveer 1877
      }
1878
      break;
1879
 
1880
    case COMMENTS:
1881
      if (value == null) {
1882
        unsetComments();
1883
      } else {
1884
        setComments((String)value);
1885
      }
1886
      break;
1887
 
123 ashish 1888
    case CATALOG_ITEM_ID:
100 ashish 1889
      if (value == null) {
123 ashish 1890
        unsetCatalogItemId();
100 ashish 1891
      } else {
123 ashish 1892
        setCatalogItemId((Long)value);
100 ashish 1893
      }
1894
      break;
1895
 
483 rajveer 1896
    case FEATURE_ID:
100 ashish 1897
      if (value == null) {
483 rajveer 1898
        unsetFeatureId();
100 ashish 1899
      } else {
483 rajveer 1900
        setFeatureId((Long)value);
100 ashish 1901
      }
1902
      break;
1903
 
483 rajveer 1904
    case FEATURE_DESCRIPTION:
103 ashish 1905
      if (value == null) {
483 rajveer 1906
        unsetFeatureDescription();
103 ashish 1907
      } else {
483 rajveer 1908
        setFeatureDescription((String)value);
103 ashish 1909
      }
1910
      break;
1911
 
483 rajveer 1912
    case MRP:
103 ashish 1913
      if (value == null) {
483 rajveer 1914
        unsetMrp();
103 ashish 1915
      } else {
483 rajveer 1916
        setMrp((Double)value);
103 ashish 1917
      }
1918
      break;
1919
 
483 rajveer 1920
    case SELLING_PRICE:
1921
      if (value == null) {
1922
        unsetSellingPrice();
1923
      } else {
1924
        setSellingPrice((Double)value);
1925
      }
1926
      break;
1927
 
123 ashish 1928
    case WEIGHT:
1929
      if (value == null) {
1930
        unsetWeight();
1931
      } else {
1932
        setWeight((Double)value);
1933
      }
1934
      break;
1935
 
483 rajveer 1936
    case ADDED_ON:
123 ashish 1937
      if (value == null) {
483 rajveer 1938
        unsetAddedOn();
123 ashish 1939
      } else {
483 rajveer 1940
        setAddedOn((Long)value);
123 ashish 1941
      }
1942
      break;
1943
 
483 rajveer 1944
    case START_DATE:
123 ashish 1945
      if (value == null) {
483 rajveer 1946
        unsetStartDate();
123 ashish 1947
      } else {
483 rajveer 1948
        setStartDate((Long)value);
123 ashish 1949
      }
1950
      break;
1951
 
483 rajveer 1952
    case RETIRE_DATE:
123 ashish 1953
      if (value == null) {
483 rajveer 1954
        unsetRetireDate();
123 ashish 1955
      } else {
483 rajveer 1956
        setRetireDate((Long)value);
123 ashish 1957
      }
1958
      break;
1959
 
483 rajveer 1960
    case ITEM_STATUS:
1961
      if (value == null) {
1962
        unsetItemStatus();
1963
      } else {
1964
        setItemStatus((status)value);
1965
      }
1966
      break;
1967
 
2034 rajveer 1968
    case STATUS_DESCRIPTION:
1969
      if (value == null) {
1970
        unsetStatus_description();
1971
      } else {
1972
        setStatus_description((String)value);
1973
      }
1974
      break;
1975
 
5336 rajveer 1976
    case OTHER_INFO:
1977
      if (value == null) {
1978
        unsetOtherInfo();
1979
      } else {
1980
        setOtherInfo((Map<String,String>)value);
1981
      }
1982
      break;
1983
 
607 chandransh 1984
    case BEST_DEAL_TEXT:
1985
      if (value == null) {
1986
        unsetBestDealText();
1987
      } else {
1988
        setBestDealText((String)value);
1989
      }
1990
      break;
1991
 
1992
    case BEST_DEAL_VALUE:
1993
      if (value == null) {
1994
        unsetBestDealValue();
1995
      } else {
1996
        setBestDealValue((Double)value);
1997
      }
1998
      break;
1999
 
1910 varun.gupt 2000
    case DEFAULT_FOR_ENTITY:
2001
      if (value == null) {
2002
        unsetDefaultForEntity();
2003
      } else {
2004
        setDefaultForEntity((Boolean)value);
2005
      }
2006
      break;
2007
 
607 chandransh 2008
    case UPDATED_ON:
2009
      if (value == null) {
2010
        unsetUpdatedOn();
2011
      } else {
2012
        setUpdatedOn((Long)value);
2013
      }
2014
      break;
2015
 
2064 ankur.sing 2016
    case BEST_SELLING_RANK:
2017
      if (value == null) {
2018
        unsetBestSellingRank();
2019
      } else {
2020
        setBestSellingRank((Long)value);
2021
      }
2022
      break;
2023
 
2250 ankur.sing 2024
    case RISKY:
2025
      if (value == null) {
2026
        unsetRisky();
2027
      } else {
2028
        setRisky((Boolean)value);
2029
      }
2030
      break;
2031
 
3355 chandransh 2032
    case EXPECTED_DELAY:
2033
      if (value == null) {
2034
        unsetExpectedDelay();
2035
      } else {
2036
        setExpectedDelay((Integer)value);
2037
      }
2038
      break;
2039
 
4406 anupam.sin 2040
    case IS_WAREHOUSE_PREFERENCE_STICKY:
2041
      if (value == null) {
2042
        unsetIsWarehousePreferenceSticky();
2043
      } else {
2044
        setIsWarehousePreferenceSticky((Boolean)value);
2045
      }
2046
      break;
2047
 
4295 varun.gupt 2048
    case WARRANTY_PERIOD:
2049
      if (value == null) {
2050
        unsetWarrantyPeriod();
2051
      } else {
2052
        setWarrantyPeriod((Integer)value);
2053
      }
2054
      break;
2055
 
4506 phani.kuma 2056
    case PREFERRED_VENDOR:
2057
      if (value == null) {
2058
        unsetPreferredVendor();
2059
      } else {
2060
        setPreferredVendor((Long)value);
2061
      }
2062
      break;
2063
 
5110 mandeep.dh 2064
    case TYPE:
2065
      if (value == null) {
2066
        unsetType();
2067
      } else {
2068
        setType((ItemType)value);
2069
      }
2070
      break;
2071
 
5217 amit.gupta 2072
    case COMING_SOON_START_DATE:
2073
      if (value == null) {
2074
        unsetComingSoonStartDate();
2075
      } else {
2076
        setComingSoonStartDate((Long)value);
2077
      }
2078
      break;
2079
 
2080
    case EXPECTED_ARRIVAL_DATE:
2081
      if (value == null) {
2082
        unsetExpectedArrivalDate();
2083
      } else {
2084
        setExpectedArrivalDate((Long)value);
2085
      }
2086
      break;
2087
 
5385 phani.kuma 2088
    case HAS_ITEM_NO:
2089
      if (value == null) {
2090
        unsetHasItemNo();
2091
      } else {
2092
        setHasItemNo((Boolean)value);
2093
      }
2094
      break;
2095
 
7256 rajveer 2096
    case ACTIVE_ON_STORE:
5460 phani.kuma 2097
      if (value == null) {
7256 rajveer 2098
        unsetActiveOnStore();
5460 phani.kuma 2099
      } else {
7256 rajveer 2100
        setActiveOnStore((Boolean)value);
5460 phani.kuma 2101
      }
2102
      break;
2103
 
6241 amit.gupta 2104
    case SHOW_SELLING_PRICE:
2105
      if (value == null) {
2106
        unsetShowSellingPrice();
2107
      } else {
2108
        setShowSellingPrice((Boolean)value);
2109
      }
2110
      break;
2111
 
6777 vikram.rag 2112
    case BEST_DEALS_DETAILS_TEXT:
2113
      if (value == null) {
2114
        unsetBestDealsDetailsText();
2115
      } else {
2116
        setBestDealsDetailsText((String)value);
2117
      }
2118
      break;
2119
 
2120
    case BEST_DEALS_DETAILS_LINK:
2121
      if (value == null) {
2122
        unsetBestDealsDetailsLink();
2123
      } else {
2124
        setBestDealsDetailsLink((String)value);
2125
      }
2126
      break;
2127
 
6805 anupam.sin 2128
    case PREFERRED_INSURER:
2129
      if (value == null) {
2130
        unsetPreferredInsurer();
2131
      } else {
2132
        setPreferredInsurer((Long)value);
2133
      }
2134
      break;
2135
 
7291 vikram.rag 2136
    case ASIN:
2137
      if (value == null) {
2138
        unsetAsin();
2139
      } else {
2140
        setAsin((String)value);
2141
      }
2142
      break;
2143
 
2144
    case DEFAULT_INVENTORY:
2145
      if (value == null) {
2146
        unsetDefaultInventory();
2147
      } else {
2148
        setDefaultInventory((Long)value);
2149
      }
2150
      break;
2151
 
2152
    case HOLD_INVENTORY:
2153
      if (value == null) {
2154
        unsetHoldInventory();
2155
      } else {
2156
        setHoldInventory((Long)value);
2157
      }
2158
      break;
2159
 
9841 rajveer 2160
    case HOLD_OVERRIDE:
2161
      if (value == null) {
2162
        unsetHoldOverride();
2163
      } else {
2164
        setHoldOverride((Boolean)value);
2165
      }
2166
      break;
2167
 
18002 kshitij.so 2168
    case PACK_QUANTITY:
2169
      if (value == null) {
2170
        unsetPackQuantity();
2171
      } else {
2172
        setPackQuantity((Long)value);
2173
      }
2174
      break;
2175
 
18150 kshitij.so 2176
    case QUANTITY_STEP:
2177
      if (value == null) {
2178
        unsetQuantityStep();
2179
      } else {
2180
        setQuantityStep((Long)value);
2181
      }
2182
      break;
2183
 
2184
    case MINIMUM_BUY_QUANTITY:
2185
      if (value == null) {
2186
        unsetMinimumBuyQuantity();
2187
      } else {
2188
        setMinimumBuyQuantity((Long)value);
2189
      }
2190
      break;
2191
 
18414 kshitij.so 2192
    case MAXIMUM_BUY_QUANTITY:
2193
      if (value == null) {
2194
        unsetMaximumBuyQuantity();
2195
      } else {
2196
        setMaximumBuyQuantity((Long)value);
2197
      }
2198
      break;
2199
 
100 ashish 2200
    }
2201
  }
2202
 
2203
  public Object getFieldValue(_Fields field) {
2204
    switch (field) {
2205
    case ID:
3430 rajveer 2206
      return Long.valueOf(getId());
100 ashish 2207
 
957 chandransh 2208
    case PRODUCT_GROUP:
2209
      return getProductGroup();
483 rajveer 2210
 
957 chandransh 2211
    case BRAND:
2212
      return getBrand();
2213
 
483 rajveer 2214
    case MODEL_NUMBER:
2215
      return getModelNumber();
2216
 
2217
    case MODEL_NAME:
2218
      return getModelName();
2219
 
1329 chandransh 2220
    case COLOR:
2221
      return getColor();
2222
 
483 rajveer 2223
    case CATEGORY:
3430 rajveer 2224
      return Long.valueOf(getCategory());
483 rajveer 2225
 
2226
    case COMMENTS:
2227
      return getComments();
2228
 
123 ashish 2229
    case CATALOG_ITEM_ID:
3430 rajveer 2230
      return Long.valueOf(getCatalogItemId());
100 ashish 2231
 
483 rajveer 2232
    case FEATURE_ID:
3430 rajveer 2233
      return Long.valueOf(getFeatureId());
483 rajveer 2234
 
2235
    case FEATURE_DESCRIPTION:
2236
      return getFeatureDescription();
2237
 
2238
    case MRP:
3430 rajveer 2239
      return Double.valueOf(getMrp());
483 rajveer 2240
 
2241
    case SELLING_PRICE:
3430 rajveer 2242
      return Double.valueOf(getSellingPrice());
483 rajveer 2243
 
2244
    case WEIGHT:
3430 rajveer 2245
      return Double.valueOf(getWeight());
483 rajveer 2246
 
103 ashish 2247
    case ADDED_ON:
3430 rajveer 2248
      return Long.valueOf(getAddedOn());
103 ashish 2249
 
2250
    case START_DATE:
3430 rajveer 2251
      return Long.valueOf(getStartDate());
103 ashish 2252
 
483 rajveer 2253
    case RETIRE_DATE:
3430 rajveer 2254
      return Long.valueOf(getRetireDate());
483 rajveer 2255
 
103 ashish 2256
    case ITEM_STATUS:
2257
      return getItemStatus();
2258
 
2034 rajveer 2259
    case STATUS_DESCRIPTION:
2260
      return getStatus_description();
2261
 
5336 rajveer 2262
    case OTHER_INFO:
2263
      return getOtherInfo();
2264
 
607 chandransh 2265
    case BEST_DEAL_TEXT:
2266
      return getBestDealText();
2267
 
2268
    case BEST_DEAL_VALUE:
3430 rajveer 2269
      return Double.valueOf(getBestDealValue());
607 chandransh 2270
 
1910 varun.gupt 2271
    case DEFAULT_FOR_ENTITY:
3430 rajveer 2272
      return Boolean.valueOf(isDefaultForEntity());
1910 varun.gupt 2273
 
607 chandransh 2274
    case UPDATED_ON:
3430 rajveer 2275
      return Long.valueOf(getUpdatedOn());
607 chandransh 2276
 
2064 ankur.sing 2277
    case BEST_SELLING_RANK:
3430 rajveer 2278
      return Long.valueOf(getBestSellingRank());
2064 ankur.sing 2279
 
2250 ankur.sing 2280
    case RISKY:
3430 rajveer 2281
      return Boolean.valueOf(isRisky());
2250 ankur.sing 2282
 
3355 chandransh 2283
    case EXPECTED_DELAY:
3430 rajveer 2284
      return Integer.valueOf(getExpectedDelay());
3355 chandransh 2285
 
4406 anupam.sin 2286
    case IS_WAREHOUSE_PREFERENCE_STICKY:
2287
      return Boolean.valueOf(isIsWarehousePreferenceSticky());
2288
 
4295 varun.gupt 2289
    case WARRANTY_PERIOD:
2290
      return Integer.valueOf(getWarrantyPeriod());
2291
 
4506 phani.kuma 2292
    case PREFERRED_VENDOR:
2293
      return Long.valueOf(getPreferredVendor());
2294
 
5110 mandeep.dh 2295
    case TYPE:
2296
      return getType();
2297
 
5217 amit.gupta 2298
    case COMING_SOON_START_DATE:
2299
      return Long.valueOf(getComingSoonStartDate());
2300
 
2301
    case EXPECTED_ARRIVAL_DATE:
2302
      return Long.valueOf(getExpectedArrivalDate());
2303
 
5385 phani.kuma 2304
    case HAS_ITEM_NO:
2305
      return Boolean.valueOf(isHasItemNo());
2306
 
7256 rajveer 2307
    case ACTIVE_ON_STORE:
2308
      return Boolean.valueOf(isActiveOnStore());
5460 phani.kuma 2309
 
6241 amit.gupta 2310
    case SHOW_SELLING_PRICE:
2311
      return Boolean.valueOf(isShowSellingPrice());
2312
 
6777 vikram.rag 2313
    case BEST_DEALS_DETAILS_TEXT:
2314
      return getBestDealsDetailsText();
2315
 
2316
    case BEST_DEALS_DETAILS_LINK:
2317
      return getBestDealsDetailsLink();
2318
 
6805 anupam.sin 2319
    case PREFERRED_INSURER:
2320
      return Long.valueOf(getPreferredInsurer());
2321
 
7291 vikram.rag 2322
    case ASIN:
2323
      return getAsin();
2324
 
2325
    case DEFAULT_INVENTORY:
2326
      return Long.valueOf(getDefaultInventory());
2327
 
2328
    case HOLD_INVENTORY:
2329
      return Long.valueOf(getHoldInventory());
2330
 
9841 rajveer 2331
    case HOLD_OVERRIDE:
2332
      return Boolean.valueOf(isHoldOverride());
2333
 
18002 kshitij.so 2334
    case PACK_QUANTITY:
2335
      return Long.valueOf(getPackQuantity());
2336
 
18150 kshitij.so 2337
    case QUANTITY_STEP:
2338
      return Long.valueOf(getQuantityStep());
2339
 
2340
    case MINIMUM_BUY_QUANTITY:
2341
      return Long.valueOf(getMinimumBuyQuantity());
2342
 
18414 kshitij.so 2343
    case MAXIMUM_BUY_QUANTITY:
2344
      return Long.valueOf(getMaximumBuyQuantity());
2345
 
100 ashish 2346
    }
2347
    throw new IllegalStateException();
2348
  }
2349
 
3430 rajveer 2350
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2351
  public boolean isSet(_Fields field) {
2352
    if (field == null) {
2353
      throw new IllegalArgumentException();
2354
    }
100 ashish 2355
 
2356
    switch (field) {
2357
    case ID:
2358
      return isSetId();
957 chandransh 2359
    case PRODUCT_GROUP:
2360
      return isSetProductGroup();
2361
    case BRAND:
2362
      return isSetBrand();
483 rajveer 2363
    case MODEL_NUMBER:
2364
      return isSetModelNumber();
2365
    case MODEL_NAME:
2366
      return isSetModelName();
1329 chandransh 2367
    case COLOR:
2368
      return isSetColor();
483 rajveer 2369
    case CATEGORY:
2370
      return isSetCategory();
2371
    case COMMENTS:
2372
      return isSetComments();
123 ashish 2373
    case CATALOG_ITEM_ID:
2374
      return isSetCatalogItemId();
483 rajveer 2375
    case FEATURE_ID:
2376
      return isSetFeatureId();
2377
    case FEATURE_DESCRIPTION:
2378
      return isSetFeatureDescription();
2379
    case MRP:
2380
      return isSetMrp();
2381
    case SELLING_PRICE:
2382
      return isSetSellingPrice();
2383
    case WEIGHT:
2384
      return isSetWeight();
103 ashish 2385
    case ADDED_ON:
2386
      return isSetAddedOn();
2387
    case START_DATE:
2388
      return isSetStartDate();
483 rajveer 2389
    case RETIRE_DATE:
2390
      return isSetRetireDate();
103 ashish 2391
    case ITEM_STATUS:
2392
      return isSetItemStatus();
2034 rajveer 2393
    case STATUS_DESCRIPTION:
2394
      return isSetStatus_description();
5336 rajveer 2395
    case OTHER_INFO:
2396
      return isSetOtherInfo();
607 chandransh 2397
    case BEST_DEAL_TEXT:
2398
      return isSetBestDealText();
2399
    case BEST_DEAL_VALUE:
2400
      return isSetBestDealValue();
1910 varun.gupt 2401
    case DEFAULT_FOR_ENTITY:
2402
      return isSetDefaultForEntity();
607 chandransh 2403
    case UPDATED_ON:
2404
      return isSetUpdatedOn();
2064 ankur.sing 2405
    case BEST_SELLING_RANK:
2406
      return isSetBestSellingRank();
2250 ankur.sing 2407
    case RISKY:
2408
      return isSetRisky();
3355 chandransh 2409
    case EXPECTED_DELAY:
2410
      return isSetExpectedDelay();
4406 anupam.sin 2411
    case IS_WAREHOUSE_PREFERENCE_STICKY:
2412
      return isSetIsWarehousePreferenceSticky();
4295 varun.gupt 2413
    case WARRANTY_PERIOD:
2414
      return isSetWarrantyPeriod();
4506 phani.kuma 2415
    case PREFERRED_VENDOR:
2416
      return isSetPreferredVendor();
5110 mandeep.dh 2417
    case TYPE:
2418
      return isSetType();
5217 amit.gupta 2419
    case COMING_SOON_START_DATE:
2420
      return isSetComingSoonStartDate();
2421
    case EXPECTED_ARRIVAL_DATE:
2422
      return isSetExpectedArrivalDate();
5385 phani.kuma 2423
    case HAS_ITEM_NO:
2424
      return isSetHasItemNo();
7256 rajveer 2425
    case ACTIVE_ON_STORE:
2426
      return isSetActiveOnStore();
6241 amit.gupta 2427
    case SHOW_SELLING_PRICE:
2428
      return isSetShowSellingPrice();
6777 vikram.rag 2429
    case BEST_DEALS_DETAILS_TEXT:
2430
      return isSetBestDealsDetailsText();
2431
    case BEST_DEALS_DETAILS_LINK:
2432
      return isSetBestDealsDetailsLink();
6805 anupam.sin 2433
    case PREFERRED_INSURER:
2434
      return isSetPreferredInsurer();
7291 vikram.rag 2435
    case ASIN:
2436
      return isSetAsin();
2437
    case DEFAULT_INVENTORY:
2438
      return isSetDefaultInventory();
2439
    case HOLD_INVENTORY:
2440
      return isSetHoldInventory();
9841 rajveer 2441
    case HOLD_OVERRIDE:
2442
      return isSetHoldOverride();
18002 kshitij.so 2443
    case PACK_QUANTITY:
2444
      return isSetPackQuantity();
18150 kshitij.so 2445
    case QUANTITY_STEP:
2446
      return isSetQuantityStep();
2447
    case MINIMUM_BUY_QUANTITY:
2448
      return isSetMinimumBuyQuantity();
18414 kshitij.so 2449
    case MAXIMUM_BUY_QUANTITY:
2450
      return isSetMaximumBuyQuantity();
100 ashish 2451
    }
2452
    throw new IllegalStateException();
2453
  }
2454
 
2455
  @Override
2456
  public boolean equals(Object that) {
2457
    if (that == null)
2458
      return false;
2459
    if (that instanceof Item)
2460
      return this.equals((Item)that);
2461
    return false;
2462
  }
2463
 
2464
  public boolean equals(Item that) {
2465
    if (that == null)
2466
      return false;
2467
 
2468
    boolean this_present_id = true;
2469
    boolean that_present_id = true;
2470
    if (this_present_id || that_present_id) {
2471
      if (!(this_present_id && that_present_id))
2472
        return false;
2473
      if (this.id != that.id)
2474
        return false;
2475
    }
2476
 
957 chandransh 2477
    boolean this_present_productGroup = true && this.isSetProductGroup();
2478
    boolean that_present_productGroup = true && that.isSetProductGroup();
2479
    if (this_present_productGroup || that_present_productGroup) {
2480
      if (!(this_present_productGroup && that_present_productGroup))
483 rajveer 2481
        return false;
957 chandransh 2482
      if (!this.productGroup.equals(that.productGroup))
483 rajveer 2483
        return false;
2484
    }
2485
 
957 chandransh 2486
    boolean this_present_brand = true && this.isSetBrand();
2487
    boolean that_present_brand = true && that.isSetBrand();
2488
    if (this_present_brand || that_present_brand) {
2489
      if (!(this_present_brand && that_present_brand))
2490
        return false;
2491
      if (!this.brand.equals(that.brand))
2492
        return false;
2493
    }
2494
 
483 rajveer 2495
    boolean this_present_modelNumber = true && this.isSetModelNumber();
2496
    boolean that_present_modelNumber = true && that.isSetModelNumber();
2497
    if (this_present_modelNumber || that_present_modelNumber) {
2498
      if (!(this_present_modelNumber && that_present_modelNumber))
2499
        return false;
2500
      if (!this.modelNumber.equals(that.modelNumber))
2501
        return false;
2502
    }
2503
 
2504
    boolean this_present_modelName = true && this.isSetModelName();
2505
    boolean that_present_modelName = true && that.isSetModelName();
2506
    if (this_present_modelName || that_present_modelName) {
2507
      if (!(this_present_modelName && that_present_modelName))
2508
        return false;
2509
      if (!this.modelName.equals(that.modelName))
2510
        return false;
2511
    }
2512
 
1329 chandransh 2513
    boolean this_present_color = true && this.isSetColor();
2514
    boolean that_present_color = true && that.isSetColor();
2515
    if (this_present_color || that_present_color) {
2516
      if (!(this_present_color && that_present_color))
2517
        return false;
2518
      if (!this.color.equals(that.color))
2519
        return false;
2520
    }
2521
 
622 chandransh 2522
    boolean this_present_category = true;
2523
    boolean that_present_category = true;
483 rajveer 2524
    if (this_present_category || that_present_category) {
2525
      if (!(this_present_category && that_present_category))
2526
        return false;
622 chandransh 2527
      if (this.category != that.category)
483 rajveer 2528
        return false;
2529
    }
2530
 
2531
    boolean this_present_comments = true && this.isSetComments();
2532
    boolean that_present_comments = true && that.isSetComments();
2533
    if (this_present_comments || that_present_comments) {
2534
      if (!(this_present_comments && that_present_comments))
2535
        return false;
2536
      if (!this.comments.equals(that.comments))
2537
        return false;
2538
    }
2539
 
123 ashish 2540
    boolean this_present_catalogItemId = true;
2541
    boolean that_present_catalogItemId = true;
2542
    if (this_present_catalogItemId || that_present_catalogItemId) {
2543
      if (!(this_present_catalogItemId && that_present_catalogItemId))
100 ashish 2544
        return false;
123 ashish 2545
      if (this.catalogItemId != that.catalogItemId)
100 ashish 2546
        return false;
2547
    }
2548
 
483 rajveer 2549
    boolean this_present_featureId = true;
2550
    boolean that_present_featureId = true;
2551
    if (this_present_featureId || that_present_featureId) {
2552
      if (!(this_present_featureId && that_present_featureId))
2553
        return false;
2554
      if (this.featureId != that.featureId)
2555
        return false;
2556
    }
2557
 
2558
    boolean this_present_featureDescription = true && this.isSetFeatureDescription();
2559
    boolean that_present_featureDescription = true && that.isSetFeatureDescription();
2560
    if (this_present_featureDescription || that_present_featureDescription) {
2561
      if (!(this_present_featureDescription && that_present_featureDescription))
2562
        return false;
2563
      if (!this.featureDescription.equals(that.featureDescription))
2564
        return false;
2565
    }
2566
 
2128 ankur.sing 2567
    boolean this_present_mrp = true && this.isSetMrp();
2568
    boolean that_present_mrp = true && that.isSetMrp();
483 rajveer 2569
    if (this_present_mrp || that_present_mrp) {
2570
      if (!(this_present_mrp && that_present_mrp))
2571
        return false;
2572
      if (this.mrp != that.mrp)
2573
        return false;
2574
    }
2575
 
2128 ankur.sing 2576
    boolean this_present_sellingPrice = true && this.isSetSellingPrice();
2577
    boolean that_present_sellingPrice = true && that.isSetSellingPrice();
483 rajveer 2578
    if (this_present_sellingPrice || that_present_sellingPrice) {
2579
      if (!(this_present_sellingPrice && that_present_sellingPrice))
2580
        return false;
2581
      if (this.sellingPrice != that.sellingPrice)
2582
        return false;
2583
    }
2584
 
2128 ankur.sing 2585
    boolean this_present_weight = true && this.isSetWeight();
2586
    boolean that_present_weight = true && that.isSetWeight();
483 rajveer 2587
    if (this_present_weight || that_present_weight) {
2588
      if (!(this_present_weight && that_present_weight))
2589
        return false;
2590
      if (this.weight != that.weight)
2591
        return false;
2592
    }
2593
 
103 ashish 2594
    boolean this_present_addedOn = true;
2595
    boolean that_present_addedOn = true;
2596
    if (this_present_addedOn || that_present_addedOn) {
2597
      if (!(this_present_addedOn && that_present_addedOn))
2598
        return false;
2599
      if (this.addedOn != that.addedOn)
2600
        return false;
2601
    }
2602
 
2491 ankur.sing 2603
    boolean this_present_startDate = true && this.isSetStartDate();
2604
    boolean that_present_startDate = true && that.isSetStartDate();
103 ashish 2605
    if (this_present_startDate || that_present_startDate) {
2606
      if (!(this_present_startDate && that_present_startDate))
2607
        return false;
2608
      if (this.startDate != that.startDate)
2609
        return false;
2610
    }
2611
 
2491 ankur.sing 2612
    boolean this_present_retireDate = true && this.isSetRetireDate();
2613
    boolean that_present_retireDate = true && that.isSetRetireDate();
483 rajveer 2614
    if (this_present_retireDate || that_present_retireDate) {
2615
      if (!(this_present_retireDate && that_present_retireDate))
2616
        return false;
2617
      if (this.retireDate != that.retireDate)
2618
        return false;
2619
    }
2620
 
103 ashish 2621
    boolean this_present_itemStatus = true && this.isSetItemStatus();
2622
    boolean that_present_itemStatus = true && that.isSetItemStatus();
2623
    if (this_present_itemStatus || that_present_itemStatus) {
2624
      if (!(this_present_itemStatus && that_present_itemStatus))
2625
        return false;
2626
      if (!this.itemStatus.equals(that.itemStatus))
2627
        return false;
2628
    }
2629
 
2034 rajveer 2630
    boolean this_present_status_description = true && this.isSetStatus_description();
2631
    boolean that_present_status_description = true && that.isSetStatus_description();
2632
    if (this_present_status_description || that_present_status_description) {
2633
      if (!(this_present_status_description && that_present_status_description))
2634
        return false;
2635
      if (!this.status_description.equals(that.status_description))
2636
        return false;
2637
    }
2638
 
5336 rajveer 2639
    boolean this_present_otherInfo = true && this.isSetOtherInfo();
2640
    boolean that_present_otherInfo = true && that.isSetOtherInfo();
2641
    if (this_present_otherInfo || that_present_otherInfo) {
2642
      if (!(this_present_otherInfo && that_present_otherInfo))
2643
        return false;
2644
      if (!this.otherInfo.equals(that.otherInfo))
2645
        return false;
2646
    }
2647
 
607 chandransh 2648
    boolean this_present_bestDealText = true && this.isSetBestDealText();
2649
    boolean that_present_bestDealText = true && that.isSetBestDealText();
2650
    if (this_present_bestDealText || that_present_bestDealText) {
2651
      if (!(this_present_bestDealText && that_present_bestDealText))
2652
        return false;
2653
      if (!this.bestDealText.equals(that.bestDealText))
2654
        return false;
2655
    }
2656
 
2128 ankur.sing 2657
    boolean this_present_bestDealValue = true && this.isSetBestDealValue();
2658
    boolean that_present_bestDealValue = true && that.isSetBestDealValue();
607 chandransh 2659
    if (this_present_bestDealValue || that_present_bestDealValue) {
2660
      if (!(this_present_bestDealValue && that_present_bestDealValue))
2661
        return false;
2662
      if (this.bestDealValue != that.bestDealValue)
2663
        return false;
2664
    }
2665
 
1910 varun.gupt 2666
    boolean this_present_defaultForEntity = true;
2667
    boolean that_present_defaultForEntity = true;
2668
    if (this_present_defaultForEntity || that_present_defaultForEntity) {
2669
      if (!(this_present_defaultForEntity && that_present_defaultForEntity))
2670
        return false;
2671
      if (this.defaultForEntity != that.defaultForEntity)
2672
        return false;
2673
    }
2674
 
607 chandransh 2675
    boolean this_present_updatedOn = true;
2676
    boolean that_present_updatedOn = true;
2677
    if (this_present_updatedOn || that_present_updatedOn) {
2678
      if (!(this_present_updatedOn && that_present_updatedOn))
2679
        return false;
2680
      if (this.updatedOn != that.updatedOn)
2681
        return false;
2682
    }
2683
 
2128 ankur.sing 2684
    boolean this_present_bestSellingRank = true && this.isSetBestSellingRank();
2685
    boolean that_present_bestSellingRank = true && that.isSetBestSellingRank();
2064 ankur.sing 2686
    if (this_present_bestSellingRank || that_present_bestSellingRank) {
2687
      if (!(this_present_bestSellingRank && that_present_bestSellingRank))
2688
        return false;
2689
      if (this.bestSellingRank != that.bestSellingRank)
2690
        return false;
2691
    }
2692
 
2250 ankur.sing 2693
    boolean this_present_risky = true;
2694
    boolean that_present_risky = true;
2695
    if (this_present_risky || that_present_risky) {
2696
      if (!(this_present_risky && that_present_risky))
2697
        return false;
2698
      if (this.risky != that.risky)
2699
        return false;
2700
    }
2701
 
3355 chandransh 2702
    boolean this_present_expectedDelay = true && this.isSetExpectedDelay();
2703
    boolean that_present_expectedDelay = true && that.isSetExpectedDelay();
2704
    if (this_present_expectedDelay || that_present_expectedDelay) {
2705
      if (!(this_present_expectedDelay && that_present_expectedDelay))
2706
        return false;
2707
      if (this.expectedDelay != that.expectedDelay)
2708
        return false;
2709
    }
2710
 
4406 anupam.sin 2711
    boolean this_present_isWarehousePreferenceSticky = true && this.isSetIsWarehousePreferenceSticky();
2712
    boolean that_present_isWarehousePreferenceSticky = true && that.isSetIsWarehousePreferenceSticky();
2713
    if (this_present_isWarehousePreferenceSticky || that_present_isWarehousePreferenceSticky) {
2714
      if (!(this_present_isWarehousePreferenceSticky && that_present_isWarehousePreferenceSticky))
2715
        return false;
2716
      if (this.isWarehousePreferenceSticky != that.isWarehousePreferenceSticky)
2717
        return false;
2718
    }
2719
 
4295 varun.gupt 2720
    boolean this_present_warrantyPeriod = true;
2721
    boolean that_present_warrantyPeriod = true;
2722
    if (this_present_warrantyPeriod || that_present_warrantyPeriod) {
2723
      if (!(this_present_warrantyPeriod && that_present_warrantyPeriod))
2724
        return false;
2725
      if (this.warrantyPeriod != that.warrantyPeriod)
2726
        return false;
2727
    }
2728
 
4506 phani.kuma 2729
    boolean this_present_preferredVendor = true && this.isSetPreferredVendor();
2730
    boolean that_present_preferredVendor = true && that.isSetPreferredVendor();
2731
    if (this_present_preferredVendor || that_present_preferredVendor) {
2732
      if (!(this_present_preferredVendor && that_present_preferredVendor))
2733
        return false;
2734
      if (this.preferredVendor != that.preferredVendor)
2735
        return false;
2736
    }
2737
 
5110 mandeep.dh 2738
    boolean this_present_type = true && this.isSetType();
2739
    boolean that_present_type = true && that.isSetType();
2740
    if (this_present_type || that_present_type) {
2741
      if (!(this_present_type && that_present_type))
2742
        return false;
2743
      if (!this.type.equals(that.type))
2744
        return false;
2745
    }
2746
 
5217 amit.gupta 2747
    boolean this_present_comingSoonStartDate = true && this.isSetComingSoonStartDate();
2748
    boolean that_present_comingSoonStartDate = true && that.isSetComingSoonStartDate();
2749
    if (this_present_comingSoonStartDate || that_present_comingSoonStartDate) {
2750
      if (!(this_present_comingSoonStartDate && that_present_comingSoonStartDate))
2751
        return false;
2752
      if (this.comingSoonStartDate != that.comingSoonStartDate)
2753
        return false;
2754
    }
2755
 
2756
    boolean this_present_expectedArrivalDate = true && this.isSetExpectedArrivalDate();
2757
    boolean that_present_expectedArrivalDate = true && that.isSetExpectedArrivalDate();
2758
    if (this_present_expectedArrivalDate || that_present_expectedArrivalDate) {
2759
      if (!(this_present_expectedArrivalDate && that_present_expectedArrivalDate))
2760
        return false;
2761
      if (this.expectedArrivalDate != that.expectedArrivalDate)
2762
        return false;
2763
    }
2764
 
5385 phani.kuma 2765
    boolean this_present_hasItemNo = true;
2766
    boolean that_present_hasItemNo = true;
2767
    if (this_present_hasItemNo || that_present_hasItemNo) {
2768
      if (!(this_present_hasItemNo && that_present_hasItemNo))
2769
        return false;
2770
      if (this.hasItemNo != that.hasItemNo)
2771
        return false;
2772
    }
2773
 
7256 rajveer 2774
    boolean this_present_activeOnStore = true;
2775
    boolean that_present_activeOnStore = true;
2776
    if (this_present_activeOnStore || that_present_activeOnStore) {
2777
      if (!(this_present_activeOnStore && that_present_activeOnStore))
5460 phani.kuma 2778
        return false;
7256 rajveer 2779
      if (this.activeOnStore != that.activeOnStore)
5460 phani.kuma 2780
        return false;
2781
    }
2782
 
6241 amit.gupta 2783
    boolean this_present_showSellingPrice = true;
2784
    boolean that_present_showSellingPrice = true;
2785
    if (this_present_showSellingPrice || that_present_showSellingPrice) {
2786
      if (!(this_present_showSellingPrice && that_present_showSellingPrice))
2787
        return false;
2788
      if (this.showSellingPrice != that.showSellingPrice)
2789
        return false;
2790
    }
2791
 
6777 vikram.rag 2792
    boolean this_present_bestDealsDetailsText = true && this.isSetBestDealsDetailsText();
2793
    boolean that_present_bestDealsDetailsText = true && that.isSetBestDealsDetailsText();
2794
    if (this_present_bestDealsDetailsText || that_present_bestDealsDetailsText) {
2795
      if (!(this_present_bestDealsDetailsText && that_present_bestDealsDetailsText))
2796
        return false;
2797
      if (!this.bestDealsDetailsText.equals(that.bestDealsDetailsText))
2798
        return false;
2799
    }
2800
 
2801
    boolean this_present_bestDealsDetailsLink = true && this.isSetBestDealsDetailsLink();
2802
    boolean that_present_bestDealsDetailsLink = true && that.isSetBestDealsDetailsLink();
2803
    if (this_present_bestDealsDetailsLink || that_present_bestDealsDetailsLink) {
2804
      if (!(this_present_bestDealsDetailsLink && that_present_bestDealsDetailsLink))
2805
        return false;
2806
      if (!this.bestDealsDetailsLink.equals(that.bestDealsDetailsLink))
2807
        return false;
2808
    }
2809
 
6805 anupam.sin 2810
    boolean this_present_preferredInsurer = true;
2811
    boolean that_present_preferredInsurer = true;
2812
    if (this_present_preferredInsurer || that_present_preferredInsurer) {
2813
      if (!(this_present_preferredInsurer && that_present_preferredInsurer))
2814
        return false;
2815
      if (this.preferredInsurer != that.preferredInsurer)
2816
        return false;
2817
    }
2818
 
7291 vikram.rag 2819
    boolean this_present_asin = true && this.isSetAsin();
2820
    boolean that_present_asin = true && that.isSetAsin();
2821
    if (this_present_asin || that_present_asin) {
2822
      if (!(this_present_asin && that_present_asin))
2823
        return false;
2824
      if (!this.asin.equals(that.asin))
2825
        return false;
2826
    }
2827
 
2828
    boolean this_present_defaultInventory = true;
2829
    boolean that_present_defaultInventory = true;
2830
    if (this_present_defaultInventory || that_present_defaultInventory) {
2831
      if (!(this_present_defaultInventory && that_present_defaultInventory))
2832
        return false;
2833
      if (this.defaultInventory != that.defaultInventory)
2834
        return false;
2835
    }
2836
 
2837
    boolean this_present_holdInventory = true;
2838
    boolean that_present_holdInventory = true;
2839
    if (this_present_holdInventory || that_present_holdInventory) {
2840
      if (!(this_present_holdInventory && that_present_holdInventory))
2841
        return false;
2842
      if (this.holdInventory != that.holdInventory)
2843
        return false;
2844
    }
2845
 
9841 rajveer 2846
    boolean this_present_holdOverride = true;
2847
    boolean that_present_holdOverride = true;
2848
    if (this_present_holdOverride || that_present_holdOverride) {
2849
      if (!(this_present_holdOverride && that_present_holdOverride))
2850
        return false;
2851
      if (this.holdOverride != that.holdOverride)
2852
        return false;
2853
    }
2854
 
18002 kshitij.so 2855
    boolean this_present_packQuantity = true;
2856
    boolean that_present_packQuantity = true;
2857
    if (this_present_packQuantity || that_present_packQuantity) {
2858
      if (!(this_present_packQuantity && that_present_packQuantity))
2859
        return false;
2860
      if (this.packQuantity != that.packQuantity)
2861
        return false;
2862
    }
2863
 
18150 kshitij.so 2864
    boolean this_present_quantityStep = true;
2865
    boolean that_present_quantityStep = true;
2866
    if (this_present_quantityStep || that_present_quantityStep) {
2867
      if (!(this_present_quantityStep && that_present_quantityStep))
2868
        return false;
2869
      if (this.quantityStep != that.quantityStep)
2870
        return false;
2871
    }
2872
 
2873
    boolean this_present_minimumBuyQuantity = true;
2874
    boolean that_present_minimumBuyQuantity = true;
2875
    if (this_present_minimumBuyQuantity || that_present_minimumBuyQuantity) {
2876
      if (!(this_present_minimumBuyQuantity && that_present_minimumBuyQuantity))
2877
        return false;
2878
      if (this.minimumBuyQuantity != that.minimumBuyQuantity)
2879
        return false;
2880
    }
2881
 
18414 kshitij.so 2882
    boolean this_present_maximumBuyQuantity = true;
2883
    boolean that_present_maximumBuyQuantity = true;
2884
    if (this_present_maximumBuyQuantity || that_present_maximumBuyQuantity) {
2885
      if (!(this_present_maximumBuyQuantity && that_present_maximumBuyQuantity))
2886
        return false;
2887
      if (this.maximumBuyQuantity != that.maximumBuyQuantity)
2888
        return false;
2889
    }
2890
 
100 ashish 2891
    return true;
2892
  }
2893
 
2894
  @Override
2895
  public int hashCode() {
2896
    return 0;
2897
  }
2898
 
3430 rajveer 2899
  public int compareTo(Item other) {
2900
    if (!getClass().equals(other.getClass())) {
2901
      return getClass().getName().compareTo(other.getClass().getName());
2902
    }
2903
 
2904
    int lastComparison = 0;
2905
    Item typedOther = (Item)other;
2906
 
2907
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
2908
    if (lastComparison != 0) {
2909
      return lastComparison;
2910
    }
2911
    if (isSetId()) {
2912
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
2913
      if (lastComparison != 0) {
2914
        return lastComparison;
2915
      }
2916
    }
2917
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
2918
    if (lastComparison != 0) {
2919
      return lastComparison;
2920
    }
2921
    if (isSetProductGroup()) {
2922
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
2923
      if (lastComparison != 0) {
2924
        return lastComparison;
2925
      }
2926
    }
2927
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
2928
    if (lastComparison != 0) {
2929
      return lastComparison;
2930
    }
2931
    if (isSetBrand()) {
2932
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
2933
      if (lastComparison != 0) {
2934
        return lastComparison;
2935
      }
2936
    }
2937
    lastComparison = Boolean.valueOf(isSetModelNumber()).compareTo(typedOther.isSetModelNumber());
2938
    if (lastComparison != 0) {
2939
      return lastComparison;
2940
    }
2941
    if (isSetModelNumber()) {
2942
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelNumber, typedOther.modelNumber);
2943
      if (lastComparison != 0) {
2944
        return lastComparison;
2945
      }
2946
    }
2947
    lastComparison = Boolean.valueOf(isSetModelName()).compareTo(typedOther.isSetModelName());
2948
    if (lastComparison != 0) {
2949
      return lastComparison;
2950
    }
2951
    if (isSetModelName()) {
2952
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.modelName, typedOther.modelName);
2953
      if (lastComparison != 0) {
2954
        return lastComparison;
2955
      }
2956
    }
2957
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
2958
    if (lastComparison != 0) {
2959
      return lastComparison;
2960
    }
2961
    if (isSetColor()) {
2962
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
2963
      if (lastComparison != 0) {
2964
        return lastComparison;
2965
      }
2966
    }
2967
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
2968
    if (lastComparison != 0) {
2969
      return lastComparison;
2970
    }
2971
    if (isSetCategory()) {
2972
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
2973
      if (lastComparison != 0) {
2974
        return lastComparison;
2975
      }
2976
    }
2977
    lastComparison = Boolean.valueOf(isSetComments()).compareTo(typedOther.isSetComments());
2978
    if (lastComparison != 0) {
2979
      return lastComparison;
2980
    }
2981
    if (isSetComments()) {
2982
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comments, typedOther.comments);
2983
      if (lastComparison != 0) {
2984
        return lastComparison;
2985
      }
2986
    }
2987
    lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
2988
    if (lastComparison != 0) {
2989
      return lastComparison;
2990
    }
2991
    if (isSetCatalogItemId()) {
2992
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
2993
      if (lastComparison != 0) {
2994
        return lastComparison;
2995
      }
2996
    }
2997
    lastComparison = Boolean.valueOf(isSetFeatureId()).compareTo(typedOther.isSetFeatureId());
2998
    if (lastComparison != 0) {
2999
      return lastComparison;
3000
    }
3001
    if (isSetFeatureId()) {
3002
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.featureId, typedOther.featureId);
3003
      if (lastComparison != 0) {
3004
        return lastComparison;
3005
      }
3006
    }
3007
    lastComparison = Boolean.valueOf(isSetFeatureDescription()).compareTo(typedOther.isSetFeatureDescription());
3008
    if (lastComparison != 0) {
3009
      return lastComparison;
3010
    }
3011
    if (isSetFeatureDescription()) {
3012
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.featureDescription, typedOther.featureDescription);
3013
      if (lastComparison != 0) {
3014
        return lastComparison;
3015
      }
3016
    }
3017
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
3018
    if (lastComparison != 0) {
3019
      return lastComparison;
3020
    }
3021
    if (isSetMrp()) {
3022
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
3023
      if (lastComparison != 0) {
3024
        return lastComparison;
3025
      }
3026
    }
3027
    lastComparison = Boolean.valueOf(isSetSellingPrice()).compareTo(typedOther.isSetSellingPrice());
3028
    if (lastComparison != 0) {
3029
      return lastComparison;
3030
    }
3031
    if (isSetSellingPrice()) {
3032
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sellingPrice, typedOther.sellingPrice);
3033
      if (lastComparison != 0) {
3034
        return lastComparison;
3035
      }
3036
    }
3037
    lastComparison = Boolean.valueOf(isSetWeight()).compareTo(typedOther.isSetWeight());
3038
    if (lastComparison != 0) {
3039
      return lastComparison;
3040
    }
3041
    if (isSetWeight()) {
3042
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.weight, typedOther.weight);
3043
      if (lastComparison != 0) {
3044
        return lastComparison;
3045
      }
3046
    }
3047
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
3048
    if (lastComparison != 0) {
3049
      return lastComparison;
3050
    }
3051
    if (isSetAddedOn()) {
3052
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
3053
      if (lastComparison != 0) {
3054
        return lastComparison;
3055
      }
3056
    }
3057
    lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
3058
    if (lastComparison != 0) {
3059
      return lastComparison;
3060
    }
3061
    if (isSetStartDate()) {
3062
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
3063
      if (lastComparison != 0) {
3064
        return lastComparison;
3065
      }
3066
    }
3067
    lastComparison = Boolean.valueOf(isSetRetireDate()).compareTo(typedOther.isSetRetireDate());
3068
    if (lastComparison != 0) {
3069
      return lastComparison;
3070
    }
3071
    if (isSetRetireDate()) {
3072
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.retireDate, typedOther.retireDate);
3073
      if (lastComparison != 0) {
3074
        return lastComparison;
3075
      }
3076
    }
3077
    lastComparison = Boolean.valueOf(isSetItemStatus()).compareTo(typedOther.isSetItemStatus());
3078
    if (lastComparison != 0) {
3079
      return lastComparison;
3080
    }
3081
    if (isSetItemStatus()) {
3082
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemStatus, typedOther.itemStatus);
3083
      if (lastComparison != 0) {
3084
        return lastComparison;
3085
      }
3086
    }
3087
    lastComparison = Boolean.valueOf(isSetStatus_description()).compareTo(typedOther.isSetStatus_description());
3088
    if (lastComparison != 0) {
3089
      return lastComparison;
3090
    }
3091
    if (isSetStatus_description()) {
3092
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status_description, typedOther.status_description);
3093
      if (lastComparison != 0) {
3094
        return lastComparison;
3095
      }
3096
    }
5336 rajveer 3097
    lastComparison = Boolean.valueOf(isSetOtherInfo()).compareTo(typedOther.isSetOtherInfo());
3098
    if (lastComparison != 0) {
3099
      return lastComparison;
3100
    }
3101
    if (isSetOtherInfo()) {
3102
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otherInfo, typedOther.otherInfo);
3103
      if (lastComparison != 0) {
3104
        return lastComparison;
3105
      }
3106
    }
3430 rajveer 3107
    lastComparison = Boolean.valueOf(isSetBestDealText()).compareTo(typedOther.isSetBestDealText());
3108
    if (lastComparison != 0) {
3109
      return lastComparison;
3110
    }
3111
    if (isSetBestDealText()) {
3112
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealText, typedOther.bestDealText);
3113
      if (lastComparison != 0) {
3114
        return lastComparison;
3115
      }
3116
    }
3117
    lastComparison = Boolean.valueOf(isSetBestDealValue()).compareTo(typedOther.isSetBestDealValue());
3118
    if (lastComparison != 0) {
3119
      return lastComparison;
3120
    }
3121
    if (isSetBestDealValue()) {
3122
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealValue, typedOther.bestDealValue);
3123
      if (lastComparison != 0) {
3124
        return lastComparison;
3125
      }
3126
    }
3127
    lastComparison = Boolean.valueOf(isSetDefaultForEntity()).compareTo(typedOther.isSetDefaultForEntity());
3128
    if (lastComparison != 0) {
3129
      return lastComparison;
3130
    }
3131
    if (isSetDefaultForEntity()) {
3132
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultForEntity, typedOther.defaultForEntity);
3133
      if (lastComparison != 0) {
3134
        return lastComparison;
3135
      }
3136
    }
3137
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
3138
    if (lastComparison != 0) {
3139
      return lastComparison;
3140
    }
3141
    if (isSetUpdatedOn()) {
3142
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
3143
      if (lastComparison != 0) {
3144
        return lastComparison;
3145
      }
3146
    }
3147
    lastComparison = Boolean.valueOf(isSetBestSellingRank()).compareTo(typedOther.isSetBestSellingRank());
3148
    if (lastComparison != 0) {
3149
      return lastComparison;
3150
    }
3151
    if (isSetBestSellingRank()) {
3152
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestSellingRank, typedOther.bestSellingRank);
3153
      if (lastComparison != 0) {
3154
        return lastComparison;
3155
      }
3156
    }
3157
    lastComparison = Boolean.valueOf(isSetRisky()).compareTo(typedOther.isSetRisky());
3158
    if (lastComparison != 0) {
3159
      return lastComparison;
3160
    }
3161
    if (isSetRisky()) {
3162
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.risky, typedOther.risky);
3163
      if (lastComparison != 0) {
3164
        return lastComparison;
3165
      }
3166
    }
3167
    lastComparison = Boolean.valueOf(isSetExpectedDelay()).compareTo(typedOther.isSetExpectedDelay());
3168
    if (lastComparison != 0) {
3169
      return lastComparison;
3170
    }
3171
    if (isSetExpectedDelay()) {
3172
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedDelay, typedOther.expectedDelay);
3173
      if (lastComparison != 0) {
3174
        return lastComparison;
3175
      }
3176
    }
4406 anupam.sin 3177
    lastComparison = Boolean.valueOf(isSetIsWarehousePreferenceSticky()).compareTo(typedOther.isSetIsWarehousePreferenceSticky());
3178
    if (lastComparison != 0) {
3179
      return lastComparison;
3180
    }
3181
    if (isSetIsWarehousePreferenceSticky()) {
3182
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isWarehousePreferenceSticky, typedOther.isWarehousePreferenceSticky);
3183
      if (lastComparison != 0) {
3184
        return lastComparison;
3185
      }
3186
    }
4295 varun.gupt 3187
    lastComparison = Boolean.valueOf(isSetWarrantyPeriod()).compareTo(typedOther.isSetWarrantyPeriod());
3188
    if (lastComparison != 0) {
3189
      return lastComparison;
3190
    }
3191
    if (isSetWarrantyPeriod()) {
3192
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warrantyPeriod, typedOther.warrantyPeriod);
3193
      if (lastComparison != 0) {
3194
        return lastComparison;
3195
      }
3196
    }
4506 phani.kuma 3197
    lastComparison = Boolean.valueOf(isSetPreferredVendor()).compareTo(typedOther.isSetPreferredVendor());
3198
    if (lastComparison != 0) {
3199
      return lastComparison;
3200
    }
3201
    if (isSetPreferredVendor()) {
3202
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredVendor, typedOther.preferredVendor);
3203
      if (lastComparison != 0) {
3204
        return lastComparison;
3205
      }
3206
    }
5110 mandeep.dh 3207
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3208
    if (lastComparison != 0) {
3209
      return lastComparison;
3210
    }
3211
    if (isSetType()) {
3212
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3213
      if (lastComparison != 0) {
3214
        return lastComparison;
3215
      }
3216
    }
5217 amit.gupta 3217
    lastComparison = Boolean.valueOf(isSetComingSoonStartDate()).compareTo(typedOther.isSetComingSoonStartDate());
3218
    if (lastComparison != 0) {
3219
      return lastComparison;
3220
    }
3221
    if (isSetComingSoonStartDate()) {
3222
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.comingSoonStartDate, typedOther.comingSoonStartDate);
3223
      if (lastComparison != 0) {
3224
        return lastComparison;
3225
      }
3226
    }
3227
    lastComparison = Boolean.valueOf(isSetExpectedArrivalDate()).compareTo(typedOther.isSetExpectedArrivalDate());
3228
    if (lastComparison != 0) {
3229
      return lastComparison;
3230
    }
3231
    if (isSetExpectedArrivalDate()) {
3232
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expectedArrivalDate, typedOther.expectedArrivalDate);
3233
      if (lastComparison != 0) {
3234
        return lastComparison;
3235
      }
3236
    }
5385 phani.kuma 3237
    lastComparison = Boolean.valueOf(isSetHasItemNo()).compareTo(typedOther.isSetHasItemNo());
3238
    if (lastComparison != 0) {
3239
      return lastComparison;
3240
    }
3241
    if (isSetHasItemNo()) {
3242
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasItemNo, typedOther.hasItemNo);
3243
      if (lastComparison != 0) {
3244
        return lastComparison;
3245
      }
3246
    }
7256 rajveer 3247
    lastComparison = Boolean.valueOf(isSetActiveOnStore()).compareTo(typedOther.isSetActiveOnStore());
5460 phani.kuma 3248
    if (lastComparison != 0) {
3249
      return lastComparison;
3250
    }
7256 rajveer 3251
    if (isSetActiveOnStore()) {
3252
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeOnStore, typedOther.activeOnStore);
5460 phani.kuma 3253
      if (lastComparison != 0) {
3254
        return lastComparison;
3255
      }
3256
    }
6241 amit.gupta 3257
    lastComparison = Boolean.valueOf(isSetShowSellingPrice()).compareTo(typedOther.isSetShowSellingPrice());
3258
    if (lastComparison != 0) {
3259
      return lastComparison;
3260
    }
3261
    if (isSetShowSellingPrice()) {
3262
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.showSellingPrice, typedOther.showSellingPrice);
3263
      if (lastComparison != 0) {
3264
        return lastComparison;
3265
      }
3266
    }
6777 vikram.rag 3267
    lastComparison = Boolean.valueOf(isSetBestDealsDetailsText()).compareTo(typedOther.isSetBestDealsDetailsText());
3268
    if (lastComparison != 0) {
3269
      return lastComparison;
3270
    }
3271
    if (isSetBestDealsDetailsText()) {
3272
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealsDetailsText, typedOther.bestDealsDetailsText);
3273
      if (lastComparison != 0) {
3274
        return lastComparison;
3275
      }
3276
    }
3277
    lastComparison = Boolean.valueOf(isSetBestDealsDetailsLink()).compareTo(typedOther.isSetBestDealsDetailsLink());
3278
    if (lastComparison != 0) {
3279
      return lastComparison;
3280
    }
3281
    if (isSetBestDealsDetailsLink()) {
3282
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bestDealsDetailsLink, typedOther.bestDealsDetailsLink);
3283
      if (lastComparison != 0) {
3284
        return lastComparison;
3285
      }
3286
    }
6805 anupam.sin 3287
    lastComparison = Boolean.valueOf(isSetPreferredInsurer()).compareTo(typedOther.isSetPreferredInsurer());
3288
    if (lastComparison != 0) {
3289
      return lastComparison;
3290
    }
3291
    if (isSetPreferredInsurer()) {
3292
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.preferredInsurer, typedOther.preferredInsurer);
3293
      if (lastComparison != 0) {
3294
        return lastComparison;
3295
      }
3296
    }
7291 vikram.rag 3297
    lastComparison = Boolean.valueOf(isSetAsin()).compareTo(typedOther.isSetAsin());
3298
    if (lastComparison != 0) {
3299
      return lastComparison;
3300
    }
3301
    if (isSetAsin()) {
3302
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.asin, typedOther.asin);
3303
      if (lastComparison != 0) {
3304
        return lastComparison;
3305
      }
3306
    }
3307
    lastComparison = Boolean.valueOf(isSetDefaultInventory()).compareTo(typedOther.isSetDefaultInventory());
3308
    if (lastComparison != 0) {
3309
      return lastComparison;
3310
    }
3311
    if (isSetDefaultInventory()) {
3312
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultInventory, typedOther.defaultInventory);
3313
      if (lastComparison != 0) {
3314
        return lastComparison;
3315
      }
3316
    }
3317
    lastComparison = Boolean.valueOf(isSetHoldInventory()).compareTo(typedOther.isSetHoldInventory());
3318
    if (lastComparison != 0) {
3319
      return lastComparison;
3320
    }
3321
    if (isSetHoldInventory()) {
3322
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdInventory, typedOther.holdInventory);
3323
      if (lastComparison != 0) {
3324
        return lastComparison;
3325
      }
3326
    }
9841 rajveer 3327
    lastComparison = Boolean.valueOf(isSetHoldOverride()).compareTo(typedOther.isSetHoldOverride());
3328
    if (lastComparison != 0) {
3329
      return lastComparison;
3330
    }
3331
    if (isSetHoldOverride()) {
3332
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.holdOverride, typedOther.holdOverride);
3333
      if (lastComparison != 0) {
3334
        return lastComparison;
3335
      }
3336
    }
18002 kshitij.so 3337
    lastComparison = Boolean.valueOf(isSetPackQuantity()).compareTo(typedOther.isSetPackQuantity());
3338
    if (lastComparison != 0) {
3339
      return lastComparison;
3340
    }
3341
    if (isSetPackQuantity()) {
3342
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.packQuantity, typedOther.packQuantity);
3343
      if (lastComparison != 0) {
3344
        return lastComparison;
3345
      }
3346
    }
18150 kshitij.so 3347
    lastComparison = Boolean.valueOf(isSetQuantityStep()).compareTo(typedOther.isSetQuantityStep());
3348
    if (lastComparison != 0) {
3349
      return lastComparison;
3350
    }
3351
    if (isSetQuantityStep()) {
3352
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantityStep, typedOther.quantityStep);
3353
      if (lastComparison != 0) {
3354
        return lastComparison;
3355
      }
3356
    }
3357
    lastComparison = Boolean.valueOf(isSetMinimumBuyQuantity()).compareTo(typedOther.isSetMinimumBuyQuantity());
3358
    if (lastComparison != 0) {
3359
      return lastComparison;
3360
    }
3361
    if (isSetMinimumBuyQuantity()) {
3362
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.minimumBuyQuantity, typedOther.minimumBuyQuantity);
3363
      if (lastComparison != 0) {
3364
        return lastComparison;
3365
      }
3366
    }
18414 kshitij.so 3367
    lastComparison = Boolean.valueOf(isSetMaximumBuyQuantity()).compareTo(typedOther.isSetMaximumBuyQuantity());
3368
    if (lastComparison != 0) {
3369
      return lastComparison;
3370
    }
3371
    if (isSetMaximumBuyQuantity()) {
3372
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.maximumBuyQuantity, typedOther.maximumBuyQuantity);
3373
      if (lastComparison != 0) {
3374
        return lastComparison;
3375
      }
3376
    }
3430 rajveer 3377
    return 0;
3378
  }
3379
 
3380
  public _Fields fieldForId(int fieldId) {
3381
    return _Fields.findByThriftId(fieldId);
3382
  }
3383
 
3384
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3385
    org.apache.thrift.protocol.TField field;
100 ashish 3386
    iprot.readStructBegin();
3387
    while (true)
3388
    {
3389
      field = iprot.readFieldBegin();
3430 rajveer 3390
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
100 ashish 3391
        break;
3392
      }
3430 rajveer 3393
      switch (field.id) {
3394
        case 1: // ID
3395
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3396
            this.id = iprot.readI64();
3397
            setIdIsSet(true);
3398
          } else { 
3399
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3400
          }
3401
          break;
3402
        case 2: // PRODUCT_GROUP
3403
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3404
            this.productGroup = iprot.readString();
3405
          } else { 
3406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3407
          }
3408
          break;
3409
        case 3: // BRAND
3410
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3411
            this.brand = iprot.readString();
3412
          } else { 
3413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3414
          }
3415
          break;
3416
        case 4: // MODEL_NUMBER
3417
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3418
            this.modelNumber = iprot.readString();
3419
          } else { 
3420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3421
          }
3422
          break;
3423
        case 5: // MODEL_NAME
3424
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3425
            this.modelName = iprot.readString();
3426
          } else { 
3427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3428
          }
3429
          break;
3430
        case 6: // COLOR
3431
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3432
            this.color = iprot.readString();
3433
          } else { 
3434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3435
          }
3436
          break;
3437
        case 7: // CATEGORY
3438
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3439
            this.category = iprot.readI64();
3440
            setCategoryIsSet(true);
3441
          } else { 
3442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3443
          }
3444
          break;
3445
        case 8: // COMMENTS
3446
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3447
            this.comments = iprot.readString();
3448
          } else { 
3449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3450
          }
3451
          break;
3452
        case 9: // CATALOG_ITEM_ID
3453
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3454
            this.catalogItemId = iprot.readI64();
3455
            setCatalogItemIdIsSet(true);
3456
          } else { 
3457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3458
          }
3459
          break;
3460
        case 10: // FEATURE_ID
3461
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3462
            this.featureId = iprot.readI64();
3463
            setFeatureIdIsSet(true);
3464
          } else { 
3465
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3466
          }
3467
          break;
3468
        case 11: // FEATURE_DESCRIPTION
3469
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3470
            this.featureDescription = iprot.readString();
3471
          } else { 
3472
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3473
          }
3474
          break;
3475
        case 13: // MRP
3476
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3477
            this.mrp = iprot.readDouble();
3478
            setMrpIsSet(true);
3479
          } else { 
3480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3481
          }
3482
          break;
4762 phani.kuma 3483
        case 14: // SELLING_PRICE
3430 rajveer 3484
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3485
            this.sellingPrice = iprot.readDouble();
3486
            setSellingPriceIsSet(true);
3487
          } else { 
3488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3489
          }
3490
          break;
4762 phani.kuma 3491
        case 15: // WEIGHT
3430 rajveer 3492
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3493
            this.weight = iprot.readDouble();
3494
            setWeightIsSet(true);
3495
          } else { 
3496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3497
          }
3498
          break;
4762 phani.kuma 3499
        case 16: // ADDED_ON
3430 rajveer 3500
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3501
            this.addedOn = iprot.readI64();
3502
            setAddedOnIsSet(true);
3503
          } else { 
3504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3505
          }
3506
          break;
4762 phani.kuma 3507
        case 17: // START_DATE
3430 rajveer 3508
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3509
            this.startDate = iprot.readI64();
3510
            setStartDateIsSet(true);
3511
          } else { 
3512
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3513
          }
3514
          break;
4762 phani.kuma 3515
        case 18: // RETIRE_DATE
3430 rajveer 3516
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3517
            this.retireDate = iprot.readI64();
3518
            setRetireDateIsSet(true);
3519
          } else { 
3520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3521
          }
3522
          break;
4762 phani.kuma 3523
        case 19: // ITEM_STATUS
3430 rajveer 3524
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3525
            this.itemStatus = status.findByValue(iprot.readI32());
3526
          } else { 
3527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3528
          }
3529
          break;
4762 phani.kuma 3530
        case 20: // STATUS_DESCRIPTION
3430 rajveer 3531
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3532
            this.status_description = iprot.readString();
3533
          } else { 
3534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3535
          }
3536
          break;
5336 rajveer 3537
        case 21: // OTHER_INFO
3538
          if (field.type == org.apache.thrift.protocol.TType.MAP) {
3539
            {
5945 mandeep.dh 3540
              org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
3541
              this.otherInfo = new HashMap<String,String>(2*_map0.size);
3542
              for (int _i1 = 0; _i1 < _map0.size; ++_i1)
5336 rajveer 3543
              {
5945 mandeep.dh 3544
                String _key2; // required
3545
                String _val3; // required
3546
                _key2 = iprot.readString();
3547
                _val3 = iprot.readString();
3548
                this.otherInfo.put(_key2, _val3);
5336 rajveer 3549
              }
3550
              iprot.readMapEnd();
3551
            }
3552
          } else { 
3553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3554
          }
3555
          break;
4762 phani.kuma 3556
        case 22: // BEST_DEAL_TEXT
3430 rajveer 3557
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3558
            this.bestDealText = iprot.readString();
3559
          } else { 
3560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3561
          }
3562
          break;
4762 phani.kuma 3563
        case 23: // BEST_DEAL_VALUE
3430 rajveer 3564
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3565
            this.bestDealValue = iprot.readDouble();
3566
            setBestDealValueIsSet(true);
3567
          } else { 
3568
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3569
          }
3570
          break;
4762 phani.kuma 3571
        case 24: // DEFAULT_FOR_ENTITY
3430 rajveer 3572
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3573
            this.defaultForEntity = iprot.readBool();
3574
            setDefaultForEntityIsSet(true);
3575
          } else { 
3576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3577
          }
3578
          break;
4762 phani.kuma 3579
        case 25: // UPDATED_ON
3430 rajveer 3580
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3581
            this.updatedOn = iprot.readI64();
3582
            setUpdatedOnIsSet(true);
3583
          } else { 
3584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3585
          }
3586
          break;
4762 phani.kuma 3587
        case 26: // BEST_SELLING_RANK
3430 rajveer 3588
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3589
            this.bestSellingRank = iprot.readI64();
3590
            setBestSellingRankIsSet(true);
3591
          } else { 
3592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3593
          }
3594
          break;
4762 phani.kuma 3595
        case 27: // RISKY
3430 rajveer 3596
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3597
            this.risky = iprot.readBool();
3598
            setRiskyIsSet(true);
3599
          } else { 
3600
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3601
          }
3602
          break;
4762 phani.kuma 3603
        case 28: // EXPECTED_DELAY
3430 rajveer 3604
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3605
            this.expectedDelay = iprot.readI32();
3606
            setExpectedDelayIsSet(true);
3607
          } else { 
3608
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3609
          }
3610
          break;
5440 phani.kuma 3611
        case 29: // IS_WAREHOUSE_PREFERENCE_STICKY
4406 anupam.sin 3612
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3613
            this.isWarehousePreferenceSticky = iprot.readBool();
3614
            setIsWarehousePreferenceStickyIsSet(true);
3615
          } else { 
3616
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3617
          }
3618
          break;
5440 phani.kuma 3619
        case 30: // WARRANTY_PERIOD
4295 varun.gupt 3620
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3621
            this.warrantyPeriod = iprot.readI32();
3622
            setWarrantyPeriodIsSet(true);
3623
          } else { 
3624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3625
          }
3626
          break;
5440 phani.kuma 3627
        case 31: // PREFERRED_VENDOR
4506 phani.kuma 3628
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3629
            this.preferredVendor = iprot.readI64();
3630
            setPreferredVendorIsSet(true);
3631
          } else { 
3632
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3633
          }
3634
          break;
5440 phani.kuma 3635
        case 32: // TYPE
5110 mandeep.dh 3636
          if (field.type == org.apache.thrift.protocol.TType.I32) {
3637
            this.type = ItemType.findByValue(iprot.readI32());
3638
          } else { 
3639
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3640
          }
3641
          break;
5440 phani.kuma 3642
        case 33: // COMING_SOON_START_DATE
5217 amit.gupta 3643
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3644
            this.comingSoonStartDate = iprot.readI64();
3645
            setComingSoonStartDateIsSet(true);
3646
          } else { 
3647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3648
          }
3649
          break;
5440 phani.kuma 3650
        case 34: // EXPECTED_ARRIVAL_DATE
5217 amit.gupta 3651
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3652
            this.expectedArrivalDate = iprot.readI64();
3653
            setExpectedArrivalDateIsSet(true);
3654
          } else { 
3655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3656
          }
3657
          break;
5440 phani.kuma 3658
        case 35: // HAS_ITEM_NO
5385 phani.kuma 3659
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3660
            this.hasItemNo = iprot.readBool();
3661
            setHasItemNoIsSet(true);
3662
          } else { 
3663
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3664
          }
3665
          break;
7256 rajveer 3666
        case 36: // ACTIVE_ON_STORE
5460 phani.kuma 3667
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
7256 rajveer 3668
            this.activeOnStore = iprot.readBool();
3669
            setActiveOnStoreIsSet(true);
5460 phani.kuma 3670
          } else { 
3671
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3672
          }
3673
          break;
6241 amit.gupta 3674
        case 38: // SHOW_SELLING_PRICE
3675
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3676
            this.showSellingPrice = iprot.readBool();
3677
            setShowSellingPriceIsSet(true);
3678
          } else { 
3679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3680
          }
3681
          break;
6777 vikram.rag 3682
        case 39: // BEST_DEALS_DETAILS_TEXT
3683
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3684
            this.bestDealsDetailsText = iprot.readString();
3685
          } else { 
3686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3687
          }
3688
          break;
3689
        case 40: // BEST_DEALS_DETAILS_LINK
3690
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3691
            this.bestDealsDetailsLink = iprot.readString();
3692
          } else { 
3693
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3694
          }
3695
          break;
6805 anupam.sin 3696
        case 41: // PREFERRED_INSURER
3697
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3698
            this.preferredInsurer = iprot.readI64();
3699
            setPreferredInsurerIsSet(true);
3700
          } else { 
3701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3702
          }
3703
          break;
7291 vikram.rag 3704
        case 42: // ASIN
3705
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
3706
            this.asin = iprot.readString();
3707
          } else { 
3708
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3709
          }
3710
          break;
3711
        case 43: // DEFAULT_INVENTORY
3712
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3713
            this.defaultInventory = iprot.readI64();
3714
            setDefaultInventoryIsSet(true);
3715
          } else { 
3716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3717
          }
3718
          break;
3719
        case 44: // HOLD_INVENTORY
3720
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3721
            this.holdInventory = iprot.readI64();
3722
            setHoldInventoryIsSet(true);
3723
          } else { 
3724
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3725
          }
3726
          break;
9841 rajveer 3727
        case 45: // HOLD_OVERRIDE
3728
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3729
            this.holdOverride = iprot.readBool();
3730
            setHoldOverrideIsSet(true);
3731
          } else { 
3732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3733
          }
3734
          break;
18002 kshitij.so 3735
        case 46: // PACK_QUANTITY
3736
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3737
            this.packQuantity = iprot.readI64();
3738
            setPackQuantityIsSet(true);
3739
          } else { 
3740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3741
          }
3742
          break;
18150 kshitij.so 3743
        case 47: // QUANTITY_STEP
3744
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3745
            this.quantityStep = iprot.readI64();
3746
            setQuantityStepIsSet(true);
3747
          } else { 
3748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3749
          }
3750
          break;
3751
        case 48: // MINIMUM_BUY_QUANTITY
3752
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3753
            this.minimumBuyQuantity = iprot.readI64();
3754
            setMinimumBuyQuantityIsSet(true);
3755
          } else { 
3756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3757
          }
3758
          break;
18414 kshitij.so 3759
        case 49: // MAXIMUM_BUY_QUANTITY
3760
          if (field.type == org.apache.thrift.protocol.TType.I64) {
3761
            this.maximumBuyQuantity = iprot.readI64();
3762
            setMaximumBuyQuantityIsSet(true);
3763
          } else { 
3764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3765
          }
3766
          break;
3430 rajveer 3767
        default:
3768
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
100 ashish 3769
      }
3430 rajveer 3770
      iprot.readFieldEnd();
100 ashish 3771
    }
3772
    iprot.readStructEnd();
3773
    validate();
3774
  }
3775
 
3430 rajveer 3776
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
100 ashish 3777
    validate();
3778
 
3779
    oprot.writeStructBegin(STRUCT_DESC);
3780
    oprot.writeFieldBegin(ID_FIELD_DESC);
3781
    oprot.writeI64(this.id);
3782
    oprot.writeFieldEnd();
957 chandransh 3783
    if (this.productGroup != null) {
3784
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
3785
      oprot.writeString(this.productGroup);
483 rajveer 3786
      oprot.writeFieldEnd();
3787
    }
957 chandransh 3788
    if (this.brand != null) {
3789
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
3790
      oprot.writeString(this.brand);
3791
      oprot.writeFieldEnd();
3792
    }
483 rajveer 3793
    if (this.modelNumber != null) {
3794
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
3795
      oprot.writeString(this.modelNumber);
3796
      oprot.writeFieldEnd();
3797
    }
3798
    if (this.modelName != null) {
3799
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
3800
      oprot.writeString(this.modelName);
3801
      oprot.writeFieldEnd();
3802
    }
1329 chandransh 3803
    if (this.color != null) {
3804
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
3805
      oprot.writeString(this.color);
3806
      oprot.writeFieldEnd();
3807
    }
622 chandransh 3808
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
3809
    oprot.writeI64(this.category);
3810
    oprot.writeFieldEnd();
483 rajveer 3811
    if (this.comments != null) {
3812
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
3813
      oprot.writeString(this.comments);
3814
      oprot.writeFieldEnd();
3815
    }
123 ashish 3816
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
3817
    oprot.writeI64(this.catalogItemId);
3818
    oprot.writeFieldEnd();
483 rajveer 3819
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
3820
    oprot.writeI64(this.featureId);
3821
    oprot.writeFieldEnd();
3822
    if (this.featureDescription != null) {
3823
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
3824
      oprot.writeString(this.featureDescription);
3825
      oprot.writeFieldEnd();
3826
    }
2128 ankur.sing 3827
    if (isSetMrp()) {
3828
      oprot.writeFieldBegin(MRP_FIELD_DESC);
3829
      oprot.writeDouble(this.mrp);
3830
      oprot.writeFieldEnd();
3831
    }
3832
    if (isSetSellingPrice()) {
3833
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
3834
      oprot.writeDouble(this.sellingPrice);
3835
      oprot.writeFieldEnd();
3836
    }
3837
    if (isSetWeight()) {
3838
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
3839
      oprot.writeDouble(this.weight);
3840
      oprot.writeFieldEnd();
3841
    }
103 ashish 3842
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
3843
    oprot.writeI64(this.addedOn);
3844
    oprot.writeFieldEnd();
2491 ankur.sing 3845
    if (isSetStartDate()) {
3846
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
3847
      oprot.writeI64(this.startDate);
3848
      oprot.writeFieldEnd();
3849
    }
3850
    if (isSetRetireDate()) {
3851
      oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
3852
      oprot.writeI64(this.retireDate);
3853
      oprot.writeFieldEnd();
3854
    }
103 ashish 3855
    if (this.itemStatus != null) {
3856
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
3857
      oprot.writeI32(this.itemStatus.getValue());
3858
      oprot.writeFieldEnd();
3859
    }
2034 rajveer 3860
    if (this.status_description != null) {
3861
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
3862
      oprot.writeString(this.status_description);
3863
      oprot.writeFieldEnd();
3864
    }
5336 rajveer 3865
    if (this.otherInfo != null) {
3866
      oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
3867
      {
3868
        oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.otherInfo.size()));
5945 mandeep.dh 3869
        for (Map.Entry<String, String> _iter4 : this.otherInfo.entrySet())
5336 rajveer 3870
        {
5945 mandeep.dh 3871
          oprot.writeString(_iter4.getKey());
3872
          oprot.writeString(_iter4.getValue());
5336 rajveer 3873
        }
3874
        oprot.writeMapEnd();
3875
      }
3876
      oprot.writeFieldEnd();
3877
    }
607 chandransh 3878
    if (this.bestDealText != null) {
3879
      oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
3880
      oprot.writeString(this.bestDealText);
3881
      oprot.writeFieldEnd();
3882
    }
2128 ankur.sing 3883
    if (isSetBestDealValue()) {
3884
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
3885
      oprot.writeDouble(this.bestDealValue);
3886
      oprot.writeFieldEnd();
3887
    }
1910 varun.gupt 3888
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
3889
    oprot.writeBool(this.defaultForEntity);
3890
    oprot.writeFieldEnd();
607 chandransh 3891
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
3892
    oprot.writeI64(this.updatedOn);
3893
    oprot.writeFieldEnd();
2128 ankur.sing 3894
    if (isSetBestSellingRank()) {
3895
      oprot.writeFieldBegin(BEST_SELLING_RANK_FIELD_DESC);
3896
      oprot.writeI64(this.bestSellingRank);
3897
      oprot.writeFieldEnd();
3898
    }
2250 ankur.sing 3899
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
3900
    oprot.writeBool(this.risky);
3901
    oprot.writeFieldEnd();
3355 chandransh 3902
    if (isSetExpectedDelay()) {
3903
      oprot.writeFieldBegin(EXPECTED_DELAY_FIELD_DESC);
3904
      oprot.writeI32(this.expectedDelay);
3905
      oprot.writeFieldEnd();
3906
    }
4406 anupam.sin 3907
    if (isSetIsWarehousePreferenceSticky()) {
3908
      oprot.writeFieldBegin(IS_WAREHOUSE_PREFERENCE_STICKY_FIELD_DESC);
3909
      oprot.writeBool(this.isWarehousePreferenceSticky);
3910
      oprot.writeFieldEnd();
3911
    }
4295 varun.gupt 3912
    oprot.writeFieldBegin(WARRANTY_PERIOD_FIELD_DESC);
3913
    oprot.writeI32(this.warrantyPeriod);
3914
    oprot.writeFieldEnd();
4506 phani.kuma 3915
    if (isSetPreferredVendor()) {
3916
      oprot.writeFieldBegin(PREFERRED_VENDOR_FIELD_DESC);
3917
      oprot.writeI64(this.preferredVendor);
3918
      oprot.writeFieldEnd();
3919
    }
5110 mandeep.dh 3920
    if (this.type != null) {
3921
      oprot.writeFieldBegin(TYPE_FIELD_DESC);
3922
      oprot.writeI32(this.type.getValue());
3923
      oprot.writeFieldEnd();
3924
    }
5217 amit.gupta 3925
    if (isSetComingSoonStartDate()) {
3926
      oprot.writeFieldBegin(COMING_SOON_START_DATE_FIELD_DESC);
3927
      oprot.writeI64(this.comingSoonStartDate);
3928
      oprot.writeFieldEnd();
3929
    }
3930
    if (isSetExpectedArrivalDate()) {
3931
      oprot.writeFieldBegin(EXPECTED_ARRIVAL_DATE_FIELD_DESC);
3932
      oprot.writeI64(this.expectedArrivalDate);
3933
      oprot.writeFieldEnd();
3934
    }
5385 phani.kuma 3935
    oprot.writeFieldBegin(HAS_ITEM_NO_FIELD_DESC);
3936
    oprot.writeBool(this.hasItemNo);
3937
    oprot.writeFieldEnd();
7256 rajveer 3938
    oprot.writeFieldBegin(ACTIVE_ON_STORE_FIELD_DESC);
3939
    oprot.writeBool(this.activeOnStore);
5460 phani.kuma 3940
    oprot.writeFieldEnd();
6241 amit.gupta 3941
    oprot.writeFieldBegin(SHOW_SELLING_PRICE_FIELD_DESC);
3942
    oprot.writeBool(this.showSellingPrice);
3943
    oprot.writeFieldEnd();
6777 vikram.rag 3944
    if (this.bestDealsDetailsText != null) {
3945
      oprot.writeFieldBegin(BEST_DEALS_DETAILS_TEXT_FIELD_DESC);
3946
      oprot.writeString(this.bestDealsDetailsText);
3947
      oprot.writeFieldEnd();
3948
    }
3949
    if (this.bestDealsDetailsLink != null) {
3950
      oprot.writeFieldBegin(BEST_DEALS_DETAILS_LINK_FIELD_DESC);
3951
      oprot.writeString(this.bestDealsDetailsLink);
3952
      oprot.writeFieldEnd();
3953
    }
6805 anupam.sin 3954
    oprot.writeFieldBegin(PREFERRED_INSURER_FIELD_DESC);
3955
    oprot.writeI64(this.preferredInsurer);
3956
    oprot.writeFieldEnd();
7291 vikram.rag 3957
    if (this.asin != null) {
3958
      oprot.writeFieldBegin(ASIN_FIELD_DESC);
3959
      oprot.writeString(this.asin);
3960
      oprot.writeFieldEnd();
3961
    }
3962
    oprot.writeFieldBegin(DEFAULT_INVENTORY_FIELD_DESC);
3963
    oprot.writeI64(this.defaultInventory);
3964
    oprot.writeFieldEnd();
3965
    oprot.writeFieldBegin(HOLD_INVENTORY_FIELD_DESC);
3966
    oprot.writeI64(this.holdInventory);
3967
    oprot.writeFieldEnd();
9841 rajveer 3968
    oprot.writeFieldBegin(HOLD_OVERRIDE_FIELD_DESC);
3969
    oprot.writeBool(this.holdOverride);
3970
    oprot.writeFieldEnd();
18002 kshitij.so 3971
    oprot.writeFieldBegin(PACK_QUANTITY_FIELD_DESC);
3972
    oprot.writeI64(this.packQuantity);
3973
    oprot.writeFieldEnd();
18150 kshitij.so 3974
    oprot.writeFieldBegin(QUANTITY_STEP_FIELD_DESC);
3975
    oprot.writeI64(this.quantityStep);
3976
    oprot.writeFieldEnd();
3977
    oprot.writeFieldBegin(MINIMUM_BUY_QUANTITY_FIELD_DESC);
3978
    oprot.writeI64(this.minimumBuyQuantity);
3979
    oprot.writeFieldEnd();
18414 kshitij.so 3980
    oprot.writeFieldBegin(MAXIMUM_BUY_QUANTITY_FIELD_DESC);
3981
    oprot.writeI64(this.maximumBuyQuantity);
3982
    oprot.writeFieldEnd();
100 ashish 3983
    oprot.writeFieldStop();
3984
    oprot.writeStructEnd();
3985
  }
3986
 
3987
  @Override
3988
  public String toString() {
3989
    StringBuilder sb = new StringBuilder("Item(");
3990
    boolean first = true;
3991
 
3992
    sb.append("id:");
3993
    sb.append(this.id);
3994
    first = false;
3995
    if (!first) sb.append(", ");
957 chandransh 3996
    sb.append("productGroup:");
3997
    if (this.productGroup == null) {
483 rajveer 3998
      sb.append("null");
3999
    } else {
957 chandransh 4000
      sb.append(this.productGroup);
483 rajveer 4001
    }
4002
    first = false;
4003
    if (!first) sb.append(", ");
957 chandransh 4004
    sb.append("brand:");
4005
    if (this.brand == null) {
4006
      sb.append("null");
4007
    } else {
4008
      sb.append(this.brand);
4009
    }
4010
    first = false;
4011
    if (!first) sb.append(", ");
483 rajveer 4012
    sb.append("modelNumber:");
4013
    if (this.modelNumber == null) {
4014
      sb.append("null");
4015
    } else {
4016
      sb.append(this.modelNumber);
4017
    }
4018
    first = false;
4019
    if (!first) sb.append(", ");
4020
    sb.append("modelName:");
4021
    if (this.modelName == null) {
4022
      sb.append("null");
4023
    } else {
4024
      sb.append(this.modelName);
4025
    }
4026
    first = false;
4027
    if (!first) sb.append(", ");
1329 chandransh 4028
    sb.append("color:");
4029
    if (this.color == null) {
4030
      sb.append("null");
4031
    } else {
4032
      sb.append(this.color);
4033
    }
4034
    first = false;
4035
    if (!first) sb.append(", ");
483 rajveer 4036
    sb.append("category:");
622 chandransh 4037
    sb.append(this.category);
483 rajveer 4038
    first = false;
4039
    if (!first) sb.append(", ");
4040
    sb.append("comments:");
4041
    if (this.comments == null) {
4042
      sb.append("null");
4043
    } else {
4044
      sb.append(this.comments);
4045
    }
4046
    first = false;
4047
    if (!first) sb.append(", ");
123 ashish 4048
    sb.append("catalogItemId:");
4049
    sb.append(this.catalogItemId);
100 ashish 4050
    first = false;
4051
    if (!first) sb.append(", ");
483 rajveer 4052
    sb.append("featureId:");
4053
    sb.append(this.featureId);
4054
    first = false;
4055
    if (!first) sb.append(", ");
4056
    sb.append("featureDescription:");
4057
    if (this.featureDescription == null) {
4058
      sb.append("null");
4059
    } else {
4060
      sb.append(this.featureDescription);
4061
    }
4062
    first = false;
2128 ankur.sing 4063
    if (isSetMrp()) {
4064
      if (!first) sb.append(", ");
4065
      sb.append("mrp:");
4066
      sb.append(this.mrp);
4067
      first = false;
4068
    }
4069
    if (isSetSellingPrice()) {
4070
      if (!first) sb.append(", ");
4071
      sb.append("sellingPrice:");
4072
      sb.append(this.sellingPrice);
4073
      first = false;
4074
    }
4075
    if (isSetWeight()) {
4076
      if (!first) sb.append(", ");
4077
      sb.append("weight:");
4078
      sb.append(this.weight);
4079
      first = false;
4080
    }
721 chandransh 4081
    if (!first) sb.append(", ");
103 ashish 4082
    sb.append("addedOn:");
4083
    sb.append(this.addedOn);
4084
    first = false;
2491 ankur.sing 4085
    if (isSetStartDate()) {
4086
      if (!first) sb.append(", ");
4087
      sb.append("startDate:");
4088
      sb.append(this.startDate);
4089
      first = false;
4090
    }
4091
    if (isSetRetireDate()) {
4092
      if (!first) sb.append(", ");
4093
      sb.append("retireDate:");
4094
      sb.append(this.retireDate);
4095
      first = false;
4096
    }
103 ashish 4097
    if (!first) sb.append(", ");
4098
    sb.append("itemStatus:");
4099
    if (this.itemStatus == null) {
4100
      sb.append("null");
4101
    } else {
4102
      sb.append(this.itemStatus);
4103
    }
4104
    first = false;
4105
    if (!first) sb.append(", ");
2034 rajveer 4106
    sb.append("status_description:");
4107
    if (this.status_description == null) {
4108
      sb.append("null");
4109
    } else {
4110
      sb.append(this.status_description);
4111
    }
4112
    first = false;
4113
    if (!first) sb.append(", ");
5336 rajveer 4114
    sb.append("otherInfo:");
4115
    if (this.otherInfo == null) {
4116
      sb.append("null");
4117
    } else {
4118
      sb.append(this.otherInfo);
4119
    }
4120
    first = false;
4121
    if (!first) sb.append(", ");
607 chandransh 4122
    sb.append("bestDealText:");
4123
    if (this.bestDealText == null) {
4124
      sb.append("null");
4125
    } else {
4126
      sb.append(this.bestDealText);
4127
    }
4128
    first = false;
2128 ankur.sing 4129
    if (isSetBestDealValue()) {
4130
      if (!first) sb.append(", ");
4131
      sb.append("bestDealValue:");
4132
      sb.append(this.bestDealValue);
4133
      first = false;
4134
    }
607 chandransh 4135
    if (!first) sb.append(", ");
1910 varun.gupt 4136
    sb.append("defaultForEntity:");
4137
    sb.append(this.defaultForEntity);
4138
    first = false;
4139
    if (!first) sb.append(", ");
607 chandransh 4140
    sb.append("updatedOn:");
4141
    sb.append(this.updatedOn);
4142
    first = false;
2128 ankur.sing 4143
    if (isSetBestSellingRank()) {
4144
      if (!first) sb.append(", ");
4145
      sb.append("bestSellingRank:");
4146
      sb.append(this.bestSellingRank);
4147
      first = false;
4148
    }
2064 ankur.sing 4149
    if (!first) sb.append(", ");
2250 ankur.sing 4150
    sb.append("risky:");
4151
    sb.append(this.risky);
4152
    first = false;
3355 chandransh 4153
    if (isSetExpectedDelay()) {
4154
      if (!first) sb.append(", ");
4155
      sb.append("expectedDelay:");
4156
      sb.append(this.expectedDelay);
4157
      first = false;
4158
    }
4406 anupam.sin 4159
    if (isSetIsWarehousePreferenceSticky()) {
4160
      if (!first) sb.append(", ");
4161
      sb.append("isWarehousePreferenceSticky:");
4162
      sb.append(this.isWarehousePreferenceSticky);
4163
      first = false;
4164
    }
4295 varun.gupt 4165
    if (!first) sb.append(", ");
4166
    sb.append("warrantyPeriod:");
4167
    sb.append(this.warrantyPeriod);
4168
    first = false;
4506 phani.kuma 4169
    if (isSetPreferredVendor()) {
4170
      if (!first) sb.append(", ");
4171
      sb.append("preferredVendor:");
4172
      sb.append(this.preferredVendor);
4173
      first = false;
4174
    }
5110 mandeep.dh 4175
    if (!first) sb.append(", ");
4176
    sb.append("type:");
4177
    if (this.type == null) {
4178
      sb.append("null");
4179
    } else {
4180
      sb.append(this.type);
4181
    }
4182
    first = false;
5217 amit.gupta 4183
    if (isSetComingSoonStartDate()) {
4184
      if (!first) sb.append(", ");
4185
      sb.append("comingSoonStartDate:");
4186
      sb.append(this.comingSoonStartDate);
4187
      first = false;
4188
    }
4189
    if (isSetExpectedArrivalDate()) {
4190
      if (!first) sb.append(", ");
4191
      sb.append("expectedArrivalDate:");
4192
      sb.append(this.expectedArrivalDate);
4193
      first = false;
4194
    }
5385 phani.kuma 4195
    if (!first) sb.append(", ");
4196
    sb.append("hasItemNo:");
4197
    sb.append(this.hasItemNo);
4198
    first = false;
5460 phani.kuma 4199
    if (!first) sb.append(", ");
7256 rajveer 4200
    sb.append("activeOnStore:");
4201
    sb.append(this.activeOnStore);
5460 phani.kuma 4202
    first = false;
6039 amit.gupta 4203
    if (!first) sb.append(", ");
6241 amit.gupta 4204
    sb.append("showSellingPrice:");
4205
    sb.append(this.showSellingPrice);
4206
    first = false;
6777 vikram.rag 4207
    if (!first) sb.append(", ");
4208
    sb.append("bestDealsDetailsText:");
4209
    if (this.bestDealsDetailsText == null) {
4210
      sb.append("null");
4211
    } else {
4212
      sb.append(this.bestDealsDetailsText);
4213
    }
4214
    first = false;
4215
    if (!first) sb.append(", ");
4216
    sb.append("bestDealsDetailsLink:");
4217
    if (this.bestDealsDetailsLink == null) {
4218
      sb.append("null");
4219
    } else {
4220
      sb.append(this.bestDealsDetailsLink);
4221
    }
4222
    first = false;
6805 anupam.sin 4223
    if (!first) sb.append(", ");
4224
    sb.append("preferredInsurer:");
4225
    sb.append(this.preferredInsurer);
4226
    first = false;
7291 vikram.rag 4227
    if (!first) sb.append(", ");
4228
    sb.append("asin:");
4229
    if (this.asin == null) {
4230
      sb.append("null");
4231
    } else {
4232
      sb.append(this.asin);
4233
    }
4234
    first = false;
4235
    if (!first) sb.append(", ");
4236
    sb.append("defaultInventory:");
4237
    sb.append(this.defaultInventory);
4238
    first = false;
4239
    if (!first) sb.append(", ");
4240
    sb.append("holdInventory:");
4241
    sb.append(this.holdInventory);
4242
    first = false;
9841 rajveer 4243
    if (!first) sb.append(", ");
4244
    sb.append("holdOverride:");
4245
    sb.append(this.holdOverride);
4246
    first = false;
18002 kshitij.so 4247
    if (!first) sb.append(", ");
4248
    sb.append("packQuantity:");
4249
    sb.append(this.packQuantity);
4250
    first = false;
18150 kshitij.so 4251
    if (!first) sb.append(", ");
4252
    sb.append("quantityStep:");
4253
    sb.append(this.quantityStep);
4254
    first = false;
4255
    if (!first) sb.append(", ");
4256
    sb.append("minimumBuyQuantity:");
4257
    sb.append(this.minimumBuyQuantity);
4258
    first = false;
18414 kshitij.so 4259
    if (!first) sb.append(", ");
4260
    sb.append("maximumBuyQuantity:");
4261
    sb.append(this.maximumBuyQuantity);
4262
    first = false;
100 ashish 4263
    sb.append(")");
4264
    return sb.toString();
4265
  }
4266
 
3430 rajveer 4267
  public void validate() throws org.apache.thrift.TException {
100 ashish 4268
    // check for required fields
4269
  }
4270
 
3430 rajveer 4271
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4272
    try {
4273
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4274
    } catch (org.apache.thrift.TException te) {
4275
      throw new java.io.IOException(te);
4276
    }
4277
  }
4278
 
4279
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4280
    try {
4281
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4282
      __isset_bit_vector = new BitSet(1);
4283
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4284
    } catch (org.apache.thrift.TException te) {
4285
      throw new java.io.IOException(te);
4286
    }
4287
  }
4288
 
100 ashish 4289
}
4290