Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
100 ashish 1
/**
2
 * Autogenerated by Thrift
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;
18
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class Item implements TBase<Item._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Item");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
957 chandransh 30
  private static final TField PRODUCT_GROUP_FIELD_DESC = new TField("productGroup", TType.STRING, (short)2);
31
  private static final TField BRAND_FIELD_DESC = new TField("brand", TType.STRING, (short)3);
32
  private static final TField MODEL_NUMBER_FIELD_DESC = new TField("modelNumber", TType.STRING, (short)4);
33
  private static final TField MODEL_NAME_FIELD_DESC = new TField("modelName", TType.STRING, (short)5);
1329 chandransh 34
  private static final TField COLOR_FIELD_DESC = new TField("color", TType.STRING, (short)6);
35
  private static final TField CATEGORY_FIELD_DESC = new TField("category", TType.I64, (short)7);
36
  private static final TField COMMENTS_FIELD_DESC = new TField("comments", TType.STRING, (short)8);
37
  private static final TField CATALOG_ITEM_ID_FIELD_DESC = new TField("catalogItemId", TType.I64, (short)9);
123 ashish 38
  private static final TField FEATURE_ID_FIELD_DESC = new TField("featureId", TType.I64, (short)10);
39
  private static final TField FEATURE_DESCRIPTION_FIELD_DESC = new TField("featureDescription", TType.STRING, (short)11);
483 rajveer 40
  private static final TField ITEM_INVENTORY_FIELD_DESC = new TField("itemInventory", TType.STRUCT, (short)12);
41
  private static final TField MRP_FIELD_DESC = new TField("mrp", TType.DOUBLE, (short)13);
42
  private static final TField MOP_FIELD_DESC = new TField("mop", TType.DOUBLE, (short)14);
43
  private static final TField SELLING_PRICE_FIELD_DESC = new TField("sellingPrice", TType.DOUBLE, (short)15);
721 chandransh 44
  private static final TField TRANSFER_PRICE_FIELD_DESC = new TField("transferPrice", TType.DOUBLE, (short)16);
45
  private static final TField WEIGHT_FIELD_DESC = new TField("weight", TType.DOUBLE, (short)17);
46
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)18);
47
  private static final TField START_DATE_FIELD_DESC = new TField("startDate", TType.I64, (short)19);
48
  private static final TField RETIRE_DATE_FIELD_DESC = new TField("retireDate", TType.I64, (short)20);
49
  private static final TField ITEM_STATUS_FIELD_DESC = new TField("itemStatus", TType.I32, (short)21);
2034 rajveer 50
  private static final TField STATUS_DESCRIPTION_FIELD_DESC = new TField("status_description", TType.STRING, (short)22);
51
  private static final TField OTHER_INFO_FIELD_DESC = new TField("otherInfo", TType.MAP, (short)23);
52
  private static final TField BEST_DEAL_TEXT_FIELD_DESC = new TField("bestDealText", TType.STRING, (short)24);
53
  private static final TField BEST_DEAL_VALUE_FIELD_DESC = new TField("bestDealValue", TType.DOUBLE, (short)25);
54
  private static final TField DEALER_PRICE_FIELD_DESC = new TField("dealerPrice", TType.DOUBLE, (short)26);
55
  private static final TField DEFAULT_FOR_ENTITY_FIELD_DESC = new TField("defaultForEntity", TType.BOOL, (short)27);
56
  private static final TField UPDATED_ON_FIELD_DESC = new TField("updatedOn", TType.I64, (short)28);
2064 ankur.sing 57
  private static final TField BEST_SELLING_RANK_FIELD_DESC = new TField("bestSellingRank", TType.I64, (short)29);
2114 ankur.sing 58
  private static final TField HOTSPOT_CATEGORY_FIELD_DESC = new TField("hotspotCategory", TType.STRING, (short)30);
2250 ankur.sing 59
  private static final TField RISKY_FIELD_DESC = new TField("risky", TType.BOOL, (short)31);
2808 rajveer 60
  private static final TField SIMILARITY_INDEX_FIELD_DESC = new TField("similarityIndex", TType.I64, (short)32);
100 ashish 61
 
62
  private long id;
957 chandransh 63
  private String productGroup;
64
  private String brand;
483 rajveer 65
  private String modelNumber;
66
  private String modelName;
1329 chandransh 67
  private String color;
622 chandransh 68
  private long category;
483 rajveer 69
  private String comments;
123 ashish 70
  private long catalogItemId;
483 rajveer 71
  private long featureId;
72
  private String featureDescription;
100 ashish 73
  private ItemInventory itemInventory;
483 rajveer 74
  private double mrp;
75
  private double mop;
76
  private double sellingPrice;
721 chandransh 77
  private double transferPrice;
483 rajveer 78
  private double weight;
103 ashish 79
  private long addedOn;
80
  private long startDate;
483 rajveer 81
  private long retireDate;
103 ashish 82
  private status itemStatus;
2034 rajveer 83
  private String status_description;
103 ashish 84
  private Map<String,String> otherInfo;
607 chandransh 85
  private String bestDealText;
86
  private double bestDealValue;
87
  private double dealerPrice;
1910 varun.gupt 88
  private boolean defaultForEntity;
607 chandransh 89
  private long updatedOn;
2064 ankur.sing 90
  private long bestSellingRank;
2114 ankur.sing 91
  private String hotspotCategory;
2250 ankur.sing 92
  private boolean risky;
2808 rajveer 93
  private long similarityIndex;
100 ashish 94
 
95
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
96
  public enum _Fields implements TFieldIdEnum {
97
    ID((short)1, "id"),
957 chandransh 98
    PRODUCT_GROUP((short)2, "productGroup"),
99
    BRAND((short)3, "brand"),
100
    MODEL_NUMBER((short)4, "modelNumber"),
101
    MODEL_NAME((short)5, "modelName"),
1329 chandransh 102
    COLOR((short)6, "color"),
103
    CATEGORY((short)7, "category"),
104
    COMMENTS((short)8, "comments"),
105
    CATALOG_ITEM_ID((short)9, "catalogItemId"),
483 rajveer 106
    FEATURE_ID((short)10, "featureId"),
107
    FEATURE_DESCRIPTION((short)11, "featureDescription"),
108
    ITEM_INVENTORY((short)12, "itemInventory"),
109
    MRP((short)13, "mrp"),
110
    MOP((short)14, "mop"),
111
    SELLING_PRICE((short)15, "sellingPrice"),
721 chandransh 112
    TRANSFER_PRICE((short)16, "transferPrice"),
113
    WEIGHT((short)17, "weight"),
114
    ADDED_ON((short)18, "addedOn"),
115
    START_DATE((short)19, "startDate"),
116
    RETIRE_DATE((short)20, "retireDate"),
103 ashish 117
    /**
118
     * 
119
     * @see status
120
     */
721 chandransh 121
    ITEM_STATUS((short)21, "itemStatus"),
2034 rajveer 122
    STATUS_DESCRIPTION((short)22, "status_description"),
123
    OTHER_INFO((short)23, "otherInfo"),
124
    BEST_DEAL_TEXT((short)24, "bestDealText"),
125
    BEST_DEAL_VALUE((short)25, "bestDealValue"),
126
    DEALER_PRICE((short)26, "dealerPrice"),
127
    DEFAULT_FOR_ENTITY((short)27, "defaultForEntity"),
2064 ankur.sing 128
    UPDATED_ON((short)28, "updatedOn"),
2114 ankur.sing 129
    BEST_SELLING_RANK((short)29, "bestSellingRank"),
2250 ankur.sing 130
    HOTSPOT_CATEGORY((short)30, "hotspotCategory"),
2808 rajveer 131
    RISKY((short)31, "risky"),
132
    SIMILARITY_INDEX((short)32, "similarityIndex");
100 ashish 133
 
134
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
135
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
136
 
137
    static {
138
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
139
        byId.put((int)field._thriftId, field);
140
        byName.put(field.getFieldName(), field);
141
      }
142
    }
143
 
144
    /**
145
     * Find the _Fields constant that matches fieldId, or null if its not found.
146
     */
147
    public static _Fields findByThriftId(int fieldId) {
148
      return byId.get(fieldId);
149
    }
150
 
151
    /**
152
     * Find the _Fields constant that matches fieldId, throwing an exception
153
     * if it is not found.
154
     */
155
    public static _Fields findByThriftIdOrThrow(int fieldId) {
156
      _Fields fields = findByThriftId(fieldId);
157
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
158
      return fields;
159
    }
160
 
161
    /**
162
     * Find the _Fields constant that matches name, or null if its not found.
163
     */
164
    public static _Fields findByName(String name) {
165
      return byName.get(name);
166
    }
167
 
168
    private final short _thriftId;
169
    private final String _fieldName;
170
 
171
    _Fields(short thriftId, String fieldName) {
172
      _thriftId = thriftId;
173
      _fieldName = fieldName;
174
    }
175
 
176
    public short getThriftFieldId() {
177
      return _thriftId;
178
    }
179
 
180
    public String getFieldName() {
181
      return _fieldName;
182
    }
183
  }
184
 
185
  // isset id assignments
186
  private static final int __ID_ISSET_ID = 0;
622 chandransh 187
  private static final int __CATEGORY_ISSET_ID = 1;
188
  private static final int __CATALOGITEMID_ISSET_ID = 2;
189
  private static final int __FEATUREID_ISSET_ID = 3;
190
  private static final int __MRP_ISSET_ID = 4;
191
  private static final int __MOP_ISSET_ID = 5;
192
  private static final int __SELLINGPRICE_ISSET_ID = 6;
721 chandransh 193
  private static final int __TRANSFERPRICE_ISSET_ID = 7;
194
  private static final int __WEIGHT_ISSET_ID = 8;
195
  private static final int __ADDEDON_ISSET_ID = 9;
196
  private static final int __STARTDATE_ISSET_ID = 10;
197
  private static final int __RETIREDATE_ISSET_ID = 11;
198
  private static final int __BESTDEALVALUE_ISSET_ID = 12;
199
  private static final int __DEALERPRICE_ISSET_ID = 13;
1910 varun.gupt 200
  private static final int __DEFAULTFORENTITY_ISSET_ID = 14;
201
  private static final int __UPDATEDON_ISSET_ID = 15;
2064 ankur.sing 202
  private static final int __BESTSELLINGRANK_ISSET_ID = 16;
2250 ankur.sing 203
  private static final int __RISKY_ISSET_ID = 17;
2808 rajveer 204
  private static final int __SIMILARITYINDEX_ISSET_ID = 18;
205
  private BitSet __isset_bit_vector = new BitSet(19);
100 ashish 206
 
207
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
208
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
209
        new FieldValueMetaData(TType.I64)));
957 chandransh 210
    put(_Fields.PRODUCT_GROUP, new FieldMetaData("productGroup", TFieldRequirementType.DEFAULT, 
483 rajveer 211
        new FieldValueMetaData(TType.STRING)));
957 chandransh 212
    put(_Fields.BRAND, new FieldMetaData("brand", TFieldRequirementType.DEFAULT, 
213
        new FieldValueMetaData(TType.STRING)));
483 rajveer 214
    put(_Fields.MODEL_NUMBER, new FieldMetaData("modelNumber", TFieldRequirementType.DEFAULT, 
215
        new FieldValueMetaData(TType.STRING)));
216
    put(_Fields.MODEL_NAME, new FieldMetaData("modelName", TFieldRequirementType.DEFAULT, 
217
        new FieldValueMetaData(TType.STRING)));
1329 chandransh 218
    put(_Fields.COLOR, new FieldMetaData("color", TFieldRequirementType.DEFAULT, 
219
        new FieldValueMetaData(TType.STRING)));
483 rajveer 220
    put(_Fields.CATEGORY, new FieldMetaData("category", TFieldRequirementType.DEFAULT, 
622 chandransh 221
        new FieldValueMetaData(TType.I64)));
483 rajveer 222
    put(_Fields.COMMENTS, new FieldMetaData("comments", TFieldRequirementType.DEFAULT, 
223
        new FieldValueMetaData(TType.STRING)));
123 ashish 224
    put(_Fields.CATALOG_ITEM_ID, new FieldMetaData("catalogItemId", TFieldRequirementType.DEFAULT, 
225
        new FieldValueMetaData(TType.I64)));
483 rajveer 226
    put(_Fields.FEATURE_ID, new FieldMetaData("featureId", TFieldRequirementType.DEFAULT, 
227
        new FieldValueMetaData(TType.I64)));
228
    put(_Fields.FEATURE_DESCRIPTION, new FieldMetaData("featureDescription", TFieldRequirementType.DEFAULT, 
229
        new FieldValueMetaData(TType.STRING)));
100 ashish 230
    put(_Fields.ITEM_INVENTORY, new FieldMetaData("itemInventory", TFieldRequirementType.DEFAULT, 
231
        new StructMetaData(TType.STRUCT, ItemInventory.class)));
