Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
68 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
68 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.order;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
68 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class LineItem implements org.apache.thrift.TBase<LineItem, LineItem._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LineItem");
68 ashish 25
 
3430 rajveer 26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
28
  private static final org.apache.thrift.protocol.TField PRODUCT_GROUP_FIELD_DESC = new org.apache.thrift.protocol.TField("productGroup", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField BRAND_FIELD_DESC = new org.apache.thrift.protocol.TField("brand", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField MODEL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("model_number", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField COLOR_FIELD_DESC = new org.apache.thrift.protocol.TField("color", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField MODEL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("model_name", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField EXTRA_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("extra_info", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
12280 amit.gupta 35
  private static final org.apache.thrift.protocol.TField MRP_FIELD_DESC = new org.apache.thrift.protocol.TField("mrp", org.apache.thrift.protocol.TType.DOUBLE, (short)10);
36
  private static final org.apache.thrift.protocol.TField UNIT_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_price", org.apache.thrift.protocol.TType.DOUBLE, (short)11);
37
  private static final org.apache.thrift.protocol.TField UNIT_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("unit_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)12);
38
  private static final org.apache.thrift.protocol.TField TOTAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("total_price", org.apache.thrift.protocol.TType.DOUBLE, (short)13);
39
  private static final org.apache.thrift.protocol.TField TRANSFER_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("transfer_price", org.apache.thrift.protocol.TType.DOUBLE, (short)14);
40
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)15);
41
  private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serial_number", org.apache.thrift.protocol.TType.STRING, (short)16);
42
  private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("item_number", org.apache.thrift.protocol.TType.STRING, (short)17);
43
  private static final org.apache.thrift.protocol.TField DEAL_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("dealText", org.apache.thrift.protocol.TType.STRING, (short)18);
44
  private static final org.apache.thrift.protocol.TField WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("warrantry_expiry_timestamp", org.apache.thrift.protocol.TType.I64, (short)19);
45
  private static final org.apache.thrift.protocol.TField VAT_RATE_FIELD_DESC = new org.apache.thrift.protocol.TField("vatRate", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
46
  private static final org.apache.thrift.protocol.TField NLC_FIELD_DESC = new org.apache.thrift.protocol.TField("nlc", org.apache.thrift.protocol.TType.DOUBLE, (short)21);
19421 manish.sha 47
  private static final org.apache.thrift.protocol.TField LOGISTICS_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCost", org.apache.thrift.protocol.TType.DOUBLE, (short)22);
48
  private static final org.apache.thrift.protocol.TField COD_COLLECTION_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCollectionCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)23);
19691 manish.sha 49
  private static final org.apache.thrift.protocol.TField RETURN_QTY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQty", org.apache.thrift.protocol.TType.DOUBLE, (short)24);
68 ashish 50
 
3430 rajveer 51
  private long id; // required
52
  private long item_id; // required
53
  private String productGroup; // required
54
  private String brand; // required
55
  private String model_number; // required
56
  private String color; // required
57
  private String model_name; // required
58
  private String extra_info; // required
59
  private double quantity; // required
12280 amit.gupta 60
  private double mrp; // required
3430 rajveer 61
  private double unit_price; // required
62
  private double unit_weight; // required
63
  private double total_price; // required
64
  private double transfer_price; // required
65
  private double total_weight; // required
4658 mandeep.dh 66
  private String serial_number; // required
3430 rajveer 67
  private String item_number; // required
4172 rajveer 68
  private String dealText; // required
4295 varun.gupt 69
  private long warrantry_expiry_timestamp; // required
6039 amit.gupta 70
  private double vatRate; // required
7672 rajveer 71
  private double nlc; // required
19421 manish.sha 72
  private double logisticsCost; // required
73
  private double codCollectionCharges; // required
19691 manish.sha 74
  private double returnQty; // required
68 ashish 75
 
76
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 77
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
483 rajveer 78
    ID((short)1, "id"),
697 chandransh 79
    ITEM_ID((short)2, "item_id"),
957 chandransh 80
    PRODUCT_GROUP((short)3, "productGroup"),
81
    BRAND((short)4, "brand"),
82
    MODEL_NUMBER((short)5, "model_number"),
83
    COLOR((short)6, "color"),
84
    MODEL_NAME((short)7, "model_name"),
85
    EXTRA_INFO((short)8, "extra_info"),
86
    QUANTITY((short)9, "quantity"),
12280 amit.gupta 87
    MRP((short)10, "mrp"),
88
    UNIT_PRICE((short)11, "unit_price"),
89
    UNIT_WEIGHT((short)12, "unit_weight"),
90
    TOTAL_PRICE((short)13, "total_price"),
91
    TRANSFER_PRICE((short)14, "transfer_price"),
92
    TOTAL_WEIGHT((short)15, "total_weight"),
93
    SERIAL_NUMBER((short)16, "serial_number"),
94
    ITEM_NUMBER((short)17, "item_number"),
95
    DEAL_TEXT((short)18, "dealText"),
96
    WARRANTRY_EXPIRY_TIMESTAMP((short)19, "warrantry_expiry_timestamp"),
97
    VAT_RATE((short)20, "vatRate"),
19421 manish.sha 98
    NLC((short)21, "nlc"),
99
    LOGISTICS_COST((short)22, "logisticsCost"),
19691 manish.sha 100
    COD_COLLECTION_CHARGES((short)23, "codCollectionCharges"),
101
    RETURN_QTY((short)24, "returnQty");
68 ashish 102
 
103
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
104
 
105
    static {
106
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
107
        byName.put(field.getFieldName(), field);
108
      }
109
    }
110
 
111
    /**
112
     * Find the _Fields constant that matches fieldId, or null if its not found.
113
     */
114
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 115
      switch(fieldId) {
116
        case 1: // ID
117
          return ID;
118
        case 2: // ITEM_ID
119
          return ITEM_ID;
120
        case 3: // PRODUCT_GROUP
121
          return PRODUCT_GROUP;
122
        case 4: // BRAND
123
          return BRAND;
124
        case 5: // MODEL_NUMBER
125
          return MODEL_NUMBER;
126
        case 6: // COLOR
127
          return COLOR;
128
        case 7: // MODEL_NAME
129
          return MODEL_NAME;
130
        case 8: // EXTRA_INFO
131
          return EXTRA_INFO;
132
        case 9: // QUANTITY
133
          return QUANTITY;
12280 amit.gupta 134
        case 10: // MRP
135
          return MRP;
136
        case 11: // UNIT_PRICE
3430 rajveer 137
          return UNIT_PRICE;
12280 amit.gupta 138
        case 12: // UNIT_WEIGHT
3430 rajveer 139
          return UNIT_WEIGHT;
12280 amit.gupta 140
        case 13: // TOTAL_PRICE
3430 rajveer 141
          return TOTAL_PRICE;
12280 amit.gupta 142
        case 14: // TRANSFER_PRICE
3430 rajveer 143
          return TRANSFER_PRICE;
12280 amit.gupta 144
        case 15: // TOTAL_WEIGHT
3430 rajveer 145
          return TOTAL_WEIGHT;
12280 amit.gupta 146
        case 16: // SERIAL_NUMBER
4658 mandeep.dh 147
          return SERIAL_NUMBER;
12280 amit.gupta 148
        case 17: // ITEM_NUMBER
3430 rajveer 149
          return ITEM_NUMBER;
12280 amit.gupta 150
        case 18: // DEAL_TEXT
4172 rajveer 151
          return DEAL_TEXT;
12280 amit.gupta 152
        case 19: // WARRANTRY_EXPIRY_TIMESTAMP
4295 varun.gupt 153
          return WARRANTRY_EXPIRY_TIMESTAMP;
12280 amit.gupta 154
        case 20: // VAT_RATE
6039 amit.gupta 155
          return VAT_RATE;
12280 amit.gupta 156
        case 21: // NLC
7672 rajveer 157
          return NLC;
19421 manish.sha 158
        case 22: // LOGISTICS_COST
159
          return LOGISTICS_COST;
160
        case 23: // COD_COLLECTION_CHARGES
161
          return COD_COLLECTION_CHARGES;
19691 manish.sha 162
        case 24: // RETURN_QTY
163
          return RETURN_QTY;
3430 rajveer 164
        default:
165
          return null;
166
      }
68 ashish 167
    }
168
 
169
    /**
170
     * Find the _Fields constant that matches fieldId, throwing an exception
171
     * if it is not found.
172
     */
173
    public static _Fields findByThriftIdOrThrow(int fieldId) {
174
      _Fields fields = findByThriftId(fieldId);
175
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
176
      return fields;
177
    }
178
 
179
    /**
180
     * Find the _Fields constant that matches name, or null if its not found.
181
     */
182
    public static _Fields findByName(String name) {
183
      return byName.get(name);
184
    }
185
 
186
    private final short _thriftId;
187
    private final String _fieldName;
188
 
189
    _Fields(short thriftId, String fieldName) {
190
      _thriftId = thriftId;
191
      _fieldName = fieldName;
192
    }
193
 
194
    public short getThriftFieldId() {
195
      return _thriftId;
196
    }
197
 
198
    public String getFieldName() {
199
      return _fieldName;
200
    }
201
  }
202
 
203
  // isset id assignments
204
  private static final int __ID_ISSET_ID = 0;
697 chandransh 205
  private static final int __ITEM_ID_ISSET_ID = 1;
206
  private static final int __QUANTITY_ISSET_ID = 2;
12280 amit.gupta 207
  private static final int __MRP_ISSET_ID = 3;
208
  private static final int __UNIT_PRICE_ISSET_ID = 4;
209
  private static final int __UNIT_WEIGHT_ISSET_ID = 5;
210
  private static final int __TOTAL_PRICE_ISSET_ID = 6;
211
  private static final int __TRANSFER_PRICE_ISSET_ID = 7;
212
  private static final int __TOTAL_WEIGHT_ISSET_ID = 8;
213
  private static final int __WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID = 9;
214
  private static final int __VATRATE_ISSET_ID = 10;
215
  private static final int __NLC_ISSET_ID = 11;
19421 manish.sha 216
  private static final int __LOGISTICSCOST_ISSET_ID = 12;
217
  private static final int __CODCOLLECTIONCHARGES_ISSET_ID = 13;
19691 manish.sha 218
  private static final int __RETURNQTY_ISSET_ID = 14;
219
  private BitSet __isset_bit_vector = new BitSet(15);
68 ashish 220
 
3430 rajveer 221
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
68 ashish 222
  static {
3430 rajveer 223
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
224
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
226
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
227
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
228
    tmpMap.put(_Fields.PRODUCT_GROUP, new org.apache.thrift.meta_data.FieldMetaData("productGroup", org.apache.thrift.TFieldRequirementType.DEFAULT, 
229
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
230
    tmpMap.put(_Fields.BRAND, new org.apache.thrift.meta_data.FieldMetaData("brand", org.apache.thrift.TFieldRequirementType.DEFAULT, 
231
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
232
    tmpMap.put(_Fields.MODEL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("model_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
233
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
234
    tmpMap.put(_Fields.COLOR, new org.apache.thrift.meta_data.FieldMetaData("color", org.apache.thrift.TFieldRequirementType.DEFAULT, 
235
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
236
    tmpMap.put(_Fields.MODEL_NAME, new org.apache.thrift.meta_data.FieldMetaData("model_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
237
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
238
    tmpMap.put(_Fields.EXTRA_INFO, new org.apache.thrift.meta_data.FieldMetaData("extra_info", org.apache.thrift.TFieldRequirementType.DEFAULT, 
239
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
240
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
241
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
12280 amit.gupta 242
    tmpMap.put(_Fields.MRP, new org.apache.thrift.meta_data.FieldMetaData("mrp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
243
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
3430 rajveer 244
    tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unit_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
245
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
246
    tmpMap.put(_Fields.UNIT_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("unit_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
247
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
248
    tmpMap.put(_Fields.TOTAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("total_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
249
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
250
    tmpMap.put(_Fields.TRANSFER_PRICE, new org.apache.thrift.meta_data.FieldMetaData("transfer_price", org.apache.thrift.TFieldRequirementType.DEFAULT, 
251
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
252
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
253
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
4658 mandeep.dh 254
    tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serial_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
255
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 256
    tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("item_number", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
257
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4172 rajveer 258
    tmpMap.put(_Fields.DEAL_TEXT, new org.apache.thrift.meta_data.FieldMetaData("dealText", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
259
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4295 varun.gupt 260
    tmpMap.put(_Fields.WARRANTRY_EXPIRY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("warrantry_expiry_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
261
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6039 amit.gupta 262
    tmpMap.put(_Fields.VAT_RATE, new org.apache.thrift.meta_data.FieldMetaData("vatRate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
263
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
7672 rajveer 264
    tmpMap.put(_Fields.NLC, new org.apache.thrift.meta_data.FieldMetaData("nlc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
265
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
19421 manish.sha 266
    tmpMap.put(_Fields.LOGISTICS_COST, new org.apache.thrift.meta_data.FieldMetaData("logisticsCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
267
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
268
    tmpMap.put(_Fields.COD_COLLECTION_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("codCollectionCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
269
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
19691 manish.sha 270
    tmpMap.put(_Fields.RETURN_QTY, new org.apache.thrift.meta_data.FieldMetaData("returnQty", org.apache.thrift.TFieldRequirementType.DEFAULT, 
271
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
3430 rajveer 272
    metaDataMap = Collections.unmodifiableMap(tmpMap);
273
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LineItem.class, metaDataMap);
68 ashish 274
  }
275
 
276
  public LineItem() {
277
  }
278
 
279
  public LineItem(
280
    long id,
697 chandransh 281
    long item_id,
957 chandransh 282
    String productGroup,
483 rajveer 283
    String brand,
284
    String model_number,
957 chandransh 285
    String color,
483 rajveer 286
    String model_name,
287
    String extra_info,
288
    double quantity,
12280 amit.gupta 289
    double mrp,
483 rajveer 290
    double unit_price,
291
    double unit_weight,
292
    double total_price,
1022 varun.gupt 293
    double transfer_price,
4295 varun.gupt 294
    double total_weight,
6039 amit.gupta 295
    long warrantry_expiry_timestamp,
7672 rajveer 296
    double vatRate,
19421 manish.sha 297
    double nlc,
298
    double logisticsCost,
19691 manish.sha 299
    double codCollectionCharges,
300
    double returnQty)
68 ashish 301
  {
302
    this();
303
    this.id = id;
304
    setIdIsSet(true);
697 chandransh 305
    this.item_id = item_id;
306
    setItem_idIsSet(true);
957 chandransh 307
    this.productGroup = productGroup;
483 rajveer 308
    this.brand = brand;
309
    this.model_number = model_number;
957 chandransh 310
    this.color = color;
483 rajveer 311
    this.model_name = model_name;
312
    this.extra_info = extra_info;
313
    this.quantity = quantity;
314
    setQuantityIsSet(true);
12280 amit.gupta 315
    this.mrp = mrp;
316
    setMrpIsSet(true);
483 rajveer 317
    this.unit_price = unit_price;
318
    setUnit_priceIsSet(true);
319
    this.unit_weight = unit_weight;
320
    setUnit_weightIsSet(true);
321
    this.total_price = total_price;
322
    setTotal_priceIsSet(true);
1022 varun.gupt 323
    this.transfer_price = transfer_price;
324
    setTransfer_priceIsSet(true);
483 rajveer 325
    this.total_weight = total_weight;
326
    setTotal_weightIsSet(true);
4295 varun.gupt 327
    this.warrantry_expiry_timestamp = warrantry_expiry_timestamp;
328
    setWarrantry_expiry_timestampIsSet(true);
6039 amit.gupta 329
    this.vatRate = vatRate;
330
    setVatRateIsSet(true);
7672 rajveer 331
    this.nlc = nlc;
332
    setNlcIsSet(true);
19421 manish.sha 333
    this.logisticsCost = logisticsCost;
334
    setLogisticsCostIsSet(true);
335
    this.codCollectionCharges = codCollectionCharges;
336
    setCodCollectionChargesIsSet(true);
19691 manish.sha 337
    this.returnQty = returnQty;
338
    setReturnQtyIsSet(true);
68 ashish 339
  }
340
 
341
  /**
342
   * Performs a deep copy on <i>other</i>.
343
   */
344
  public LineItem(LineItem other) {
345
    __isset_bit_vector.clear();
346
    __isset_bit_vector.or(other.__isset_bit_vector);
347
    this.id = other.id;
697 chandransh 348
    this.item_id = other.item_id;
957 chandransh 349
    if (other.isSetProductGroup()) {
350
      this.productGroup = other.productGroup;
351
    }
483 rajveer 352
    if (other.isSetBrand()) {
353
      this.brand = other.brand;
354
    }
355
    if (other.isSetModel_number()) {
356
      this.model_number = other.model_number;
357
    }
957 chandransh 358
    if (other.isSetColor()) {
359
      this.color = other.color;
360
    }
483 rajveer 361
    if (other.isSetModel_name()) {
362
      this.model_name = other.model_name;
363
    }
364
    if (other.isSetExtra_info()) {
365
      this.extra_info = other.extra_info;
366
    }
367
    this.quantity = other.quantity;
12280 amit.gupta 368
    this.mrp = other.mrp;
483 rajveer 369
    this.unit_price = other.unit_price;
370
    this.unit_weight = other.unit_weight;
371
    this.total_price = other.total_price;
1022 varun.gupt 372
    this.transfer_price = other.transfer_price;
483 rajveer 373
    this.total_weight = other.total_weight;
4658 mandeep.dh 374
    if (other.isSetSerial_number()) {
375
      this.serial_number = other.serial_number;
376
    }
2779 chandransh 377
    if (other.isSetItem_number()) {
378
      this.item_number = other.item_number;
379
    }
4172 rajveer 380
    if (other.isSetDealText()) {
381
      this.dealText = other.dealText;
382
    }
4295 varun.gupt 383
    this.warrantry_expiry_timestamp = other.warrantry_expiry_timestamp;
6039 amit.gupta 384
    this.vatRate = other.vatRate;
7672 rajveer 385
    this.nlc = other.nlc;
19421 manish.sha 386
    this.logisticsCost = other.logisticsCost;
387
    this.codCollectionCharges = other.codCollectionCharges;
19691 manish.sha 388
    this.returnQty = other.returnQty;
68 ashish 389
  }
390
 
391
  public LineItem deepCopy() {
392
    return new LineItem(this);
393
  }
394
 
3430 rajveer 395
  @Override
396
  public void clear() {
397
    setIdIsSet(false);
398
    this.id = 0;
399
    setItem_idIsSet(false);
400
    this.item_id = 0;
401
    this.productGroup = null;
402
    this.brand = null;
403
    this.model_number = null;
404
    this.color = null;
405
    this.model_name = null;
406
    this.extra_info = null;
407
    setQuantityIsSet(false);
408
    this.quantity = 0.0;
12280 amit.gupta 409
    setMrpIsSet(false);
410
    this.mrp = 0.0;
3430 rajveer 411
    setUnit_priceIsSet(false);
412
    this.unit_price = 0.0;
413
    setUnit_weightIsSet(false);
414
    this.unit_weight = 0.0;
415
    setTotal_priceIsSet(false);
416
    this.total_price = 0.0;
417
    setTransfer_priceIsSet(false);
418
    this.transfer_price = 0.0;
419
    setTotal_weightIsSet(false);
420
    this.total_weight = 0.0;
4658 mandeep.dh 421
    this.serial_number = null;
3430 rajveer 422
    this.item_number = null;
4172 rajveer 423
    this.dealText = null;
4295 varun.gupt 424
    setWarrantry_expiry_timestampIsSet(false);
425
    this.warrantry_expiry_timestamp = 0;
6039 amit.gupta 426
    setVatRateIsSet(false);
427
    this.vatRate = 0.0;
7672 rajveer 428
    setNlcIsSet(false);
429
    this.nlc = 0.0;
19421 manish.sha 430
    setLogisticsCostIsSet(false);
431
    this.logisticsCost = 0.0;
432
    setCodCollectionChargesIsSet(false);
433
    this.codCollectionCharges = 0.0;
19691 manish.sha 434
    setReturnQtyIsSet(false);
435
    this.returnQty = 0.0;
68 ashish 436
  }
437
 
483 rajveer 438
  public long getId() {
439
    return this.id;
68 ashish 440
  }
441
 
3430 rajveer 442
  public void setId(long id) {
483 rajveer 443
    this.id = id;
444
    setIdIsSet(true);
68 ashish 445
  }
446
 
483 rajveer 447
  public void unsetId() {
448
    __isset_bit_vector.clear(__ID_ISSET_ID);
68 ashish 449
  }
450
 
3430 rajveer 451
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
483 rajveer 452
  public boolean isSetId() {
453
    return __isset_bit_vector.get(__ID_ISSET_ID);
68 ashish 454
  }
455
 
483 rajveer 456
  public void setIdIsSet(boolean value) {
457
    __isset_bit_vector.set(__ID_ISSET_ID, value);
458
  }
459
 
697 chandransh 460
  public long getItem_id() {
461
    return this.item_id;
483 rajveer 462
  }
463
 
3430 rajveer 464
  public void setItem_id(long item_id) {
697 chandransh 465
    this.item_id = item_id;
466
    setItem_idIsSet(true);
483 rajveer 467
  }
468
 
697 chandransh 469
  public void unsetItem_id() {
470
    __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
483 rajveer 471
  }
472
 
3430 rajveer 473
  /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
697 chandransh 474
  public boolean isSetItem_id() {
475
    return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
483 rajveer 476
  }
477
 
697 chandransh 478
  public void setItem_idIsSet(boolean value) {
479
    __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
68 ashish 480
  }
481
 
957 chandransh 482
  public String getProductGroup() {
483
    return this.productGroup;
484
  }
485
 
3430 rajveer 486
  public void setProductGroup(String productGroup) {
957 chandransh 487
    this.productGroup = productGroup;
488
  }
489
 
490
  public void unsetProductGroup() {
491
    this.productGroup = null;
492
  }
493
 
3430 rajveer 494
  /** Returns true if field productGroup is set (has been assigned a value) and false otherwise */
957 chandransh 495
  public boolean isSetProductGroup() {
496
    return this.productGroup != null;
497
  }
498
 
499
  public void setProductGroupIsSet(boolean value) {
500
    if (!value) {
501
      this.productGroup = null;
502
    }
503
  }
504
 
483 rajveer 505
  public String getBrand() {
506
    return this.brand;
68 ashish 507
  }
508
 
3430 rajveer 509
  public void setBrand(String brand) {
483 rajveer 510
    this.brand = brand;
68 ashish 511
  }
512
 
483 rajveer 513
  public void unsetBrand() {
514
    this.brand = null;
68 ashish 515
  }
516
 
3430 rajveer 517
  /** Returns true if field brand is set (has been assigned a value) and false otherwise */
483 rajveer 518
  public boolean isSetBrand() {
519
    return this.brand != null;
68 ashish 520
  }
521
 
483 rajveer 522
  public void setBrandIsSet(boolean value) {
523
    if (!value) {
524
      this.brand = null;
525
    }
68 ashish 526
  }
527
 
483 rajveer 528
  public String getModel_number() {
529
    return this.model_number;
68 ashish 530
  }
531
 
3430 rajveer 532
  public void setModel_number(String model_number) {
483 rajveer 533
    this.model_number = model_number;
68 ashish 534
  }
535
 
483 rajveer 536
  public void unsetModel_number() {
537
    this.model_number = null;
68 ashish 538
  }
539
 
3430 rajveer 540
  /** Returns true if field model_number is set (has been assigned a value) and false otherwise */
483 rajveer 541
  public boolean isSetModel_number() {
542
    return this.model_number != null;
68 ashish 543
  }
544
 
483 rajveer 545
  public void setModel_numberIsSet(boolean value) {
546
    if (!value) {
547
      this.model_number = null;
548
    }
68 ashish 549
  }
550
 
957 chandransh 551
  public String getColor() {
552
    return this.color;
553
  }
554
 
3430 rajveer 555
  public void setColor(String color) {
957 chandransh 556
    this.color = color;
557
  }
558
 
559
  public void unsetColor() {
560
    this.color = null;
561
  }
562
 
3430 rajveer 563
  /** Returns true if field color is set (has been assigned a value) and false otherwise */
957 chandransh 564
  public boolean isSetColor() {
565
    return this.color != null;
566
  }
567
 
568
  public void setColorIsSet(boolean value) {
569
    if (!value) {
570
      this.color = null;
571
    }
572
  }
573
 
483 rajveer 574
  public String getModel_name() {
575
    return this.model_name;
68 ashish 576
  }
577
 
3430 rajveer 578
  public void setModel_name(String model_name) {
483 rajveer 579
    this.model_name = model_name;
580
  }
581
 
582
  public void unsetModel_name() {
583
    this.model_name = null;
584
  }
585
 
3430 rajveer 586
  /** Returns true if field model_name is set (has been assigned a value) and false otherwise */
483 rajveer 587
  public boolean isSetModel_name() {
588
    return this.model_name != null;
589
  }
590
 
591
  public void setModel_nameIsSet(boolean value) {
592
    if (!value) {
593
      this.model_name = null;
68 ashish 594
    }
595
  }
596
 
483 rajveer 597
  public String getExtra_info() {
598
    return this.extra_info;
68 ashish 599
  }
600
 
3430 rajveer 601
  public void setExtra_info(String extra_info) {
483 rajveer 602
    this.extra_info = extra_info;
68 ashish 603
  }
604
 
483 rajveer 605
  public void unsetExtra_info() {
606
    this.extra_info = null;
68 ashish 607
  }
608
 
3430 rajveer 609
  /** Returns true if field extra_info is set (has been assigned a value) and false otherwise */
483 rajveer 610
  public boolean isSetExtra_info() {
611
    return this.extra_info != null;
68 ashish 612
  }
613
 
483 rajveer 614
  public void setExtra_infoIsSet(boolean value) {
68 ashish 615
    if (!value) {
483 rajveer 616
      this.extra_info = null;
68 ashish 617
    }
618
  }
619
 
483 rajveer 620
  public double getQuantity() {
621
    return this.quantity;
622
  }
623
 
3430 rajveer 624
  public void setQuantity(double quantity) {
483 rajveer 625
    this.quantity = quantity;
626
    setQuantityIsSet(true);
627
  }
628
 
629
  public void unsetQuantity() {
630
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
631
  }
632
 
3430 rajveer 633
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
483 rajveer 634
  public boolean isSetQuantity() {
635
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
636
  }
637
 
638
  public void setQuantityIsSet(boolean value) {
639
    __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
640
  }
641
 
12280 amit.gupta 642
  public double getMrp() {
643
    return this.mrp;
644
  }
645
 
646
  public void setMrp(double mrp) {
647
    this.mrp = mrp;
648
    setMrpIsSet(true);
649
  }
650
 
651
  public void unsetMrp() {
652
    __isset_bit_vector.clear(__MRP_ISSET_ID);
653
  }
654
 
655
  /** Returns true if field mrp is set (has been assigned a value) and false otherwise */
656
  public boolean isSetMrp() {
657
    return __isset_bit_vector.get(__MRP_ISSET_ID);
658
  }
659
 
660
  public void setMrpIsSet(boolean value) {
661
    __isset_bit_vector.set(__MRP_ISSET_ID, value);
662
  }
663
 
483 rajveer 664
  public double getUnit_price() {
665
    return this.unit_price;
666
  }
667
 
3430 rajveer 668
  public void setUnit_price(double unit_price) {
483 rajveer 669
    this.unit_price = unit_price;
670
    setUnit_priceIsSet(true);
671
  }
672
 
673
  public void unsetUnit_price() {
674
    __isset_bit_vector.clear(__UNIT_PRICE_ISSET_ID);
675
  }
676
 
3430 rajveer 677
  /** Returns true if field unit_price is set (has been assigned a value) and false otherwise */
483 rajveer 678
  public boolean isSetUnit_price() {
679
    return __isset_bit_vector.get(__UNIT_PRICE_ISSET_ID);
680
  }
681
 
682
  public void setUnit_priceIsSet(boolean value) {
683
    __isset_bit_vector.set(__UNIT_PRICE_ISSET_ID, value);
684
  }
685
 
686
  public double getUnit_weight() {
687
    return this.unit_weight;
688
  }
689
 
3430 rajveer 690
  public void setUnit_weight(double unit_weight) {
483 rajveer 691
    this.unit_weight = unit_weight;
692
    setUnit_weightIsSet(true);
693
  }
694
 
695
  public void unsetUnit_weight() {
696
    __isset_bit_vector.clear(__UNIT_WEIGHT_ISSET_ID);
697
  }
698
 
3430 rajveer 699
  /** Returns true if field unit_weight is set (has been assigned a value) and false otherwise */
483 rajveer 700
  public boolean isSetUnit_weight() {
701
    return __isset_bit_vector.get(__UNIT_WEIGHT_ISSET_ID);
702
  }
703
 
704
  public void setUnit_weightIsSet(boolean value) {
705
    __isset_bit_vector.set(__UNIT_WEIGHT_ISSET_ID, value);
706
  }
707
 
708
  public double getTotal_price() {
709
    return this.total_price;
710
  }
711
 
3430 rajveer 712
  public void setTotal_price(double total_price) {
483 rajveer 713
    this.total_price = total_price;
714
    setTotal_priceIsSet(true);
715
  }
716
 
717
  public void unsetTotal_price() {
718
    __isset_bit_vector.clear(__TOTAL_PRICE_ISSET_ID);
719
  }
720
 
3430 rajveer 721
  /** Returns true if field total_price is set (has been assigned a value) and false otherwise */
483 rajveer 722
  public boolean isSetTotal_price() {
723
    return __isset_bit_vector.get(__TOTAL_PRICE_ISSET_ID);
724
  }
725
 
726
  public void setTotal_priceIsSet(boolean value) {
727
    __isset_bit_vector.set(__TOTAL_PRICE_ISSET_ID, value);
728
  }
729
 
1022 varun.gupt 730
  public double getTransfer_price() {
731
    return this.transfer_price;
732
  }
733
 
3430 rajveer 734
  public void setTransfer_price(double transfer_price) {
1022 varun.gupt 735
    this.transfer_price = transfer_price;
736
    setTransfer_priceIsSet(true);
737
  }
738
 
739
  public void unsetTransfer_price() {
740
    __isset_bit_vector.clear(__TRANSFER_PRICE_ISSET_ID);
741
  }
742
 
3430 rajveer 743
  /** Returns true if field transfer_price is set (has been assigned a value) and false otherwise */
1022 varun.gupt 744
  public boolean isSetTransfer_price() {
745
    return __isset_bit_vector.get(__TRANSFER_PRICE_ISSET_ID);
746
  }
747
 
748
  public void setTransfer_priceIsSet(boolean value) {
749
    __isset_bit_vector.set(__TRANSFER_PRICE_ISSET_ID, value);
750
  }
751
 
483 rajveer 752
  public double getTotal_weight() {
753
    return this.total_weight;
754
  }
755
 
3430 rajveer 756
  public void setTotal_weight(double total_weight) {
483 rajveer 757
    this.total_weight = total_weight;
758
    setTotal_weightIsSet(true);
759
  }
760
 
761
  public void unsetTotal_weight() {
762
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
763
  }
764
 
3430 rajveer 765
  /** Returns true if field total_weight is set (has been assigned a value) and false otherwise */
483 rajveer 766
  public boolean isSetTotal_weight() {
767
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
768
  }
769
 
770
  public void setTotal_weightIsSet(boolean value) {
771
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
772
  }
773
 
4658 mandeep.dh 774
  public String getSerial_number() {
775
    return this.serial_number;
2779 chandransh 776
  }
777
 
4658 mandeep.dh 778
  public void setSerial_number(String serial_number) {
779
    this.serial_number = serial_number;
2779 chandransh 780
  }
781
 
4658 mandeep.dh 782
  public void unsetSerial_number() {
783
    this.serial_number = null;
2779 chandransh 784
  }
785
 
4658 mandeep.dh 786
  /** Returns true if field serial_number is set (has been assigned a value) and false otherwise */
787
  public boolean isSetSerial_number() {
788
    return this.serial_number != null;
2779 chandransh 789
  }
790
 
4658 mandeep.dh 791
  public void setSerial_numberIsSet(boolean value) {
792
    if (!value) {
793
      this.serial_number = null;
794
    }
2779 chandransh 795
  }
796
 
797
  public String getItem_number() {
798
    return this.item_number;
799
  }
800
 
3430 rajveer 801
  public void setItem_number(String item_number) {
2779 chandransh 802
    this.item_number = item_number;
803
  }
804
 
805
  public void unsetItem_number() {
806
    this.item_number = null;
807
  }
808
 
3430 rajveer 809
  /** Returns true if field item_number is set (has been assigned a value) and false otherwise */
2779 chandransh 810
  public boolean isSetItem_number() {
811
    return this.item_number != null;
812
  }
813
 
814
  public void setItem_numberIsSet(boolean value) {
815
    if (!value) {
816
      this.item_number = null;
817
    }
818
  }
819
 
4172 rajveer 820
  public String getDealText() {
821
    return this.dealText;
822
  }
823
 
824
  public void setDealText(String dealText) {
825
    this.dealText = dealText;
826
  }
827
 
828
  public void unsetDealText() {
829
    this.dealText = null;
830
  }
831
 
832
  /** Returns true if field dealText is set (has been assigned a value) and false otherwise */
833
  public boolean isSetDealText() {
834
    return this.dealText != null;
835
  }
836
 
837
  public void setDealTextIsSet(boolean value) {
838
    if (!value) {
839
      this.dealText = null;
840
    }
841
  }
842
 
4295 varun.gupt 843
  public long getWarrantry_expiry_timestamp() {
844
    return this.warrantry_expiry_timestamp;
845
  }
846
 
847
  public void setWarrantry_expiry_timestamp(long warrantry_expiry_timestamp) {
848
    this.warrantry_expiry_timestamp = warrantry_expiry_timestamp;
849
    setWarrantry_expiry_timestampIsSet(true);
850
  }
851
 
852
  public void unsetWarrantry_expiry_timestamp() {
853
    __isset_bit_vector.clear(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID);
854
  }
855
 
856
  /** Returns true if field warrantry_expiry_timestamp is set (has been assigned a value) and false otherwise */
857
  public boolean isSetWarrantry_expiry_timestamp() {
858
    return __isset_bit_vector.get(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID);
859
  }
860
 
861
  public void setWarrantry_expiry_timestampIsSet(boolean value) {
862
    __isset_bit_vector.set(__WARRANTRY_EXPIRY_TIMESTAMP_ISSET_ID, value);
863
  }
864
 
6039 amit.gupta 865
  public double getVatRate() {
866
    return this.vatRate;
867
  }
868
 
869
  public void setVatRate(double vatRate) {
870
    this.vatRate = vatRate;
871
    setVatRateIsSet(true);
872
  }
873
 
874
  public void unsetVatRate() {
875
    __isset_bit_vector.clear(__VATRATE_ISSET_ID);
876
  }
877
 
878
  /** Returns true if field vatRate is set (has been assigned a value) and false otherwise */
879
  public boolean isSetVatRate() {
880
    return __isset_bit_vector.get(__VATRATE_ISSET_ID);
881
  }
882
 
883
  public void setVatRateIsSet(boolean value) {
884
    __isset_bit_vector.set(__VATRATE_ISSET_ID, value);
885
  }
886
 
7672 rajveer 887
  public double getNlc() {
888
    return this.nlc;
889
  }
890
 
891
  public void setNlc(double nlc) {
892
    this.nlc = nlc;
893
    setNlcIsSet(true);
894
  }
895
 
896
  public void unsetNlc() {
897
    __isset_bit_vector.clear(__NLC_ISSET_ID);
898
  }
899
 
900
  /** Returns true if field nlc is set (has been assigned a value) and false otherwise */
901
  public boolean isSetNlc() {
902
    return __isset_bit_vector.get(__NLC_ISSET_ID);
903
  }
904
 
905
  public void setNlcIsSet(boolean value) {
906
    __isset_bit_vector.set(__NLC_ISSET_ID, value);
907
  }
908
 
19421 manish.sha 909
  public double getLogisticsCost() {
910
    return this.logisticsCost;
911
  }
912
 
913
  public void setLogisticsCost(double logisticsCost) {
914
    this.logisticsCost = logisticsCost;
915
    setLogisticsCostIsSet(true);
916
  }
917
 
918
  public void unsetLogisticsCost() {
919
    __isset_bit_vector.clear(__LOGISTICSCOST_ISSET_ID);
920
  }
921
 
922
  /** Returns true if field logisticsCost is set (has been assigned a value) and false otherwise */
923
  public boolean isSetLogisticsCost() {
924
    return __isset_bit_vector.get(__LOGISTICSCOST_ISSET_ID);
925
  }
926
 
927
  public void setLogisticsCostIsSet(boolean value) {
928
    __isset_bit_vector.set(__LOGISTICSCOST_ISSET_ID, value);
929
  }
930
 
931
  public double getCodCollectionCharges() {
932
    return this.codCollectionCharges;
933
  }
934
 
935
  public void setCodCollectionCharges(double codCollectionCharges) {
936
    this.codCollectionCharges = codCollectionCharges;
937
    setCodCollectionChargesIsSet(true);
938
  }
939
 
940
  public void unsetCodCollectionCharges() {
941
    __isset_bit_vector.clear(__CODCOLLECTIONCHARGES_ISSET_ID);
942
  }
943
 
944
  /** Returns true if field codCollectionCharges is set (has been assigned a value) and false otherwise */
945
  public boolean isSetCodCollectionCharges() {
946
    return __isset_bit_vector.get(__CODCOLLECTIONCHARGES_ISSET_ID);
947
  }
948
 
949
  public void setCodCollectionChargesIsSet(boolean value) {
950
    __isset_bit_vector.set(__CODCOLLECTIONCHARGES_ISSET_ID, value);
951
  }
952
 
19691 manish.sha 953
  public double getReturnQty() {
954
    return this.returnQty;
955
  }
956
 
957
  public void setReturnQty(double returnQty) {
958
    this.returnQty = returnQty;
959
    setReturnQtyIsSet(true);
960
  }
961
 
962
  public void unsetReturnQty() {
963
    __isset_bit_vector.clear(__RETURNQTY_ISSET_ID);
964
  }
965
 
966
  /** Returns true if field returnQty is set (has been assigned a value) and false otherwise */
967
  public boolean isSetReturnQty() {
968
    return __isset_bit_vector.get(__RETURNQTY_ISSET_ID);
969
  }
970
 
971
  public void setReturnQtyIsSet(boolean value) {
972
    __isset_bit_vector.set(__RETURNQTY_ISSET_ID, value);
973
  }
974
 
68 ashish 975
  public void setFieldValue(_Fields field, Object value) {
976
    switch (field) {
483 rajveer 977
    case ID:
68 ashish 978
      if (value == null) {
483 rajveer 979
        unsetId();
68 ashish 980
      } else {
483 rajveer 981
        setId((Long)value);
68 ashish 982
      }
983
      break;
984
 
697 chandransh 985
    case ITEM_ID:
68 ashish 986
      if (value == null) {
697 chandransh 987
        unsetItem_id();
68 ashish 988
      } else {
697 chandransh 989
        setItem_id((Long)value);
68 ashish 990
      }
991
      break;
992
 
957 chandransh 993
    case PRODUCT_GROUP:
994
      if (value == null) {
995
        unsetProductGroup();
996
      } else {
997
        setProductGroup((String)value);
998
      }
999
      break;
1000
 
483 rajveer 1001
    case BRAND:
68 ashish 1002
      if (value == null) {
483 rajveer 1003
        unsetBrand();
68 ashish 1004
      } else {
483 rajveer 1005
        setBrand((String)value);
68 ashish 1006
      }
1007
      break;
1008
 
483 rajveer 1009
    case MODEL_NUMBER:
68 ashish 1010
      if (value == null) {
483 rajveer 1011
        unsetModel_number();
68 ashish 1012
      } else {
483 rajveer 1013
        setModel_number((String)value);
68 ashish 1014
      }
1015
      break;
1016
 
957 chandransh 1017
    case COLOR:
1018
      if (value == null) {
1019
        unsetColor();
1020
      } else {
1021
        setColor((String)value);
1022
      }
1023
      break;
1024
 
483 rajveer 1025
    case MODEL_NAME:
1026
      if (value == null) {
1027
        unsetModel_name();
1028
      } else {
1029
        setModel_name((String)value);
1030
      }
1031
      break;
1032
 
1033
    case EXTRA_INFO:
1034
      if (value == null) {
1035
        unsetExtra_info();
1036
      } else {
1037
        setExtra_info((String)value);
1038
      }
1039
      break;
1040
 
1041
    case QUANTITY:
1042
      if (value == null) {
1043
        unsetQuantity();
1044
      } else {
1045
        setQuantity((Double)value);
1046
      }
1047
      break;
1048
 
12280 amit.gupta 1049
    case MRP:
1050
      if (value == null) {
1051
        unsetMrp();
1052
      } else {
1053
        setMrp((Double)value);
1054
      }
1055
      break;
1056
 
483 rajveer 1057
    case UNIT_PRICE:
1058
      if (value == null) {
1059
        unsetUnit_price();
1060
      } else {
1061
        setUnit_price((Double)value);
1062
      }
1063
      break;
1064
 
1065
    case UNIT_WEIGHT:
1066
      if (value == null) {
1067
        unsetUnit_weight();
1068
      } else {
1069
        setUnit_weight((Double)value);
1070
      }
1071
      break;
1072
 
1073
    case TOTAL_PRICE:
1074
      if (value == null) {
1075
        unsetTotal_price();
1076
      } else {
1077
        setTotal_price((Double)value);
1078
      }
1079
      break;
1080
 
1022 varun.gupt 1081
    case TRANSFER_PRICE:
1082
      if (value == null) {
1083
        unsetTransfer_price();
1084
      } else {
1085
        setTransfer_price((Double)value);
1086
      }
1087
      break;
1088
 
483 rajveer 1089
    case TOTAL_WEIGHT:
1090
      if (value == null) {
1091
        unsetTotal_weight();
1092
      } else {
1093
        setTotal_weight((Double)value);
1094
      }
1095
      break;
1096
 
4658 mandeep.dh 1097
    case SERIAL_NUMBER:
2779 chandransh 1098
      if (value == null) {
4658 mandeep.dh 1099
        unsetSerial_number();
2779 chandransh 1100
      } else {
4658 mandeep.dh 1101
        setSerial_number((String)value);
2779 chandransh 1102
      }
1103
      break;
1104
 
1105
    case ITEM_NUMBER:
1106
      if (value == null) {
1107
        unsetItem_number();
1108
      } else {
1109
        setItem_number((String)value);
1110
      }
1111
      break;
1112
 
4172 rajveer 1113
    case DEAL_TEXT:
1114
      if (value == null) {
1115
        unsetDealText();
1116
      } else {
1117
        setDealText((String)value);
1118
      }
1119
      break;
1120
 
4295 varun.gupt 1121
    case WARRANTRY_EXPIRY_TIMESTAMP:
1122
      if (value == null) {
1123
        unsetWarrantry_expiry_timestamp();
1124
      } else {
1125
        setWarrantry_expiry_timestamp((Long)value);
1126
      }
1127
      break;
1128
 
6039 amit.gupta 1129
    case VAT_RATE:
1130
      if (value == null) {
1131
        unsetVatRate();
1132
      } else {
1133
        setVatRate((Double)value);
1134
      }
1135
      break;
1136
 
7672 rajveer 1137
    case NLC:
1138
      if (value == null) {
1139
        unsetNlc();
1140
      } else {
1141
        setNlc((Double)value);
1142
      }
1143
      break;
1144
 
19421 manish.sha 1145
    case LOGISTICS_COST:
1146
      if (value == null) {
1147
        unsetLogisticsCost();
1148
      } else {
1149
        setLogisticsCost((Double)value);
1150
      }
1151
      break;
1152
 
1153
    case COD_COLLECTION_CHARGES:
1154
      if (value == null) {
1155
        unsetCodCollectionCharges();
1156
      } else {
1157
        setCodCollectionCharges((Double)value);
1158
      }
1159
      break;
1160
 
19691 manish.sha 1161
    case RETURN_QTY:
1162
      if (value == null) {
1163
        unsetReturnQty();
1164
      } else {
1165
        setReturnQty((Double)value);
1166
      }
1167
      break;
1168
 
68 ashish 1169
    }
1170
  }
1171
 
1172
  public Object getFieldValue(_Fields field) {
1173
    switch (field) {
1174
    case ID:
3430 rajveer 1175
      return Long.valueOf(getId());
68 ashish 1176
 
697 chandransh 1177
    case ITEM_ID:
3430 rajveer 1178
      return Long.valueOf(getItem_id());
68 ashish 1179
 
957 chandransh 1180
    case PRODUCT_GROUP:
1181
      return getProductGroup();
1182
 
483 rajveer 1183
    case BRAND:
1184
      return getBrand();
68 ashish 1185
 
483 rajveer 1186
    case MODEL_NUMBER:
1187
      return getModel_number();
1188
 
957 chandransh 1189
    case COLOR:
1190
      return getColor();
1191
 
483 rajveer 1192
    case MODEL_NAME:
1193
      return getModel_name();
1194
 
1195
    case EXTRA_INFO:
1196
      return getExtra_info();
1197
 
1198
    case QUANTITY:
3430 rajveer 1199
      return Double.valueOf(getQuantity());
483 rajveer 1200
 
12280 amit.gupta 1201
    case MRP:
1202
      return Double.valueOf(getMrp());
1203
 
483 rajveer 1204
    case UNIT_PRICE:
3430 rajveer 1205
      return Double.valueOf(getUnit_price());
483 rajveer 1206
 
1207
    case UNIT_WEIGHT:
3430 rajveer 1208
      return Double.valueOf(getUnit_weight());
483 rajveer 1209
 
1210
    case TOTAL_PRICE:
3430 rajveer 1211
      return Double.valueOf(getTotal_price());
483 rajveer 1212
 
1022 varun.gupt 1213
    case TRANSFER_PRICE:
3430 rajveer 1214
      return Double.valueOf(getTransfer_price());
1022 varun.gupt 1215
 
483 rajveer 1216
    case TOTAL_WEIGHT:
3430 rajveer 1217
      return Double.valueOf(getTotal_weight());
483 rajveer 1218
 
4658 mandeep.dh 1219
    case SERIAL_NUMBER:
1220
      return getSerial_number();
2779 chandransh 1221
 
1222
    case ITEM_NUMBER:
1223
      return getItem_number();
1224
 
4172 rajveer 1225
    case DEAL_TEXT:
1226
      return getDealText();
1227
 
4295 varun.gupt 1228
    case WARRANTRY_EXPIRY_TIMESTAMP:
1229
      return Long.valueOf(getWarrantry_expiry_timestamp());
1230
 
6039 amit.gupta 1231
    case VAT_RATE:
1232
      return Double.valueOf(getVatRate());
1233
 
7672 rajveer 1234
    case NLC:
1235
      return Double.valueOf(getNlc());
1236
 
19421 manish.sha 1237
    case LOGISTICS_COST:
1238
      return Double.valueOf(getLogisticsCost());
1239
 
1240
    case COD_COLLECTION_CHARGES:
1241
      return Double.valueOf(getCodCollectionCharges());
1242
 
19691 manish.sha 1243
    case RETURN_QTY:
1244
      return Double.valueOf(getReturnQty());
1245
 
68 ashish 1246
    }
1247
    throw new IllegalStateException();
1248
  }
1249
 
3430 rajveer 1250
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1251
  public boolean isSet(_Fields field) {
1252
    if (field == null) {
1253
      throw new IllegalArgumentException();
1254
    }
68 ashish 1255
 
1256
    switch (field) {
1257
    case ID:
1258
      return isSetId();
697 chandransh 1259
    case ITEM_ID:
1260
      return isSetItem_id();
957 chandransh 1261
    case PRODUCT_GROUP:
1262
      return isSetProductGroup();
483 rajveer 1263
    case BRAND:
1264
      return isSetBrand();
1265
    case MODEL_NUMBER:
1266
      return isSetModel_number();
957 chandransh 1267
    case COLOR:
1268
      return isSetColor();
483 rajveer 1269
    case MODEL_NAME:
1270
      return isSetModel_name();
1271
    case EXTRA_INFO:
1272
      return isSetExtra_info();
1273
    case QUANTITY:
1274
      return isSetQuantity();
12280 amit.gupta 1275
    case MRP:
1276
      return isSetMrp();
483 rajveer 1277
    case UNIT_PRICE:
1278
      return isSetUnit_price();
1279
    case UNIT_WEIGHT:
1280
      return isSetUnit_weight();
1281
    case TOTAL_PRICE:
1282
      return isSetTotal_price();
1022 varun.gupt 1283
    case TRANSFER_PRICE:
1284
      return isSetTransfer_price();
483 rajveer 1285
    case TOTAL_WEIGHT:
1286
      return isSetTotal_weight();
4658 mandeep.dh 1287
    case SERIAL_NUMBER:
1288
      return isSetSerial_number();
2779 chandransh 1289
    case ITEM_NUMBER:
1290
      return isSetItem_number();
4172 rajveer 1291
    case DEAL_TEXT:
1292
      return isSetDealText();
4295 varun.gupt 1293
    case WARRANTRY_EXPIRY_TIMESTAMP:
1294
      return isSetWarrantry_expiry_timestamp();
6039 amit.gupta 1295
    case VAT_RATE:
1296
      return isSetVatRate();
7672 rajveer 1297
    case NLC:
1298
      return isSetNlc();
19421 manish.sha 1299
    case LOGISTICS_COST:
1300
      return isSetLogisticsCost();
1301
    case COD_COLLECTION_CHARGES:
1302
      return isSetCodCollectionCharges();
19691 manish.sha 1303
    case RETURN_QTY:
1304
      return isSetReturnQty();
68 ashish 1305
    }
1306
    throw new IllegalStateException();
1307
  }
1308
 
1309
  @Override
1310
  public boolean equals(Object that) {
1311
    if (that == null)
1312
      return false;
1313
    if (that instanceof LineItem)
1314
      return this.equals((LineItem)that);
1315
    return false;
1316
  }
1317
 
1318
  public boolean equals(LineItem that) {
1319
    if (that == null)
1320
      return false;
1321
 
1322
    boolean this_present_id = true;
1323
    boolean that_present_id = true;
1324
    if (this_present_id || that_present_id) {
1325
      if (!(this_present_id && that_present_id))
1326
        return false;
1327
      if (this.id != that.id)
1328
        return false;
1329
    }
1330
 
697 chandransh 1331
    boolean this_present_item_id = true;
1332
    boolean that_present_item_id = true;
1333
    if (this_present_item_id || that_present_item_id) {
1334
      if (!(this_present_item_id && that_present_item_id))
68 ashish 1335
        return false;
697 chandransh 1336
      if (this.item_id != that.item_id)
68 ashish 1337
        return false;
1338
    }
1339
 
957 chandransh 1340
    boolean this_present_productGroup = true && this.isSetProductGroup();
1341
    boolean that_present_productGroup = true && that.isSetProductGroup();
1342
    if (this_present_productGroup || that_present_productGroup) {
1343
      if (!(this_present_productGroup && that_present_productGroup))
1344
        return false;
1345
      if (!this.productGroup.equals(that.productGroup))
1346
        return false;
1347
    }
1348
 
483 rajveer 1349
    boolean this_present_brand = true && this.isSetBrand();
1350
    boolean that_present_brand = true && that.isSetBrand();
1351
    if (this_present_brand || that_present_brand) {
1352
      if (!(this_present_brand && that_present_brand))
68 ashish 1353
        return false;
483 rajveer 1354
      if (!this.brand.equals(that.brand))
68 ashish 1355
        return false;
1356
    }
1357
 
483 rajveer 1358
    boolean this_present_model_number = true && this.isSetModel_number();
1359
    boolean that_present_model_number = true && that.isSetModel_number();
1360
    if (this_present_model_number || that_present_model_number) {
1361
      if (!(this_present_model_number && that_present_model_number))
1362
        return false;
1363
      if (!this.model_number.equals(that.model_number))
1364
        return false;
1365
    }
1366
 
957 chandransh 1367
    boolean this_present_color = true && this.isSetColor();
1368
    boolean that_present_color = true && that.isSetColor();
1369
    if (this_present_color || that_present_color) {
1370
      if (!(this_present_color && that_present_color))
1371
        return false;
1372
      if (!this.color.equals(that.color))
1373
        return false;
1374
    }
1375
 
483 rajveer 1376
    boolean this_present_model_name = true && this.isSetModel_name();
1377
    boolean that_present_model_name = true && that.isSetModel_name();
1378
    if (this_present_model_name || that_present_model_name) {
1379
      if (!(this_present_model_name && that_present_model_name))
1380
        return false;
1381
      if (!this.model_name.equals(that.model_name))
1382
        return false;
1383
    }
1384
 
1385
    boolean this_present_extra_info = true && this.isSetExtra_info();
1386
    boolean that_present_extra_info = true && that.isSetExtra_info();
1387
    if (this_present_extra_info || that_present_extra_info) {
1388
      if (!(this_present_extra_info && that_present_extra_info))
1389
        return false;
1390
      if (!this.extra_info.equals(that.extra_info))
1391
        return false;
1392
    }
1393
 
1394
    boolean this_present_quantity = true;
1395
    boolean that_present_quantity = true;
1396
    if (this_present_quantity || that_present_quantity) {
1397
      if (!(this_present_quantity && that_present_quantity))
1398
        return false;
1399
      if (this.quantity != that.quantity)
1400
        return false;
1401
    }
1402
 
12280 amit.gupta 1403
    boolean this_present_mrp = true;
1404
    boolean that_present_mrp = true;
1405
    if (this_present_mrp || that_present_mrp) {
1406
      if (!(this_present_mrp && that_present_mrp))
1407
        return false;
1408
      if (this.mrp != that.mrp)
1409
        return false;
1410
    }
1411
 
483 rajveer 1412
    boolean this_present_unit_price = true;
1413
    boolean that_present_unit_price = true;
1414
    if (this_present_unit_price || that_present_unit_price) {
1415
      if (!(this_present_unit_price && that_present_unit_price))
1416
        return false;
1417
      if (this.unit_price != that.unit_price)
1418
        return false;
1419
    }
1420
 
1421
    boolean this_present_unit_weight = true;
1422
    boolean that_present_unit_weight = true;
1423
    if (this_present_unit_weight || that_present_unit_weight) {
1424
      if (!(this_present_unit_weight && that_present_unit_weight))
1425
        return false;
1426
      if (this.unit_weight != that.unit_weight)
1427
        return false;
1428
    }
1429
 
1430
    boolean this_present_total_price = true;
1431
    boolean that_present_total_price = true;
1432
    if (this_present_total_price || that_present_total_price) {
1433
      if (!(this_present_total_price && that_present_total_price))
1434
        return false;
1435
      if (this.total_price != that.total_price)
1436
        return false;
1437
    }
1438
 
1022 varun.gupt 1439
    boolean this_present_transfer_price = true;
1440
    boolean that_present_transfer_price = true;
1441
    if (this_present_transfer_price || that_present_transfer_price) {
1442
      if (!(this_present_transfer_price && that_present_transfer_price))
1443
        return false;
1444
      if (this.transfer_price != that.transfer_price)
1445
        return false;
1446
    }
1447
 
483 rajveer 1448
    boolean this_present_total_weight = true;
1449
    boolean that_present_total_weight = true;
1450
    if (this_present_total_weight || that_present_total_weight) {
1451
      if (!(this_present_total_weight && that_present_total_weight))
1452
        return false;
1453
      if (this.total_weight != that.total_weight)
1454
        return false;
1455
    }
1456
 
4658 mandeep.dh 1457
    boolean this_present_serial_number = true && this.isSetSerial_number();
1458
    boolean that_present_serial_number = true && that.isSetSerial_number();
1459
    if (this_present_serial_number || that_present_serial_number) {
1460
      if (!(this_present_serial_number && that_present_serial_number))
2779 chandransh 1461
        return false;
4658 mandeep.dh 1462
      if (!this.serial_number.equals(that.serial_number))
2779 chandransh 1463
        return false;
1464
    }
1465
 
1466
    boolean this_present_item_number = true && this.isSetItem_number();
1467
    boolean that_present_item_number = true && that.isSetItem_number();
1468
    if (this_present_item_number || that_present_item_number) {
1469
      if (!(this_present_item_number && that_present_item_number))
1470
        return false;
1471
      if (!this.item_number.equals(that.item_number))
1472
        return false;
1473
    }
1474
 
4172 rajveer 1475
    boolean this_present_dealText = true && this.isSetDealText();
1476
    boolean that_present_dealText = true && that.isSetDealText();
1477
    if (this_present_dealText || that_present_dealText) {
1478
      if (!(this_present_dealText && that_present_dealText))
1479
        return false;
1480
      if (!this.dealText.equals(that.dealText))
1481
        return false;
1482
    }
1483
 
4295 varun.gupt 1484
    boolean this_present_warrantry_expiry_timestamp = true;
1485
    boolean that_present_warrantry_expiry_timestamp = true;
1486
    if (this_present_warrantry_expiry_timestamp || that_present_warrantry_expiry_timestamp) {
1487
      if (!(this_present_warrantry_expiry_timestamp && that_present_warrantry_expiry_timestamp))
1488
        return false;
1489
      if (this.warrantry_expiry_timestamp != that.warrantry_expiry_timestamp)
1490
        return false;
1491
    }
1492
 
6039 amit.gupta 1493
    boolean this_present_vatRate = true;
1494
    boolean that_present_vatRate = true;
1495
    if (this_present_vatRate || that_present_vatRate) {
1496
      if (!(this_present_vatRate && that_present_vatRate))
1497
        return false;
1498
      if (this.vatRate != that.vatRate)
1499
        return false;
1500
    }
1501
 
7672 rajveer 1502
    boolean this_present_nlc = true;
1503
    boolean that_present_nlc = true;
1504
    if (this_present_nlc || that_present_nlc) {
1505
      if (!(this_present_nlc && that_present_nlc))
1506
        return false;
1507
      if (this.nlc != that.nlc)
1508
        return false;
1509
    }
1510
 
19421 manish.sha 1511
    boolean this_present_logisticsCost = true;
1512
    boolean that_present_logisticsCost = true;
1513
    if (this_present_logisticsCost || that_present_logisticsCost) {
1514
      if (!(this_present_logisticsCost && that_present_logisticsCost))
1515
        return false;
1516
      if (this.logisticsCost != that.logisticsCost)
1517
        return false;
1518
    }
1519
 
1520
    boolean this_present_codCollectionCharges = true;
1521
    boolean that_present_codCollectionCharges = true;
1522
    if (this_present_codCollectionCharges || that_present_codCollectionCharges) {
1523
      if (!(this_present_codCollectionCharges && that_present_codCollectionCharges))
1524
        return false;
1525
      if (this.codCollectionCharges != that.codCollectionCharges)
1526
        return false;
1527
    }
1528
 
19691 manish.sha 1529
    boolean this_present_returnQty = true;
1530
    boolean that_present_returnQty = true;
1531
    if (this_present_returnQty || that_present_returnQty) {
1532
      if (!(this_present_returnQty && that_present_returnQty))
1533
        return false;
1534
      if (this.returnQty != that.returnQty)
1535
        return false;
1536
    }
1537
 
68 ashish 1538
    return true;
1539
  }
1540
 
1541
  @Override
1542
  public int hashCode() {
1543
    return 0;
1544
  }
1545
 
483 rajveer 1546
  public int compareTo(LineItem other) {
1547
    if (!getClass().equals(other.getClass())) {
1548
      return getClass().getName().compareTo(other.getClass().getName());
1549
    }
1550
 
1551
    int lastComparison = 0;
1552
    LineItem typedOther = (LineItem)other;
1553
 
3430 rajveer 1554
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
483 rajveer 1555
    if (lastComparison != 0) {
1556
      return lastComparison;
1557
    }
3430 rajveer 1558
    if (isSetId()) {
1559
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1560
      if (lastComparison != 0) {
1561
        return lastComparison;
1562
      }
483 rajveer 1563
    }
3430 rajveer 1564
    lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
483 rajveer 1565
    if (lastComparison != 0) {
1566
      return lastComparison;
1567
    }
3430 rajveer 1568
    if (isSetItem_id()) {
1569
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
1570
      if (lastComparison != 0) {
1571
        return lastComparison;
1572
      }
483 rajveer 1573
    }
3430 rajveer 1574
    lastComparison = Boolean.valueOf(isSetProductGroup()).compareTo(typedOther.isSetProductGroup());
957 chandransh 1575
    if (lastComparison != 0) {
1576
      return lastComparison;
1577
    }
3430 rajveer 1578
    if (isSetProductGroup()) {
1579
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productGroup, typedOther.productGroup);
1580
      if (lastComparison != 0) {
1581
        return lastComparison;
1582
      }
957 chandransh 1583
    }
3430 rajveer 1584
    lastComparison = Boolean.valueOf(isSetBrand()).compareTo(typedOther.isSetBrand());
483 rajveer 1585
    if (lastComparison != 0) {
1586
      return lastComparison;
1587
    }
3430 rajveer 1588
    if (isSetBrand()) {
1589
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.brand, typedOther.brand);
1590
      if (lastComparison != 0) {
1591
        return lastComparison;
1592
      }
483 rajveer 1593
    }
3430 rajveer 1594
    lastComparison = Boolean.valueOf(isSetModel_number()).compareTo(typedOther.isSetModel_number());
483 rajveer 1595
    if (lastComparison != 0) {
1596
      return lastComparison;
1597
    }
3430 rajveer 1598
    if (isSetModel_number()) {
1599
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_number, typedOther.model_number);
1600
      if (lastComparison != 0) {
1601
        return lastComparison;
1602
      }
483 rajveer 1603
    }
3430 rajveer 1604
    lastComparison = Boolean.valueOf(isSetColor()).compareTo(typedOther.isSetColor());
957 chandransh 1605
    if (lastComparison != 0) {
1606
      return lastComparison;
1607
    }
3430 rajveer 1608
    if (isSetColor()) {
1609
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.color, typedOther.color);
1610
      if (lastComparison != 0) {
1611
        return lastComparison;
1612
      }
957 chandransh 1613
    }
3430 rajveer 1614
    lastComparison = Boolean.valueOf(isSetModel_name()).compareTo(typedOther.isSetModel_name());
483 rajveer 1615
    if (lastComparison != 0) {
1616
      return lastComparison;
1617
    }
3430 rajveer 1618
    if (isSetModel_name()) {
1619
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.model_name, typedOther.model_name);
1620
      if (lastComparison != 0) {
1621
        return lastComparison;
1622
      }
483 rajveer 1623
    }
3430 rajveer 1624
    lastComparison = Boolean.valueOf(isSetExtra_info()).compareTo(typedOther.isSetExtra_info());
483 rajveer 1625
    if (lastComparison != 0) {
1626
      return lastComparison;
1627
    }
3430 rajveer 1628
    if (isSetExtra_info()) {
1629
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.extra_info, typedOther.extra_info);
1630
      if (lastComparison != 0) {
1631
        return lastComparison;
1632
      }
483 rajveer 1633
    }
3430 rajveer 1634
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
483 rajveer 1635
    if (lastComparison != 0) {
1636
      return lastComparison;
1637
    }
3430 rajveer 1638
    if (isSetQuantity()) {
1639
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
1640
      if (lastComparison != 0) {
1641
        return lastComparison;
1642
      }
483 rajveer 1643
    }
12280 amit.gupta 1644
    lastComparison = Boolean.valueOf(isSetMrp()).compareTo(typedOther.isSetMrp());
1645
    if (lastComparison != 0) {
1646
      return lastComparison;
1647
    }
1648
    if (isSetMrp()) {
1649
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mrp, typedOther.mrp);
1650
      if (lastComparison != 0) {
1651
        return lastComparison;
1652
      }
1653
    }
3430 rajveer 1654
    lastComparison = Boolean.valueOf(isSetUnit_price()).compareTo(typedOther.isSetUnit_price());
483 rajveer 1655
    if (lastComparison != 0) {
1656
      return lastComparison;
1657
    }
3430 rajveer 1658
    if (isSetUnit_price()) {
1659
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_price, typedOther.unit_price);
1660
      if (lastComparison != 0) {
1661
        return lastComparison;
1662
      }
483 rajveer 1663
    }
3430 rajveer 1664
    lastComparison = Boolean.valueOf(isSetUnit_weight()).compareTo(typedOther.isSetUnit_weight());
483 rajveer 1665
    if (lastComparison != 0) {
1666
      return lastComparison;
1667
    }
3430 rajveer 1668
    if (isSetUnit_weight()) {
1669
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unit_weight, typedOther.unit_weight);
1670
      if (lastComparison != 0) {
1671
        return lastComparison;
1672
      }
483 rajveer 1673
    }
3430 rajveer 1674
    lastComparison = Boolean.valueOf(isSetTotal_price()).compareTo(typedOther.isSetTotal_price());
483 rajveer 1675
    if (lastComparison != 0) {
1676
      return lastComparison;
1677
    }
3430 rajveer 1678
    if (isSetTotal_price()) {
1679
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_price, typedOther.total_price);
1680
      if (lastComparison != 0) {
1681
        return lastComparison;
1682
      }
483 rajveer 1683
    }
3430 rajveer 1684
    lastComparison = Boolean.valueOf(isSetTransfer_price()).compareTo(typedOther.isSetTransfer_price());
1022 varun.gupt 1685
    if (lastComparison != 0) {
1686
      return lastComparison;
1687
    }
3430 rajveer 1688
    if (isSetTransfer_price()) {
1689
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transfer_price, typedOther.transfer_price);
1690
      if (lastComparison != 0) {
1691
        return lastComparison;
1692
      }
1022 varun.gupt 1693
    }
3430 rajveer 1694
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(typedOther.isSetTotal_weight());
483 rajveer 1695
    if (lastComparison != 0) {
1696
      return lastComparison;
1697
    }
3430 rajveer 1698
    if (isSetTotal_weight()) {
1699
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
1700
      if (lastComparison != 0) {
1701
        return lastComparison;
1702
      }
483 rajveer 1703
    }
4658 mandeep.dh 1704
    lastComparison = Boolean.valueOf(isSetSerial_number()).compareTo(typedOther.isSetSerial_number());
2779 chandransh 1705
    if (lastComparison != 0) {
1706
      return lastComparison;
1707
    }
4658 mandeep.dh 1708
    if (isSetSerial_number()) {
1709
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serial_number, typedOther.serial_number);
3430 rajveer 1710
      if (lastComparison != 0) {
1711
        return lastComparison;
1712
      }
2779 chandransh 1713
    }
3430 rajveer 1714
    lastComparison = Boolean.valueOf(isSetItem_number()).compareTo(typedOther.isSetItem_number());
2779 chandransh 1715
    if (lastComparison != 0) {
1716
      return lastComparison;
1717
    }
3430 rajveer 1718
    if (isSetItem_number()) {
1719
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_number, typedOther.item_number);
1720
      if (lastComparison != 0) {
1721
        return lastComparison;
1722
      }
2779 chandransh 1723
    }
4172 rajveer 1724
    lastComparison = Boolean.valueOf(isSetDealText()).compareTo(typedOther.isSetDealText());
1725
    if (lastComparison != 0) {
1726
      return lastComparison;
1727
    }
1728
    if (isSetDealText()) {
1729
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealText, typedOther.dealText);
1730
      if (lastComparison != 0) {
1731
        return lastComparison;
1732
      }
1733
    }
4295 varun.gupt 1734
    lastComparison = Boolean.valueOf(isSetWarrantry_expiry_timestamp()).compareTo(typedOther.isSetWarrantry_expiry_timestamp());
1735
    if (lastComparison != 0) {
1736
      return lastComparison;
1737
    }
1738
    if (isSetWarrantry_expiry_timestamp()) {
1739
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warrantry_expiry_timestamp, typedOther.warrantry_expiry_timestamp);
1740
      if (lastComparison != 0) {
1741
        return lastComparison;
1742
      }
1743
    }
6039 amit.gupta 1744
    lastComparison = Boolean.valueOf(isSetVatRate()).compareTo(typedOther.isSetVatRate());
1745
    if (lastComparison != 0) {
1746
      return lastComparison;
1747
    }
1748
    if (isSetVatRate()) {
1749
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vatRate, typedOther.vatRate);
1750
      if (lastComparison != 0) {
1751
        return lastComparison;
1752
      }
1753
    }
7672 rajveer 1754
    lastComparison = Boolean.valueOf(isSetNlc()).compareTo(typedOther.isSetNlc());
1755
    if (lastComparison != 0) {
1756
      return lastComparison;
1757
    }
1758
    if (isSetNlc()) {
1759
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nlc, typedOther.nlc);
1760
      if (lastComparison != 0) {
1761
        return lastComparison;
1762
      }
1763
    }
19421 manish.sha 1764
    lastComparison = Boolean.valueOf(isSetLogisticsCost()).compareTo(typedOther.isSetLogisticsCost());
1765
    if (lastComparison != 0) {
1766
      return lastComparison;
1767
    }
1768
    if (isSetLogisticsCost()) {
1769
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsCost, typedOther.logisticsCost);
1770
      if (lastComparison != 0) {
1771
        return lastComparison;
1772
      }
1773
    }
1774
    lastComparison = Boolean.valueOf(isSetCodCollectionCharges()).compareTo(typedOther.isSetCodCollectionCharges());
1775
    if (lastComparison != 0) {
1776
      return lastComparison;
1777
    }
1778
    if (isSetCodCollectionCharges()) {
1779
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCollectionCharges, typedOther.codCollectionCharges);
1780
      if (lastComparison != 0) {
1781
        return lastComparison;
1782
      }
1783
    }
19691 manish.sha 1784
    lastComparison = Boolean.valueOf(isSetReturnQty()).compareTo(typedOther.isSetReturnQty());
1785
    if (lastComparison != 0) {
1786
      return lastComparison;
1787
    }
1788
    if (isSetReturnQty()) {
1789
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnQty, typedOther.returnQty);
1790
      if (lastComparison != 0) {
1791
        return lastComparison;
1792
      }
1793
    }
483 rajveer 1794
    return 0;
1795
  }
1796
 
3430 rajveer 1797
  public _Fields fieldForId(int fieldId) {
1798
    return _Fields.findByThriftId(fieldId);
1799
  }
1800
 
1801
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1802
    org.apache.thrift.protocol.TField field;
68 ashish 1803
    iprot.readStructBegin();
1804
    while (true)
1805
    {
1806
      field = iprot.readFieldBegin();
3430 rajveer 1807
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
68 ashish 1808
        break;
1809
      }
3430 rajveer 1810
      switch (field.id) {
1811
        case 1: // ID
1812
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1813
            this.id = iprot.readI64();
1814
            setIdIsSet(true);
1815
          } else { 
1816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1817
          }
1818
          break;
1819
        case 2: // ITEM_ID
1820
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1821
            this.item_id = iprot.readI64();
1822
            setItem_idIsSet(true);
1823
          } else { 
1824
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1825
          }
1826
          break;
1827
        case 3: // PRODUCT_GROUP
1828
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1829
            this.productGroup = iprot.readString();
1830
          } else { 
1831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1832
          }
1833
          break;
1834
        case 4: // BRAND
1835
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1836
            this.brand = iprot.readString();
1837
          } else { 
1838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1839
          }
1840
          break;
1841
        case 5: // MODEL_NUMBER
1842
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1843
            this.model_number = iprot.readString();
1844
          } else { 
1845
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1846
          }
1847
          break;
1848
        case 6: // COLOR
1849
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1850
            this.color = iprot.readString();
1851
          } else { 
1852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1853
          }
1854
          break;
1855
        case 7: // MODEL_NAME
1856
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1857
            this.model_name = iprot.readString();
1858
          } else { 
1859
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1860
          }
1861
          break;
1862
        case 8: // EXTRA_INFO
1863
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1864
            this.extra_info = iprot.readString();
1865
          } else { 
1866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1867
          }
1868
          break;
1869
        case 9: // QUANTITY
1870
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1871
            this.quantity = iprot.readDouble();
1872
            setQuantityIsSet(true);
1873
          } else { 
1874
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1875
          }
1876
          break;
12280 amit.gupta 1877
        case 10: // MRP
3430 rajveer 1878
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
12280 amit.gupta 1879
            this.mrp = iprot.readDouble();
1880
            setMrpIsSet(true);
1881
          } else { 
1882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1883
          }
1884
          break;
1885
        case 11: // UNIT_PRICE
1886
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3430 rajveer 1887
            this.unit_price = iprot.readDouble();
1888
            setUnit_priceIsSet(true);
1889
          } else { 
1890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891
          }
1892
          break;
12280 amit.gupta 1893
        case 12: // UNIT_WEIGHT
3430 rajveer 1894
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1895
            this.unit_weight = iprot.readDouble();
1896
            setUnit_weightIsSet(true);
1897
          } else { 
1898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1899
          }
1900
          break;
12280 amit.gupta 1901
        case 13: // TOTAL_PRICE
3430 rajveer 1902
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1903
            this.total_price = iprot.readDouble();
1904
            setTotal_priceIsSet(true);
1905
          } else { 
1906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1907
          }
1908
          break;
12280 amit.gupta 1909
        case 14: // TRANSFER_PRICE
3430 rajveer 1910
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1911
            this.transfer_price = iprot.readDouble();
1912
            setTransfer_priceIsSet(true);
1913
          } else { 
1914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1915
          }
1916
          break;
12280 amit.gupta 1917
        case 15: // TOTAL_WEIGHT
3430 rajveer 1918
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1919
            this.total_weight = iprot.readDouble();
1920
            setTotal_weightIsSet(true);
1921
          } else { 
1922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1923
          }
1924
          break;
12280 amit.gupta 1925
        case 16: // SERIAL_NUMBER
4658 mandeep.dh 1926
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1927
            this.serial_number = iprot.readString();
3430 rajveer 1928
          } else { 
1929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1930
          }
