Subversion Repositories SmartDukaan

Rev

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

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