2128 ankur.sing 232
    put(_Fields.MRP, new FieldMetaData("mrp", TFieldRequirementType.OPTIONAL, 
483 rajveer 233
        new FieldValueMetaData(TType.DOUBLE)));
2491 ankur.sing 234
    put(_Fields.MOP, new FieldMetaData("mop", TFieldRequirementType.OPTIONAL, 
483 rajveer 235
        new FieldValueMetaData(TType.DOUBLE)));
2128 ankur.sing 236
    put(_Fields.SELLING_PRICE, new FieldMetaData("sellingPrice", TFieldRequirementType.OPTIONAL, 
483 rajveer 237
        new FieldValueMetaData(TType.DOUBLE)));
2491 ankur.sing 238
    put(_Fields.TRANSFER_PRICE, new FieldMetaData("transferPrice", TFieldRequirementType.OPTIONAL, 
721 chandransh 239
        new FieldValueMetaData(TType.DOUBLE)));
2128 ankur.sing 240
    put(_Fields.WEIGHT, new FieldMetaData("weight", TFieldRequirementType.OPTIONAL, 
483 rajveer 241
        new FieldValueMetaData(TType.DOUBLE)));
103 ashish 242
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
243
        new FieldValueMetaData(TType.I64)));
2491 ankur.sing 244
    put(_Fields.START_DATE, new FieldMetaData("startDate", TFieldRequirementType.OPTIONAL, 
103 ashish 245
        new FieldValueMetaData(TType.I64)));
2491 ankur.sing 246
    put(_Fields.RETIRE_DATE, new FieldMetaData("retireDate", TFieldRequirementType.OPTIONAL, 
483 rajveer 247
        new FieldValueMetaData(TType.I64)));
103 ashish 248
    put(_Fields.ITEM_STATUS, new FieldMetaData("itemStatus", TFieldRequirementType.DEFAULT, 
249
        new EnumMetaData(TType.ENUM, status.class)));
2034 rajveer 250
    put(_Fields.STATUS_DESCRIPTION, new FieldMetaData("status_description", TFieldRequirementType.DEFAULT, 
251
        new FieldValueMetaData(TType.STRING)));
103 ashish 252
    put(_Fields.OTHER_INFO, new FieldMetaData("otherInfo", TFieldRequirementType.DEFAULT, 
253
        new MapMetaData(TType.MAP, 
254
            new FieldValueMetaData(TType.STRING), 
255
            new FieldValueMetaData(TType.STRING))));
607 chandransh 256
    put(_Fields.BEST_DEAL_TEXT, new FieldMetaData("bestDealText", TFieldRequirementType.DEFAULT, 
257
        new FieldValueMetaData(TType.STRING)));
2128 ankur.sing 258
    put(_Fields.BEST_DEAL_VALUE, new FieldMetaData("bestDealValue", TFieldRequirementType.OPTIONAL, 
607 chandransh 259
        new FieldValueMetaData(TType.DOUBLE)));
2491 ankur.sing 260
    put(_Fields.DEALER_PRICE, new FieldMetaData("dealerPrice", TFieldRequirementType.OPTIONAL, 
607 chandransh 261
        new FieldValueMetaData(TType.DOUBLE)));
1910 varun.gupt 262
    put(_Fields.DEFAULT_FOR_ENTITY, new FieldMetaData("defaultForEntity", TFieldRequirementType.DEFAULT, 
263
        new FieldValueMetaData(TType.BOOL)));
607 chandransh 264
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
265
        new FieldValueMetaData(TType.I64)));
2128 ankur.sing 266
    put(_Fields.BEST_SELLING_RANK, new FieldMetaData("bestSellingRank", TFieldRequirementType.OPTIONAL, 
2064 ankur.sing 267
        new FieldValueMetaData(TType.I64)));
2114 ankur.sing 268
    put(_Fields.HOTSPOT_CATEGORY, new FieldMetaData("hotspotCategory", TFieldRequirementType.DEFAULT, 
269
        new FieldValueMetaData(TType.STRING)));
2250 ankur.sing 270
    put(_Fields.RISKY, new FieldMetaData("risky", TFieldRequirementType.DEFAULT, 
271
        new FieldValueMetaData(TType.BOOL)));
2808 rajveer 272
    put(_Fields.SIMILARITY_INDEX, new FieldMetaData("similarityIndex", TFieldRequirementType.DEFAULT, 
273
        new FieldValueMetaData(TType.I64)));
100 ashish 274
  }});
275
 
276
  static {
277
    FieldMetaData.addStructMetaDataMap(Item.class, metaDataMap);
278
  }
279
 
280
  public Item() {
281
  }
282
 
283
  public Item(
284
    long id,
957 chandransh 285
    String productGroup,
286
    String brand,
483 rajveer 287
    String modelNumber,
288
    String modelName,
1329 chandransh 289
    String color,
622 chandransh 290
    long category,
483 rajveer 291
    String comments,
123 ashish 292
    long catalogItemId,
483 rajveer 293
    long featureId,
294
    String featureDescription,
103 ashish 295
    ItemInventory itemInventory,
296
    long addedOn,
297
    status itemStatus,
2034 rajveer 298
    String status_description,
607 chandransh 299
    Map<String,String> otherInfo,
300
    String bestDealText,
1910 varun.gupt 301
    boolean defaultForEntity,
2064 ankur.sing 302
    long updatedOn,
2250 ankur.sing 303
    String hotspotCategory,
2808 rajveer 304
    boolean risky,
305
    long similarityIndex)
100 ashish 306
  {
307
    this();
308
    this.id = id;
309
    setIdIsSet(true);
957 chandransh 310
    this.productGroup = productGroup;
311
    this.brand = brand;
483 rajveer 312
    this.modelNumber = modelNumber;
313
    this.modelName = modelName;
1329 chandransh 314
    this.color = color;
483 rajveer 315
    this.category = category;
622 chandransh 316
    setCategoryIsSet(true);
483 rajveer 317
    this.comments = comments;
123 ashish 318
    this.catalogItemId = catalogItemId;
319
    setCatalogItemIdIsSet(true);
483 rajveer 320
    this.featureId = featureId;
321
    setFeatureIdIsSet(true);
322
    this.featureDescription = featureDescription;
100 ashish 323
    this.itemInventory = itemInventory;
103 ashish 324
    this.addedOn = addedOn;
325
    setAddedOnIsSet(true);
326
    this.itemStatus = itemStatus;
2034 rajveer 327
    this.status_description = status_description;
103 ashish 328
    this.otherInfo = otherInfo;
607 chandransh 329
    this.bestDealText = bestDealText;
1910 varun.gupt 330
    this.defaultForEntity = defaultForEntity;
331
    setDefaultForEntityIsSet(true);
607 chandransh 332
    this.updatedOn = updatedOn;
333
    setUpdatedOnIsSet(true);
2114 ankur.sing 334
    this.hotspotCategory = hotspotCategory;
2250 ankur.sing 335
    this.risky = risky;
336
    setRiskyIsSet(true);
2808 rajveer 337
    this.similarityIndex = similarityIndex;
338
    setSimilarityIndexIsSet(true);
100 ashish 339
  }
340
 
341
  /**
342
   * Performs a deep copy on <i>other</i>.
343
   */
344
  public Item(Item other) {
345
    __isset_bit_vector.clear();
346
    __isset_bit_vector.or(other.__isset_bit_vector);
347
    this.id = other.id;
957 chandransh 348
    if (other.isSetProductGroup()) {
349
      this.productGroup = other.productGroup;
483 rajveer 350
    }
957 chandransh 351
    if (other.isSetBrand()) {
352
      this.brand = other.brand;
353
    }
483 rajveer 354
    if (other.isSetModelNumber()) {
355
      this.modelNumber = other.modelNumber;
356
    }
357
    if (other.isSetModelName()) {
358
      this.modelName = other.modelName;
359
    }
1329 chandransh 360
    if (other.isSetColor()) {
361
      this.color = other.color;
362
    }
622 chandransh 363
    this.category = other.category;
483 rajveer 364
    if (other.isSetComments()) {
365
      this.comments = other.comments;
366
    }
123 ashish 367
    this.catalogItemId = other.catalogItemId;
483 rajveer 368
    this.featureId = other.featureId;
369
    if (other.isSetFeatureDescription()) {
370
      this.featureDescription = other.featureDescription;
371
    }
100 ashish 372
    if (other.isSetItemInventory()) {
373
      this.itemInventory = new ItemInventory(other.itemInventory);
374
    }
483 rajveer 375
    this.mrp = other.mrp;
376
    this.mop = other.mop;
377
    this.sellingPrice = other.sellingPrice;
721 chandransh 378
    this.transferPrice = other.transferPrice;
483 rajveer 379
    this.weight = other.weight;
103 ashish 380
    this.addedOn = other.addedOn;
381
    this.startDate = other.startDate;
483 rajveer 382
    this.retireDate = other.retireDate;
103 ashish 383
    if (other.isSetItemStatus()) {
384
      this.itemStatus = other.itemStatus;
385
    }
2034 rajveer 386
    if (other.isSetStatus_description()) {
387
      this.status_description = other.status_description;
388
    }
103 ashish 389
    if (other.isSetOtherInfo()) {
390
      Map<String,String> __this__otherInfo = new HashMap<String,String>();
391
      for (Map.Entry<String, String> other_element : other.otherInfo.entrySet()) {
392
 
393
        String other_element_key = other_element.getKey();
394
        String other_element_value = other_element.getValue();
395
 
396
        String __this__otherInfo_copy_key = other_element_key;
397
 
398
        String __this__otherInfo_copy_value = other_element_value;
399
 
400
        __this__otherInfo.put(__this__otherInfo_copy_key, __this__otherInfo_copy_value);
401
      }
402
      this.otherInfo = __this__otherInfo;
403
    }
607 chandransh 404
    if (other.isSetBestDealText()) {
405
      this.bestDealText = other.bestDealText;
406
    }
407
    this.bestDealValue = other.bestDealValue;
408
    this.dealerPrice = other.dealerPrice;
1910 varun.gupt 409
    this.defaultForEntity = other.defaultForEntity;
607 chandransh 410
    this.updatedOn = other.updatedOn;
2064 ankur.sing 411
    this.bestSellingRank = other.bestSellingRank;
2114 ankur.sing 412
    if (other.isSetHotspotCategory()) {
413
      this.hotspotCategory = other.hotspotCategory;
414
    }
2250 ankur.sing 415
    this.risky = other.risky;
2808 rajveer 416
    this.similarityIndex = other.similarityIndex;
100 ashish 417
  }
418
 
419
  public Item deepCopy() {
420
    return new Item(this);
421
  }
422
 
423
  @Deprecated
424
  public Item clone() {
425
    return new Item(this);
426
  }
427
 
428
  public long getId() {
429
    return this.id;
430
  }
431
 
432
  public Item setId(long id) {
433
    this.id = id;
434
    setIdIsSet(true);
435
    return this;
436
  }
437
 
438
  public void unsetId() {
439
    __isset_bit_vector.clear(__ID_ISSET_ID);
440
  }
441
 
442
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
443
  public boolean isSetId() {
444
    return __isset_bit_vector.get(__ID_ISSET_ID);
445
  }
446
 
447
  public void setIdIsSet(boolean value) {
448
    __isset_bit_vector.set(__ID_ISSET_ID, value);
449
  }
450
 
957 chandransh 451
  public String getProductGroup() {
452
    return this.productGroup;
483 rajveer 453
  }
454
 
957 chandransh 455
  public Item setProductGroup(String productGroup) {
456
    this.productGroup = productGroup;
483 rajveer 457
    return this;
458
  }
459
 
957 chandransh 460
  public void unsetProductGroup() {
461
    this.productGroup = null;
483 rajveer 462
  }
463
 
957 chandransh 464
  /** Returns true if field productGroup is set (has been asigned a value) and false otherwise */
465
  public boolean isSetProductGroup() {
466
    return this.productGroup != null;
483 rajveer 467
  }
468
 
957 chandransh 469
  public void setProductGroupIsSet(boolean value) {
483 rajveer 470
    if (!value) {
957 chandransh 471
      this.productGroup = null;
483 rajveer 472
    }
473
  }
474
 
957 chandransh 475
  public String getBrand() {
476
    return this.brand;
477
  }
478
 
479
  public Item setBrand(String brand) {
480
    this.brand = brand;
481
    return this;
482
  }
483
 
484
  public void unsetBrand() {
485
    this.brand = null;
486
  }
487
 
488
  /** Returns true if field brand is set (has been asigned a value) and false otherwise */
489
  public boolean isSetBrand() {
490
    return this.brand != null;
491
  }
492
 
493
  public void setBrandIsSet(boolean value) {
494
    if (!value) {
495
      this.brand = null;
496
    }
497
  }
498
 
483 rajveer 499
  public String getModelNumber() {
500
    return this.modelNumber;
501
  }
502
 
503
  public Item setModelNumber(String modelNumber) {
504
    this.modelNumber = modelNumber;
505
    return this;
506
  }