1931
          break;
12280 amit.gupta 1932
        case 17: // ITEM_NUMBER
3430 rajveer 1933
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1934
            this.item_number = iprot.readString();
1935
          } else { 
1936
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1937
          }
1938
          break;
12280 amit.gupta 1939
        case 18: // DEAL_TEXT
4172 rajveer 1940
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1941
            this.dealText = iprot.readString();
1942
          } else { 
1943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1944
          }
1945
          break;
12280 amit.gupta 1946
        case 19: // WARRANTRY_EXPIRY_TIMESTAMP
4295 varun.gupt 1947
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1948
            this.warrantry_expiry_timestamp = iprot.readI64();
1949
            setWarrantry_expiry_timestampIsSet(true);
1950
          } else { 
1951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1952
          }
1953
          break;
12280 amit.gupta 1954
        case 20: // VAT_RATE
6039 amit.gupta 1955
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1956
            this.vatRate = iprot.readDouble();
1957
            setVatRateIsSet(true);
1958
          } else { 
1959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1960
          }
1961
          break;
12280 amit.gupta 1962
        case 21: // NLC
7672 rajveer 1963
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1964
            this.nlc = iprot.readDouble();
1965
            setNlcIsSet(true);
1966
          } else { 
1967
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1968
          }
1969
          break;
