Subversion Repositories SmartDukaan

Rev

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