507
 
508
  public void unsetModelNumber() {
509
    this.modelNumber = null;
510
  }
511
 
512
  /** Returns true if field modelNumber is set (has been asigned a value) and false otherwise */
513
  public boolean isSetModelNumber() {
514
    return this.modelNumber != null;
515
  }
516
 
517
  public void setModelNumberIsSet(boolean value) {
518
    if (!value) {
519
      this.modelNumber = null;
520
    }
521
  }
522
 
523
  public String getModelName() {
524
    return this.modelName;
525
  }
526
 
527
  public Item setModelName(String modelName) {
528
    this.modelName = modelName;
529
    return this;
530
  }
531
 
532
  public void unsetModelName() {
533
    this.modelName = null;
534
  }
535
 
536
  /** Returns true if field modelName is set (has been asigned a value) and false otherwise */
537
  public boolean isSetModelName() {
538
    return this.modelName != null;
539
  }
540
 
541
  public void setModelNameIsSet(boolean value) {
542
    if (!value) {
543
      this.modelName = null;
544
    }
545
  }
546
 
1329 chandransh 547
  public String getColor() {
548
    return this.color;
549
  }
550
 
551
  public Item setColor(String color) {
552
    this.color = color;
553
    return this;
554
  }
555
 
556
  public void unsetColor() {
557
    this.color = null;
558
  }
559
 
560
  /** Returns true if field color is set (has been asigned a value) and false otherwise */
561
  public boolean isSetColor() {
562
    return this.color != null;
563
  }
564
 
565
  public void setColorIsSet(boolean value) {
566
    if (!value) {
567
      this.color = null;
568
    }
569
  }
570
 
622 chandransh 571
  public long getCategory() {
483 rajveer 572
    return this.category;
573
  }
574
 
622 chandransh 575
  public Item setCategory(long category) {
483 rajveer 576
    this.category = category;
622 chandransh 577
    setCategoryIsSet(true);
483 rajveer 578
    return this;
579
  }
580
 
581
  public void unsetCategory() {
622 chandransh 582
    __isset_bit_vector.clear(__CATEGORY_ISSET_ID);
483 rajveer 583
  }
584
 
585
  /** Returns true if field category is set (has been asigned a value) and false otherwise */
586
  public boolean isSetCategory() {
622 chandransh 587
    return __isset_bit_vector.get(__CATEGORY_ISSET_ID);
483 rajveer 588
  }
589
 
590
  public void setCategoryIsSet(boolean value) {
622 chandransh 591
    __isset_bit_vector.set(__CATEGORY_ISSET_ID, value);
483 rajveer 592
  }
593
 
594
  public String getComments() {
595
    return this.comments;
596
  }
597
 
598
  public Item setComments(String comments) {
599
    this.comments = comments;
600
    return this;
601
  }
602
 
603
  public void unsetComments() {
604
    this.comments = null;
605
  }
606
 
607
  /** Returns true if field comments is set (has been asigned a value) and false otherwise */
608
  public boolean isSetComments() {
609
    return this.comments != null;
610
  }
611
 
612
  public void setCommentsIsSet(boolean value) {
613
    if (!value) {
614
      this.comments = null;
615
    }
616
  }
617
 
123 ashish 618
  public long getCatalogItemId() {
619
    return this.catalogItemId;
100 ashish 620
  }
621
 
123 ashish 622
  public Item setCatalogItemId(long catalogItemId) {
623
    this.catalogItemId = catalogItemId;
624
    setCatalogItemIdIsSet(true);
100 ashish 625
    return this;
626
  }
627
 
123 ashish 628
  public void unsetCatalogItemId() {
629
    __isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
100 ashish 630
  }
631
 
123 ashish 632
  /** Returns true if field catalogItemId is set (has been asigned a value) and false otherwise */
633
  public boolean isSetCatalogItemId() {
634
    return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
100 ashish 635
  }
636
 
123 ashish 637
  public void setCatalogItemIdIsSet(boolean value) {
638
    __isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
100 ashish 639
  }
640
 
483 rajveer 641
  public long getFeatureId() {
642
    return this.featureId;
643
  }
644
 
645
  public Item setFeatureId(long featureId) {
646
    this.featureId = featureId;
647
    setFeatureIdIsSet(true);
648
    return this;
649
  }
650
 
651
  public void unsetFeatureId() {
652
    __isset_bit_vector.clear(__FEATUREID_ISSET_ID);
653
  }
654
 
655
  /** Returns true if field featureId is set (has been asigned a value) and false otherwise */
656
  public boolean isSetFeatureId() {
657
    return __isset_bit_vector.get(__FEATUREID_ISSET_ID);
658
  }
659
 
660
  public void setFeatureIdIsSet(boolean value) {
661
    __isset_bit_vector.set(__FEATUREID_ISSET_ID, value);
662
  }
663
 
664
  public String getFeatureDescription() {
665
    return this.featureDescription;
666
  }
667
 
668
  public Item setFeatureDescription(String featureDescription) {
669
    this.featureDescription = featureDescription;
670
    return this;
671
  }
672
 
673
  public void unsetFeatureDescription() {
674
    this.featureDescription = null;
675
  }
676
 
677
  /** Returns true if field featureDescription is set (has been asigned a value) and false otherwise */
678
  public boolean isSetFeatureDescription() {
679
    return this.featureDescription != null;
680
  }
681
 
682
  public void setFeatureDescriptionIsSet(boolean value) {
683
    if (!value) {
684
      this.featureDescription = null;
685
    }
686
  }
687
 
100 ashish 688
  public ItemInventory getItemInventory() {
689
    return this.itemInventory;
690
  }
691
 
692
  public Item setItemInventory(ItemInventory itemInventory) {
693
    this.itemInventory = itemInventory;
694
    return this;
695
  }
696
 
697
  public void unsetItemInventory() {
698
    this.itemInventory = null;
699
  }
700
 
701
  /** Returns true if field itemInventory is set (has been asigned a value) and false otherwise */
702
  public boolean isSetItemInventory() {
703
    return this.itemInventory != null;
704
  }
705
 
706
  public void setItemInventoryIsSet(boolean value) {
707
    if (!value) {
708
      this.itemInventory = null;
709
    }
710
  }
711
 
483 rajveer 712
  public double getMrp() {
713
    return this.mrp;
714
  }
715
 
716
  public Item setMrp(double mrp) {
717
    this.mrp = mrp;
718
    setMrpIsSet(true);
719
    return this;
720
  }
721
 
722
  public void unsetMrp() {
723
    __isset_bit_vector.clear(__MRP_ISSET_ID);
724
  }
725
 
726
  /** Returns true if field mrp is set (has been asigned a value) and false otherwise */
727
  public boolean isSetMrp() {
728
    return __isset_bit_vector.get(__MRP_ISSET_ID);
729
  }
730
 
731
  public void setMrpIsSet(boolean value) {
732
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
733
  }
734
 
735
  public double getMop() {
736
    return this.mop;
737
  }
738
 
739
  public Item setMop(double mop) {
740
    this.mop = mop;
741
    setMopIsSet(true);
742
    return this;
743
  }
744
 
745
  public void unsetMop() {
746
    __isset_bit_vector.clear(__MOP_ISSET_ID);
747
  }
748
 
749
  /** Returns true if field mop is set (has been asigned a value) and false otherwise */
750
  public boolean isSetMop() {
751
    return __isset_bit_vector.get(__MOP_ISSET_ID);
752
  }
753
 
754
  public void setMopIsSet(boolean value) {
755
    __isset_bit_vector.set(__MOP_ISSET_ID, value);
756
  }
757
 
758
  public double getSellingPrice() {
759
    return this.sellingPrice;
760
  }
761
 
762
  public Item setSellingPrice(double sellingPrice) {
763
    this.sellingPrice = sellingPrice;
764
    setSellingPriceIsSet(true);
765
    return this;
766
  }
767
 
768
  public void unsetSellingPrice() {
769
    __isset_bit_vector.clear(__SELLINGPRICE_ISSET_ID);
770
  }
771
 
772
  /** Returns true if field sellingPrice is set (has been asigned a value) and false otherwise */
773
  public boolean isSetSellingPrice() {
774
    return __isset_bit_vector.get(__SELLINGPRICE_ISSET_ID);
775
  }
776
 
777
  public void setSellingPriceIsSet(boolean value) {
778
    __isset_bit_vector.set(__SELLINGPRICE_ISSET_ID, value);
779
  }
780
 
721 chandransh 781
  public double getTransferPrice() {
782
    return this.transferPrice;
783
  }
784
 
785
  public Item setTransferPrice(double transferPrice) {
786
    this.transferPrice = transferPrice;
787
    setTransferPriceIsSet(true);
788
    return this;
789
  }
790
 
791
  public void unsetTransferPrice() {
792
    __isset_bit_vector.clear(__TRANSFERPRICE_ISSET_ID);
793
  }
794
 
795
  /** Returns true if field transferPrice is set (has been asigned a value) and false otherwise */
796
  public boolean isSetTransferPrice() {
797
    return __isset_bit_vector.get(__TRANSFERPRICE_ISSET_ID);
798
  }
799
 
800
  public void setTransferPriceIsSet(boolean value) {
801
    __isset_bit_vector.set(__TRANSFERPRICE_ISSET_ID, value);
802
  }
803
 
483 rajveer 804
  public double getWeight() {
805
    return this.weight;
806
  }
807
 
808
  public Item setWeight(double weight) {
809
    this.weight = weight;
810
    setWeightIsSet(true);
811
    return this;
812
  }
813
 
814
  public void unsetWeight() {
815
    __isset_bit_vector.clear(__WEIGHT_ISSET_ID);
816
  }
817
 
818
  /** Returns true if field weight is set (has been asigned a value) and false otherwise */
819
  public boolean isSetWeight() {
820
    return __isset_bit_vector.get(__WEIGHT_ISSET_ID);
821
  }
822
 
823
  public void setWeightIsSet(boolean value) {
824
    __isset_bit_vector.set(__WEIGHT_ISSET_ID, value);
825
  }
826
 
103 ashish 827
  public long getAddedOn() {
828
    return this.addedOn;
829
  }
830
 
831
  public Item setAddedOn(long addedOn) {
832
    this.addedOn = addedOn;
833
    setAddedOnIsSet(true);
834
    return this;
835
  }
836
 
837
  public void unsetAddedOn() {
838
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
839
  }
840
 
841
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
842
  public boolean isSetAddedOn() {
843
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
844
  }
845
 
846
  public void setAddedOnIsSet(boolean value) {
847
    __isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
848
  }
849
 
850
  public long getStartDate() {
851
    return this.startDate;
852
  }
853
 
854
  public Item setStartDate(long startDate) {
855
    this.startDate = startDate;
856
    setStartDateIsSet(true);
857
    return this;
858
  }
859
 
860
  public void unsetStartDate() {
861
    __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
862
  }
863
 
864
  /** Returns true if field startDate is set (has been asigned a value) and false otherwise */
865
  public boolean isSetStartDate() {
866
    return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
867
  }
868
 
869
  public void setStartDateIsSet(boolean value) {
870
    __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
871
  }
872
 
483 rajveer 873
  public long getRetireDate() {
874
    return this.retireDate;
875
  }
876
 
877
  public Item setRetireDate(long retireDate) {
878
    this.retireDate = retireDate;
879
    setRetireDateIsSet(true);
880
    return this;
881
  }
882
 
883
  public void unsetRetireDate() {
884
    __isset_bit_vector.clear(__RETIREDATE_ISSET_ID);
885
  }
886
 
887
  /** Returns true if field retireDate is set (has been asigned a value) and false otherwise */
888
  public boolean isSetRetireDate() {
889
    return __isset_bit_vector.get(__RETIREDATE_ISSET_ID);
890
  }
891
 
892
  public void setRetireDateIsSet(boolean value) {
893
    __isset_bit_vector.set(__RETIREDATE_ISSET_ID, value);
894
  }
895
 
103 ashish 896
  /**
897
   * 
898
   * @see status
899
   */
900
  public status getItemStatus() {
901
    return this.itemStatus;
902
  }
903
 
904
  /**
905
   * 
906
   * @see status
907
   */
908
  public Item setItemStatus(status itemStatus) {
909
    this.itemStatus = itemStatus;
910
    return this;
911
  }
912
 
913
  public void unsetItemStatus() {
914
    this.itemStatus = null;
915
  }
916
 
917
  /** Returns true if field itemStatus is set (has been asigned a value) and false otherwise */
918
  public boolean isSetItemStatus() {
919
    return this.itemStatus != null;
920
  }
921
 
922
  public void setItemStatusIsSet(boolean value) {
923
    if (!value) {
924
      this.itemStatus = null;
925
    }
926
  }
927
 
2034 rajveer 928
  public String getStatus_description() {
929
    return this.status_description;
930
  }
931
 