19421 manish.sha 1970
        case 22: // LOGISTICS_COST
1971
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1972
            this.logisticsCost = iprot.readDouble();
1973
            setLogisticsCostIsSet(true);
1974
          } else { 
1975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1976
          }
1977
          break;
1978
        case 23: // COD_COLLECTION_CHARGES
1979
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1980
            this.codCollectionCharges = iprot.readDouble();
1981
            setCodCollectionChargesIsSet(true);
1982
          } else { 
1983
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1984
          }
1985
          break;
19691 manish.sha 1986
        case 24: // RETURN_QTY
1987
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1988
            this.returnQty = iprot.readDouble();
1989
            setReturnQtyIsSet(true);
1990
          } else { 
1991
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1992
          }
1993
          break;
3430 rajveer 1994
        default:
1995
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
68 ashish 1996
      }
3430 rajveer 1997
      iprot.readFieldEnd();
68 ashish 1998
    }
1999
    iprot.readStructEnd();
2000
    validate();
2001
  }
2002
 
3430 rajveer 2003
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
68 ashish 2004
    validate();
2005
 
2006
    oprot.writeStructBegin(STRUCT_DESC);
2007
    oprot.writeFieldBegin(ID_FIELD_DESC);
2008
    oprot.writeI64(this.id);
2009
    oprot.writeFieldEnd();
