Subversion Repositories SmartDukaan

Rev

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