932
  public Item setStatus_description(String status_description) {
933
    this.status_description = status_description;
934
    return this;
935
  }
936
 
937
  public void unsetStatus_description() {
938
    this.status_description = null;
939
  }
940
 
941
  /** Returns true if field status_description is set (has been asigned a value) and false otherwise */
942
  public boolean isSetStatus_description() {
943
    return this.status_description != null;
944
  }
945
 
946
  public void setStatus_descriptionIsSet(boolean value) {
947
    if (!value) {
948
      this.status_description = null;
949
    }
950
  }
951
 
103 ashish 952
  public int getOtherInfoSize() {
953
    return (this.otherInfo == null) ? 0 : this.otherInfo.size();
954
  }
955
 
956
  public void putToOtherInfo(String key, String val) {
957
    if (this.otherInfo == null) {
958
      this.otherInfo = new HashMap<String,String>();
959
    }
960
    this.otherInfo.put(key, val);
961
  }
962
 
963
  public Map<String,String> getOtherInfo() {
964
    return this.otherInfo;
965
  }
966
 
967
  public Item setOtherInfo(Map<String,String> otherInfo) {
968
    this.otherInfo = otherInfo;
969
    return this;
970
  }
971
 
972
  public void unsetOtherInfo() {
973
    this.otherInfo = null;
974
  }
975
 
976
  /** Returns true if field otherInfo is set (has been asigned a value) and false otherwise */
977
  public boolean isSetOtherInfo() {
978
    return this.otherInfo != null;
979
  }
980
 
981
  public void setOtherInfoIsSet(boolean value) {
982
    if (!value) {
983
      this.otherInfo = null;
984
    }
985
  }
986
 
607 chandransh 987
  public String getBestDealText() {
988
    return this.bestDealText;
989
  }
990
 
991
  public Item setBestDealText(String bestDealText) {
992
    this.bestDealText = bestDealText;
993
    return this;
994
  }
995
 
996
  public void unsetBestDealText() {
997
    this.bestDealText = null;
998
  }
999
 
1000
  /** Returns true if field bestDealText is set (has been asigned a value) and false otherwise */
1001
  public boolean isSetBestDealText() {
1002
    return this.bestDealText != null;
1003
  }
1004
 
1005
  public void setBestDealTextIsSet(boolean value) {
1006
    if (!value) {
1007
      this.bestDealText = null;
1008
    }
1009
  }
1010
 
1011
  public double getBestDealValue() {
1012
    return this.bestDealValue;
1013
  }
1014
 
1015
  public Item setBestDealValue(double bestDealValue) {
1016
    this.bestDealValue = bestDealValue;
1017
    setBestDealValueIsSet(true);
1018
    return this;
1019
  }
1020
 
1021
  public void unsetBestDealValue() {
1022
    __isset_bit_vector.clear(__BESTDEALVALUE_ISSET_ID);
1023
  }
1024
 
1025
  /** Returns true if field bestDealValue is set (has been asigned a value) and false otherwise */
1026
  public boolean isSetBestDealValue() {
1027
    return __isset_bit_vector.get(__BESTDEALVALUE_ISSET_ID);
1028
  }
1029
 
1030
  public void setBestDealValueIsSet(boolean value) {
1031
    __isset_bit_vector.set(__BESTDEALVALUE_ISSET_ID, value);
1032
  }
1033
 
1034
  public double getDealerPrice() {
1035
    return this.dealerPrice;
1036
  }
1037
 
1038
  public Item setDealerPrice(double dealerPrice) {
1039
    this.dealerPrice = dealerPrice;
1040
    setDealerPriceIsSet(true);
1041
    return this;
1042
  }
1043
 
1044
  public void unsetDealerPrice() {
1045
    __isset_bit_vector.clear(__DEALERPRICE_ISSET_ID);
1046
  }
1047
 
1048
  /** Returns true if field dealerPrice is set (has been asigned a value) and false otherwise */
1049
  public boolean isSetDealerPrice() {
1050
    return __isset_bit_vector.get(__DEALERPRICE_ISSET_ID);
1051
  }
1052
 
1053
  public void setDealerPriceIsSet(boolean value) {
1054
    __isset_bit_vector.set(__DEALERPRICE_ISSET_ID, value);
1055
  }
1056
 
1910 varun.gupt 1057
  public boolean isDefaultForEntity() {
1058
    return this.defaultForEntity;
1059
  }
1060
 
1061
  public Item setDefaultForEntity(boolean defaultForEntity) {
1062
    this.defaultForEntity = defaultForEntity;
1063
    setDefaultForEntityIsSet(true);
1064
    return this;
1065
  }
1066
 
1067
  public void unsetDefaultForEntity() {
1068
    __isset_bit_vector.clear(__DEFAULTFORENTITY_ISSET_ID);
1069
  }
1070
 
1071
  /** Returns true if field defaultForEntity is set (has been asigned a value) and false otherwise */
1072
  public boolean isSetDefaultForEntity() {
1073
    return __isset_bit_vector.get(__DEFAULTFORENTITY_ISSET_ID);
1074
  }
1075
 
1076
  public void setDefaultForEntityIsSet(boolean value) {
1077
    __isset_bit_vector.set(__DEFAULTFORENTITY_ISSET_ID, value);
1078
  }
1079
 
607 chandransh 1080
  public long getUpdatedOn() {
1081
    return this.updatedOn;
1082
  }
1083
 
1084
  public Item setUpdatedOn(long updatedOn) {
1085
    this.updatedOn = updatedOn;
1086
    setUpdatedOnIsSet(true);
1087
    return this;
1088
  }
1089
 
1090
  public void unsetUpdatedOn() {
1091
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
1092
  }
1093
 
1094
  /** Returns true if field updatedOn is set (has been asigned a value) and false otherwise */
1095
  public boolean isSetUpdatedOn() {
1096
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
1097
  }
1098
 
1099
  public void setUpdatedOnIsSet(boolean value) {
1100
    __isset_bit_vector.set(__UPDATEDON_ISSET_ID, value);
1101
  }
1102
 
2064 ankur.sing 1103
  public long getBestSellingRank() {
1104
    return this.bestSellingRank;
1105
  }
1106
 
1107
  public Item setBestSellingRank(long bestSellingRank) {
1108
    this.bestSellingRank = bestSellingRank;
1109
    setBestSellingRankIsSet(true);
1110
    return this;
1111
  }
1112
 
1113
  public void unsetBestSellingRank() {
1114
    __isset_bit_vector.clear(__BESTSELLINGRANK_ISSET_ID);
1115
  }
1116
 
1117
  /** Returns true if field bestSellingRank is set (has been asigned a value) and false otherwise */
1118
  public boolean isSetBestSellingRank() {
1119
    return __isset_bit_vector.get(__BESTSELLINGRANK_ISSET_ID);
1120
  }
1121
 
1122
  public void setBestSellingRankIsSet(boolean value) {
1123
    __isset_bit_vector.set(__BESTSELLINGRANK_ISSET_ID, value);
1124
  }
1125
 
2114 ankur.sing 1126
  public String getHotspotCategory() {
1127
    return this.hotspotCategory;
1128
  }
1129
 
1130
  public Item setHotspotCategory(String hotspotCategory) {
1131
    this.hotspotCategory = hotspotCategory;
1132
    return this;
1133
  }
1134
 
1135
  public void unsetHotspotCategory() {
1136
    this.hotspotCategory = null;
1137
  }
1138
 
1139
  /** Returns true if field hotspotCategory is set (has been asigned a value) and false otherwise */
1140
  public boolean isSetHotspotCategory() {
1141
    return this.hotspotCategory != null;
1142
  }
1143
 
1144
  public void setHotspotCategoryIsSet(boolean value) {
1145
    if (!value) {
1146
      this.hotspotCategory = null;
1147
    }
1148
  }
1149
 
2250 ankur.sing 1150
  public boolean isRisky() {
1151
    return this.risky;
1152
  }
1153
 
1154
  public Item setRisky(boolean risky) {
1155
    this.risky = risky;
1156
    setRiskyIsSet(true);
1157
    return this;
1158
  }
1159
 
1160
  public void unsetRisky() {
1161
    __isset_bit_vector.clear(__RISKY_ISSET_ID);
1162
  }
1163
 
1164
  /** Returns true if field risky is set (has been asigned a value) and false otherwise */
1165
  public boolean isSetRisky() {
1166
    return __isset_bit_vector.get(__RISKY_ISSET_ID);
1167
  }
1168
 
1169
  public void setRiskyIsSet(boolean value) {
1170
    __isset_bit_vector.set(__RISKY_ISSET_ID, value);
1171
  }
1172
 
2808 rajveer 1173
  public long getSimilarityIndex() {
1174
    return this.similarityIndex;
1175
  }
1176
 
1177
  public Item setSimilarityIndex(long similarityIndex) {
1178
    this.similarityIndex = similarityIndex;
1179
    setSimilarityIndexIsSet(true);
1180
    return this;
1181
  }
1182
 
1183
  public void unsetSimilarityIndex() {
1184
    __isset_bit_vector.clear(__SIMILARITYINDEX_ISSET_ID);
1185
  }
1186
 
1187
  /** Returns true if field similarityIndex is set (has been asigned a value) and false otherwise */
1188
  public boolean isSetSimilarityIndex() {
1189
    return __isset_bit_vector.get(__SIMILARITYINDEX_ISSET_ID);
1190
  }
1191
 
1192
  public void setSimilarityIndexIsSet(boolean value) {
1193
    __isset_bit_vector.set(__SIMILARITYINDEX_ISSET_ID, value);
1194
  }
1195
 