697 chandransh 2010
    oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2011
    oprot.writeI64(this.item_id);
2012
    oprot.writeFieldEnd();
957 chandransh 2013
    if (this.productGroup != null) {
2014
      oprot.writeFieldBegin(PRODUCT_GROUP_FIELD_DESC);
2015
      oprot.writeString(this.productGroup);
2016
      oprot.writeFieldEnd();
2017
    }
483 rajveer 2018
    if (this.brand != null) {
2019
      oprot.writeFieldBegin(BRAND_FIELD_DESC);
2020
      oprot.writeString(this.brand);
2021
      oprot.writeFieldEnd();
2022
    }
2023
    if (this.model_number != null) {
2024
      oprot.writeFieldBegin(MODEL_NUMBER_FIELD_DESC);
2025
      oprot.writeString(this.model_number);
2026
      oprot.writeFieldEnd();
2027
    }
957 chandransh 2028
    if (this.color != null) {
2029
      oprot.writeFieldBegin(COLOR_FIELD_DESC);
2030
      oprot.writeString(this.color);
2031
      oprot.writeFieldEnd();
2032
    }
483 rajveer 2033
    if (this.model_name != null) {
2034
      oprot.writeFieldBegin(MODEL_NAME_FIELD_DESC);
2035
      oprot.writeString(this.model_name);
2036
      oprot.writeFieldEnd();
2037
    }
