Subversion Repositories SmartDukaan

Rev

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