100 ashish 1196
  public void setFieldValue(_Fields field, Object value) {
1197
    switch (field) {
1198
    case ID:
1199
      if (value == null) {
1200
        unsetId();
1201
      } else {
1202
        setId((Long)value);
1203
      }
1204
      break;
1205
 
957 chandransh 1206
    case PRODUCT_GROUP:
483 rajveer 1207
      if (value == null) {
957 chandransh 1208
        unsetProductGroup();
483 rajveer 1209
      } else {
957 chandransh 1210
        setProductGroup((String)value);
483 rajveer 1211
      }
1212
      break;
1213
 
957 chandransh 1214
    case BRAND:
1215
      if (value == null) {
1216
        unsetBrand();
1217
      } else {
1218
        setBrand((String)value);
1219
      }
1220
      break;
1221
 
483 rajveer 1222
    case MODEL_NUMBER:
1223
      if (value == null) {
1224
        unsetModelNumber();
1225
      } else {
1226
        setModelNumber((String)value);
1227
      }
1228
      break;
1229
 
1230
    case MODEL_NAME:
1231
      if (value == null) {
1232
        unsetModelName();
1233
      } else {
1234
        setModelName((String)value);
1235
      }
1236
      break;
1237
 
1329 chandransh 1238
    case COLOR:
1239
      if (value == null) {
1240
        unsetColor();
1241
      } else {
1242
        setColor((String)value);
1243
      }
1244
      break;
1245
 
483 rajveer 1246
    case CATEGORY:
1247
      if (value == null) {
1248
        unsetCategory();
1249
      } else {
622 chandransh 1250
        setCategory((Long)value);
483 rajveer 1251
      }
1252
      break;
1253
 
1254
    case COMMENTS:
1255
      if (value == null) {
1256
        unsetComments();
1257
      } else {
1258
        setComments((String)value);
1259
      }
1260
      break;
1261
 
123 ashish 1262
    case CATALOG_ITEM_ID:
100 ashish 1263
      if (value == null) {
123 ashish 1264
        unsetCatalogItemId();
100 ashish 1265
      } else {
123 ashish 1266
        setCatalogItemId((Long)value);
100 ashish 1267
      }
1268
      break;
1269
 
483 rajveer 1270
    case FEATURE_ID:
100 ashish 1271
      if (value == null) {
483 rajveer 1272
        unsetFeatureId();
100 ashish 1273
      } else {
483 rajveer 1274
        setFeatureId((Long)value);
100 ashish 1275
      }
1276
      break;
1277
 
483 rajveer 1278
    case FEATURE_DESCRIPTION:
103 ashish 1279
      if (value == null) {
483 rajveer 1280
        unsetFeatureDescription();
103 ashish 1281
      } else {
483 rajveer 1282
        setFeatureDescription((String)value);
103 ashish 1283
      }
1284
      break;
1285
 
483 rajveer 1286
    case ITEM_INVENTORY:
103 ashish 1287
      if (value == null) {
483 rajveer 1288
        unsetItemInventory();
103 ashish 1289
      } else {
483 rajveer 1290
        setItemInventory((ItemInventory)value);
103 ashish 1291
      }
1292
      break;
1293
 
483 rajveer 1294
    case MRP:
103 ashish 1295
      if (value == null) {
483 rajveer 1296
        unsetMrp();
103 ashish 1297
      } else {
483 rajveer 1298
        setMrp((Double)value);
103 ashish 1299
      }
1300
      break;
1301
 
483 rajveer 1302
    case MOP:
103 ashish 1303
      if (value == null) {
483 rajveer 1304
        unsetMop();
103 ashish 1305
      } else {
483 rajveer 1306
        setMop((Double)value);
103 ashish 1307
      }
1308
      break;
1309
 
483 rajveer 1310
    case SELLING_PRICE:
1311
      if (value == null) {
1312
        unsetSellingPrice();
1313
      } else {
1314
        setSellingPrice((Double)value);
1315
      }
1316
      break;
1317
 
721 chandransh 1318
    case TRANSFER_PRICE:
1319
      if (value == null) {
1320
        unsetTransferPrice();
1321
      } else {
1322
        setTransferPrice((Double)value);
1323
      }
1324
      break;
1325
 
123 ashish 1326
    case WEIGHT:
1327
      if (value == null) {
1328
        unsetWeight();
1329
      } else {
1330
        setWeight((Double)value);
1331
      }
1332
      break;
1333
 
483 rajveer 1334
    case ADDED_ON:
123 ashish 1335
      if (value == null) {
483 rajveer 1336
        unsetAddedOn();
123 ashish 1337
      } else {
483 rajveer 1338
        setAddedOn((Long)value);
123 ashish 1339
      }
1340
      break;
1341
 
483 rajveer 1342
    case START_DATE:
123 ashish 1343
      if (value == null) {
483 rajveer 1344
        unsetStartDate();
123 ashish 1345
      } else {
483 rajveer 1346
        setStartDate((Long)value);
123 ashish 1347
      }
1348
      break;
1349
 
483 rajveer 1350
    case RETIRE_DATE:
123 ashish 1351
      if (value == null) {
483 rajveer 1352
        unsetRetireDate();
123 ashish 1353
      } else {
483 rajveer 1354
        setRetireDate((Long)value);
123 ashish 1355
      }
1356
      break;
1357
 
483 rajveer 1358
    case ITEM_STATUS:
1359
      if (value == null) {
1360
        unsetItemStatus();
1361
      } else {
1362
        setItemStatus((status)value);
1363
      }
1364
      break;
1365
 
2034 rajveer 1366
    case STATUS_DESCRIPTION:
1367
      if (value == null) {
1368
        unsetStatus_description();
1369
      } else {
1370
        setStatus_description((String)value);
1371
      }
1372
      break;
1373
 
483 rajveer 1374
    case OTHER_INFO:
1375
      if (value == null) {
1376
        unsetOtherInfo();
1377
      } else {
1378
        setOtherInfo((Map<String,String>)value);
1379
      }
1380
      break;
1381
 
607 chandransh 1382
    case BEST_DEAL_TEXT:
1383
      if (value == null) {
1384
        unsetBestDealText();
1385
      } else {
1386
        setBestDealText((String)value);
1387
      }
1388
      break;
1389
 
1390
    case BEST_DEAL_VALUE:
1391
      if (value == null) {
1392
        unsetBestDealValue();
1393
      } else {
1394
        setBestDealValue((Double)value);
1395
      }
1396
      break;
1397
 
1398
    case DEALER_PRICE:
1399
      if (value == null) {
1400
        unsetDealerPrice();
1401
      } else {
1402
        setDealerPrice((Double)value);
1403
      }
1404
      break;
1405
 
1910 varun.gupt 1406
    case DEFAULT_FOR_ENTITY:
1407
      if (value == null) {
1408
        unsetDefaultForEntity();
1409
      } else {
1410
        setDefaultForEntity((Boolean)value);
1411
      }
1412
      break;
1413
 
607 chandransh 1414
    case UPDATED_ON:
1415
      if (value == null) {
1416
        unsetUpdatedOn();
1417
      } else {
1418
        setUpdatedOn((Long)value);
1419
      }
1420
      break;
1421
 
2064 ankur.sing 1422
    case BEST_SELLING_RANK:
1423
      if (value == null) {
1424
        unsetBestSellingRank();
1425
      } else {
1426
        setBestSellingRank((Long)value);
1427
      }
1428
      break;
1429
 
2114 ankur.sing 1430
    case HOTSPOT_CATEGORY:
1431
      if (value == null) {
1432
        unsetHotspotCategory();
1433
      } else {
1434
        setHotspotCategory((String)value);
1435
      }
1436
      break;
1437
 
2250 ankur.sing 1438
    case RISKY:
1439
      if (value == null) {
1440
        unsetRisky();
1441
      } else {
1442
        setRisky((Boolean)value);
1443
      }
1444
      break;
1445
 
2808 rajveer 1446
    case SIMILARITY_INDEX:
1447
      if (value == null) {
1448
        unsetSimilarityIndex();
1449
      } else {
1450
        setSimilarityIndex((Long)value);
1451
      }
1452
      break;
1453
 
100 ashish 1454
    }
1455
  }
1456
 
1457
  public void setFieldValue(int fieldID, Object value) {
1458
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
1459
  }
1460
 
1461
  public Object getFieldValue(_Fields field) {
1462
    switch (field) {
1463
    case ID:
1464
      return new Long(getId());
1465
 
957 chandransh 1466
    case PRODUCT_GROUP:
1467
      return getProductGroup();
483 rajveer 1468
 
957 chandransh 1469
    case BRAND:
1470
      return getBrand();
1471
 
483 rajveer 1472
    case MODEL_NUMBER:
1473
      return getModelNumber();
1474
 
1475
    case MODEL_NAME:
1476
      return getModelName();
1477
 
1329 chandransh 1478
    case COLOR:
1479
      return getColor();
1480
 
483 rajveer 1481
    case CATEGORY:
622 chandransh 1482
      return new Long(getCategory());
483 rajveer 1483
 
1484
    case COMMENTS:
1485
      return getComments();
1486
 
123 ashish 1487
    case CATALOG_ITEM_ID:
1488
      return new Long(getCatalogItemId());
100 ashish 1489
 
483 rajveer 1490
    case FEATURE_ID:
1491
      return new Long(getFeatureId());
1492
 
1493
    case FEATURE_DESCRIPTION:
1494
      return getFeatureDescription();
1495
 
100 ashish 1496
    case ITEM_INVENTORY:
1497
      return getItemInventory();
1498
 
483 rajveer 1499
    case MRP:
1500
      return new Double(getMrp());
1501
 
1502
    case MOP:
1503
      return new Double(getMop());
1504
 
1505
    case SELLING_PRICE:
1506
      return new Double(getSellingPrice());
1507
 
721 chandransh 1508
    case TRANSFER_PRICE:
1509
      return new Double(getTransferPrice());
1510
 
483 rajveer 1511
    case WEIGHT:
1512
      return new Double(getWeight());
1513
 
103 ashish 1514
    case ADDED_ON:
1515
      return new Long(getAddedOn());
1516
 
1517
    case START_DATE:
1518
      return new Long(getStartDate());
1519
 
483 rajveer 1520
    case RETIRE_DATE:
1521
      return new Long(getRetireDate());
1522
 
103 ashish 1523
    case ITEM_STATUS:
1524
      return getItemStatus();
1525
 
2034 rajveer 1526
    case STATUS_DESCRIPTION:
1527
      return getStatus_description();
1528
 
103 ashish 1529
    case OTHER_INFO:
1530
      return getOtherInfo();
1531
 
607 chandransh 1532
    case BEST_DEAL_TEXT:
1533
      return getBestDealText();
1534
 
1535
    case BEST_DEAL_VALUE:
1536
      return new Double(getBestDealValue());
1537
 
1538
    case DEALER_PRICE:
1539
      return new Double(getDealerPrice());
1540
 
1910 varun.gupt 1541
    case DEFAULT_FOR_ENTITY:
1542
      return new Boolean(isDefaultForEntity());
1543
 
607 chandransh 1544
    case UPDATED_ON:
1545
      return new Long(getUpdatedOn());
1546
 
2064 ankur.sing 1547
    case BEST_SELLING_RANK:
1548
      return new Long(getBestSellingRank());
1549
 
2114 ankur.sing 1550
    case HOTSPOT_CATEGORY:
1551
      return getHotspotCategory();
1552
 
2250 ankur.sing 1553
    case RISKY:
1554
      return new Boolean(isRisky());
1555
 
2808 rajveer 1556
    case SIMILARITY_INDEX:
1557
      return new Long(getSimilarityIndex());
1558
 
100 ashish 1559
    }
1560
    throw new IllegalStateException();
1561
  }
1562
 
1563
  public Object getFieldValue(int fieldId) {
1564
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
1565
  }
1566
 
1567
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1568
  public boolean isSet(_Fields field) {
1569
    switch (field) {
1570
    case ID:
1571
      return isSetId();
957 chandransh 1572
    case PRODUCT_GROUP:
1573
      return isSetProductGroup();
1574
    case BRAND:
1575
      return isSetBrand();
483 rajveer 1576
    case MODEL_NUMBER:
1577
      return isSetModelNumber();
1578
    case MODEL_NAME:
1579
      return isSetModelName();
1329 chandransh 1580
    case COLOR:
1581
      return isSetColor();
483 rajveer 1582
    case CATEGORY:
1583
      return isSetCategory();
1584
    case COMMENTS:
1585
      return isSetComments();
123 ashish 1586
    case CATALOG_ITEM_ID:
1587
      return isSetCatalogItemId();
483 rajveer 1588
    case FEATURE_ID:
1589
      return isSetFeatureId();
1590
    case FEATURE_DESCRIPTION:
1591
      return isSetFeatureDescription();
100 ashish 1592
    case ITEM_INVENTORY:
1593
      return isSetItemInventory();
483 rajveer 1594
    case MRP:
1595
      return isSetMrp();
1596
    case MOP:
1597
      return isSetMop();
1598
    case SELLING_PRICE:
1599
      return isSetSellingPrice();
721 chandransh 1600
    case TRANSFER_PRICE:
1601
      return isSetTransferPrice();
483 rajveer 1602
    case WEIGHT:
1603
      return isSetWeight();
103 ashish 1604
    case ADDED_ON:
1605
      return isSetAddedOn();
1606
    case START_DATE:
1607
      return isSetStartDate();
483 rajveer 1608
    case RETIRE_DATE:
1609
      return isSetRetireDate();
103 ashish 1610
    case ITEM_STATUS:
1611
      return isSetItemStatus();
2034 rajveer 1612
    case STATUS_DESCRIPTION:
1613
      return isSetStatus_description();
103 ashish 1614
    case OTHER_INFO:
1615
      return isSetOtherInfo();
607 chandransh 1616
    case BEST_DEAL_TEXT:
1617
      return isSetBestDealText();
1618
    case BEST_DEAL_VALUE:
1619
      return isSetBestDealValue();
1620
    case DEALER_PRICE:
1621
      return isSetDealerPrice();
1910 varun.gupt 1622
    case DEFAULT_FOR_ENTITY:
1623
      return isSetDefaultForEntity();
607 chandransh 1624
    case UPDATED_ON:
1625
      return isSetUpdatedOn();
2064 ankur.sing 1626
    case BEST_SELLING_RANK:
1627
      return isSetBestSellingRank();
2114 ankur.sing 1628
    case HOTSPOT_CATEGORY:
1629
      return isSetHotspotCategory();
2250 ankur.sing 1630
    case RISKY:
1631
      return isSetRisky();
2808 rajveer 1632
    case SIMILARITY_INDEX:
1633
      return isSetSimilarityIndex();
100 ashish 1634
    }
1635
    throw new IllegalStateException();
1636
  }
1637
 
1638
  public boolean isSet(int fieldID) {
1639
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
1640
  }
1641
 
1642
  @Override
1643
  public boolean equals(Object that) {
1644
    if (that == null)
1645
      return false;
1646
    if (that instanceof Item)
1647
      return this.equals((Item)that);
1648
    return false;
1649
  }
1650
 