2038
    if (this.extra_info != null) {
2039
      oprot.writeFieldBegin(EXTRA_INFO_FIELD_DESC);
2040
      oprot.writeString(this.extra_info);
2041
      oprot.writeFieldEnd();
2042
    }
2043
    oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
2044
    oprot.writeDouble(this.quantity);
2045
    oprot.writeFieldEnd();
12280 amit.gupta 2046
    oprot.writeFieldBegin(MRP_FIELD_DESC);
2047
    oprot.writeDouble(this.mrp);
2048
    oprot.writeFieldEnd();
483 rajveer 2049
    oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
2050
    oprot.writeDouble(this.unit_price);
2051
    oprot.writeFieldEnd();
2052
    oprot.writeFieldBegin(UNIT_WEIGHT_FIELD_DESC);
2053
    oprot.writeDouble(this.unit_weight);
2054
    oprot.writeFieldEnd();
2055
    oprot.writeFieldBegin(TOTAL_PRICE_FIELD_DESC);
2056
    oprot.writeDouble(this.total_price);
2057
    oprot.writeFieldEnd();
1022 varun.gupt 2058
    oprot.writeFieldBegin(TRANSFER_PRICE_FIELD_DESC);
2059
    oprot.writeDouble(this.transfer_price);
2060
    oprot.writeFieldEnd();
