Subversion Repositories SmartDukaan

Rev

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