1651
  public boolean equals(Item that) {
1652
    if (that == null)
1653
      return false;
1654
 
1655
    boolean this_present_id = true;
1656
    boolean that_present_id = true;
1657
    if (this_present_id || that_present_id) {
1658
      if (!(this_present_id && that_present_id))
1659
        return false;
1660
      if (this.id != that.id)
1661
        return false;
1662
    }
1663
 
957 chandransh 1664
    boolean this_present_productGroup = true && this.isSetProductGroup();
1665
    boolean that_present_productGroup = true && that.isSetProductGroup();
1666
    if (this_present_productGroup || that_present_productGroup) {
1667
      if (!(this_present_productGroup && that_present_productGroup))
483 rajveer 1668
        return false;
957 chandransh 1669
      if (!this.productGroup.equals(that.productGroup))
483 rajveer 1670
        return false;
1671
    }
1672
 
957 chandransh 1673
    boolean this_present_brand = true && this.isSetBrand();
1674
    boolean that_present_brand = true && that.isSetBrand();
1675
    if (this_present_brand || that_present_brand) {
1676
      if (!(this_present_brand && that_present_brand))
1677
        return false;
1678
      if (!this.brand.equals(that.brand))
1679
        return false;
1680
    }
1681
 
483 rajveer 1682
    boolean this_present_modelNumber = true && this.isSetModelNumber();
1683
    boolean that_present_modelNumber = true && that.isSetModelNumber();
1684
    if (this_present_modelNumber || that_present_modelNumber) {
1685
      if (!(this_present_modelNumber && that_present_modelNumber))
1686
        return false;
1687
      if (!this.modelNumber.equals(that.modelNumber))
1688
        return false;
1689
    }
1690
 
1691
    boolean this_present_modelName = true && this.isSetModelName();
1692
    boolean that_present_modelName = true && that.isSetModelName();
1693
    if (this_present_modelName || that_present_modelName) {
1694
      if (!(this_present_modelName && that_present_modelName))
1695
        return false;
1696
      if (!this.modelName.equals(that.modelName))
1697
        return false;
1698
    }
1699
 
1329 chandransh 1700
    boolean this_present_color = true && this.isSetColor();
1701
    boolean that_present_color = true && that.isSetColor();
1702
    if (this_present_color || that_present_color) {
1703
      if (!(this_present_color && that_present_color))
1704
        return false;
1705
      if (!this.color.equals(that.color))
1706
        return false;
1707
    }
1708
 
622 chandransh 1709
    boolean this_present_category = true;
1710
    boolean that_present_category = true;
483 rajveer 1711
    if (this_present_category || that_present_category) {
1712
      if (!(this_present_category && that_present_category))
1713
        return false;
622 chandransh 1714
      if (this.category != that.category)
483 rajveer 1715
        return false;
1716
    }
1717
 
1718
    boolean this_present_comments = true && this.isSetComments();
1719
    boolean that_present_comments = true && that.isSetComments();
1720
    if (this_present_comments || that_present_comments) {
1721
      if (!(this_present_comments && that_present_comments))
1722
        return false;
1723
      if (!this.comments.equals(that.comments))
1724
        return false;
1725
    }
1726
 
123 ashish 1727
    boolean this_present_catalogItemId = true;
1728
    boolean that_present_catalogItemId = true;
1729
    if (this_present_catalogItemId || that_present_catalogItemId) {
1730
      if (!(this_present_catalogItemId && that_present_catalogItemId))
100 ashish 1731
        return false;
123 ashish 1732
      if (this.catalogItemId != that.catalogItemId)
100 ashish 1733
        return false;
1734
    }
1735
 
483 rajveer 1736
    boolean this_present_featureId = true;
1737
    boolean that_present_featureId = true;
1738
    if (this_present_featureId || that_present_featureId) {
1739
      if (!(this_present_featureId && that_present_featureId))
1740
        return false;
1741
      if (this.featureId != that.featureId)
1742
        return false;
1743
    }
1744
 
1745
    boolean this_present_featureDescription = true && this.isSetFeatureDescription();
1746
    boolean that_present_featureDescription = true && that.isSetFeatureDescription();
1747
    if (this_present_featureDescription || that_present_featureDescription) {
1748
      if (!(this_present_featureDescription && that_present_featureDescription))
1749
        return false;
1750
      if (!this.featureDescription.equals(that.featureDescription))
1751
        return false;
1752
    }
1753
 
100 ashish 1754
    boolean this_present_itemInventory = true && this.isSetItemInventory();
1755
    boolean that_present_itemInventory = true && that.isSetItemInventory();
1756
    if (this_present_itemInventory || that_present_itemInventory) {
1757
      if (!(this_present_itemInventory && that_present_itemInventory))
1758
        return false;
1759
      if (!this.itemInventory.equals(that.itemInventory))
1760
        return false;
1761
    }
1762
 
2128 ankur.sing 1763
    boolean this_present_mrp = true && this.isSetMrp();
1764
    boolean that_present_mrp = true && that.isSetMrp();
483 rajveer 1765
    if (this_present_mrp || that_present_mrp) {
1766
      if (!(this_present_mrp && that_present_mrp))
1767
        return false;
1768
      if (this.mrp != that.mrp)
1769
        return false;
1770
    }
1771
 
2491 ankur.sing 1772
    boolean this_present_mop = true && this.isSetMop();
1773
    boolean that_present_mop = true && that.isSetMop();
483 rajveer 1774
    if (this_present_mop || that_present_mop) {
1775
      if (!(this_present_mop && that_present_mop))
1776
        return false;
1777
      if (this.mop != that.mop)
1778
        return false;
1779
    }
1780
 
2128 ankur.sing 1781
    boolean this_present_sellingPrice = true && this.isSetSellingPrice();
1782
    boolean that_present_sellingPrice = true && that.isSetSellingPrice();
483 rajveer 1783
    if (this_present_sellingPrice || that_present_sellingPrice) {
1784
      if (!(this_present_sellingPrice && that_present_sellingPrice))
1785
        return false;
1786
      if (this.sellingPrice != that.sellingPrice)
1787
        return false;
1788
    }
1789
 
2491 ankur.sing 1790
    boolean this_present_transferPrice = true && this.isSetTransferPrice();
1791
    boolean that_present_transferPrice = true && that.isSetTransferPrice();
721 chandransh 1792
    if (this_present_transferPrice || that_present_transferPrice) {
1793
      if (!(this_present_transferPrice && that_present_transferPrice))
1794
        return false;
1795
      if (this.transferPrice != that.transferPrice)
1796
        return false;
1797
    }
1798
 
2128 ankur.sing 1799
    boolean this_present_weight = true && this.isSetWeight();
1800
    boolean that_present_weight = true && that.isSetWeight();
483 rajveer 1801
    if (this_present_weight || that_present_weight) {
1802
      if (!(this_present_weight && that_present_weight))
1803
        return false;
1804
      if (this.weight != that.weight)
1805
        return false;
1806
    }
1807
 
103 ashish 1808
    boolean this_present_addedOn = true;
1809
    boolean that_present_addedOn = true;
1810
    if (this_present_addedOn || that_present_addedOn) {
1811
      if (!(this_present_addedOn && that_present_addedOn))
1812
        return false;
1813
      if (this.addedOn != that.addedOn)
1814
        return false;
1815
    }
1816
 
2491 ankur.sing 1817
    boolean this_present_startDate = true && this.isSetStartDate();
1818
    boolean that_present_startDate = true && that.isSetStartDate();
103 ashish 1819
    if (this_present_startDate || that_present_startDate) {
1820
      if (!(this_present_startDate && that_present_startDate))
1821
        return false;
1822
      if (this.startDate != that.startDate)
1823
        return false;
1824
    }
1825
 
2491 ankur.sing 1826
    boolean this_present_retireDate = true && this.isSetRetireDate();
1827
    boolean that_present_retireDate = true && that.isSetRetireDate();
483 rajveer 1828
    if (this_present_retireDate || that_present_retireDate) {
1829
      if (!(this_present_retireDate && that_present_retireDate))
1830
        return false;
1831
      if (this.retireDate != that.retireDate)
1832
        return false;
1833
    }
1834
 
103 ashish 1835
    boolean this_present_itemStatus = true && this.isSetItemStatus();
1836
    boolean that_present_itemStatus = true && that.isSetItemStatus();
1837
    if (this_present_itemStatus || that_present_itemStatus) {
1838
      if (!(this_present_itemStatus && that_present_itemStatus))
1839
        return false;
1840
      if (!this.itemStatus.equals(that.itemStatus))
1841
        return false;
1842
    }
1843
 
2034 rajveer 1844
    boolean this_present_status_description = true && this.isSetStatus_description();
1845
    boolean that_present_status_description = true && that.isSetStatus_description();
1846
    if (this_present_status_description || that_present_status_description) {
1847
      if (!(this_present_status_description && that_present_status_description))
1848
        return false;
1849
      if (!this.status_description.equals(that.status_description))
1850
        return false;
1851
    }
1852
 
103 ashish 1853
    boolean this_present_otherInfo = true && this.isSetOtherInfo();
1854
    boolean that_present_otherInfo = true && that.isSetOtherInfo();
1855
    if (this_present_otherInfo || that_present_otherInfo) {
1856
      if (!(this_present_otherInfo && that_present_otherInfo))
1857
        return false;
1858
      if (!this.otherInfo.equals(that.otherInfo))
1859
        return false;
1860
    }
1861
 
607 chandransh 1862
    boolean this_present_bestDealText = true && this.isSetBestDealText();
1863
    boolean that_present_bestDealText = true && that.isSetBestDealText();
1864
    if (this_present_bestDealText || that_present_bestDealText) {
1865
      if (!(this_present_bestDealText && that_present_bestDealText))
1866
        return false;
1867
      if (!this.bestDealText.equals(that.bestDealText))
1868
        return false;
1869
    }
1870
 
2128 ankur.sing 1871
    boolean this_present_bestDealValue = true && this.isSetBestDealValue();
1872
    boolean that_present_bestDealValue = true && that.isSetBestDealValue();
607 chandransh 1873
    if (this_present_bestDealValue || that_present_bestDealValue) {
1874
      if (!(this_present_bestDealValue && that_present_bestDealValue))
1875
        return false;
1876
      if (this.bestDealValue != that.bestDealValue)
1877
        return false;
1878
    }
1879
 
2491 ankur.sing 1880
    boolean this_present_dealerPrice = true && this.isSetDealerPrice();
1881
    boolean that_present_dealerPrice = true && that.isSetDealerPrice();
607 chandransh 1882
    if (this_present_dealerPrice || that_present_dealerPrice) {
1883
      if (!(this_present_dealerPrice && that_present_dealerPrice))
1884
        return false;
1885
      if (this.dealerPrice != that.dealerPrice)
1886
        return false;
1887
    }
1888
 
1910 varun.gupt 1889
    boolean this_present_defaultForEntity = true;
1890
    boolean that_present_defaultForEntity = true;
1891
    if (this_present_defaultForEntity || that_present_defaultForEntity) {
1892
      if (!(this_present_defaultForEntity && that_present_defaultForEntity))
1893
        return false;
1894
      if (this.defaultForEntity != that.defaultForEntity)
1895
        return false;
1896
    }
1897
 
607 chandransh 1898
    boolean this_present_updatedOn = true;
1899
    boolean that_present_updatedOn = true;
1900
    if (this_present_updatedOn || that_present_updatedOn) {
1901
      if (!(this_present_updatedOn && that_present_updatedOn))
1902
        return false;
1903
      if (this.updatedOn != that.updatedOn)
1904
        return false;
1905
    }
1906
 
2128 ankur.sing 1907
    boolean this_present_bestSellingRank = true && this.isSetBestSellingRank();
1908
    boolean that_present_bestSellingRank = true && that.isSetBestSellingRank();
2064 ankur.sing 1909
    if (this_present_bestSellingRank || that_present_bestSellingRank) {
1910
      if (!(this_present_bestSellingRank && that_present_bestSellingRank))
1911
        return false;
1912
      if (this.bestSellingRank != that.bestSellingRank)
1913
        return false;
1914
    }
1915
 
2114 ankur.sing 1916
    boolean this_present_hotspotCategory = true && this.isSetHotspotCategory();
1917
    boolean that_present_hotspotCategory = true && that.isSetHotspotCategory();
1918
    if (this_present_hotspotCategory || that_present_hotspotCategory) {
1919
      if (!(this_present_hotspotCategory && that_present_hotspotCategory))
1920
        return false;
1921
      if (!this.hotspotCategory.equals(that.hotspotCategory))
1922
        return false;
1923
    }
1924
 
2250 ankur.sing 1925
    boolean this_present_risky = true;
1926
    boolean that_present_risky = true;
1927
    if (this_present_risky || that_present_risky) {
1928
      if (!(this_present_risky && that_present_risky))
1929
        return false;
1930
      if (this.risky != that.risky)
1931
        return false;
1932
    }
1933
 
2808 rajveer 1934
    boolean this_present_similarityIndex = true;
1935
    boolean that_present_similarityIndex = true;
1936
    if (this_present_similarityIndex || that_present_similarityIndex) {
1937
      if (!(this_present_similarityIndex && that_present_similarityIndex))
1938
        return false;
1939
      if (this.similarityIndex != that.similarityIndex)
1940
        return false;
1941
    }
1942
 
100 ashish 1943
    return true;
1944
  }
1945
 
1946
  @Override
1947
  public int hashCode() {
1948
    return 0;
1949
  }
1950
 