483 rajveer 2061
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
2062
    oprot.writeDouble(this.total_weight);
2063
    oprot.writeFieldEnd();
4658 mandeep.dh 2064
    if (this.serial_number != null) {
2065
      if (isSetSerial_number()) {
2066
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
2067
        oprot.writeString(this.serial_number);
2068
        oprot.writeFieldEnd();
2069
      }
2779 chandransh 2070
    }
2071
    if (this.item_number != null) {
2072
      if (isSetItem_number()) {
2073
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
2074
        oprot.writeString(this.item_number);
2075
        oprot.writeFieldEnd();
2076
      }
2077
    }
4172 rajveer 2078
    if (this.dealText != null) {
2079
      if (isSetDealText()) {
2080
        oprot.writeFieldBegin(DEAL_TEXT_FIELD_DESC);
2081
        oprot.writeString(this.dealText);
2082
        oprot.writeFieldEnd();
2083
      }
2084
    }
4295 varun.gupt 2085
    oprot.writeFieldBegin(WARRANTRY_EXPIRY_TIMESTAMP_FIELD_DESC);
2086
    oprot.writeI64(this.warrantry_expiry_timestamp);
2087
    oprot.writeFieldEnd();
6039 amit.gupta 2088
    oprot.writeFieldBegin(VAT_RATE_FIELD_DESC);
2089
    oprot.writeDouble(this.vatRate);
2090
    oprot.writeFieldEnd();
7672 rajveer 2091
    oprot.writeFieldBegin(NLC_FIELD_DESC);
2092
    oprot.writeDouble(this.nlc);
2093
    oprot.writeFieldEnd();
19421 manish.sha 2094
    oprot.writeFieldBegin(LOGISTICS_COST_FIELD_DESC);
2095
    oprot.writeDouble(this.logisticsCost);
2096
    oprot.writeFieldEnd();
2097
    oprot.writeFieldBegin(COD_COLLECTION_CHARGES_FIELD_DESC);
2098
    oprot.writeDouble(this.codCollectionCharges);
2099
    oprot.writeFieldEnd();
19691 manish.sha 2100
    oprot.writeFieldBegin(RETURN_QTY_FIELD_DESC);
2101
    oprot.writeDouble(this.returnQty);
2102
    oprot.writeFieldEnd();
68 ashish 2103
    oprot.writeFieldStop();
2104
    oprot.writeStructEnd();
2105
  }
2106
 
2107
  @Override
2108
  public String toString() {
2109
    StringBuilder sb = new StringBuilder("LineItem(");
2110
    boolean first = true;
2111
 
483 rajveer 2112
    sb.append("id:");
2113
    sb.append(this.id);
2114
    first = false;
2115
    if (!first) sb.append(", ");
697 chandransh 2116
    sb.append("item_id:");
2117
    sb.append(this.item_id);
68 ashish 2118
    first = false;
2119
    if (!first) sb.append(", ");
957 chandransh 2120
    sb.append("productGroup:");
2121
    if (this.productGroup == null) {
2122
      sb.append("null");
2123
    } else {
2124
      sb.append(this.productGroup);
2125
    }
2126
    first = false;
2127
    if (!first) sb.append(", ");
483 rajveer 2128
    sb.append("brand:");
2129
    if (this.brand == null) {
2130
      sb.append("null");
2131
    } else {
2132
      sb.append(this.brand);
2133
    }
68 ashish 2134
    first = false;
2135
    if (!first) sb.append(", ");
483 rajveer 2136
    sb.append("model_number:");
2137
    if (this.model_number == null) {
2138
      sb.append("null");
2139
    } else {
2140
      sb.append(this.model_number);
2141
    }
68 ashish 2142
    first = false;
2143
    if (!first) sb.append(", ");
957 chandransh 2144
    sb.append("color:");
2145
    if (this.color == null) {
2146
      sb.append("null");
2147
    } else {
2148
      sb.append(this.color);
2149
    }
2150
    first = false;
2151
    if (!first) sb.append(", ");
483 rajveer 2152
    sb.append("model_name:");
2153
    if (this.model_name == null) {
68 ashish 2154
      sb.append("null");
2155
    } else {
483 rajveer 2156
      sb.append(this.model_name);
68 ashish 2157
    }
2158
    first = false;
483 rajveer 2159
    if (!first) sb.append(", ");
2160
    sb.append("extra_info:");
2161
    if (this.extra_info == null) {
2162
      sb.append("null");
2163
    } else {
2164
      sb.append(this.extra_info);
2165
    }
2166
    first = false;
2167
    if (!first) sb.append(", ");
2168
    sb.append("quantity:");
2169
    sb.append(this.quantity);
2170
    first = false;
2171
    if (!first) sb.append(", ");
12280 amit.gupta 2172
    sb.append("mrp:");
2173
    sb.append(this.mrp);
2174
    first = false;
2175
    if (!first) sb.append(", ");
483 rajveer 2176
    sb.append("unit_price:");
2177
    sb.append(this.unit_price);
2178
    first = false;
2179
    if (!first) sb.append(", ");
2180
    sb.append("unit_weight:");
2181
    sb.append(this.unit_weight);
2182
    first = false;
2183
    if (!first) sb.append(", ");
2184
    sb.append("total_price:");
2185
    sb.append(this.total_price);
2186
    first = false;
2187
    if (!first) sb.append(", ");
1022 varun.gupt 2188
    sb.append("transfer_price:");
2189
    sb.append(this.transfer_price);
2190
    first = false;
2191
    if (!first) sb.append(", ");
483 rajveer 2192
    sb.append("total_weight:");
2193
    sb.append(this.total_weight);
2194
    first = false;
4658 mandeep.dh 2195
    if (isSetSerial_number()) {
2779 chandransh 2196
      if (!first) sb.append(", ");
4658 mandeep.dh 2197
      sb.append("serial_number:");
2198
      if (this.serial_number == null) {
2199
        sb.append("null");
2200
      } else {
2201
        sb.append(this.serial_number);
2202
      }
2779 chandransh 2203
      first = false;
2204
    }
2205
    if (isSetItem_number()) {
2206
      if (!first) sb.append(", ");
2207
      sb.append("item_number:");
2208
      if (this.item_number == null) {
2209
        sb.append("null");
2210
      } else {
2211
        sb.append(this.item_number);
2212
      }
2213
      first = false;
2214
    }
4172 rajveer 2215
    if (isSetDealText()) {
2216
      if (!first) sb.append(", ");
2217
      sb.append("dealText:");
2218
      if (this.dealText == null) {
2219
        sb.append("null");
2220
      } else {
2221
        sb.append(this.dealText);
2222
      }
2223
      first = false;
2224
    }
4295 varun.gupt 2225
    if (!first) sb.append(", ");
2226
    sb.append("warrantry_expiry_timestamp:");
2227
    sb.append(this.warrantry_expiry_timestamp);
2228
    first = false;
6039 amit.gupta 2229
    if (!first) sb.append(", ");
2230
    sb.append("vatRate:");
2231
    sb.append(this.vatRate);
2232
    first = false;
7672 rajveer 2233
    if (!first) sb.append(", ");
2234
    sb.append("nlc:");
2235
    sb.append(this.nlc);
2236
    first = false;
19421 manish.sha 2237
    if (!first) sb.append(", ");
2238
    sb.append("logisticsCost:");
2239
    sb.append(this.logisticsCost);
2240
    first = false;
2241
    if (!first) sb.append(", ");
2242
    sb.append("codCollectionCharges:");
2243
    sb.append(this.codCollectionCharges);
2244
    first = false;
19691 manish.sha 2245
    if (!first) sb.append(", ");
2246
    sb.append("returnQty:");
2247
    sb.append(this.returnQty);
2248
    first = false;
68 ashish 2249
    sb.append(")");
2250
    return sb.toString();
2251
  }
2252
 
3430 rajveer 2253
  public void validate() throws org.apache.thrift.TException {
68 ashish 2254
    // check for required fields
2255
  }
2256
 
3430 rajveer 2257
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2258
    try {
2259
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2260
    } catch (org.apache.thrift.TException te) {
2261
      throw new java.io.IOException(te);
2262
    }
2263
  }
2264
 
2265
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2266
    try {
2267
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
2268
      __isset_bit_vector = new BitSet(1);
2269
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2270
    } catch (org.apache.thrift.TException te) {
2271
      throw new java.io.IOException(te);
2272
    }
2273
  }
2274
 
68 ashish 2275
}
2276