1951
  public void read(TProtocol iprot) throws TException {
1952
    TField field;
1953
    iprot.readStructBegin();
1954
    while (true)
1955
    {
1956
      field = iprot.readFieldBegin();
1957
      if (field.type == TType.STOP) { 
1958
        break;
1959
      }
1960
      _Fields fieldId = _Fields.findByThriftId(field.id);
1961
      if (fieldId == null) {
1962
        TProtocolUtil.skip(iprot, field.type);
1963
      } else {
1964
        switch (fieldId) {
1965
          case ID:
1966
            if (field.type == TType.I64) {
1967
              this.id = iprot.readI64();
1968
              setIdIsSet(true);
1969
            } else { 
1970
              TProtocolUtil.skip(iprot, field.type);
1971
            }
1972
            break;
957 chandransh 1973
          case PRODUCT_GROUP:
483 rajveer 1974
            if (field.type == TType.STRING) {
957 chandransh 1975
              this.productGroup = iprot.readString();
483 rajveer 1976
            } else { 
1977
              TProtocolUtil.skip(iprot, field.type);
1978
            }
1979
            break;
957 chandransh 1980
          case BRAND:
1981
            if (field.type == TType.STRING) {
1982
              this.brand = iprot.readString();
1983
            } else { 
1984
              TProtocolUtil.skip(iprot, field.type);
1985
            }
1986
            break;
483 rajveer 1987
          case MODEL_NUMBER:
1988
            if (field.type == TType.STRING) {
1989
              this.modelNumber = iprot.readString();
1990
            } else { 
1991
              TProtocolUtil.skip(iprot, field.type);
1992
            }
1993
            break;
1994
          case MODEL_NAME:
1995
            if (field.type == TType.STRING) {
1996
              this.modelName = iprot.readString();
1997
            } else { 
1998
              TProtocolUtil.skip(iprot, field.type);
1999
            }
2000
            break;
1329 chandransh 2001
          case COLOR:
2002
            if (field.type == TType.STRING) {
2003
              this.color = iprot.readString();
2004
            } else { 
2005
              TProtocolUtil.skip(iprot, field.type);
2006
            }
2007
            break;
483 rajveer 2008
          case CATEGORY:
622 chandransh 2009
            if (field.type == TType.I64) {
2010
              this.category = iprot.readI64();
2011
              setCategoryIsSet(true);
483 rajveer 2012
            } else { 
2013
              TProtocolUtil.skip(iprot, field.type);
2014
            }
2015
            break;
2016
          case COMMENTS:
2017
            if (field.type == TType.STRING) {
2018
              this.comments = iprot.readString();
2019
            } else { 
2020
              TProtocolUtil.skip(iprot, field.type);
2021
            }
2022
            break;
123 ashish 2023
          case CATALOG_ITEM_ID:
2024
            if (field.type == TType.I64) {
2025
              this.catalogItemId = iprot.readI64();
2026
              setCatalogItemIdIsSet(true);
100 ashish 2027
            } else { 
2028
              TProtocolUtil.skip(iprot, field.type);
2029
            }
2030
            break;
483 rajveer 2031
          case FEATURE_ID:
2032
            if (field.type == TType.I64) {
2033
              this.featureId = iprot.readI64();
2034
              setFeatureIdIsSet(true);
2035
            } else { 
2036
              TProtocolUtil.skip(iprot, field.type);
2037
            }
2038
            break;
2039
          case FEATURE_DESCRIPTION:
2040
            if (field.type == TType.STRING) {
2041
              this.featureDescription = iprot.readString();
2042
            } else { 
2043
              TProtocolUtil.skip(iprot, field.type);
2044
            }
2045
            break;
103 ashish 2046
          case ITEM_INVENTORY:
100 ashish 2047
            if (field.type == TType.STRUCT) {
103 ashish 2048
              this.itemInventory = new ItemInventory();
2049
              this.itemInventory.read(iprot);
100 ashish 2050
            } else { 
2051
              TProtocolUtil.skip(iprot, field.type);
2052
            }
2053
            break;
483 rajveer 2054
          case MRP:
2055
            if (field.type == TType.DOUBLE) {
2056
              this.mrp = iprot.readDouble();
2057
              setMrpIsSet(true);
2058
            } else { 
2059
              TProtocolUtil.skip(iprot, field.type);
2060
            }
2061
            break;
2062
          case MOP:
2063
            if (field.type == TType.DOUBLE) {
2064
              this.mop = iprot.readDouble();
2065
              setMopIsSet(true);
2066
            } else { 
2067
              TProtocolUtil.skip(iprot, field.type);
2068
            }
2069
            break;
2070
          case SELLING_PRICE:
2071
            if (field.type == TType.DOUBLE) {
2072
              this.sellingPrice = iprot.readDouble();
2073
              setSellingPriceIsSet(true);
2074
            } else { 
2075
              TProtocolUtil.skip(iprot, field.type);
2076
            }
2077
            break;
721 chandransh 2078
          case TRANSFER_PRICE:
2079
            if (field.type == TType.DOUBLE) {
2080
              this.transferPrice = iprot.readDouble();
2081
              setTransferPriceIsSet(true);
2082
            } else { 
2083
              TProtocolUtil.skip(iprot, field.type);
2084
            }
2085
            break;
483 rajveer 2086
          case WEIGHT:
2087
            if (field.type == TType.DOUBLE) {
2088
              this.weight = iprot.readDouble();
2089
              setWeightIsSet(true);
2090
            } else { 
2091
              TProtocolUtil.skip(iprot, field.type);
2092
            }
2093
            break;
103 ashish 2094
          case ADDED_ON:
2095
            if (field.type == TType.I64) {
2096
              this.addedOn = iprot.readI64();
2097
              setAddedOnIsSet(true);
100 ashish 2098
            } else { 
2099
              TProtocolUtil.skip(iprot, field.type);
2100
            }
2101
            break;
103 ashish 2102
          case START_DATE:
2103
            if (field.type == TType.I64) {
2104
              this.startDate = iprot.readI64();
2105
              setStartDateIsSet(true);
2106
            } else { 
2107
              TProtocolUtil.skip(iprot, field.type);
2108
            }
2109
            break;
483 rajveer 2110
          case RETIRE_DATE:
2111
            if (field.type == TType.I64) {
2112
              this.retireDate = iprot.readI64();
2113
              setRetireDateIsSet(true);
2114
            } else { 
2115
              TProtocolUtil.skip(iprot, field.type);
2116
            }
2117
            break;
103 ashish 2118
          case ITEM_STATUS:
2119
            if (field.type == TType.I32) {
2120
              this.itemStatus = status.findByValue(iprot.readI32());
2121
            } else { 
2122
              TProtocolUtil.skip(iprot, field.type);
2123
            }
2124
            break;
2034 rajveer 2125
          case STATUS_DESCRIPTION:
2126
            if (field.type == TType.STRING) {
2127
              this.status_description = iprot.readString();
2128
            } else { 
2129
              TProtocolUtil.skip(iprot, field.type);
2130
            }
2131
            break;
103 ashish 2132
          case OTHER_INFO:
2133
            if (field.type == TType.MAP) {
2134
              {
123 ashish 2135
                TMap _map5 = iprot.readMapBegin();
2136
                this.otherInfo = new HashMap<String,String>(2*_map5.size);
2137
                for (int _i6 = 0; _i6 < _map5.size; ++_i6)
103 ashish 2138
                {
123 ashish 2139
                  String _key7;
2140
                  String _val8;
2141
                  _key7 = iprot.readString();
2142
                  _val8 = iprot.readString();
2143
                  this.otherInfo.put(_key7, _val8);
103 ashish 2144
                }
2145
                iprot.readMapEnd();
2146
              }
2147
            } else { 
2148
              TProtocolUtil.skip(iprot, field.type);
2149
            }
2150
            break;
607 chandransh 2151
          case BEST_DEAL_TEXT:
2152
            if (field.type == TType.STRING) {
2153
              this.bestDealText = iprot.readString();
2154
            } else { 
2155
              TProtocolUtil.skip(iprot, field.type);
2156
            }
2157
            break;
2158
          case BEST_DEAL_VALUE:
2159
            if (field.type == TType.DOUBLE) {
2160
              this.bestDealValue = iprot.readDouble();
2161
              setBestDealValueIsSet(true);
2162
            } else { 
2163
              TProtocolUtil.skip(iprot, field.type);
2164
            }
2165
            break;
2166
          case DEALER_PRICE:
2167
            if (field.type == TType.DOUBLE) {
2168
              this.dealerPrice = iprot.readDouble();
2169
              setDealerPriceIsSet(true);
2170
            } else { 
2171
              TProtocolUtil.skip(iprot, field.type);
2172
            }
2173
            break;
1910 varun.gupt 2174
          case DEFAULT_FOR_ENTITY:
2175
            if (field.type == TType.BOOL) {
2176
              this.defaultForEntity = iprot.readBool();
2177
              setDefaultForEntityIsSet(true);
2178
            } else { 
2179
              TProtocolUtil.skip(iprot, field.type);
2180
            }
2181
            break;
607 chandransh 2182
          case UPDATED_ON:
2183
            if (field.type == TType.I64) {
2184
              this.updatedOn = iprot.readI64();
2185
              setUpdatedOnIsSet(true);
2186
            } else { 
2187
              TProtocolUtil.skip(iprot, field.type);
2188
            }
2189
            break;
2064 ankur.sing 2190
          case BEST_SELLING_RANK:
2191
            if (field.type == TType.I64) {
2192
              this.bestSellingRank = iprot.readI64();
2193
              setBestSellingRankIsSet(true);
2194
            } else { 
2195
              TProtocolUtil.skip(iprot, field.type);
2196
            }
2197
            break;
2114 ankur.sing 2198
          case HOTSPOT_CATEGORY:
2199
            if (field.type == TType.STRING) {
2200
              this.hotspotCategory = iprot.readString();
2201
            } else { 
2202
              TProtocolUtil.skip(iprot, field.type);
2203
            }
2204
            break;
2250 ankur.sing 2205
          case RISKY:
2206
            if (field.type == TType.BOOL) {
2207
              this.risky = iprot.readBool();
2208
              setRiskyIsSet(true);
2209
            } else { 
2210
              TProtocolUtil.skip(iprot, field.type);
2211
            }
2212
            break;
2808 rajveer 2213
          case SIMILARITY_INDEX:
2214
            if (field.type == TType.I64) {
2215
              this.similarityIndex = iprot.readI64();
2216
              setSimilarityIndexIsSet(true);
2217
            } else { 
2218
              TProtocolUtil.skip(iprot, field.type);
2219
            }
2220
            break;
100 ashish 2221
        }
2222
        iprot.readFieldEnd();
2223
      }
2224
    }
2225
    iprot.readStructEnd();
2226
    validate();
2227
  }
2228
 
2229
  public void write(TProtocol oprot) throws TException {
2230
    validate();
2231
 
2232
    oprot.writeStructBegin(STRUCT_DESC);
2233
    oprot.writeFieldBegin(ID_FIELD_DESC);
2234
    oprot.writeI64(this.id);
2235
    oprot.writeFieldEnd();
957 chandransh 2236
    if (this.productGroup != null) {
2237
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
2238
      oprot.writeString(this.productGroup);
483 rajveer 2239
      oprot.writeFieldEnd();
2240
    }
957 chandransh 2241
    if (this.brand != null) {
2242
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2243
      oprot.writeString(this.brand);
2244
      oprot.writeFieldEnd();
2245
    }
483 rajveer 2246
    if (this.modelNumber != null) {
2247
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2248
      oprot.writeString(this.modelNumber);
2249
      oprot.writeFieldEnd();
2250
    }
2251
    if (this.modelName != null) {
2252
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2253
      oprot.writeString(this.modelName);
2254
      oprot.writeFieldEnd();
2255
    }
1329 chandransh 2256
    if (this.color != null) {
2257
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2258
      oprot.writeString(this.color);
2259
      oprot.writeFieldEnd();
2260
    }
622 chandransh 2261
    oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
2262
    oprot.writeI64(this.category);
2263
    oprot.writeFieldEnd();
483 rajveer 2264
    if (this.comments != null) {
2265
      oprot.writeFieldBegin(COMMENTS_FIELD_DESC);
2266
      oprot.writeString(this.comments);
2267
      oprot.writeFieldEnd();
2268
    }
123 ashish 2269
    oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
2270
    oprot.writeI64(this.catalogItemId);
2271
    oprot.writeFieldEnd();
483 rajveer 2272
    oprot.writeFieldBegin(FEATURE_ID_FIELD_DESC);
2273
    oprot.writeI64(this.featureId);
2274
    oprot.writeFieldEnd();
2275
    if (this.featureDescription != null) {
2276
      oprot.writeFieldBegin(FEATURE_DESCRIPTION_FIELD_DESC);
2277
      oprot.writeString(this.featureDescription);
2278
      oprot.writeFieldEnd();
2279
    }
100 ashish 2280
    if (this.itemInventory != null) {
2281
      oprot.writeFieldBegin(ITEM_INVENTORY_FIELD_DESC);
2282
      this.itemInventory.write(oprot);
2283
      oprot.writeFieldEnd();
2284
    }
2128 ankur.sing 2285
    if (isSetMrp()) {
2286
      oprot.writeFieldBegin(MRP_FIELD_DESC);
2287
      oprot.writeDouble(this.mrp);
2288
      oprot.writeFieldEnd();
2289
    }
2491 ankur.sing 2290
    if (isSetMop()) {
2291
      oprot.writeFieldBegin(MOP_FIELD_DESC);
2292
      oprot.writeDouble(this.mop);
2293
      oprot.writeFieldEnd();
2294
    }
2128 ankur.sing 2295
    if (isSetSellingPrice()) {
2296
      oprot.writeFieldBegin(SELLING_PRICE_FIELD_DESC);
2297
      oprot.writeDouble(this.sellingPrice);
2298
      oprot.writeFieldEnd();
2299
    }
2491 ankur.sing 2300
    if (isSetTransferPrice()) {
2301
      oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2302
      oprot.writeDouble(this.transferPrice);
2303
      oprot.writeFieldEnd();
2304
    }
2128 ankur.sing 2305
    if (isSetWeight()) {
2306
      oprot.writeFieldBegin(WEIGHT_FIELD_DESC);
2307
      oprot.writeDouble(this.weight);
2308
      oprot.writeFieldEnd();
2309
    }
103 ashish 2310
    oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
2311
    oprot.writeI64(this.addedOn);
2312
    oprot.writeFieldEnd();
2491 ankur.sing 2313
    if (isSetStartDate()) {
2314
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
2315
      oprot.writeI64(this.startDate);
2316
      oprot.writeFieldEnd();
2317
    }
2318
    if (isSetRetireDate()) {
2319
      oprot.writeFieldBegin(RETIRE_DATE_FIELD_DESC);
2320
      oprot.writeI64(this.retireDate);
2321
      oprot.writeFieldEnd();
2322
    }
103 ashish 2323
    if (this.itemStatus != null) {
2324
      oprot.writeFieldBegin(ITEM_STATUS_FIELD_DESC);
2325
      oprot.writeI32(this.itemStatus.getValue());
2326
      oprot.writeFieldEnd();
2327
    }
2034 rajveer 2328
    if (this.status_description != null) {
2329
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
2330
      oprot.writeString(this.status_description);
2331
      oprot.writeFieldEnd();
2332
    }
103 ashish 2333
    if (this.otherInfo != null) {
2334
      oprot.writeFieldBegin(OTHER_INFO_FIELD_DESC);
2335
      {
2336
        oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.otherInfo.size()));
483 rajveer 2337
        for (Map.Entry<String, String> _iter9 : this.otherInfo.entrySet())
103 ashish 2338
        {
483 rajveer 2339
          oprot.writeString(_iter9.getKey());
2340
          oprot.writeString(_iter9.getValue());
103 ashish 2341
        }
2342
        oprot.writeMapEnd();
2343
      }
2344
      oprot.writeFieldEnd();
2345
    }
607 chandransh 2346
    if (this.bestDealText != null) {
2347
      oprot.writeFieldBegin(BEST_DEAL_TEXT_FIELD_DESC);
2348
      oprot.writeString(this.bestDealText);
2349
      oprot.writeFieldEnd();
2350
    }
2128 ankur.sing 2351
    if (isSetBestDealValue()) {
2352
      oprot.writeFieldBegin(BEST_DEAL_VALUE_FIELD_DESC);
2353
      oprot.writeDouble(this.bestDealValue);
2354
      oprot.writeFieldEnd();
2355
    }
2491 ankur.sing 2356
    if (isSetDealerPrice()) {
2357
      oprot.writeFieldBegin(DEALER_PRICE_FIELD_DESC);
2358
      oprot.writeDouble(this.dealerPrice);
2359
      oprot.writeFieldEnd();
2360
    }
1910 varun.gupt 2361
    oprot.writeFieldBegin(DEFAULT_FOR_ENTITY_FIELD_DESC);
2362
    oprot.writeBool(this.defaultForEntity);
2363
    oprot.writeFieldEnd();
607 chandransh 2364
    oprot.writeFieldBegin(UPDATED_ON_FIELD_DESC);
2365
    oprot.writeI64(this.updatedOn);
2366
    oprot.writeFieldEnd();
2128 ankur.sing 2367
    if (isSetBestSellingRank()) {
2368
      oprot.writeFieldBegin(BEST_SELLING_RANK_FIELD_DESC);
2369
      oprot.writeI64(this.bestSellingRank);
2370
      oprot.writeFieldEnd();
2371
    }
2114 ankur.sing 2372
    if (this.hotspotCategory != null) {
2373
      oprot.writeFieldBegin(HOTSPOT_CATEGORY_FIELD_DESC);
2374
      oprot.writeString(this.hotspotCategory);
2375
      oprot.writeFieldEnd();
2376
    }
2250 ankur.sing 2377
    oprot.writeFieldBegin(RISKY_FIELD_DESC);
2378
    oprot.writeBool(this.risky);
2379
    oprot.writeFieldEnd();
2808 rajveer 2380
    oprot.writeFieldBegin(SIMILARITY_INDEX_FIELD_DESC);
2381
    oprot.writeI64(this.similarityIndex);
2382
    oprot.writeFieldEnd();
100 ashish 2383
    oprot.writeFieldStop();
2384
    oprot.writeStructEnd();
2385
  }
2386
 
2387
  @Override
2388
  public String toString() {
2389
    StringBuilder sb = new StringBuilder("Item(");
2390
    boolean first = true;
2391
 
2392
    sb.append("id:");
2393
    sb.append(this.id);
2394
    first = false;
2395
    if (!first) sb.append(", ");
957 chandransh 2396
    sb.append("productGroup:");
2397
    if (this.productGroup == null) {
483 rajveer 2398
      sb.append("null");
2399
    } else {
957 chandransh 2400
      sb.append(this.productGroup);
483 rajveer 2401
    }
2402
    first = false;
2403
    if (!first) sb.append(", ");
957 chandransh 2404
    sb.append("brand:");
2405
    if (this.brand == null) {
2406
      sb.append("null");
2407
    } else {
2408
      sb.append(this.brand);
2409
    }
2410
    first = false;
2411
    if (!first) sb.append(", ");
483 rajveer 2412
    sb.append("modelNumber:");
2413
    if (this.modelNumber == null) {
2414
      sb.append("null");
2415
    } else {
2416
      sb.append(this.modelNumber);
2417
    }
2418
    first = false;
2419
    if (!first) sb.append(", ");
2420
    sb.append("modelName:");
2421
    if (this.modelName == null) {
2422
      sb.append("null");
2423
    } else {
2424
      sb.append(this.modelName);
2425
    }
2426
    first = false;
2427
    if (!first) sb.append(", ");
1329 chandransh 2428
    sb.append("color:");
2429
    if (this.color == null) {
2430
      sb.append("null");
2431
    } else {
2432
      sb.append(this.color);
2433
    }
2434
    first = false;
2435
    if (!first) sb.append(", ");
483 rajveer 2436
    sb.append("category:");
622 chandransh 2437
    sb.append(this.category);
483 rajveer 2438
    first = false;
2439
    if (!first) sb.append(", ");
2440
    sb.append("comments:");
2441
    if (this.comments == null) {
2442
      sb.append("null");
2443
    } else {
2444
      sb.append(this.comments);
2445
    }
2446
    first = false;
2447
    if (!first) sb.append(", ");
123 ashish 2448
    sb.append("catalogItemId:");
2449
    sb.append(this.catalogItemId);
100 ashish 2450
    first = false;
2451
    if (!first) sb.append(", ");
483 rajveer 2452
    sb.append("featureId:");
2453
    sb.append(this.featureId);
2454
    first = false;
2455
    if (!first) sb.append(", ");
2456
    sb.append("featureDescription:");
2457
    if (this.featureDescription == null) {
2458
      sb.append("null");
2459
    } else {
2460
      sb.append(this.featureDescription);
2461
    }
2462
    first = false;
2463
    if (!first) sb.append(", ");
100 ashish 2464
    sb.append("itemInventory:");
2465
    if (this.itemInventory == null) {
2466
      sb.append("null");
2467
    } else {
2468
      sb.append(this.itemInventory);
2469
    }
2470
    first = false;
2128 ankur.sing 2471
    if (isSetMrp()) {
2472
      if (!first) sb.append(", ");
2473
      sb.append("mrp:");
2474
      sb.append(this.mrp);
2475
      first = false;
2476
    }
2491 ankur.sing 2477
    if (isSetMop()) {
2478
      if (!first) sb.append(", ");
2479
      sb.append("mop:");
2480
      sb.append(this.mop);
2481
      first = false;
2482
    }
2128 ankur.sing 2483
    if (isSetSellingPrice()) {
2484
      if (!first) sb.append(", ");
2485
      sb.append("sellingPrice:");
2486
      sb.append(this.sellingPrice);
2487
      first = false;
2488
    }
2491 ankur.sing 2489
    if (isSetTransferPrice()) {
2490
      if (!first) sb.append(", ");
2491
      sb.append("transferPrice:");
2492
      sb.append(this.transferPrice);
2493
      first = false;
2494
    }
2128 ankur.sing 2495
    if (isSetWeight()) {
2496
      if (!first) sb.append(", ");
2497
      sb.append("weight:");
2498
      sb.append(this.weight);
2499
      first = false;
2500
    }
721 chandransh 2501
    if (!first) sb.append(", ");
103 ashish 2502
    sb.append("addedOn:");
2503
    sb.append(this.addedOn);
2504
    first = false;
2491 ankur.sing 2505
    if (isSetStartDate()) {
2506
      if (!first) sb.append(", ");
2507
      sb.append("startDate:");
2508
      sb.append(this.startDate);
2509
      first = false;
2510
    }
2511
    if (isSetRetireDate()) {
2512
      if (!first) sb.append(", ");
2513
      sb.append("retireDate:");
2514
      sb.append(this.retireDate);
2515
      first = false;
2516
    }
103 ashish 2517
    if (!first) sb.append(", ");
2518
    sb.append("itemStatus:");
2519
    if (this.itemStatus == null) {
2520
      sb.append("null");
2521
    } else {
2522
      String itemStatus_name = itemStatus.name();
2523
      if (itemStatus_name != null) {
2524
        sb.append(itemStatus_name);
2525
        sb.append(" (");
2526
      }
2527
      sb.append(this.itemStatus);
2528
      if (itemStatus_name != null) {
2529
        sb.append(")");
2530
      }
2531
    }
2532
    first = false;
2533
    if (!first) sb.append(", ");
2034 rajveer 2534
    sb.append("status_description:");
2535
    if (this.status_description == null) {
2536
      sb.append("null");
2537
    } else {
2538
      sb.append(this.status_description);
2539
    }
2540
    first = false;
2541
    if (!first) sb.append(", ");
103 ashish 2542
    sb.append("otherInfo:");
2543
    if (this.otherInfo == null) {
2544
      sb.append("null");
2545
    } else {
2546
      sb.append(this.otherInfo);
2547
    }
2548
    first = false;
607 chandransh 2549
    if (!first) sb.append(", ");
2550
    sb.append("bestDealText:");
2551
    if (this.bestDealText == null) {
2552
      sb.append("null");
2553
    } else {
2554
      sb.append(this.bestDealText);
2555
    }
2556
    first = false;
2128 ankur.sing 2557
    if (isSetBestDealValue()) {
2558
      if (!first) sb.append(", ");
2559
      sb.append("bestDealValue:");
2560
      sb.append(this.bestDealValue);
2561
      first = false;
2562
    }
2491 ankur.sing 2563
    if (isSetDealerPrice()) {
2564
      if (!first) sb.append(", ");
2565
      sb.append("dealerPrice:");
2566
      sb.append(this.dealerPrice);
2567
      first = false;
2568
    }
607 chandransh 2569
    if (!first) sb.append(", ");
1910 varun.gupt 2570
    sb.append("defaultForEntity:");
2571
    sb.append(this.defaultForEntity);
2572
    first = false;
2573
    if (!first) sb.append(", ");
607 chandransh 2574
    sb.append("updatedOn:");
2575
    sb.append(this.updatedOn);
2576
    first = false;
2128 ankur.sing 2577
    if (isSetBestSellingRank()) {
2578
      if (!first) sb.append(", ");
2579
      sb.append("bestSellingRank:");
2580
      sb.append(this.bestSellingRank);
2581
      first = false;
2582
    }
2064 ankur.sing 2583
    if (!first) sb.append(", ");
2114 ankur.sing 2584
    sb.append("hotspotCategory:");
2585
    if (this.hotspotCategory == null) {
2586
      sb.append("null");
2587
    } else {
2588
      sb.append(this.hotspotCategory);
2589
    }
2590
    first = false;
2250 ankur.sing 2591
    if (!first) sb.append(", ");
2592
    sb.append("risky:");
2593
    sb.append(this.risky);
2594
    first = false;
2808 rajveer 2595
    if (!first) sb.append(", ");
2596
    sb.append("similarityIndex:");
2597
    sb.append(this.similarityIndex);
2598
    first = false;
100 ashish 2599
    sb.append(")");
2600
    return sb.toString();
2601
  }
2602
 
2603
  public void validate() throws TException {
2604
    // check for required fields
2605
  }
2606
 
2607
}
2608