Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2820 chandransh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
2820 chandransh 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;
3430 rajveer 18
import java.nio.ByteBuffer;
2820 chandransh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class WarehouseService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
2820 chandransh 26
 
27
    /**
4496 mandeep.dh 28
     * Retrieves serialized inventory item given a serial number
2832 chandransh 29
     * 
4496 mandeep.dh 30
     * @param serialNumber
2832 chandransh 31
     */
4541 mandeep.dh 32
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException;
2832 chandransh 33
 
34
    /**
5361 mandeep.dh 35
     * Retrieves non-serialized inventory item from a given supplier
2820 chandransh 36
     * 
5530 mandeep.dh 37
     * @param itemNumber
4496 mandeep.dh 38
     * @param itemId
5530 mandeep.dh 39
     * @param fulfilmentWarehouseId
2820 chandransh 40
     */
5530 mandeep.dh 41
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
2820 chandransh 42
 
43
    /**
4496 mandeep.dh 44
     * Scan non-serialized items.
2820 chandransh 45
     * 
5361 mandeep.dh 46
     * @param inventoryItem
2820 chandransh 47
     * @param type
4496 mandeep.dh 48
     * @param quantity
5361 mandeep.dh 49
     * @param billingWarehouseId
7410 amar.kumar 50
     * @param transferLotId
2820 chandransh 51
     */
7410 amar.kumar 52
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
2820 chandransh 53
 
4496 mandeep.dh 54
    /**
55
     * Scan serialized items linked with an order. Returns its price.
56
     * 
4555 mandeep.dh 57
     * @param serialNumber
4496 mandeep.dh 58
     * @param type
59
     * @param orderId
5110 mandeep.dh 60
     * @param fulfilmentWarehouseId
61
     * @param quantity
62
     * @param billingWarehouseId
4496 mandeep.dh 63
     */
5110 mandeep.dh 64
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
4496 mandeep.dh 65
 
66
    /**
67
     * Scan non-serialized items linked with an order.
68
     * 
5361 mandeep.dh 69
     * @param inventoryItem
4496 mandeep.dh 70
     * @param type
71
     * @param quantity
72
     * @param orderId
5110 mandeep.dh 73
     * @param fulfilmentWarehouseId
5361 mandeep.dh 74
     * @param billingWarehouseId
4496 mandeep.dh 75
     */
5361 mandeep.dh 76
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
4496 mandeep.dh 77
 
78
    /**
79
     * Created item number to item id mapping
80
     * 
81
     * @param itemNumber
82
     * @param itemId
83
     */
84
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException;
85
 
4622 amit.gupta 86
    /**
87
     * Get itemNumber mappings for itemId
88
     * 
89
     * @param itemId
90
     */
91
    public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException;
92
 
5110 mandeep.dh 93
    /**
94
     * Gets item ids for a given item number
95
     * 
96
     * @param itemNumber
97
     */
98
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException;
99
 
5185 mandeep.dh 100
    /**
101
     * Retrieves all inventory items given a last scan type
102
     * 
103
     * @param lastScanType
104
     */
105
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException;
106
 
107
    /**
108
     * Retrieves inventory item given a inventoryItem id
109
     * 
110
     * @param inventoryItemId
111
     */
112
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException;
113
 
5372 mandeep.dh 114
    /**
115
     * Returns the purchase scans grouped by items for Purchase register reconciliation
116
     * 
117
     * @param startDate
118
     * @param endDate
119
     */
120
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException;
121
 
5496 mandeep.dh 122
    /**
7210 amar.kumar 123
     * Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation
124
     * 
125
     * @param startDate
126
     * @param endDate
127
     */
128
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException;
129
 
130
    /**
5496 mandeep.dh 131
     * Returns the invoices and the count of scans against on a given day.
132
     * 
133
     * @param date
134
     */
135
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException;
136
 
5620 mandeep.dh 137
    /**
138
     * Returns inventory item for a given order
139
     * 
140
     * @param orderId
141
     */
142
    public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
143
 
5711 mandeep.dh 144
    /**
145
     * Fetches the stock inventory age week-wise
146
     */
147
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException;
148
 
6322 amar.kumar 149
    /**
150
     * Fetches the scanRecords for a given item for a given time interval
151
     * 
152
     * @param itemId
153
     * @param fromDate
154
     * @param toDate
155
     */
156
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException;
157
 
158
    /**
159
     * Fetches the scanRecords for a given serialNumber for a given time interval
160
     * 
161
     * @param serialNumber
162
     */
7410 amar.kumar 163
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException;
6322 amar.kumar 164
 
6467 amar.kumar 165
    /**
6548 amar.kumar 166
     * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6467 amar.kumar 167
     * 
168
     * @param saleReturnItems
169
     * @param vendorId
170
     */
171
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
172
 
6548 amar.kumar 173
    /**
174
     * Inserts scans for lost Items and updates lastScanType in InventoryItems
175
     * 
176
     * @param lostItems
177
     * @param vendorId
178
     */
179
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException;
180
 
181
    /**
182
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
183
     */
184
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException;
185
 
6630 amar.kumar 186
    /**
187
     * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
188
     */
189
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException;
190
 
6762 amar.kumar 191
    /**
192
     * Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
193
     * 
194
     * @param date
195
     */
196
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
197
 
198
    /**
199
     * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
200
     * 
201
     * @param date
202
     */
203
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException;
204
 
205
    /**
6880 amar.kumar 206
     * Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 207
     * 
208
     * @param itemId
209
     * @param serialNumber
210
     * @param itemNumber
211
     * @param invoiceNumber
212
     * @param warehouseId
213
     * @param unitPrice
214
     * @param orderId
215
     */
216
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException;
217
 
218
    /**
6880 amar.kumar 219
     * Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 220
     * 
221
     * @param orderId
222
     * @param unitPrice
223
     */
7410 amar.kumar 224
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException;
6762 amar.kumar 225
 
6880 amar.kumar 226
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
227
 
228
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
229
 
7216 amar.kumar 230
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
231
 
232
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException;
233
 
7190 amar.kumar 234
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
235
 
7199 amar.kumar 236
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException;
237
 
7410 amar.kumar 238
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException;
239
 
240
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException;
241
 
242
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
243
 
244
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException;
245
 
246
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException;
247
 
248
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException;
249
 
250
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException;
251
 
252
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException;
253
 
254
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException;
255
 
256
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException;
257
 
2820 chandransh 258
  }
259
 
3430 rajveer 260
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
261
 
4496 mandeep.dh 262
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 263
 
5530 mandeep.dh 264
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 265
 
7410 amar.kumar 266
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scan_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 267
 
5110 mandeep.dh 268
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException;
4496 mandeep.dh 269
 
5361 mandeep.dh 270
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOrder_call> resultHandler) throws org.apache.thrift.TException;
4496 mandeep.dh 271
 
272
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException;
273
 
4622 amit.gupta 274
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemNumbers_call> resultHandler) throws org.apache.thrift.TException;
275
 
5110 mandeep.dh 276
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemIds_call> resultHandler) throws org.apache.thrift.TException;
277
 
5185 mandeep.dh 278
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException;
279
 
280
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException;
281
 
5372 mandeep.dh 282
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException;
283
 
7210 amar.kumar 284
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException;
285
 
5496 mandeep.dh 286
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException;
287
 
5620 mandeep.dh 288
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException;
289
 
5711 mandeep.dh 290
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryAge_call> resultHandler) throws org.apache.thrift.TException;
291
 
6322 amar.kumar 292
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException;
293
 
7410 amar.kumar 294
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException;
6322 amar.kumar 295
 
6467 amar.kumar 296
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException;
297
 
6548 amar.kumar 298
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForLostItem_call> resultHandler) throws org.apache.thrift.TException;
299
 
300
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
301
 
6630 amar.kumar 302
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
303
 
6762 amar.kumar 304
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
305
 
306
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
307
 
308
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException;
309
 
310
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException;
311
 
6880 amar.kumar 312
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
313
 
314
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
315
 
7216 amar.kumar 316
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
317
 
318
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException;
319
 
7190 amar.kumar 320
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanfreebie_call> resultHandler) throws org.apache.thrift.TException;
321
 
7199 amar.kumar 322
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reshipfreebie_call> resultHandler) throws org.apache.thrift.TException;
323
 
7410 amar.kumar 324
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException;
325
 
326
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransferLot_call> resultHandler) throws org.apache.thrift.TException;
327
 
328
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLot_call> resultHandler) throws org.apache.thrift.TException;
329
 
330
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException;
331
 
332
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException;
333
 
334
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException;
335
 
336
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException;
337
 
338
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException;
339
 
340
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException;
341
 
342
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.scanForTransfer_call> resultHandler) throws org.apache.thrift.TException;
343
 
3430 rajveer 344
  }
345
 
3374 rajveer 346
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 347
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
348
      public Factory() {}
349
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
350
        return new Client(prot);
351
      }
352
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
353
        return new Client(iprot, oprot);
354
      }
355
    }
356
 
357
    public Client(org.apache.thrift.protocol.TProtocol prot)
2820 chandransh 358
    {
3430 rajveer 359
      super(prot, prot);
2820 chandransh 360
    }
361
 
3430 rajveer 362
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 363
      super(iprot, oprot);
2820 chandransh 364
    }
365
 
4541 mandeep.dh 366
    public InventoryItem getInventoryItem(String serialNumber) throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 367
    {
4496 mandeep.dh 368
      send_getInventoryItem(serialNumber);
369
      return recv_getInventoryItem();
2832 chandransh 370
    }
371
 
4496 mandeep.dh 372
    public void send_getInventoryItem(String serialNumber) throws org.apache.thrift.TException
2832 chandransh 373
    {
4496 mandeep.dh 374
      getInventoryItem_args args = new getInventoryItem_args();
375
      args.setSerialNumber(serialNumber);
376
      sendBase("getInventoryItem", args);
2832 chandransh 377
    }
378
 
4541 mandeep.dh 379
    public InventoryItem recv_getInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
2832 chandransh 380
    {
4496 mandeep.dh 381
      getInventoryItem_result result = new getInventoryItem_result();
382
      receiveBase(result, "getInventoryItem");
2832 chandransh 383
      if (result.isSetSuccess()) {
384
        return result.success;
385
      }
4541 mandeep.dh 386
      if (result.wex != null) {
387
        throw result.wex;
388
      }
4496 mandeep.dh 389
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
390
    }
391
 
5530 mandeep.dh 392
    public InventoryItem getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 393
    {
5530 mandeep.dh 394
      send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId);
5361 mandeep.dh 395
      return recv_getNonSeralizedInventoryItem();
4496 mandeep.dh 396
    }
397
 
5530 mandeep.dh 398
    public void send_getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 399
    {
5361 mandeep.dh 400
      getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 401
      args.setItemNumber(itemNumber);
4496 mandeep.dh 402
      args.setItemId(itemId);
5530 mandeep.dh 403
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 404
      sendBase("getNonSeralizedInventoryItem", args);
4496 mandeep.dh 405
    }
406
 
5361 mandeep.dh 407
    public InventoryItem recv_getNonSeralizedInventoryItem() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 408
    {
5361 mandeep.dh 409
      getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
410
      receiveBase(result, "getNonSeralizedInventoryItem");
4496 mandeep.dh 411
      if (result.isSetSuccess()) {
412
        return result.success;
2832 chandransh 413
      }
5361 mandeep.dh 414
      if (result.wex != null) {
415
        throw result.wex;
2820 chandransh 416
      }
5361 mandeep.dh 417
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
4496 mandeep.dh 418
    }
419
 
7410 amar.kumar 420
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 421
    {
7410 amar.kumar 422
      send_scan(inventoryItem, type, quantity, billingWarehouseId, transferLotId);
4496 mandeep.dh 423
      recv_scan();
3383 chandransh 424
    }
425
 
7410 amar.kumar 426
    public void send_scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId) throws org.apache.thrift.TException
3383 chandransh 427
    {
4496 mandeep.dh 428
      scan_args args = new scan_args();
5361 mandeep.dh 429
      args.setInventoryItem(inventoryItem);
4496 mandeep.dh 430
      args.setType(type);
431
      args.setQuantity(quantity);
5361 mandeep.dh 432
      args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 433
      args.setTransferLotId(transferLotId);
4496 mandeep.dh 434
      sendBase("scan", args);
3383 chandransh 435
    }
436
 
4496 mandeep.dh 437
    public void recv_scan() throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 438
    {
4496 mandeep.dh 439
      scan_result result = new scan_result();
440
      receiveBase(result, "scan");
441
      if (result.wex != null) {
442
        throw result.wex;
443
      }
444
      return;
445
    }
446
 
5110 mandeep.dh 447
    public InventoryItem scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 448
    {
5110 mandeep.dh 449
      send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId);
4496 mandeep.dh 450
      return recv_scanSerializedItemForOrder();
451
    }
452
 
5110 mandeep.dh 453
    public void send_scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId) throws org.apache.thrift.TException
4496 mandeep.dh 454
    {
455
      scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 456
      args.setSerialNumber(serialNumber);
4496 mandeep.dh 457
      args.setType(type);
458
      args.setOrderId(orderId);
5110 mandeep.dh 459
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
460
      args.setQuantity(quantity);
461
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 462
      sendBase("scanSerializedItemForOrder", args);
463
    }
464
 
4555 mandeep.dh 465
    public InventoryItem recv_scanSerializedItemForOrder() throws WarehouseServiceException, org.apache.thrift.TException
4496 mandeep.dh 466
    {
467
      scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
468
      receiveBase(result, "scanSerializedItemForOrder");
3383 chandransh 469
      if (result.isSetSuccess()) {
470
        return result.success;
471
      }
472
      if (result.wex != null) {
473
        throw result.wex;
474
      }
4496 mandeep.dh 475
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
3383 chandransh 476
    }
477
 
5361 mandeep.dh 478
    public InventoryItem scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
3383 chandransh 479
    {
5361 mandeep.dh 480
      send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId);
481
      return recv_scanForOrder();
2820 chandransh 482
    }
483
 
5361 mandeep.dh 484
    public void send_scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId) throws org.apache.thrift.TException
2820 chandransh 485
    {
4496 mandeep.dh 486
      scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 487
      args.setInventoryItem(inventoryItem);
3430 rajveer 488
      args.setType(type);
4496 mandeep.dh 489
      args.setQuantity(quantity);
490
      args.setOrderId(orderId);
5110 mandeep.dh 491
      args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 492
      args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 493
      sendBase("scanForOrder", args);
2820 chandransh 494
    }
495
 
5361 mandeep.dh 496
    public InventoryItem recv_scanForOrder() throws WarehouseServiceException, org.apache.thrift.TException
2820 chandransh 497
    {
4496 mandeep.dh 498
      scanForOrder_result result = new scanForOrder_result();
499
      receiveBase(result, "scanForOrder");
5361 mandeep.dh 500
      if (result.isSetSuccess()) {
501
        return result.success;
502
      }
2820 chandransh 503
      if (result.wex != null) {
504
        throw result.wex;
505
      }
5361 mandeep.dh 506
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2820 chandransh 507
    }
508
 
4496 mandeep.dh 509
    public void createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 510
    {
4496 mandeep.dh 511
      send_createItemNumberMapping(itemNumber, itemId);
512
      recv_createItemNumberMapping();
2820 chandransh 513
    }
514
 
4496 mandeep.dh 515
    public void send_createItemNumberMapping(String itemNumber, long itemId) throws org.apache.thrift.TException
2820 chandransh 516
    {
4496 mandeep.dh 517
      createItemNumberMapping_args args = new createItemNumberMapping_args();
3430 rajveer 518
      args.setItemNumber(itemNumber);
4496 mandeep.dh 519
      args.setItemId(itemId);
520
      sendBase("createItemNumberMapping", args);
2820 chandransh 521
    }
522
 
4496 mandeep.dh 523
    public void recv_createItemNumberMapping() throws org.apache.thrift.TException
2820 chandransh 524
    {
4496 mandeep.dh 525
      createItemNumberMapping_result result = new createItemNumberMapping_result();
526
      receiveBase(result, "createItemNumberMapping");
2820 chandransh 527
      return;
528
    }
529
 
4622 amit.gupta 530
    public List<String> getItemNumbers(long itemId) throws org.apache.thrift.TException
531
    {
532
      send_getItemNumbers(itemId);
533
      return recv_getItemNumbers();
534
    }
535
 
536
    public void send_getItemNumbers(long itemId) throws org.apache.thrift.TException
537
    {
538
      getItemNumbers_args args = new getItemNumbers_args();
539
      args.setItemId(itemId);
540
      sendBase("getItemNumbers", args);
541
    }
542
 
543
    public List<String> recv_getItemNumbers() throws org.apache.thrift.TException
544
    {
545
      getItemNumbers_result result = new getItemNumbers_result();
546
      receiveBase(result, "getItemNumbers");
547
      if (result.isSetSuccess()) {
548
        return result.success;
549
      }
550
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
551
    }
552
 
5110 mandeep.dh 553
    public List<Long> getItemIds(String itemNumber) throws org.apache.thrift.TException
554
    {
555
      send_getItemIds(itemNumber);
556
      return recv_getItemIds();
557
    }
558
 
559
    public void send_getItemIds(String itemNumber) throws org.apache.thrift.TException
560
    {
561
      getItemIds_args args = new getItemIds_args();
562
      args.setItemNumber(itemNumber);
563
      sendBase("getItemIds", args);
564
    }
565
 
566
    public List<Long> recv_getItemIds() throws org.apache.thrift.TException
567
    {
568
      getItemIds_result result = new getItemIds_result();
569
      receiveBase(result, "getItemIds");
570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
573
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
574
    }
575
 
5185 mandeep.dh 576
    public List<InventoryItem> getInventoryItemsFromLastScanType(ScanType lastScanType) throws WarehouseServiceException, org.apache.thrift.TException
577
    {
578
      send_getInventoryItemsFromLastScanType(lastScanType);
579
      return recv_getInventoryItemsFromLastScanType();
580
    }
581
 
582
    public void send_getInventoryItemsFromLastScanType(ScanType lastScanType) throws org.apache.thrift.TException
583
    {
584
      getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
585
      args.setLastScanType(lastScanType);
586
      sendBase("getInventoryItemsFromLastScanType", args);
587
    }
588
 
589
    public List<InventoryItem> recv_getInventoryItemsFromLastScanType() throws WarehouseServiceException, org.apache.thrift.TException
590
    {
591
      getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
592
      receiveBase(result, "getInventoryItemsFromLastScanType");
593
      if (result.isSetSuccess()) {
594
        return result.success;
595
      }
596
      if (result.wex != null) {
597
        throw result.wex;
598
      }
599
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
600
    }
601
 
602
    public InventoryItem getInventoryItemFromId(long inventoryItemId) throws WarehouseServiceException, org.apache.thrift.TException
603
    {
604
      send_getInventoryItemFromId(inventoryItemId);
605
      return recv_getInventoryItemFromId();
606
    }
607
 
608
    public void send_getInventoryItemFromId(long inventoryItemId) throws org.apache.thrift.TException
609
    {
610
      getInventoryItemFromId_args args = new getInventoryItemFromId_args();
611
      args.setInventoryItemId(inventoryItemId);
612
      sendBase("getInventoryItemFromId", args);
613
    }
614
 
615
    public InventoryItem recv_getInventoryItemFromId() throws WarehouseServiceException, org.apache.thrift.TException
616
    {
617
      getInventoryItemFromId_result result = new getInventoryItemFromId_result();
618
      receiveBase(result, "getInventoryItemFromId");
619
      if (result.isSetSuccess()) {
620
        return result.success;
621
      }
622
      if (result.wex != null) {
623
        throw result.wex;
624
      }
625
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
626
    }
627
 
5372 mandeep.dh 628
    public List<DetailedPurchaseScan> getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
629
    {
630
      send_getPurchaseScans(startDate, endDate);
631
      return recv_getPurchaseScans();
632
    }
633
 
634
    public void send_getPurchaseScans(long startDate, long endDate) throws org.apache.thrift.TException
635
    {
636
      getPurchaseScans_args args = new getPurchaseScans_args();
637
      args.setStartDate(startDate);
638
      args.setEndDate(endDate);
639
      sendBase("getPurchaseScans", args);
640
    }
641
 
642
    public List<DetailedPurchaseScan> recv_getPurchaseScans() throws org.apache.thrift.TException
643
    {
644
      getPurchaseScans_result result = new getPurchaseScans_result();
645
      receiveBase(result, "getPurchaseScans");
646
      if (result.isSetSuccess()) {
647
        return result.success;
648
      }
649
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
650
    }
651
 
7210 amar.kumar 652
    public List<DetailedPurchaseScan> getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
653
    {
654
      send_getPurchaseScansByGrnDate(startDate, endDate);
655
      return recv_getPurchaseScansByGrnDate();
656
    }
657
 
658
    public void send_getPurchaseScansByGrnDate(long startDate, long endDate) throws org.apache.thrift.TException
659
    {
660
      getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
661
      args.setStartDate(startDate);
662
      args.setEndDate(endDate);
663
      sendBase("getPurchaseScansByGrnDate", args);
664
    }
665
 
666
    public List<DetailedPurchaseScan> recv_getPurchaseScansByGrnDate() throws org.apache.thrift.TException
667
    {
668
      getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
669
      receiveBase(result, "getPurchaseScansByGrnDate");
670
      if (result.isSetSuccess()) {
671
        return result.success;
672
      }
673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPurchaseScansByGrnDate failed: unknown result");
674
    }
675
 
5496 mandeep.dh 676
    public List<InvoiceScan> fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
677
    {
678
      send_fetchScansPerInvoiceNumber(date);
679
      return recv_fetchScansPerInvoiceNumber();
680
    }
681
 
682
    public void send_fetchScansPerInvoiceNumber(long date) throws org.apache.thrift.TException
683
    {
684
      fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
685
      args.setDate(date);
686
      sendBase("fetchScansPerInvoiceNumber", args);
687
    }
688
 
689
    public List<InvoiceScan> recv_fetchScansPerInvoiceNumber() throws org.apache.thrift.TException
690
    {
691
      fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
692
      receiveBase(result, "fetchScansPerInvoiceNumber");
693
      if (result.isSetSuccess()) {
694
        return result.success;
695
      }
696
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
697
    }
698
 
5620 mandeep.dh 699
    public InventoryItem getInventoryItemFromOrder(long orderId) throws WarehouseServiceException, org.apache.thrift.TException
700
    {
701
      send_getInventoryItemFromOrder(orderId);
702
      return recv_getInventoryItemFromOrder();
703
    }
704
 
705
    public void send_getInventoryItemFromOrder(long orderId) throws org.apache.thrift.TException
706
    {
707
      getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
708
      args.setOrderId(orderId);
709
      sendBase("getInventoryItemFromOrder", args);
710
    }
711
 
712
    public InventoryItem recv_getInventoryItemFromOrder() throws WarehouseServiceException, org.apache.thrift.TException
713
    {
714
      getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
715
      receiveBase(result, "getInventoryItemFromOrder");
716
      if (result.isSetSuccess()) {
717
        return result.success;
718
      }
719
      if (result.we != null) {
720
        throw result.we;
721
      }
722
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryItemFromOrder failed: unknown result");
723
    }
724
 
5711 mandeep.dh 725
    public List<InventoryAge> getInventoryAge() throws org.apache.thrift.TException
726
    {
727
      send_getInventoryAge();
728
      return recv_getInventoryAge();
729
    }
730
 
731
    public void send_getInventoryAge() throws org.apache.thrift.TException
732
    {
733
      getInventoryAge_args args = new getInventoryAge_args();
734
      sendBase("getInventoryAge", args);
735
    }
736
 
737
    public List<InventoryAge> recv_getInventoryAge() throws org.apache.thrift.TException
738
    {
739
      getInventoryAge_result result = new getInventoryAge_result();
740
      receiveBase(result, "getInventoryAge");
741
      if (result.isSetSuccess()) {
742
        return result.success;
743
      }
744
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryAge failed: unknown result");
745
    }
746
 
6322 amar.kumar 747
    public List<Scan> getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
748
    {
749
      send_getInventoryScansForItem(itemId, fromDate, toDate);
750
      return recv_getInventoryScansForItem();
751
    }
752
 
753
    public void send_getInventoryScansForItem(long itemId, long fromDate, long toDate) throws org.apache.thrift.TException
754
    {
755
      getInventoryScansForItem_args args = new getInventoryScansForItem_args();
756
      args.setItemId(itemId);
757
      args.setFromDate(fromDate);
758
      args.setToDate(toDate);
759
      sendBase("getInventoryScansForItem", args);
760
    }
761
 
762
    public List<Scan> recv_getInventoryScansForItem() throws org.apache.thrift.TException
763
    {
764
      getInventoryScansForItem_result result = new getInventoryScansForItem_result();
765
      receiveBase(result, "getInventoryScansForItem");
766
      if (result.isSetSuccess()) {
767
        return result.success;
768
      }
769
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInventoryScansForItem failed: unknown result");
770
    }
771
 
7410 amar.kumar 772
    public List<Scan> getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 773
    {
774
      send_getScanRecordsForSerialNumber(serialNumber);
775
      return recv_getScanRecordsForSerialNumber();
776
    }
777
 
7410 amar.kumar 778
    public void send_getScanRecordsForSerialNumber(String serialNumber) throws org.apache.thrift.TException
6322 amar.kumar 779
    {
780
      getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
781
      args.setSerialNumber(serialNumber);
782
      sendBase("getScanRecordsForSerialNumber", args);
783
    }
784
 
785
    public List<Scan> recv_getScanRecordsForSerialNumber() throws org.apache.thrift.TException
786
    {
787
      getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
788
      receiveBase(result, "getScanRecordsForSerialNumber");
789
      if (result.isSetSuccess()) {
790
        return result.success;
791
      }
792
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getScanRecordsForSerialNumber failed: unknown result");
793
    }
794
 
6467 amar.kumar 795
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
796
    {
797
      send_scanForPurchaseReturn(saleReturnItems, vendorId);
798
      recv_scanForPurchaseReturn();
799
    }
800
 
801
    public void send_scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId) throws org.apache.thrift.TException
802
    {
803
      scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
804
      args.setSaleReturnItems(saleReturnItems);
805
      args.setVendorId(vendorId);
806
      sendBase("scanForPurchaseReturn", args);
807
    }
808
 
809
    public void recv_scanForPurchaseReturn() throws WarehouseServiceException, org.apache.thrift.TException
810
    {
811
      scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
812
      receiveBase(result, "scanForPurchaseReturn");
813
      if (result.ex != null) {
814
        throw result.ex;
815
      }
816
      return;
817
    }
818
 
6548 amar.kumar 819
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws WarehouseServiceException, org.apache.thrift.TException
820
    {
821
      send_scanForLostItem(lostItems, vendorId);
822
      recv_scanForLostItem();
823
    }
824
 
825
    public void send_scanForLostItem(List<InventoryItem> lostItems, long vendorId) throws org.apache.thrift.TException
826
    {
827
      scanForLostItem_args args = new scanForLostItem_args();
828
      args.setLostItems(lostItems);
829
      args.setVendorId(vendorId);
830
      sendBase("scanForLostItem", args);
831
    }
832
 
833
    public void recv_scanForLostItem() throws WarehouseServiceException, org.apache.thrift.TException
834
    {
835
      scanForLostItem_result result = new scanForLostItem_result();
836
      receiveBase(result, "scanForLostItem");
837
      if (result.ex != null) {
838
        throw result.ex;
839
      }
840
      return;
841
    }
842
 
843
    public List<InventoryAvailability> getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
844
    {
845
      send_getCurrentSerializedInventoryByScans();
846
      return recv_getCurrentSerializedInventoryByScans();
847
    }
848
 
849
    public void send_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
850
    {
851
      getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
852
      sendBase("getCurrentSerializedInventoryByScans", args);
853
    }
854
 
855
    public List<InventoryAvailability> recv_getCurrentSerializedInventoryByScans() throws org.apache.thrift.TException
856
    {
857
      getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
858
      receiveBase(result, "getCurrentSerializedInventoryByScans");
859
      if (result.isSetSuccess()) {
860
        return result.success;
861
      }
862
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentSerializedInventoryByScans failed: unknown result");
863
    }
864
 
6630 amar.kumar 865
    public List<InventoryAvailability> getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
866
    {
867
      send_getCurrentNonSerializedInventoryByScans();
868
      return recv_getCurrentNonSerializedInventoryByScans();
869
    }
870
 
871
    public void send_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
872
    {
873
      getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
874
      sendBase("getCurrentNonSerializedInventoryByScans", args);
875
    }
876
 
877
    public List<InventoryAvailability> recv_getCurrentNonSerializedInventoryByScans() throws org.apache.thrift.TException
878
    {
879
      getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
880
      receiveBase(result, "getCurrentNonSerializedInventoryByScans");
881
      if (result.isSetSuccess()) {
882
        return result.success;
883
      }
884
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCurrentNonSerializedInventoryByScans failed: unknown result");
885
    }
886
 
6762 amar.kumar 887
    public List<InventoryAvailability> getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
888
    {
889
      send_getHistoricSerializedInventoryByScans(date);
890
      return recv_getHistoricSerializedInventoryByScans();
891
    }
892
 
893
    public void send_getHistoricSerializedInventoryByScans(long date) throws org.apache.thrift.TException
894
    {
895
      getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
896
      args.setDate(date);
897
      sendBase("getHistoricSerializedInventoryByScans", args);
898
    }
899
 
900
    public List<InventoryAvailability> recv_getHistoricSerializedInventoryByScans() throws org.apache.thrift.TException
901
    {
902
      getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
903
      receiveBase(result, "getHistoricSerializedInventoryByScans");
904
      if (result.isSetSuccess()) {
905
        return result.success;
906
      }
907
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricSerializedInventoryByScans failed: unknown result");
908
    }
909
 
910
    public List<InventoryAvailability> getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
911
    {
912
      send_getHistoricNonSerializedInventoryByScans(date);
913
      return recv_getHistoricNonSerializedInventoryByScans();
914
    }
915
 
916
    public void send_getHistoricNonSerializedInventoryByScans(long date) throws org.apache.thrift.TException
917
    {
918
      getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
919
      args.setDate(date);
920
      sendBase("getHistoricNonSerializedInventoryByScans", args);
921
    }
922
 
923
    public List<InventoryAvailability> recv_getHistoricNonSerializedInventoryByScans() throws org.apache.thrift.TException
924
    {
925
      getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
926
      receiveBase(result, "getHistoricNonSerializedInventoryByScans");
927
      if (result.isSetSuccess()) {
928
        return result.success;
929
      }
930
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHistoricNonSerializedInventoryByScans failed: unknown result");
931
    }
932
 
933
    public InventoryItem scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws WarehouseServiceException, org.apache.thrift.TException
934
    {
935
      send_scanForOursExternalSale(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId);
936
      return recv_scanForOursExternalSale();
937
    }
938
 
939
    public void send_scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId) throws org.apache.thrift.TException
940
    {
941
      scanForOursExternalSale_args args = new scanForOursExternalSale_args();
942
      args.setItemId(itemId);
943
      args.setSerialNumber(serialNumber);
944
      args.setItemNumber(itemNumber);
945
      args.setInvoiceNumber(invoiceNumber);
946
      args.setWarehouseId(warehouseId);
947
      args.setUnitPrice(unitPrice);
948
      args.setOrderId(orderId);
949
      sendBase("scanForOursExternalSale", args);
950
    }
951
 
952
    public InventoryItem recv_scanForOursExternalSale() throws WarehouseServiceException, org.apache.thrift.TException
953
    {
954
      scanForOursExternalSale_result result = new scanForOursExternalSale_result();
955
      receiveBase(result, "scanForOursExternalSale");
956
      if (result.isSetSuccess()) {
957
        return result.success;
958
      }
959
      if (result.ex != null) {
960
        throw result.ex;
961
      }
962
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanForOursExternalSale failed: unknown result");
963
    }
964
 
7410 amar.kumar 965
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice) throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 966
    {
967
      send_scanForOursExternalSaleReturn(orderId, unitPrice);
968
      recv_scanForOursExternalSaleReturn();
969
    }
970
 
971
    public void send_scanForOursExternalSaleReturn(long orderId, double unitPrice) throws org.apache.thrift.TException
972
    {
973
      scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
974
      args.setOrderId(orderId);
975
      args.setUnitPrice(unitPrice);
976
      sendBase("scanForOursExternalSaleReturn", args);
977
    }
978
 
7410 amar.kumar 979
    public void recv_scanForOursExternalSaleReturn() throws WarehouseServiceException, org.apache.thrift.TException
6762 amar.kumar 980
    {
981
      scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
982
      receiveBase(result, "scanForOursExternalSaleReturn");
7410 amar.kumar 983
      if (result.ex != null) {
984
        throw result.ex;
985
      }
6762 amar.kumar 986
      return;
987
    }
988
 
6880 amar.kumar 989
    public List<InventoryMovement> getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
990
    {
991
      send_getMovementNonSerializedInventoryByScans(startDate, endDate);
992
      return recv_getMovementNonSerializedInventoryByScans();
993
    }
994
 
995
    public void send_getMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
996
    {
997
      getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
998
      args.setStartDate(startDate);
999
      args.setEndDate(endDate);
1000
      sendBase("getMovementNonSerializedInventoryByScans", args);
1001
    }
1002
 
1003
    public List<InventoryMovement> recv_getMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1004
    {
1005
      getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
1006
      receiveBase(result, "getMovementNonSerializedInventoryByScans");
1007
      if (result.isSetSuccess()) {
1008
        return result.success;
1009
      }
1010
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementNonSerializedInventoryByScans failed: unknown result");
1011
    }
1012
 
1013
    public List<InventoryMovement> getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1014
    {
1015
      send_getMovementSerializedInventoryByScans(startDate, endDate);
1016
      return recv_getMovementSerializedInventoryByScans();
1017
    }
1018
 
1019
    public void send_getMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1020
    {
1021
      getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
1022
      args.setStartDate(startDate);
1023
      args.setEndDate(endDate);
1024
      sendBase("getMovementSerializedInventoryByScans", args);
1025
    }
1026
 
1027
    public List<InventoryMovement> recv_getMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1028
    {
1029
      getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
1030
      receiveBase(result, "getMovementSerializedInventoryByScans");
1031
      if (result.isSetSuccess()) {
1032
        return result.success;
1033
      }
1034
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMovementSerializedInventoryByScans failed: unknown result");
1035
    }
1036
 
7216 amar.kumar 1037
    public List<InventoryMovement> getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1038
    {
1039
      send_getCompleteMovementSerializedInventoryByScans(startDate, endDate);
1040
      return recv_getCompleteMovementSerializedInventoryByScans();
1041
    }
1042
 
1043
    public void send_getCompleteMovementSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1044
    {
1045
      getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
1046
      args.setStartDate(startDate);
1047
      args.setEndDate(endDate);
1048
      sendBase("getCompleteMovementSerializedInventoryByScans", args);
1049
    }
1050
 
1051
    public List<InventoryMovement> recv_getCompleteMovementSerializedInventoryByScans() throws org.apache.thrift.TException
1052
    {
1053
      getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
1054
      receiveBase(result, "getCompleteMovementSerializedInventoryByScans");
1055
      if (result.isSetSuccess()) {
1056
        return result.success;
1057
      }
1058
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementSerializedInventoryByScans failed: unknown result");
1059
    }
1060
 
1061
    public List<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1062
    {
1063
      send_getCompleteMovementNonSerializedInventoryByScans(startDate, endDate);
1064
      return recv_getCompleteMovementNonSerializedInventoryByScans();
1065
    }
1066
 
1067
    public void send_getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate) throws org.apache.thrift.TException
1068
    {
1069
      getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
1070
      args.setStartDate(startDate);
1071
      args.setEndDate(endDate);
1072
      sendBase("getCompleteMovementNonSerializedInventoryByScans", args);
1073
    }
1074
 
1075
    public List<InventoryMovement> recv_getCompleteMovementNonSerializedInventoryByScans() throws org.apache.thrift.TException
1076
    {
1077
      getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
1078
      receiveBase(result, "getCompleteMovementNonSerializedInventoryByScans");
1079
      if (result.isSetSuccess()) {
1080
        return result.success;
1081
      }
1082
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCompleteMovementNonSerializedInventoryByScans failed: unknown result");
1083
    }
1084
 
7190 amar.kumar 1085
    public InventoryItem scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1086
    {
1087
      send_scanfreebie(orderId, freebieItemId, freebieWarehouseId, scanType);
1088
      return recv_scanfreebie();
1089
    }
1090
 
1091
    public void send_scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType) throws org.apache.thrift.TException
1092
    {
1093
      scanfreebie_args args = new scanfreebie_args();
1094
      args.setOrderId(orderId);
1095
      args.setFreebieItemId(freebieItemId);
1096
      args.setFreebieWarehouseId(freebieWarehouseId);
1097
      args.setScanType(scanType);
1098
      sendBase("scanfreebie", args);
1099
    }
1100
 
1101
    public InventoryItem recv_scanfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1102
    {
1103
      scanfreebie_result result = new scanfreebie_result();
1104
      receiveBase(result, "scanfreebie");
1105
      if (result.isSetSuccess()) {
1106
        return result.success;
1107
      }
1108
      if (result.wex != null) {
1109
        throw result.wex;
1110
      }
1111
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "scanfreebie failed: unknown result");
1112
    }
1113
 
7199 amar.kumar 1114
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws WarehouseServiceException, org.apache.thrift.TException
1115
    {
1116
      send_reshipfreebie(oldOrderId, newOrderId, freebieItemId, scanType);
1117
      recv_reshipfreebie();
1118
    }
1119
 
1120
    public void send_reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType) throws org.apache.thrift.TException
1121
    {
1122
      reshipfreebie_args args = new reshipfreebie_args();
1123
      args.setOldOrderId(oldOrderId);
1124
      args.setNewOrderId(newOrderId);
1125
      args.setFreebieItemId(freebieItemId);
1126
      args.setScanType(scanType);
1127
      sendBase("reshipfreebie", args);
1128
    }
1129
 
1130
    public void recv_reshipfreebie() throws WarehouseServiceException, org.apache.thrift.TException
1131
    {
1132
      reshipfreebie_result result = new reshipfreebie_result();
1133
      receiveBase(result, "reshipfreebie");
1134
      if (result.wex != null) {
1135
        throw result.wex;
1136
      }
1137
      return;
1138
    }
1139
 
7410 amar.kumar 1140
    public boolean isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1141
    {
1142
      send_isItemTransferAllowed(warehouseId, transferWarehouseId);
1143
      return recv_isItemTransferAllowed();
1144
    }
1145
 
1146
    public void send_isItemTransferAllowed(long warehouseId, long transferWarehouseId) throws org.apache.thrift.TException
1147
    {
1148
      isItemTransferAllowed_args args = new isItemTransferAllowed_args();
1149
      args.setWarehouseId(warehouseId);
1150
      args.setTransferWarehouseId(transferWarehouseId);
1151
      sendBase("isItemTransferAllowed", args);
1152
    }
1153
 
1154
    public boolean recv_isItemTransferAllowed() throws org.apache.thrift.TException
1155
    {
1156
      isItemTransferAllowed_result result = new isItemTransferAllowed_result();
1157
      receiveBase(result, "isItemTransferAllowed");
1158
      if (result.isSetSuccess()) {
1159
        return result.success;
1160
      }
1161
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isItemTransferAllowed failed: unknown result");
1162
    }
1163
 
1164
    public long createTransferLot(long originWarehouseId, long destWarehouseId) throws WarehouseServiceException, org.apache.thrift.TException
1165
    {
1166
      send_createTransferLot(originWarehouseId, destWarehouseId);
1167
      return recv_createTransferLot();
1168
    }
1169
 
1170
    public void send_createTransferLot(long originWarehouseId, long destWarehouseId) throws org.apache.thrift.TException
1171
    {
1172
      createTransferLot_args args = new createTransferLot_args();
1173
      args.setOriginWarehouseId(originWarehouseId);
1174
      args.setDestWarehouseId(destWarehouseId);
1175
      sendBase("createTransferLot", args);
1176
    }
1177
 
1178
    public long recv_createTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1179
    {
1180
      createTransferLot_result result = new createTransferLot_result();
1181
      receiveBase(result, "createTransferLot");
1182
      if (result.isSetSuccess()) {
1183
        return result.success;
1184
      }
1185
      if (result.wex != null) {
1186
        throw result.wex;
1187
      }
1188
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createTransferLot failed: unknown result");
1189
    }
1190
 
1191
    public TransferLot getTransferLot(long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1192
    {
1193
      send_getTransferLot(transferLotId);
1194
      return recv_getTransferLot();
1195
    }
1196
 
1197
    public void send_getTransferLot(long transferLotId) throws org.apache.thrift.TException
1198
    {
1199
      getTransferLot_args args = new getTransferLot_args();
1200
      args.setTransferLotId(transferLotId);
1201
      sendBase("getTransferLot", args);
1202
    }
1203
 
1204
    public TransferLot recv_getTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1205
    {
1206
      getTransferLot_result result = new getTransferLot_result();
1207
      receiveBase(result, "getTransferLot");
1208
      if (result.isSetSuccess()) {
1209
        return result.success;
1210
      }
1211
      if (result.wex != null) {
1212
        throw result.wex;
1213
      }
1214
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLot failed: unknown result");
1215
    }
1216
 
1217
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws WarehouseServiceException, org.apache.thrift.TException
1218
    {
1219
      send_markTransferLotAsReceived(id, remoteTransferRefNumber);
1220
      recv_markTransferLotAsReceived();
1221
    }
1222
 
1223
    public void send_markTransferLotAsReceived(long id, String remoteTransferRefNumber) throws org.apache.thrift.TException
1224
    {
1225
      markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
1226
      args.setId(id);
1227
      args.setRemoteTransferRefNumber(remoteTransferRefNumber);
1228
      sendBase("markTransferLotAsReceived", args);
1229
    }
1230
 
1231
    public void recv_markTransferLotAsReceived() throws WarehouseServiceException, org.apache.thrift.TException
1232
    {
1233
      markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
1234
      receiveBase(result, "markTransferLotAsReceived");
1235
      if (result.wex != null) {
1236
        throw result.wex;
1237
      }
1238
      return;
1239
    }
1240
 
1241
    public List<TransferLot> getTransferLotsByDate(long fromDate, long toDate) throws WarehouseServiceException, org.apache.thrift.TException
1242
    {
1243
      send_getTransferLotsByDate(fromDate, toDate);
1244
      return recv_getTransferLotsByDate();
1245
    }
1246
 
1247
    public void send_getTransferLotsByDate(long fromDate, long toDate) throws org.apache.thrift.TException
1248
    {
1249
      getTransferLotsByDate_args args = new getTransferLotsByDate_args();
1250
      args.setFromDate(fromDate);
1251
      args.setToDate(toDate);
1252
      sendBase("getTransferLotsByDate", args);
1253
    }
1254
 
1255
    public List<TransferLot> recv_getTransferLotsByDate() throws WarehouseServiceException, org.apache.thrift.TException
1256
    {
1257
      getTransferLotsByDate_result result = new getTransferLotsByDate_result();
1258
      receiveBase(result, "getTransferLotsByDate");
1259
      if (result.isSetSuccess()) {
1260
        return result.success;
1261
      }
1262
      if (result.wex != null) {
1263
        throw result.wex;
1264
      }
1265
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTransferLotsByDate failed: unknown result");
1266
    }
1267
 
1268
    public List<Long> getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1269
    {
1270
      send_getAllowedDestinationWarehousesForTransfer(warehouseId);
1271
      return recv_getAllowedDestinationWarehousesForTransfer();
1272
    }
1273
 
1274
    public void send_getAllowedDestinationWarehousesForTransfer(long warehouseId) throws org.apache.thrift.TException
1275
    {
1276
      getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
1277
      args.setWarehouseId(warehouseId);
1278
      sendBase("getAllowedDestinationWarehousesForTransfer", args);
1279
    }
1280
 
1281
    public List<Long> recv_getAllowedDestinationWarehousesForTransfer() throws org.apache.thrift.TException
1282
    {
1283
      getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
1284
      receiveBase(result, "getAllowedDestinationWarehousesForTransfer");
1285
      if (result.isSetSuccess()) {
1286
        return result.success;
1287
      }
1288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllowedDestinationWarehousesForTransfer failed: unknown result");
1289
    }
1290
 
1291
    public Map<Long,Long> getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1292
    {
1293
      send_getItemsInTransferLot(transferLotId);
1294
      return recv_getItemsInTransferLot();
1295
    }
1296
 
1297
    public void send_getItemsInTransferLot(long transferLotId) throws org.apache.thrift.TException
1298
    {
1299
      getItemsInTransferLot_args args = new getItemsInTransferLot_args();
1300
      args.setTransferLotId(transferLotId);
1301
      sendBase("getItemsInTransferLot", args);
1302
    }
1303
 
1304
    public Map<Long,Long> recv_getItemsInTransferLot() throws org.apache.thrift.TException
1305
    {
1306
      getItemsInTransferLot_result result = new getItemsInTransferLot_result();
1307
      receiveBase(result, "getItemsInTransferLot");
1308
      if (result.isSetSuccess()) {
1309
        return result.success;
1310
      }
1311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemsInTransferLot failed: unknown result");
1312
    }
1313
 
1314
    public void markItemsAsReceivedForTransferLot(long id) throws WarehouseServiceException, org.apache.thrift.TException
1315
    {
1316
      send_markItemsAsReceivedForTransferLot(id);
1317
      recv_markItemsAsReceivedForTransferLot();
1318
    }
1319
 
1320
    public void send_markItemsAsReceivedForTransferLot(long id) throws org.apache.thrift.TException
1321
    {
1322
      markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
1323
      args.setId(id);
1324
      sendBase("markItemsAsReceivedForTransferLot", args);
1325
    }
1326
 
1327
    public void recv_markItemsAsReceivedForTransferLot() throws WarehouseServiceException, org.apache.thrift.TException
1328
    {
1329
      markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
1330
      receiveBase(result, "markItemsAsReceivedForTransferLot");
1331
      if (result.wex != null) {
1332
        throw result.wex;
1333
      }
1334
      return;
1335
    }
1336
 
1337
    public TransferLotStatus updateTransferLotAfterItemReceive(long id) throws WarehouseServiceException, org.apache.thrift.TException
1338
    {
1339
      send_updateTransferLotAfterItemReceive(id);
1340
      return recv_updateTransferLotAfterItemReceive();
1341
    }
1342
 
1343
    public void send_updateTransferLotAfterItemReceive(long id) throws org.apache.thrift.TException
1344
    {
1345
      updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
1346
      args.setId(id);
1347
      sendBase("updateTransferLotAfterItemReceive", args);
1348
    }
1349
 
1350
    public TransferLotStatus recv_updateTransferLotAfterItemReceive() throws WarehouseServiceException, org.apache.thrift.TException
1351
    {
1352
      updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
1353
      receiveBase(result, "updateTransferLotAfterItemReceive");
1354
      if (result.isSetSuccess()) {
1355
        return result.success;
1356
      }
1357
      if (result.wex != null) {
1358
        throw result.wex;
1359
      }
1360
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateTransferLotAfterItemReceive failed: unknown result");
1361
    }
1362
 
1363
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws WarehouseServiceException, org.apache.thrift.TException
1364
    {
1365
      send_scanForTransfer(inventoryItems, type, transferLotId);
1366
      recv_scanForTransfer();
1367
    }
1368
 
1369
    public void send_scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId) throws org.apache.thrift.TException
1370
    {
1371
      scanForTransfer_args args = new scanForTransfer_args();
1372
      args.setInventoryItems(inventoryItems);
1373
      args.setType(type);
1374
      args.setTransferLotId(transferLotId);
1375
      sendBase("scanForTransfer", args);
1376
    }
1377
 
1378
    public void recv_scanForTransfer() throws WarehouseServiceException, org.apache.thrift.TException
1379
    {
1380
      scanForTransfer_result result = new scanForTransfer_result();
1381
      receiveBase(result, "scanForTransfer");
1382
      if (result.wex != null) {
1383
        throw result.wex;
1384
      }
1385
      return;
1386
    }
1387
 
2820 chandransh 1388
  }
3430 rajveer 1389
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1390
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1391
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1392
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1393
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1394
        this.clientManager = clientManager;
1395
        this.protocolFactory = protocolFactory;
1396
      }
1397
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1398
        return new AsyncClient(protocolFactory, clientManager, transport);
1399
      }
2820 chandransh 1400
    }
1401
 
3430 rajveer 1402
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1403
      super(protocolFactory, clientManager, transport);
1404
    }
2820 chandransh 1405
 
4496 mandeep.dh 1406
    public void getInventoryItem(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1407
      checkReady();
4496 mandeep.dh 1408
      getInventoryItem_call method_call = new getInventoryItem_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1409
      this.___currentMethod = method_call;
1410
      ___manager.call(method_call);
1411
    }
1412
 
4496 mandeep.dh 1413
    public static class getInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
1414
      private String serialNumber;
1415
      public getInventoryItem_call(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1416
        super(client, protocolFactory, transport, resultHandler, false);
4496 mandeep.dh 1417
        this.serialNumber = serialNumber;
3430 rajveer 1418
      }
1419
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        getInventoryItem_args args = new getInventoryItem_args();
1423
        args.setSerialNumber(serialNumber);
3430 rajveer 1424
        args.write(prot);
1425
        prot.writeMessageEnd();
1426
      }
1427
 
4541 mandeep.dh 1428
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1430
          throw new IllegalStateException("Method call not finished!");
1431
        }
1432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1434
        return (new Client(prot)).recv_getInventoryItem();
3430 rajveer 1435
      }
1436
    }
1437
 
5530 mandeep.dh 1438
    public void getNonSeralizedInventoryItem(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1439
      checkReady();
5530 mandeep.dh 1440
      getNonSeralizedInventoryItem_call method_call = new getNonSeralizedInventoryItem_call(itemNumber, itemId, fulfilmentWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1441
      this.___currentMethod = method_call;
1442
      ___manager.call(method_call);
1443
    }
1444
 
5361 mandeep.dh 1445
    public static class getNonSeralizedInventoryItem_call extends org.apache.thrift.async.TAsyncMethodCall {
5530 mandeep.dh 1446
      private String itemNumber;
4496 mandeep.dh 1447
      private long itemId;
5530 mandeep.dh 1448
      private long fulfilmentWarehouseId;
1449
      public getNonSeralizedInventoryItem_call(String itemNumber, long itemId, long fulfilmentWarehouseId, org.apache.thrift.async.AsyncMethodCallback<getNonSeralizedInventoryItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1450
        super(client, protocolFactory, transport, resultHandler, false);
5530 mandeep.dh 1451
        this.itemNumber = itemNumber;
4496 mandeep.dh 1452
        this.itemId = itemId;
5530 mandeep.dh 1453
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
3430 rajveer 1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
5361 mandeep.dh 1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getNonSeralizedInventoryItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        getNonSeralizedInventoryItem_args args = new getNonSeralizedInventoryItem_args();
5530 mandeep.dh 1459
        args.setItemNumber(itemNumber);
4496 mandeep.dh 1460
        args.setItemId(itemId);
5530 mandeep.dh 1461
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
3430 rajveer 1462
        args.write(prot);
1463
        prot.writeMessageEnd();
1464
      }
1465
 
5361 mandeep.dh 1466
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
3430 rajveer 1467
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1468
          throw new IllegalStateException("Method call not finished!");
1469
        }
1470
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1471
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1472
        return (new Client(prot)).recv_getNonSeralizedInventoryItem();
3430 rajveer 1473
      }
1474
    }
1475
 
7410 amar.kumar 1476
    public void scan(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1477
      checkReady();
7410 amar.kumar 1478
      scan_call method_call = new scan_call(inventoryItem, type, quantity, billingWarehouseId, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1479
      this.___currentMethod = method_call;
1480
      ___manager.call(method_call);
1481
    }
1482
 
4496 mandeep.dh 1483
    public static class scan_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1484
      private InventoryItem inventoryItem;
3430 rajveer 1485
      private ScanType type;
4496 mandeep.dh 1486
      private long quantity;
5361 mandeep.dh 1487
      private long billingWarehouseId;
7410 amar.kumar 1488
      private long transferLotId;
1489
      public scan_call(InventoryItem inventoryItem, ScanType type, long quantity, long billingWarehouseId, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scan_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1490
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1491
        this.inventoryItem = inventoryItem;
3430 rajveer 1492
        this.type = type;
4496 mandeep.dh 1493
        this.quantity = quantity;
5361 mandeep.dh 1494
        this.billingWarehouseId = billingWarehouseId;
7410 amar.kumar 1495
        this.transferLotId = transferLotId;
3430 rajveer 1496
      }
1497
 
1498
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
4496 mandeep.dh 1499
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scan", org.apache.thrift.protocol.TMessageType.CALL, 0));
1500
        scan_args args = new scan_args();
5361 mandeep.dh 1501
        args.setInventoryItem(inventoryItem);
3430 rajveer 1502
        args.setType(type);
4496 mandeep.dh 1503
        args.setQuantity(quantity);
5361 mandeep.dh 1504
        args.setBillingWarehouseId(billingWarehouseId);
7410 amar.kumar 1505
        args.setTransferLotId(transferLotId);
3430 rajveer 1506
        args.write(prot);
1507
        prot.writeMessageEnd();
1508
      }
1509
 
1510
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1511
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1512
          throw new IllegalStateException("Method call not finished!");
1513
        }
1514
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1515
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4496 mandeep.dh 1516
        (new Client(prot)).recv_scan();
3430 rajveer 1517
      }
1518
    }
1519
 
5110 mandeep.dh 1520
    public void scanSerializedItemForOrder(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler) throws org.apache.thrift.TException {
4496 mandeep.dh 1521
      checkReady();
5110 mandeep.dh 1522
      scanSerializedItemForOrder_call method_call = new scanSerializedItemForOrder_call(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1523
      this.___currentMethod = method_call;
1524
      ___manager.call(method_call);
1525
    }
1526
 
1527
    public static class scanSerializedItemForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
4555 mandeep.dh 1528
      private String serialNumber;
4496 mandeep.dh 1529
      private ScanType type;
1530
      private long orderId;
5110 mandeep.dh 1531
      private long fulfilmentWarehouseId;
1532
      private double quantity;
1533
      private long billingWarehouseId;
1534
      public scanSerializedItemForOrder_call(String serialNumber, ScanType type, long orderId, long fulfilmentWarehouseId, double quantity, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanSerializedItemForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4496 mandeep.dh 1535
        super(client, protocolFactory, transport, resultHandler, false);
4555 mandeep.dh 1536
        this.serialNumber = serialNumber;
4496 mandeep.dh 1537
        this.type = type;
1538
        this.orderId = orderId;
5110 mandeep.dh 1539
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
1540
        this.quantity = quantity;
1541
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1542
      }
1543
 
1544
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1545
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanSerializedItemForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1546
        scanSerializedItemForOrder_args args = new scanSerializedItemForOrder_args();
4555 mandeep.dh 1547
        args.setSerialNumber(serialNumber);
4496 mandeep.dh 1548
        args.setType(type);
1549
        args.setOrderId(orderId);
5110 mandeep.dh 1550
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
1551
        args.setQuantity(quantity);
1552
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1553
        args.write(prot);
1554
        prot.writeMessageEnd();
1555
      }
1556
 
4555 mandeep.dh 1557
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1558
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1559
          throw new IllegalStateException("Method call not finished!");
1560
        }
1561
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1562
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1563
        return (new Client(prot)).recv_scanSerializedItemForOrder();
1564
      }
1565
    }
1566
 
5361 mandeep.dh 1567
    public void scanForOrder(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler) throws org.apache.thrift.TException {
4496 mandeep.dh 1568
      checkReady();
5361 mandeep.dh 1569
      scanForOrder_call method_call = new scanForOrder_call(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
4496 mandeep.dh 1570
      this.___currentMethod = method_call;
1571
      ___manager.call(method_call);
1572
    }
1573
 
1574
    public static class scanForOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
5361 mandeep.dh 1575
      private InventoryItem inventoryItem;
4496 mandeep.dh 1576
      private ScanType type;
1577
      private long quantity;
1578
      private long orderId;
5110 mandeep.dh 1579
      private long fulfilmentWarehouseId;
5361 mandeep.dh 1580
      private long billingWarehouseId;
1581
      public scanForOrder_call(InventoryItem inventoryItem, ScanType type, long quantity, long orderId, long fulfilmentWarehouseId, long billingWarehouseId, org.apache.thrift.async.AsyncMethodCallback<scanForOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
4496 mandeep.dh 1582
        super(client, protocolFactory, transport, resultHandler, false);
5361 mandeep.dh 1583
        this.inventoryItem = inventoryItem;
4496 mandeep.dh 1584
        this.type = type;
1585
        this.quantity = quantity;
1586
        this.orderId = orderId;
5110 mandeep.dh 1587
        this.fulfilmentWarehouseId = fulfilmentWarehouseId;
5361 mandeep.dh 1588
        this.billingWarehouseId = billingWarehouseId;
4496 mandeep.dh 1589
      }
1590
 
1591
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1592
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1593
        scanForOrder_args args = new scanForOrder_args();
5361 mandeep.dh 1594
        args.setInventoryItem(inventoryItem);
4496 mandeep.dh 1595
        args.setType(type);
1596
        args.setQuantity(quantity);
1597
        args.setOrderId(orderId);
5110 mandeep.dh 1598
        args.setFulfilmentWarehouseId(fulfilmentWarehouseId);
5361 mandeep.dh 1599
        args.setBillingWarehouseId(billingWarehouseId);
4496 mandeep.dh 1600
        args.write(prot);
1601
        prot.writeMessageEnd();
1602
      }
1603
 
5361 mandeep.dh 1604
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
4496 mandeep.dh 1605
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1606
          throw new IllegalStateException("Method call not finished!");
1607
        }
1608
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1609
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5361 mandeep.dh 1610
        return (new Client(prot)).recv_scanForOrder();
4496 mandeep.dh 1611
      }
1612
    }
1613
 
1614
    public void createItemNumberMapping(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler) throws org.apache.thrift.TException {
1615
      checkReady();
1616
      createItemNumberMapping_call method_call = new createItemNumberMapping_call(itemNumber, itemId, resultHandler, this, ___protocolFactory, ___transport);
1617
      this.___currentMethod = method_call;
1618
      ___manager.call(method_call);
1619
    }
1620
 
1621
    public static class createItemNumberMapping_call extends org.apache.thrift.async.TAsyncMethodCall {
1622
      private String itemNumber;
1623
      private long itemId;
1624
      public createItemNumberMapping_call(String itemNumber, long itemId, org.apache.thrift.async.AsyncMethodCallback<createItemNumberMapping_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1625
        super(client, protocolFactory, transport, resultHandler, false);
1626
        this.itemNumber = itemNumber;
1627
        this.itemId = itemId;
1628
      }
1629
 
1630
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1631
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createItemNumberMapping", org.apache.thrift.protocol.TMessageType.CALL, 0));
1632
        createItemNumberMapping_args args = new createItemNumberMapping_args();
1633
        args.setItemNumber(itemNumber);
1634
        args.setItemId(itemId);
1635
        args.write(prot);
1636
        prot.writeMessageEnd();
1637
      }
1638
 
1639
      public void getResult() throws org.apache.thrift.TException {
1640
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1641
          throw new IllegalStateException("Method call not finished!");
1642
        }
1643
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1645
        (new Client(prot)).recv_createItemNumberMapping();
1646
      }
1647
    }
1648
 
4622 amit.gupta 1649
    public void getItemNumbers(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler) throws org.apache.thrift.TException {
1650
      checkReady();
1651
      getItemNumbers_call method_call = new getItemNumbers_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
1652
      this.___currentMethod = method_call;
1653
      ___manager.call(method_call);
1654
    }
1655
 
1656
    public static class getItemNumbers_call extends org.apache.thrift.async.TAsyncMethodCall {
1657
      private long itemId;
1658
      public getItemNumbers_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getItemNumbers_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1659
        super(client, protocolFactory, transport, resultHandler, false);
1660
        this.itemId = itemId;
1661
      }
1662
 
1663
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1664
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemNumbers", org.apache.thrift.protocol.TMessageType.CALL, 0));
1665
        getItemNumbers_args args = new getItemNumbers_args();
1666
        args.setItemId(itemId);
1667
        args.write(prot);
1668
        prot.writeMessageEnd();
1669
      }
1670
 
1671
      public List<String> getResult() throws org.apache.thrift.TException {
1672
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1673
          throw new IllegalStateException("Method call not finished!");
1674
        }
1675
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1676
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1677
        return (new Client(prot)).recv_getItemNumbers();
1678
      }
1679
    }
1680
 
5110 mandeep.dh 1681
    public void getItemIds(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler) throws org.apache.thrift.TException {
1682
      checkReady();
1683
      getItemIds_call method_call = new getItemIds_call(itemNumber, resultHandler, this, ___protocolFactory, ___transport);
1684
      this.___currentMethod = method_call;
1685
      ___manager.call(method_call);
1686
    }
1687
 
1688
    public static class getItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
1689
      private String itemNumber;
1690
      public getItemIds_call(String itemNumber, org.apache.thrift.async.AsyncMethodCallback<getItemIds_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1691
        super(client, protocolFactory, transport, resultHandler, false);
1692
        this.itemNumber = itemNumber;
1693
      }
1694
 
1695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
1697
        getItemIds_args args = new getItemIds_args();
1698
        args.setItemNumber(itemNumber);
1699
        args.write(prot);
1700
        prot.writeMessageEnd();
1701
      }
1702
 
1703
      public List<Long> getResult() throws org.apache.thrift.TException {
1704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1705
          throw new IllegalStateException("Method call not finished!");
1706
        }
1707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1709
        return (new Client(prot)).recv_getItemIds();
1710
      }
1711
    }
1712
 
5185 mandeep.dh 1713
    public void getInventoryItemsFromLastScanType(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler) throws org.apache.thrift.TException {
1714
      checkReady();
1715
      getInventoryItemsFromLastScanType_call method_call = new getInventoryItemsFromLastScanType_call(lastScanType, resultHandler, this, ___protocolFactory, ___transport);
1716
      this.___currentMethod = method_call;
1717
      ___manager.call(method_call);
1718
    }
1719
 
1720
    public static class getInventoryItemsFromLastScanType_call extends org.apache.thrift.async.TAsyncMethodCall {
1721
      private ScanType lastScanType;
1722
      public getInventoryItemsFromLastScanType_call(ScanType lastScanType, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemsFromLastScanType_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1723
        super(client, protocolFactory, transport, resultHandler, false);
1724
        this.lastScanType = lastScanType;
1725
      }
1726
 
1727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemsFromLastScanType", org.apache.thrift.protocol.TMessageType.CALL, 0));
1729
        getInventoryItemsFromLastScanType_args args = new getInventoryItemsFromLastScanType_args();
1730
        args.setLastScanType(lastScanType);
1731
        args.write(prot);
1732
        prot.writeMessageEnd();
1733
      }
1734
 
1735
      public List<InventoryItem> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1736
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1737
          throw new IllegalStateException("Method call not finished!");
1738
        }
1739
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1741
        return (new Client(prot)).recv_getInventoryItemsFromLastScanType();
1742
      }
1743
    }
1744
 
1745
    public void getInventoryItemFromId(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler) throws org.apache.thrift.TException {
1746
      checkReady();
1747
      getInventoryItemFromId_call method_call = new getInventoryItemFromId_call(inventoryItemId, resultHandler, this, ___protocolFactory, ___transport);
1748
      this.___currentMethod = method_call;
1749
      ___manager.call(method_call);
1750
    }
1751
 
1752
    public static class getInventoryItemFromId_call extends org.apache.thrift.async.TAsyncMethodCall {
1753
      private long inventoryItemId;
1754
      public getInventoryItemFromId_call(long inventoryItemId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1755
        super(client, protocolFactory, transport, resultHandler, false);
1756
        this.inventoryItemId = inventoryItemId;
1757
      }
1758
 
1759
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1760
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1761
        getInventoryItemFromId_args args = new getInventoryItemFromId_args();
1762
        args.setInventoryItemId(inventoryItemId);
1763
        args.write(prot);
1764
        prot.writeMessageEnd();
1765
      }
1766
 
1767
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1768
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1769
          throw new IllegalStateException("Method call not finished!");
1770
        }
1771
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1773
        return (new Client(prot)).recv_getInventoryItemFromId();
1774
      }
1775
    }
1776
 
5372 mandeep.dh 1777
    public void getPurchaseScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler) throws org.apache.thrift.TException {
1778
      checkReady();
1779
      getPurchaseScans_call method_call = new getPurchaseScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1780
      this.___currentMethod = method_call;
1781
      ___manager.call(method_call);
1782
    }
1783
 
1784
    public static class getPurchaseScans_call extends org.apache.thrift.async.TAsyncMethodCall {
1785
      private long startDate;
1786
      private long endDate;
1787
      public getPurchaseScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1788
        super(client, protocolFactory, transport, resultHandler, false);
1789
        this.startDate = startDate;
1790
        this.endDate = endDate;
1791
      }
1792
 
1793
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1794
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
1795
        getPurchaseScans_args args = new getPurchaseScans_args();
1796
        args.setStartDate(startDate);
1797
        args.setEndDate(endDate);
1798
        args.write(prot);
1799
        prot.writeMessageEnd();
1800
      }
1801
 
1802
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1803
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1804
          throw new IllegalStateException("Method call not finished!");
1805
        }
1806
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1807
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1808
        return (new Client(prot)).recv_getPurchaseScans();
1809
      }
1810
    }
1811
 
7210 amar.kumar 1812
    public void getPurchaseScansByGrnDate(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler) throws org.apache.thrift.TException {
1813
      checkReady();
1814
      getPurchaseScansByGrnDate_call method_call = new getPurchaseScansByGrnDate_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
1815
      this.___currentMethod = method_call;
1816
      ___manager.call(method_call);
1817
    }
1818
 
1819
    public static class getPurchaseScansByGrnDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1820
      private long startDate;
1821
      private long endDate;
1822
      public getPurchaseScansByGrnDate_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getPurchaseScansByGrnDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1823
        super(client, protocolFactory, transport, resultHandler, false);
1824
        this.startDate = startDate;
1825
        this.endDate = endDate;
1826
      }
1827
 
1828
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1829
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPurchaseScansByGrnDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1830
        getPurchaseScansByGrnDate_args args = new getPurchaseScansByGrnDate_args();
1831
        args.setStartDate(startDate);
1832
        args.setEndDate(endDate);
1833
        args.write(prot);
1834
        prot.writeMessageEnd();
1835
      }
1836
 
1837
      public List<DetailedPurchaseScan> getResult() throws org.apache.thrift.TException {
1838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1839
          throw new IllegalStateException("Method call not finished!");
1840
        }
1841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1843
        return (new Client(prot)).recv_getPurchaseScansByGrnDate();
1844
      }
1845
    }
1846
 
5496 mandeep.dh 1847
    public void fetchScansPerInvoiceNumber(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler) throws org.apache.thrift.TException {
1848
      checkReady();
1849
      fetchScansPerInvoiceNumber_call method_call = new fetchScansPerInvoiceNumber_call(date, resultHandler, this, ___protocolFactory, ___transport);
1850
      this.___currentMethod = method_call;
1851
      ___manager.call(method_call);
1852
    }
1853
 
1854
    public static class fetchScansPerInvoiceNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
1855
      private long date;
1856
      public fetchScansPerInvoiceNumber_call(long date, org.apache.thrift.async.AsyncMethodCallback<fetchScansPerInvoiceNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1857
        super(client, protocolFactory, transport, resultHandler, false);
1858
        this.date = date;
1859
      }
1860
 
1861
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1862
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("fetchScansPerInvoiceNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
1863
        fetchScansPerInvoiceNumber_args args = new fetchScansPerInvoiceNumber_args();
1864
        args.setDate(date);
1865
        args.write(prot);
1866
        prot.writeMessageEnd();
1867
      }
1868
 
1869
      public List<InvoiceScan> getResult() throws org.apache.thrift.TException {
1870
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1871
          throw new IllegalStateException("Method call not finished!");
1872
        }
1873
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1874
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1875
        return (new Client(prot)).recv_fetchScansPerInvoiceNumber();
1876
      }
1877
    }
1878
 
5620 mandeep.dh 1879
    public void getInventoryItemFromOrder(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler) throws org.apache.thrift.TException {
1880
      checkReady();
1881
      getInventoryItemFromOrder_call method_call = new getInventoryItemFromOrder_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1882
      this.___currentMethod = method_call;
1883
      ___manager.call(method_call);
1884
    }
1885
 
1886
    public static class getInventoryItemFromOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1887
      private long orderId;
1888
      public getInventoryItemFromOrder_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getInventoryItemFromOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1889
        super(client, protocolFactory, transport, resultHandler, false);
1890
        this.orderId = orderId;
1891
      }
1892
 
1893
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1894
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryItemFromOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1895
        getInventoryItemFromOrder_args args = new getInventoryItemFromOrder_args();
1896
        args.setOrderId(orderId);
1897
        args.write(prot);
1898
        prot.writeMessageEnd();
1899
      }
1900
 
1901
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
1902
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1903
          throw new IllegalStateException("Method call not finished!");
1904
        }
1905
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1906
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1907
        return (new Client(prot)).recv_getInventoryItemFromOrder();
1908
      }
1909
    }
1910
 
5711 mandeep.dh 1911
    public void getInventoryAge(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler) throws org.apache.thrift.TException {
1912
      checkReady();
1913
      getInventoryAge_call method_call = new getInventoryAge_call(resultHandler, this, ___protocolFactory, ___transport);
1914
      this.___currentMethod = method_call;
1915
      ___manager.call(method_call);
1916
    }
1917
 
1918
    public static class getInventoryAge_call extends org.apache.thrift.async.TAsyncMethodCall {
1919
      public getInventoryAge_call(org.apache.thrift.async.AsyncMethodCallback<getInventoryAge_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1920
        super(client, protocolFactory, transport, resultHandler, false);
1921
      }
1922
 
1923
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1924
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryAge", org.apache.thrift.protocol.TMessageType.CALL, 0));
1925
        getInventoryAge_args args = new getInventoryAge_args();
1926
        args.write(prot);
1927
        prot.writeMessageEnd();
1928
      }
1929
 
1930
      public List<InventoryAge> getResult() throws org.apache.thrift.TException {
1931
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1932
          throw new IllegalStateException("Method call not finished!");
1933
        }
1934
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1935
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1936
        return (new Client(prot)).recv_getInventoryAge();
1937
      }
1938
    }
1939
 
6322 amar.kumar 1940
    public void getInventoryScansForItem(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler) throws org.apache.thrift.TException {
1941
      checkReady();
1942
      getInventoryScansForItem_call method_call = new getInventoryScansForItem_call(itemId, fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
1943
      this.___currentMethod = method_call;
1944
      ___manager.call(method_call);
1945
    }
1946
 
1947
    public static class getInventoryScansForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
1948
      private long itemId;
1949
      private long fromDate;
1950
      private long toDate;
1951
      public getInventoryScansForItem_call(long itemId, long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getInventoryScansForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1952
        super(client, protocolFactory, transport, resultHandler, false);
1953
        this.itemId = itemId;
1954
        this.fromDate = fromDate;
1955
        this.toDate = toDate;
1956
      }
1957
 
1958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInventoryScansForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
1960
        getInventoryScansForItem_args args = new getInventoryScansForItem_args();
1961
        args.setItemId(itemId);
1962
        args.setFromDate(fromDate);
1963
        args.setToDate(toDate);
1964
        args.write(prot);
1965
        prot.writeMessageEnd();
1966
      }
1967
 
1968
      public List<Scan> getResult() throws org.apache.thrift.TException {
1969
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1970
          throw new IllegalStateException("Method call not finished!");
1971
        }
1972
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1973
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1974
        return (new Client(prot)).recv_getInventoryScansForItem();
1975
      }
1976
    }
1977
 
7410 amar.kumar 1978
    public void getScanRecordsForSerialNumber(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler) throws org.apache.thrift.TException {
6322 amar.kumar 1979
      checkReady();
1980
      getScanRecordsForSerialNumber_call method_call = new getScanRecordsForSerialNumber_call(serialNumber, resultHandler, this, ___protocolFactory, ___transport);
1981
      this.___currentMethod = method_call;
1982
      ___manager.call(method_call);
1983
    }
1984
 
1985
    public static class getScanRecordsForSerialNumber_call extends org.apache.thrift.async.TAsyncMethodCall {
7410 amar.kumar 1986
      private String serialNumber;
1987
      public getScanRecordsForSerialNumber_call(String serialNumber, org.apache.thrift.async.AsyncMethodCallback<getScanRecordsForSerialNumber_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6322 amar.kumar 1988
        super(client, protocolFactory, transport, resultHandler, false);
1989
        this.serialNumber = serialNumber;
1990
      }
1991
 
1992
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1993
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getScanRecordsForSerialNumber", org.apache.thrift.protocol.TMessageType.CALL, 0));
1994
        getScanRecordsForSerialNumber_args args = new getScanRecordsForSerialNumber_args();
1995
        args.setSerialNumber(serialNumber);
1996
        args.write(prot);
1997
        prot.writeMessageEnd();
1998
      }
1999
 
2000
      public List<Scan> getResult() throws org.apache.thrift.TException {
2001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2002
          throw new IllegalStateException("Method call not finished!");
2003
        }
2004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2006
        return (new Client(prot)).recv_getScanRecordsForSerialNumber();
2007
      }
2008
    }
2009
 
6467 amar.kumar 2010
    public void scanForPurchaseReturn(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler) throws org.apache.thrift.TException {
2011
      checkReady();
2012
      scanForPurchaseReturn_call method_call = new scanForPurchaseReturn_call(saleReturnItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2013
      this.___currentMethod = method_call;
2014
      ___manager.call(method_call);
2015
    }
2016
 
2017
    public static class scanForPurchaseReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2018
      private List<InventoryItem> saleReturnItems;
2019
      private long vendorId;
2020
      public scanForPurchaseReturn_call(List<InventoryItem> saleReturnItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForPurchaseReturn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2021
        super(client, protocolFactory, transport, resultHandler, false);
2022
        this.saleReturnItems = saleReturnItems;
2023
        this.vendorId = vendorId;
2024
      }
2025
 
2026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForPurchaseReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2028
        scanForPurchaseReturn_args args = new scanForPurchaseReturn_args();
2029
        args.setSaleReturnItems(saleReturnItems);
2030
        args.setVendorId(vendorId);
2031
        args.write(prot);
2032
        prot.writeMessageEnd();
2033
      }
2034
 
2035
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2036
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2037
          throw new IllegalStateException("Method call not finished!");
2038
        }
2039
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2040
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2041
        (new Client(prot)).recv_scanForPurchaseReturn();
2042
      }
2043
    }
2044
 
6548 amar.kumar 2045
    public void scanForLostItem(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler) throws org.apache.thrift.TException {
2046
      checkReady();
2047
      scanForLostItem_call method_call = new scanForLostItem_call(lostItems, vendorId, resultHandler, this, ___protocolFactory, ___transport);
2048
      this.___currentMethod = method_call;
2049
      ___manager.call(method_call);
2050
    }
2051
 
2052
    public static class scanForLostItem_call extends org.apache.thrift.async.TAsyncMethodCall {
2053
      private List<InventoryItem> lostItems;
2054
      private long vendorId;
2055
      public scanForLostItem_call(List<InventoryItem> lostItems, long vendorId, org.apache.thrift.async.AsyncMethodCallback<scanForLostItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2056
        super(client, protocolFactory, transport, resultHandler, false);
2057
        this.lostItems = lostItems;
2058
        this.vendorId = vendorId;
2059
      }
2060
 
2061
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2062
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForLostItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
2063
        scanForLostItem_args args = new scanForLostItem_args();
2064
        args.setLostItems(lostItems);
2065
        args.setVendorId(vendorId);
2066
        args.write(prot);
2067
        prot.writeMessageEnd();
2068
      }
2069
 
2070
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2071
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2072
          throw new IllegalStateException("Method call not finished!");
2073
        }
2074
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2075
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2076
        (new Client(prot)).recv_scanForLostItem();
2077
      }
2078
    }
2079
 
2080
    public void getCurrentSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2081
      checkReady();
2082
      getCurrentSerializedInventoryByScans_call method_call = new getCurrentSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2083
      this.___currentMethod = method_call;
2084
      ___manager.call(method_call);
2085
    }
2086
 
2087
    public static class getCurrentSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2088
      public getCurrentSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2089
        super(client, protocolFactory, transport, resultHandler, false);
2090
      }
2091
 
2092
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2093
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2094
        getCurrentSerializedInventoryByScans_args args = new getCurrentSerializedInventoryByScans_args();
2095
        args.write(prot);
2096
        prot.writeMessageEnd();
2097
      }
2098
 
2099
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2100
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2101
          throw new IllegalStateException("Method call not finished!");
2102
        }
2103
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2104
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2105
        return (new Client(prot)).recv_getCurrentSerializedInventoryByScans();
2106
      }
2107
    }
2108
 
6630 amar.kumar 2109
    public void getCurrentNonSerializedInventoryByScans(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2110
      checkReady();
2111
      getCurrentNonSerializedInventoryByScans_call method_call = new getCurrentNonSerializedInventoryByScans_call(resultHandler, this, ___protocolFactory, ___transport);
2112
      this.___currentMethod = method_call;
2113
      ___manager.call(method_call);
2114
    }
2115
 
2116
    public static class getCurrentNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2117
      public getCurrentNonSerializedInventoryByScans_call(org.apache.thrift.async.AsyncMethodCallback<getCurrentNonSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2118
        super(client, protocolFactory, transport, resultHandler, false);
2119
      }
2120
 
2121
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2122
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCurrentNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2123
        getCurrentNonSerializedInventoryByScans_args args = new getCurrentNonSerializedInventoryByScans_args();
2124
        args.write(prot);
2125
        prot.writeMessageEnd();
2126
      }
2127
 
2128
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2130
          throw new IllegalStateException("Method call not finished!");
2131
        }
2132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2134
        return (new Client(prot)).recv_getCurrentNonSerializedInventoryByScans();
2135
      }
2136
    }
2137
 
6762 amar.kumar 2138
    public void getHistoricSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2139
      checkReady();
2140
      getHistoricSerializedInventoryByScans_call method_call = new getHistoricSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2141
      this.___currentMethod = method_call;
2142
      ___manager.call(method_call);
2143
    }
2144
 
2145
    public static class getHistoricSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2146
      private long date;
2147
      public getHistoricSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2148
        super(client, protocolFactory, transport, resultHandler, false);
2149
        this.date = date;
2150
      }
2151
 
2152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2154
        getHistoricSerializedInventoryByScans_args args = new getHistoricSerializedInventoryByScans_args();
2155
        args.setDate(date);
2156
        args.write(prot);
2157
        prot.writeMessageEnd();
2158
      }
2159
 
2160
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2162
          throw new IllegalStateException("Method call not finished!");
2163
        }
2164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2166
        return (new Client(prot)).recv_getHistoricSerializedInventoryByScans();
2167
      }
2168
    }
2169
 
2170
    public void getHistoricNonSerializedInventoryByScans(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2171
      checkReady();
2172
      getHistoricNonSerializedInventoryByScans_call method_call = new getHistoricNonSerializedInventoryByScans_call(date, resultHandler, this, ___protocolFactory, ___transport);
2173
      this.___currentMethod = method_call;
2174
      ___manager.call(method_call);
2175
    }
2176
 
2177
    public static class getHistoricNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2178
      private long date;
2179
      public getHistoricNonSerializedInventoryByScans_call(long date, org.apache.thrift.async.AsyncMethodCallback<getHistoricNonSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2180
        super(client, protocolFactory, transport, resultHandler, false);
2181
        this.date = date;
2182
      }
2183
 
2184
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2185
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHistoricNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2186
        getHistoricNonSerializedInventoryByScans_args args = new getHistoricNonSerializedInventoryByScans_args();
2187
        args.setDate(date);
2188
        args.write(prot);
2189
        prot.writeMessageEnd();
2190
      }
2191
 
2192
      public List<InventoryAvailability> getResult() throws org.apache.thrift.TException {
2193
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2194
          throw new IllegalStateException("Method call not finished!");
2195
        }
2196
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2197
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2198
        return (new Client(prot)).recv_getHistoricNonSerializedInventoryByScans();
2199
      }
2200
    }
2201
 
2202
    public void scanForOursExternalSale(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_call> resultHandler) throws org.apache.thrift.TException {
2203
      checkReady();
2204
      scanForOursExternalSale_call method_call = new scanForOursExternalSale_call(itemId, serialNumber, itemNumber, invoiceNumber, warehouseId, unitPrice, orderId, resultHandler, this, ___protocolFactory, ___transport);
2205
      this.___currentMethod = method_call;
2206
      ___manager.call(method_call);
2207
    }
2208
 
2209
    public static class scanForOursExternalSale_call extends org.apache.thrift.async.TAsyncMethodCall {
2210
      private long itemId;
2211
      private String serialNumber;
2212
      private String itemNumber;
2213
      private String invoiceNumber;
2214
      private long warehouseId;
2215
      private double unitPrice;
2216
      private long orderId;
2217
      public scanForOursExternalSale_call(long itemId, String serialNumber, String itemNumber, String invoiceNumber, long warehouseId, double unitPrice, long orderId, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSale_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2218
        super(client, protocolFactory, transport, resultHandler, false);
2219
        this.itemId = itemId;
2220
        this.serialNumber = serialNumber;
2221
        this.itemNumber = itemNumber;
2222
        this.invoiceNumber = invoiceNumber;
2223
        this.warehouseId = warehouseId;
2224
        this.unitPrice = unitPrice;
2225
        this.orderId = orderId;
2226
      }
2227
 
2228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSale", org.apache.thrift.protocol.TMessageType.CALL, 0));
2230
        scanForOursExternalSale_args args = new scanForOursExternalSale_args();
2231
        args.setItemId(itemId);
2232
        args.setSerialNumber(serialNumber);
2233
        args.setItemNumber(itemNumber);
2234
        args.setInvoiceNumber(invoiceNumber);
2235
        args.setWarehouseId(warehouseId);
2236
        args.setUnitPrice(unitPrice);
2237
        args.setOrderId(orderId);
2238
        args.write(prot);
2239
        prot.writeMessageEnd();
2240
      }
2241
 
2242
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2243
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2244
          throw new IllegalStateException("Method call not finished!");
2245
        }
2246
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2247
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2248
        return (new Client(prot)).recv_scanForOursExternalSale();
2249
      }
2250
    }
2251
 
2252
    public void scanForOursExternalSaleReturn(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler) throws org.apache.thrift.TException {
2253
      checkReady();
2254
      scanForOursExternalSaleReturn_call method_call = new scanForOursExternalSaleReturn_call(orderId, unitPrice, resultHandler, this, ___protocolFactory, ___transport);
2255
      this.___currentMethod = method_call;
2256
      ___manager.call(method_call);
2257
    }
2258
 
2259
    public static class scanForOursExternalSaleReturn_call extends org.apache.thrift.async.TAsyncMethodCall {
2260
      private long orderId;
2261
      private double unitPrice;
2262
      public scanForOursExternalSaleReturn_call(long orderId, double unitPrice, org.apache.thrift.async.AsyncMethodCallback<scanForOursExternalSaleReturn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2263
        super(client, protocolFactory, transport, resultHandler, false);
2264
        this.orderId = orderId;
2265
        this.unitPrice = unitPrice;
2266
      }
2267
 
2268
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2269
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForOursExternalSaleReturn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2270
        scanForOursExternalSaleReturn_args args = new scanForOursExternalSaleReturn_args();
2271
        args.setOrderId(orderId);
2272
        args.setUnitPrice(unitPrice);
2273
        args.write(prot);
2274
        prot.writeMessageEnd();
2275
      }
2276
 
7410 amar.kumar 2277
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
6762 amar.kumar 2278
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2279
          throw new IllegalStateException("Method call not finished!");
2280
        }
2281
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2282
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2283
        (new Client(prot)).recv_scanForOursExternalSaleReturn();
2284
      }
2285
    }
2286
 
6880 amar.kumar 2287
    public void getMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2288
      checkReady();
2289
      getMovementNonSerializedInventoryByScans_call method_call = new getMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2290
      this.___currentMethod = method_call;
2291
      ___manager.call(method_call);
2292
    }
2293
 
2294
    public static class getMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2295
      private long startDate;
2296
      private long endDate;
2297
      public getMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementNonSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2298
        super(client, protocolFactory, transport, resultHandler, false);
2299
        this.startDate = startDate;
2300
        this.endDate = endDate;
2301
      }
2302
 
2303
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2304
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2305
        getMovementNonSerializedInventoryByScans_args args = new getMovementNonSerializedInventoryByScans_args();
2306
        args.setStartDate(startDate);
2307
        args.setEndDate(endDate);
2308
        args.write(prot);
2309
        prot.writeMessageEnd();
2310
      }
2311
 
2312
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2313
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2314
          throw new IllegalStateException("Method call not finished!");
2315
        }
2316
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2317
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2318
        return (new Client(prot)).recv_getMovementNonSerializedInventoryByScans();
2319
      }
2320
    }
2321
 
2322
    public void getMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2323
      checkReady();
2324
      getMovementSerializedInventoryByScans_call method_call = new getMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2325
      this.___currentMethod = method_call;
2326
      ___manager.call(method_call);
2327
    }
2328
 
2329
    public static class getMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2330
      private long startDate;
2331
      private long endDate;
2332
      public getMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getMovementSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2333
        super(client, protocolFactory, transport, resultHandler, false);
2334
        this.startDate = startDate;
2335
        this.endDate = endDate;
2336
      }
2337
 
2338
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2339
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2340
        getMovementSerializedInventoryByScans_args args = new getMovementSerializedInventoryByScans_args();
2341
        args.setStartDate(startDate);
2342
        args.setEndDate(endDate);
2343
        args.write(prot);
2344
        prot.writeMessageEnd();
2345
      }
2346
 
2347
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2348
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2349
          throw new IllegalStateException("Method call not finished!");
2350
        }
2351
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2352
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2353
        return (new Client(prot)).recv_getMovementSerializedInventoryByScans();
2354
      }
2355
    }
2356
 
7216 amar.kumar 2357
    public void getCompleteMovementSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2358
      checkReady();
2359
      getCompleteMovementSerializedInventoryByScans_call method_call = new getCompleteMovementSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2360
      this.___currentMethod = method_call;
2361
      ___manager.call(method_call);
2362
    }
2363
 
2364
    public static class getCompleteMovementSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2365
      private long startDate;
2366
      private long endDate;
2367
      public getCompleteMovementSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2368
        super(client, protocolFactory, transport, resultHandler, false);
2369
        this.startDate = startDate;
2370
        this.endDate = endDate;
2371
      }
2372
 
2373
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2374
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2375
        getCompleteMovementSerializedInventoryByScans_args args = new getCompleteMovementSerializedInventoryByScans_args();
2376
        args.setStartDate(startDate);
2377
        args.setEndDate(endDate);
2378
        args.write(prot);
2379
        prot.writeMessageEnd();
2380
      }
2381
 
2382
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2383
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2384
          throw new IllegalStateException("Method call not finished!");
2385
        }
2386
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2387
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2388
        return (new Client(prot)).recv_getCompleteMovementSerializedInventoryByScans();
2389
      }
2390
    }
2391
 
2392
    public void getCompleteMovementNonSerializedInventoryByScans(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler) throws org.apache.thrift.TException {
2393
      checkReady();
2394
      getCompleteMovementNonSerializedInventoryByScans_call method_call = new getCompleteMovementNonSerializedInventoryByScans_call(startDate, endDate, resultHandler, this, ___protocolFactory, ___transport);
2395
      this.___currentMethod = method_call;
2396
      ___manager.call(method_call);
2397
    }
2398
 
2399
    public static class getCompleteMovementNonSerializedInventoryByScans_call extends org.apache.thrift.async.TAsyncMethodCall {
2400
      private long startDate;
2401
      private long endDate;
2402
      public getCompleteMovementNonSerializedInventoryByScans_call(long startDate, long endDate, org.apache.thrift.async.AsyncMethodCallback<getCompleteMovementNonSerializedInventoryByScans_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2403
        super(client, protocolFactory, transport, resultHandler, false);
2404
        this.startDate = startDate;
2405
        this.endDate = endDate;
2406
      }
2407
 
2408
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2409
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCompleteMovementNonSerializedInventoryByScans", org.apache.thrift.protocol.TMessageType.CALL, 0));
2410
        getCompleteMovementNonSerializedInventoryByScans_args args = new getCompleteMovementNonSerializedInventoryByScans_args();
2411
        args.setStartDate(startDate);
2412
        args.setEndDate(endDate);
2413
        args.write(prot);
2414
        prot.writeMessageEnd();
2415
      }
2416
 
2417
      public List<InventoryMovement> getResult() throws org.apache.thrift.TException {
2418
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2419
          throw new IllegalStateException("Method call not finished!");
2420
        }
2421
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2422
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2423
        return (new Client(prot)).recv_getCompleteMovementNonSerializedInventoryByScans();
2424
      }
2425
    }
2426
 
7190 amar.kumar 2427
    public void scanfreebie(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler) throws org.apache.thrift.TException {
2428
      checkReady();
2429
      scanfreebie_call method_call = new scanfreebie_call(orderId, freebieItemId, freebieWarehouseId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2430
      this.___currentMethod = method_call;
2431
      ___manager.call(method_call);
2432
    }
2433
 
2434
    public static class scanfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2435
      private long orderId;
2436
      private long freebieItemId;
2437
      private long freebieWarehouseId;
2438
      private ScanType scanType;
2439
      public scanfreebie_call(long orderId, long freebieItemId, long freebieWarehouseId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<scanfreebie_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2440
        super(client, protocolFactory, transport, resultHandler, false);
2441
        this.orderId = orderId;
2442
        this.freebieItemId = freebieItemId;
2443
        this.freebieWarehouseId = freebieWarehouseId;
2444
        this.scanType = scanType;
2445
      }
2446
 
2447
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2448
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2449
        scanfreebie_args args = new scanfreebie_args();
2450
        args.setOrderId(orderId);
2451
        args.setFreebieItemId(freebieItemId);
2452
        args.setFreebieWarehouseId(freebieWarehouseId);
2453
        args.setScanType(scanType);
2454
        args.write(prot);
2455
        prot.writeMessageEnd();
2456
      }
2457
 
2458
      public InventoryItem getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2459
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2460
          throw new IllegalStateException("Method call not finished!");
2461
        }
2462
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2463
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2464
        return (new Client(prot)).recv_scanfreebie();
2465
      }
2466
    }
2467
 
7199 amar.kumar 2468
    public void reshipfreebie(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler) throws org.apache.thrift.TException {
2469
      checkReady();
2470
      reshipfreebie_call method_call = new reshipfreebie_call(oldOrderId, newOrderId, freebieItemId, scanType, resultHandler, this, ___protocolFactory, ___transport);
2471
      this.___currentMethod = method_call;
2472
      ___manager.call(method_call);
2473
    }
2474
 
2475
    public static class reshipfreebie_call extends org.apache.thrift.async.TAsyncMethodCall {
2476
      private long oldOrderId;
2477
      private long newOrderId;
2478
      private long freebieItemId;
2479
      private ScanType scanType;
2480
      public reshipfreebie_call(long oldOrderId, long newOrderId, long freebieItemId, ScanType scanType, org.apache.thrift.async.AsyncMethodCallback<reshipfreebie_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2481
        super(client, protocolFactory, transport, resultHandler, false);
2482
        this.oldOrderId = oldOrderId;
2483
        this.newOrderId = newOrderId;
2484
        this.freebieItemId = freebieItemId;
2485
        this.scanType = scanType;
2486
      }
2487
 
2488
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2489
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reshipfreebie", org.apache.thrift.protocol.TMessageType.CALL, 0));
2490
        reshipfreebie_args args = new reshipfreebie_args();
2491
        args.setOldOrderId(oldOrderId);
2492
        args.setNewOrderId(newOrderId);
2493
        args.setFreebieItemId(freebieItemId);
2494
        args.setScanType(scanType);
2495
        args.write(prot);
2496
        prot.writeMessageEnd();
2497
      }
2498
 
2499
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2500
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2501
          throw new IllegalStateException("Method call not finished!");
2502
        }
2503
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2504
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2505
        (new Client(prot)).recv_reshipfreebie();
2506
      }
2507
    }
2508
 
7410 amar.kumar 2509
    public void isItemTransferAllowed(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler) throws org.apache.thrift.TException {
2510
      checkReady();
2511
      isItemTransferAllowed_call method_call = new isItemTransferAllowed_call(warehouseId, transferWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2512
      this.___currentMethod = method_call;
2513
      ___manager.call(method_call);
2514
    }
2515
 
2516
    public static class isItemTransferAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
2517
      private long warehouseId;
2518
      private long transferWarehouseId;
2519
      public isItemTransferAllowed_call(long warehouseId, long transferWarehouseId, org.apache.thrift.async.AsyncMethodCallback<isItemTransferAllowed_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2520
        super(client, protocolFactory, transport, resultHandler, false);
2521
        this.warehouseId = warehouseId;
2522
        this.transferWarehouseId = transferWarehouseId;
2523
      }
2524
 
2525
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2526
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isItemTransferAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
2527
        isItemTransferAllowed_args args = new isItemTransferAllowed_args();
2528
        args.setWarehouseId(warehouseId);
2529
        args.setTransferWarehouseId(transferWarehouseId);
2530
        args.write(prot);
2531
        prot.writeMessageEnd();
2532
      }
2533
 
2534
      public boolean getResult() throws org.apache.thrift.TException {
2535
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2536
          throw new IllegalStateException("Method call not finished!");
2537
        }
2538
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2539
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2540
        return (new Client(prot)).recv_isItemTransferAllowed();
2541
      }
2542
    }
2543
 
2544
    public void createTransferLot(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2545
      checkReady();
2546
      createTransferLot_call method_call = new createTransferLot_call(originWarehouseId, destWarehouseId, resultHandler, this, ___protocolFactory, ___transport);
2547
      this.___currentMethod = method_call;
2548
      ___manager.call(method_call);
2549
    }
2550
 
2551
    public static class createTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2552
      private long originWarehouseId;
2553
      private long destWarehouseId;
2554
      public createTransferLot_call(long originWarehouseId, long destWarehouseId, org.apache.thrift.async.AsyncMethodCallback<createTransferLot_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2555
        super(client, protocolFactory, transport, resultHandler, false);
2556
        this.originWarehouseId = originWarehouseId;
2557
        this.destWarehouseId = destWarehouseId;
2558
      }
2559
 
2560
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2561
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2562
        createTransferLot_args args = new createTransferLot_args();
2563
        args.setOriginWarehouseId(originWarehouseId);
2564
        args.setDestWarehouseId(destWarehouseId);
2565
        args.write(prot);
2566
        prot.writeMessageEnd();
2567
      }
2568
 
2569
      public long getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2570
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2571
          throw new IllegalStateException("Method call not finished!");
2572
        }
2573
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2575
        return (new Client(prot)).recv_createTransferLot();
2576
      }
2577
    }
2578
 
2579
    public void getTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2580
      checkReady();
2581
      getTransferLot_call method_call = new getTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2582
      this.___currentMethod = method_call;
2583
      ___manager.call(method_call);
2584
    }
2585
 
2586
    public static class getTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2587
      private long transferLotId;
2588
      public getTransferLot_call(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getTransferLot_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2589
        super(client, protocolFactory, transport, resultHandler, false);
2590
        this.transferLotId = transferLotId;
2591
      }
2592
 
2593
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2594
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2595
        getTransferLot_args args = new getTransferLot_args();
2596
        args.setTransferLotId(transferLotId);
2597
        args.write(prot);
2598
        prot.writeMessageEnd();
2599
      }
2600
 
2601
      public TransferLot getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2602
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2603
          throw new IllegalStateException("Method call not finished!");
2604
        }
2605
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2606
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2607
        return (new Client(prot)).recv_getTransferLot();
2608
      }
2609
    }
2610
 
2611
    public void markTransferLotAsReceived(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler) throws org.apache.thrift.TException {
2612
      checkReady();
2613
      markTransferLotAsReceived_call method_call = new markTransferLotAsReceived_call(id, remoteTransferRefNumber, resultHandler, this, ___protocolFactory, ___transport);
2614
      this.___currentMethod = method_call;
2615
      ___manager.call(method_call);
2616
    }
2617
 
2618
    public static class markTransferLotAsReceived_call extends org.apache.thrift.async.TAsyncMethodCall {
2619
      private long id;
2620
      private String remoteTransferRefNumber;
2621
      public markTransferLotAsReceived_call(long id, String remoteTransferRefNumber, org.apache.thrift.async.AsyncMethodCallback<markTransferLotAsReceived_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2622
        super(client, protocolFactory, transport, resultHandler, false);
2623
        this.id = id;
2624
        this.remoteTransferRefNumber = remoteTransferRefNumber;
2625
      }
2626
 
2627
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2628
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markTransferLotAsReceived", org.apache.thrift.protocol.TMessageType.CALL, 0));
2629
        markTransferLotAsReceived_args args = new markTransferLotAsReceived_args();
2630
        args.setId(id);
2631
        args.setRemoteTransferRefNumber(remoteTransferRefNumber);
2632
        args.write(prot);
2633
        prot.writeMessageEnd();
2634
      }
2635
 
2636
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2637
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2638
          throw new IllegalStateException("Method call not finished!");
2639
        }
2640
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2641
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2642
        (new Client(prot)).recv_markTransferLotAsReceived();
2643
      }
2644
    }
2645
 
2646
    public void getTransferLotsByDate(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler) throws org.apache.thrift.TException {
2647
      checkReady();
2648
      getTransferLotsByDate_call method_call = new getTransferLotsByDate_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
2649
      this.___currentMethod = method_call;
2650
      ___manager.call(method_call);
2651
    }
2652
 
2653
    public static class getTransferLotsByDate_call extends org.apache.thrift.async.TAsyncMethodCall {
2654
      private long fromDate;
2655
      private long toDate;
2656
      public getTransferLotsByDate_call(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getTransferLotsByDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2657
        super(client, protocolFactory, transport, resultHandler, false);
2658
        this.fromDate = fromDate;
2659
        this.toDate = toDate;
2660
      }
2661
 
2662
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2663
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTransferLotsByDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
2664
        getTransferLotsByDate_args args = new getTransferLotsByDate_args();
2665
        args.setFromDate(fromDate);
2666
        args.setToDate(toDate);
2667
        args.write(prot);
2668
        prot.writeMessageEnd();
2669
      }
2670
 
2671
      public List<TransferLot> getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2672
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2673
          throw new IllegalStateException("Method call not finished!");
2674
        }
2675
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2676
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2677
        return (new Client(prot)).recv_getTransferLotsByDate();
2678
      }
2679
    }
2680
 
2681
    public void getAllowedDestinationWarehousesForTransfer(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2682
      checkReady();
2683
      getAllowedDestinationWarehousesForTransfer_call method_call = new getAllowedDestinationWarehousesForTransfer_call(warehouseId, resultHandler, this, ___protocolFactory, ___transport);
2684
      this.___currentMethod = method_call;
2685
      ___manager.call(method_call);
2686
    }
2687
 
2688
    public static class getAllowedDestinationWarehousesForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2689
      private long warehouseId;
2690
      public getAllowedDestinationWarehousesForTransfer_call(long warehouseId, org.apache.thrift.async.AsyncMethodCallback<getAllowedDestinationWarehousesForTransfer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2691
        super(client, protocolFactory, transport, resultHandler, false);
2692
        this.warehouseId = warehouseId;
2693
      }
2694
 
2695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllowedDestinationWarehousesForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2697
        getAllowedDestinationWarehousesForTransfer_args args = new getAllowedDestinationWarehousesForTransfer_args();
2698
        args.setWarehouseId(warehouseId);
2699
        args.write(prot);
2700
        prot.writeMessageEnd();
2701
      }
2702
 
2703
      public List<Long> getResult() throws org.apache.thrift.TException {
2704
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2705
          throw new IllegalStateException("Method call not finished!");
2706
        }
2707
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2708
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2709
        return (new Client(prot)).recv_getAllowedDestinationWarehousesForTransfer();
2710
      }
2711
    }
2712
 
2713
    public void getItemsInTransferLot(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2714
      checkReady();
2715
      getItemsInTransferLot_call method_call = new getItemsInTransferLot_call(transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2716
      this.___currentMethod = method_call;
2717
      ___manager.call(method_call);
2718
    }
2719
 
2720
    public static class getItemsInTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2721
      private long transferLotId;
2722
      public getItemsInTransferLot_call(long transferLotId, org.apache.thrift.async.AsyncMethodCallback<getItemsInTransferLot_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2723
        super(client, protocolFactory, transport, resultHandler, false);
2724
        this.transferLotId = transferLotId;
2725
      }
2726
 
2727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemsInTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2729
        getItemsInTransferLot_args args = new getItemsInTransferLot_args();
2730
        args.setTransferLotId(transferLotId);
2731
        args.write(prot);
2732
        prot.writeMessageEnd();
2733
      }
2734
 
2735
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
2736
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2737
          throw new IllegalStateException("Method call not finished!");
2738
        }
2739
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2740
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2741
        return (new Client(prot)).recv_getItemsInTransferLot();
2742
      }
2743
    }
2744
 
2745
    public void markItemsAsReceivedForTransferLot(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler) throws org.apache.thrift.TException {
2746
      checkReady();
2747
      markItemsAsReceivedForTransferLot_call method_call = new markItemsAsReceivedForTransferLot_call(id, resultHandler, this, ___protocolFactory, ___transport);
2748
      this.___currentMethod = method_call;
2749
      ___manager.call(method_call);
2750
    }
2751
 
2752
    public static class markItemsAsReceivedForTransferLot_call extends org.apache.thrift.async.TAsyncMethodCall {
2753
      private long id;
2754
      public markItemsAsReceivedForTransferLot_call(long id, org.apache.thrift.async.AsyncMethodCallback<markItemsAsReceivedForTransferLot_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2755
        super(client, protocolFactory, transport, resultHandler, false);
2756
        this.id = id;
2757
      }
2758
 
2759
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2760
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markItemsAsReceivedForTransferLot", org.apache.thrift.protocol.TMessageType.CALL, 0));
2761
        markItemsAsReceivedForTransferLot_args args = new markItemsAsReceivedForTransferLot_args();
2762
        args.setId(id);
2763
        args.write(prot);
2764
        prot.writeMessageEnd();
2765
      }
2766
 
2767
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2768
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2769
          throw new IllegalStateException("Method call not finished!");
2770
        }
2771
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2772
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2773
        (new Client(prot)).recv_markItemsAsReceivedForTransferLot();
2774
      }
2775
    }
2776
 
2777
    public void updateTransferLotAfterItemReceive(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler) throws org.apache.thrift.TException {
2778
      checkReady();
2779
      updateTransferLotAfterItemReceive_call method_call = new updateTransferLotAfterItemReceive_call(id, resultHandler, this, ___protocolFactory, ___transport);
2780
      this.___currentMethod = method_call;
2781
      ___manager.call(method_call);
2782
    }
2783
 
2784
    public static class updateTransferLotAfterItemReceive_call extends org.apache.thrift.async.TAsyncMethodCall {
2785
      private long id;
2786
      public updateTransferLotAfterItemReceive_call(long id, org.apache.thrift.async.AsyncMethodCallback<updateTransferLotAfterItemReceive_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2787
        super(client, protocolFactory, transport, resultHandler, false);
2788
        this.id = id;
2789
      }
2790
 
2791
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2792
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTransferLotAfterItemReceive", org.apache.thrift.protocol.TMessageType.CALL, 0));
2793
        updateTransferLotAfterItemReceive_args args = new updateTransferLotAfterItemReceive_args();
2794
        args.setId(id);
2795
        args.write(prot);
2796
        prot.writeMessageEnd();
2797
      }
2798
 
2799
      public TransferLotStatus getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2801
          throw new IllegalStateException("Method call not finished!");
2802
        }
2803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2805
        return (new Client(prot)).recv_updateTransferLotAfterItemReceive();
2806
      }
2807
    }
2808
 
2809
    public void scanForTransfer(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_call> resultHandler) throws org.apache.thrift.TException {
2810
      checkReady();
2811
      scanForTransfer_call method_call = new scanForTransfer_call(inventoryItems, type, transferLotId, resultHandler, this, ___protocolFactory, ___transport);
2812
      this.___currentMethod = method_call;
2813
      ___manager.call(method_call);
2814
    }
2815
 
2816
    public static class scanForTransfer_call extends org.apache.thrift.async.TAsyncMethodCall {
2817
      private List<InventoryItem> inventoryItems;
2818
      private ScanType type;
2819
      private long transferLotId;
2820
      public scanForTransfer_call(List<InventoryItem> inventoryItems, ScanType type, long transferLotId, org.apache.thrift.async.AsyncMethodCallback<scanForTransfer_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
2821
        super(client, protocolFactory, transport, resultHandler, false);
2822
        this.inventoryItems = inventoryItems;
2823
        this.type = type;
2824
        this.transferLotId = transferLotId;
2825
      }
2826
 
2827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("scanForTransfer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2829
        scanForTransfer_args args = new scanForTransfer_args();
2830
        args.setInventoryItems(inventoryItems);
2831
        args.setType(type);
2832
        args.setTransferLotId(transferLotId);
2833
        args.write(prot);
2834
        prot.writeMessageEnd();
2835
      }
2836
 
2837
      public void getResult() throws WarehouseServiceException, org.apache.thrift.TException {
2838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2839
          throw new IllegalStateException("Method call not finished!");
2840
        }
2841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2843
        (new Client(prot)).recv_scanForTransfer();
2844
      }
2845
    }
2846
 
3430 rajveer 2847
  }
2848
 
2849
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2850
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2851
    public Processor(I iface) {
2852
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2853
    }
2854
 
2855
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2856
      super(iface, getProcessMap(processMap));
2857
    }
2858
 
2859
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
4496 mandeep.dh 2860
      processMap.put("getInventoryItem", new getInventoryItem());
5361 mandeep.dh 2861
      processMap.put("getNonSeralizedInventoryItem", new getNonSeralizedInventoryItem());
4496 mandeep.dh 2862
      processMap.put("scan", new scan());
2863
      processMap.put("scanSerializedItemForOrder", new scanSerializedItemForOrder());
2864
      processMap.put("scanForOrder", new scanForOrder());
2865
      processMap.put("createItemNumberMapping", new createItemNumberMapping());
4622 amit.gupta 2866
      processMap.put("getItemNumbers", new getItemNumbers());
5110 mandeep.dh 2867
      processMap.put("getItemIds", new getItemIds());
5185 mandeep.dh 2868
      processMap.put("getInventoryItemsFromLastScanType", new getInventoryItemsFromLastScanType());
2869
      processMap.put("getInventoryItemFromId", new getInventoryItemFromId());
5372 mandeep.dh 2870
      processMap.put("getPurchaseScans", new getPurchaseScans());
7210 amar.kumar 2871
      processMap.put("getPurchaseScansByGrnDate", new getPurchaseScansByGrnDate());
5496 mandeep.dh 2872
      processMap.put("fetchScansPerInvoiceNumber", new fetchScansPerInvoiceNumber());
5620 mandeep.dh 2873
      processMap.put("getInventoryItemFromOrder", new getInventoryItemFromOrder());
5711 mandeep.dh 2874
      processMap.put("getInventoryAge", new getInventoryAge());
6322 amar.kumar 2875
      processMap.put("getInventoryScansForItem", new getInventoryScansForItem());
2876
      processMap.put("getScanRecordsForSerialNumber", new getScanRecordsForSerialNumber());
6467 amar.kumar 2877
      processMap.put("scanForPurchaseReturn", new scanForPurchaseReturn());
6548 amar.kumar 2878
      processMap.put("scanForLostItem", new scanForLostItem());
2879
      processMap.put("getCurrentSerializedInventoryByScans", new getCurrentSerializedInventoryByScans());
6630 amar.kumar 2880
      processMap.put("getCurrentNonSerializedInventoryByScans", new getCurrentNonSerializedInventoryByScans());
6762 amar.kumar 2881
      processMap.put("getHistoricSerializedInventoryByScans", new getHistoricSerializedInventoryByScans());
2882
      processMap.put("getHistoricNonSerializedInventoryByScans", new getHistoricNonSerializedInventoryByScans());
2883
      processMap.put("scanForOursExternalSale", new scanForOursExternalSale());
2884
      processMap.put("scanForOursExternalSaleReturn", new scanForOursExternalSaleReturn());
6880 amar.kumar 2885
      processMap.put("getMovementNonSerializedInventoryByScans", new getMovementNonSerializedInventoryByScans());
2886
      processMap.put("getMovementSerializedInventoryByScans", new getMovementSerializedInventoryByScans());
7216 amar.kumar 2887
      processMap.put("getCompleteMovementSerializedInventoryByScans", new getCompleteMovementSerializedInventoryByScans());
2888
      processMap.put("getCompleteMovementNonSerializedInventoryByScans", new getCompleteMovementNonSerializedInventoryByScans());
7190 amar.kumar 2889
      processMap.put("scanfreebie", new scanfreebie());
7199 amar.kumar 2890
      processMap.put("reshipfreebie", new reshipfreebie());
7410 amar.kumar 2891
      processMap.put("isItemTransferAllowed", new isItemTransferAllowed());
2892
      processMap.put("createTransferLot", new createTransferLot());
2893
      processMap.put("getTransferLot", new getTransferLot());
2894
      processMap.put("markTransferLotAsReceived", new markTransferLotAsReceived());
2895
      processMap.put("getTransferLotsByDate", new getTransferLotsByDate());
2896
      processMap.put("getAllowedDestinationWarehousesForTransfer", new getAllowedDestinationWarehousesForTransfer());
2897
      processMap.put("getItemsInTransferLot", new getItemsInTransferLot());
2898
      processMap.put("markItemsAsReceivedForTransferLot", new markItemsAsReceivedForTransferLot());
2899
      processMap.put("updateTransferLotAfterItemReceive", new updateTransferLotAfterItemReceive());
2900
      processMap.put("scanForTransfer", new scanForTransfer());
3430 rajveer 2901
      return processMap;
2902
    }
2903
 
4496 mandeep.dh 2904
    private static class getInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItem_args> {
2905
      public getInventoryItem() {
2906
        super("getInventoryItem");
3430 rajveer 2907
      }
2908
 
4496 mandeep.dh 2909
      protected getInventoryItem_args getEmptyArgsInstance() {
2910
        return new getInventoryItem_args();
3430 rajveer 2911
      }
2912
 
4496 mandeep.dh 2913
      protected getInventoryItem_result getResult(I iface, getInventoryItem_args args) throws org.apache.thrift.TException {
2914
        getInventoryItem_result result = new getInventoryItem_result();
4541 mandeep.dh 2915
        try {
2916
          result.success = iface.getInventoryItem(args.serialNumber);
2917
        } catch (WarehouseServiceException wex) {
2918
          result.wex = wex;
2919
        }
3430 rajveer 2920
        return result;
2832 chandransh 2921
      }
2922
    }
2923
 
5361 mandeep.dh 2924
    private static class getNonSeralizedInventoryItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getNonSeralizedInventoryItem_args> {
2925
      public getNonSeralizedInventoryItem() {
2926
        super("getNonSeralizedInventoryItem");
3430 rajveer 2927
      }
2928
 
5361 mandeep.dh 2929
      protected getNonSeralizedInventoryItem_args getEmptyArgsInstance() {
2930
        return new getNonSeralizedInventoryItem_args();
3430 rajveer 2931
      }
2932
 
5361 mandeep.dh 2933
      protected getNonSeralizedInventoryItem_result getResult(I iface, getNonSeralizedInventoryItem_args args) throws org.apache.thrift.TException {
2934
        getNonSeralizedInventoryItem_result result = new getNonSeralizedInventoryItem_result();
2935
        try {
5530 mandeep.dh 2936
          result.success = iface.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId);
5361 mandeep.dh 2937
        } catch (WarehouseServiceException wex) {
2938
          result.wex = wex;
2939
        }
3430 rajveer 2940
        return result;
2820 chandransh 2941
      }
2942
    }
2943
 
4496 mandeep.dh 2944
    private static class scan<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scan_args> {
2945
      public scan() {
2946
        super("scan");
3430 rajveer 2947
      }
2948
 
4496 mandeep.dh 2949
      protected scan_args getEmptyArgsInstance() {
2950
        return new scan_args();
3430 rajveer 2951
      }
2952
 
4496 mandeep.dh 2953
      protected scan_result getResult(I iface, scan_args args) throws org.apache.thrift.TException {
2954
        scan_result result = new scan_result();
3383 chandransh 2955
        try {
7410 amar.kumar 2956
          iface.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId, args.transferLotId);
3383 chandransh 2957
        } catch (WarehouseServiceException wex) {
2958
          result.wex = wex;
2959
        }
3430 rajveer 2960
        return result;
3383 chandransh 2961
      }
2962
    }
2963
 
4496 mandeep.dh 2964
    private static class scanSerializedItemForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanSerializedItemForOrder_args> {
2965
      public scanSerializedItemForOrder() {
2966
        super("scanSerializedItemForOrder");
3430 rajveer 2967
      }
2968
 
4496 mandeep.dh 2969
      protected scanSerializedItemForOrder_args getEmptyArgsInstance() {
2970
        return new scanSerializedItemForOrder_args();
3430 rajveer 2971
      }
2972
 
4496 mandeep.dh 2973
      protected scanSerializedItemForOrder_result getResult(I iface, scanSerializedItemForOrder_args args) throws org.apache.thrift.TException {
2974
        scanSerializedItemForOrder_result result = new scanSerializedItemForOrder_result();
2820 chandransh 2975
        try {
5110 mandeep.dh 2976
          result.success = iface.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId);
2820 chandransh 2977
        } catch (WarehouseServiceException wex) {
2978
          result.wex = wex;
2979
        }
3430 rajveer 2980
        return result;
2820 chandransh 2981
      }
2982
    }
2983
 
4496 mandeep.dh 2984
    private static class scanForOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOrder_args> {
2985
      public scanForOrder() {
2986
        super("scanForOrder");
3430 rajveer 2987
      }
2988
 
4496 mandeep.dh 2989
      protected scanForOrder_args getEmptyArgsInstance() {
2990
        return new scanForOrder_args();
3430 rajveer 2991
      }
2992
 
4496 mandeep.dh 2993
      protected scanForOrder_result getResult(I iface, scanForOrder_args args) throws org.apache.thrift.TException {
2994
        scanForOrder_result result = new scanForOrder_result();
2820 chandransh 2995
        try {
5361 mandeep.dh 2996
          result.success = iface.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId);
2820 chandransh 2997
        } catch (WarehouseServiceException wex) {
2998
          result.wex = wex;
2999
        }
3430 rajveer 3000
        return result;
2820 chandransh 3001
      }
3002
    }
3003
 
4496 mandeep.dh 3004
    private static class createItemNumberMapping<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createItemNumberMapping_args> {
3005
      public createItemNumberMapping() {
3006
        super("createItemNumberMapping");
3007
      }
3008
 
3009
      protected createItemNumberMapping_args getEmptyArgsInstance() {
3010
        return new createItemNumberMapping_args();
3011
      }
3012
 
3013
      protected createItemNumberMapping_result getResult(I iface, createItemNumberMapping_args args) throws org.apache.thrift.TException {
3014
        createItemNumberMapping_result result = new createItemNumberMapping_result();
3015
        iface.createItemNumberMapping(args.itemNumber, args.itemId);
3016
        return result;
3017
      }
3018
    }
3019
 
4622 amit.gupta 3020
    private static class getItemNumbers<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemNumbers_args> {
3021
      public getItemNumbers() {
3022
        super("getItemNumbers");
3023
      }
3024
 
3025
      protected getItemNumbers_args getEmptyArgsInstance() {
3026
        return new getItemNumbers_args();
3027
      }
3028
 
3029
      protected getItemNumbers_result getResult(I iface, getItemNumbers_args args) throws org.apache.thrift.TException {
3030
        getItemNumbers_result result = new getItemNumbers_result();
3031
        result.success = iface.getItemNumbers(args.itemId);
3032
        return result;
3033
      }
3034
    }
3035
 
5110 mandeep.dh 3036
    private static class getItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemIds_args> {
3037
      public getItemIds() {
3038
        super("getItemIds");
3039
      }
3040
 
3041
      protected getItemIds_args getEmptyArgsInstance() {
3042
        return new getItemIds_args();
3043
      }
3044
 
3045
      protected getItemIds_result getResult(I iface, getItemIds_args args) throws org.apache.thrift.TException {
3046
        getItemIds_result result = new getItemIds_result();
3047
        result.success = iface.getItemIds(args.itemNumber);
3048
        return result;
3049
      }
3050
    }
3051
 
5185 mandeep.dh 3052
    private static class getInventoryItemsFromLastScanType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemsFromLastScanType_args> {
3053
      public getInventoryItemsFromLastScanType() {
3054
        super("getInventoryItemsFromLastScanType");
3055
      }
3056
 
3057
      protected getInventoryItemsFromLastScanType_args getEmptyArgsInstance() {
3058
        return new getInventoryItemsFromLastScanType_args();
3059
      }
3060
 
3061
      protected getInventoryItemsFromLastScanType_result getResult(I iface, getInventoryItemsFromLastScanType_args args) throws org.apache.thrift.TException {
3062
        getInventoryItemsFromLastScanType_result result = new getInventoryItemsFromLastScanType_result();
3063
        try {
3064
          result.success = iface.getInventoryItemsFromLastScanType(args.lastScanType);
3065
        } catch (WarehouseServiceException wex) {
3066
          result.wex = wex;
3067
        }
3068
        return result;
3069
      }
3070
    }
3071
 
3072
    private static class getInventoryItemFromId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromId_args> {
3073
      public getInventoryItemFromId() {
3074
        super("getInventoryItemFromId");
3075
      }
3076
 
3077
      protected getInventoryItemFromId_args getEmptyArgsInstance() {
3078
        return new getInventoryItemFromId_args();
3079
      }
3080
 
3081
      protected getInventoryItemFromId_result getResult(I iface, getInventoryItemFromId_args args) throws org.apache.thrift.TException {
3082
        getInventoryItemFromId_result result = new getInventoryItemFromId_result();
3083
        try {
3084
          result.success = iface.getInventoryItemFromId(args.inventoryItemId);
3085
        } catch (WarehouseServiceException wex) {
3086
          result.wex = wex;
3087
        }
3088
        return result;
3089
      }
3090
    }
3091
 
5372 mandeep.dh 3092
    private static class getPurchaseScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScans_args> {
3093
      public getPurchaseScans() {
3094
        super("getPurchaseScans");
3095
      }
3096
 
3097
      protected getPurchaseScans_args getEmptyArgsInstance() {
3098
        return new getPurchaseScans_args();
3099
      }
3100
 
3101
      protected getPurchaseScans_result getResult(I iface, getPurchaseScans_args args) throws org.apache.thrift.TException {
3102
        getPurchaseScans_result result = new getPurchaseScans_result();
3103
        result.success = iface.getPurchaseScans(args.startDate, args.endDate);
3104
        return result;
3105
      }
3106
    }
3107
 
7210 amar.kumar 3108
    private static class getPurchaseScansByGrnDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPurchaseScansByGrnDate_args> {
3109
      public getPurchaseScansByGrnDate() {
3110
        super("getPurchaseScansByGrnDate");
3111
      }
3112
 
3113
      protected getPurchaseScansByGrnDate_args getEmptyArgsInstance() {
3114
        return new getPurchaseScansByGrnDate_args();
3115
      }
3116
 
3117
      protected getPurchaseScansByGrnDate_result getResult(I iface, getPurchaseScansByGrnDate_args args) throws org.apache.thrift.TException {
3118
        getPurchaseScansByGrnDate_result result = new getPurchaseScansByGrnDate_result();
3119
        result.success = iface.getPurchaseScansByGrnDate(args.startDate, args.endDate);
3120
        return result;
3121
      }
3122
    }
3123
 
5496 mandeep.dh 3124
    private static class fetchScansPerInvoiceNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, fetchScansPerInvoiceNumber_args> {
3125
      public fetchScansPerInvoiceNumber() {
3126
        super("fetchScansPerInvoiceNumber");
3127
      }
3128
 
3129
      protected fetchScansPerInvoiceNumber_args getEmptyArgsInstance() {
3130
        return new fetchScansPerInvoiceNumber_args();
3131
      }
3132
 
3133
      protected fetchScansPerInvoiceNumber_result getResult(I iface, fetchScansPerInvoiceNumber_args args) throws org.apache.thrift.TException {
3134
        fetchScansPerInvoiceNumber_result result = new fetchScansPerInvoiceNumber_result();
3135
        result.success = iface.fetchScansPerInvoiceNumber(args.date);
3136
        return result;
3137
      }
3138
    }
3139
 
5620 mandeep.dh 3140
    private static class getInventoryItemFromOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryItemFromOrder_args> {
3141
      public getInventoryItemFromOrder() {
3142
        super("getInventoryItemFromOrder");
3143
      }
3144
 
3145
      protected getInventoryItemFromOrder_args getEmptyArgsInstance() {
3146
        return new getInventoryItemFromOrder_args();
3147
      }
3148
 
3149
      protected getInventoryItemFromOrder_result getResult(I iface, getInventoryItemFromOrder_args args) throws org.apache.thrift.TException {
3150
        getInventoryItemFromOrder_result result = new getInventoryItemFromOrder_result();
3151
        try {
3152
          result.success = iface.getInventoryItemFromOrder(args.orderId);
3153
        } catch (WarehouseServiceException we) {
3154
          result.we = we;
3155
        }
3156
        return result;
3157
      }
3158
    }
3159
 
5711 mandeep.dh 3160
    private static class getInventoryAge<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryAge_args> {
3161
      public getInventoryAge() {
3162
        super("getInventoryAge");
3163
      }
3164
 
3165
      protected getInventoryAge_args getEmptyArgsInstance() {
3166
        return new getInventoryAge_args();
3167
      }
3168
 
3169
      protected getInventoryAge_result getResult(I iface, getInventoryAge_args args) throws org.apache.thrift.TException {
3170
        getInventoryAge_result result = new getInventoryAge_result();
3171
        result.success = iface.getInventoryAge();
3172
        return result;
3173
      }
3174
    }
3175
 
6322 amar.kumar 3176
    private static class getInventoryScansForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInventoryScansForItem_args> {
3177
      public getInventoryScansForItem() {
3178
        super("getInventoryScansForItem");
3179
      }
3180
 
3181
      protected getInventoryScansForItem_args getEmptyArgsInstance() {
3182
        return new getInventoryScansForItem_args();
3183
      }
3184
 
3185
      protected getInventoryScansForItem_result getResult(I iface, getInventoryScansForItem_args args) throws org.apache.thrift.TException {
3186
        getInventoryScansForItem_result result = new getInventoryScansForItem_result();
3187
        result.success = iface.getInventoryScansForItem(args.itemId, args.fromDate, args.toDate);
3188
        return result;
3189
      }
3190
    }
3191
 
3192
    private static class getScanRecordsForSerialNumber<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getScanRecordsForSerialNumber_args> {
3193
      public getScanRecordsForSerialNumber() {
3194
        super("getScanRecordsForSerialNumber");
3195
      }
3196
 
3197
      protected getScanRecordsForSerialNumber_args getEmptyArgsInstance() {
3198
        return new getScanRecordsForSerialNumber_args();
3199
      }
3200
 
3201
      protected getScanRecordsForSerialNumber_result getResult(I iface, getScanRecordsForSerialNumber_args args) throws org.apache.thrift.TException {
3202
        getScanRecordsForSerialNumber_result result = new getScanRecordsForSerialNumber_result();
3203
        result.success = iface.getScanRecordsForSerialNumber(args.serialNumber);
3204
        return result;
3205
      }
3206
    }
3207
 
6467 amar.kumar 3208
    private static class scanForPurchaseReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForPurchaseReturn_args> {
3209
      public scanForPurchaseReturn() {
3210
        super("scanForPurchaseReturn");
3211
      }
3212
 
3213
      protected scanForPurchaseReturn_args getEmptyArgsInstance() {
3214
        return new scanForPurchaseReturn_args();
3215
      }
3216
 
3217
      protected scanForPurchaseReturn_result getResult(I iface, scanForPurchaseReturn_args args) throws org.apache.thrift.TException {
3218
        scanForPurchaseReturn_result result = new scanForPurchaseReturn_result();
3219
        try {
3220
          iface.scanForPurchaseReturn(args.saleReturnItems, args.vendorId);
3221
        } catch (WarehouseServiceException ex) {
3222
          result.ex = ex;
3223
        }
3224
        return result;
3225
      }
3226
    }
3227
 
6548 amar.kumar 3228
    private static class scanForLostItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForLostItem_args> {
3229
      public scanForLostItem() {
3230
        super("scanForLostItem");
3231
      }
3232
 
3233
      protected scanForLostItem_args getEmptyArgsInstance() {
3234
        return new scanForLostItem_args();
3235
      }
3236
 
3237
      protected scanForLostItem_result getResult(I iface, scanForLostItem_args args) throws org.apache.thrift.TException {
3238
        scanForLostItem_result result = new scanForLostItem_result();
3239
        try {
3240
          iface.scanForLostItem(args.lostItems, args.vendorId);
3241
        } catch (WarehouseServiceException ex) {
3242
          result.ex = ex;
3243
        }
3244
        return result;
3245
      }
3246
    }
3247
 
3248
    private static class getCurrentSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentSerializedInventoryByScans_args> {
3249
      public getCurrentSerializedInventoryByScans() {
3250
        super("getCurrentSerializedInventoryByScans");
3251
      }
3252
 
3253
      protected getCurrentSerializedInventoryByScans_args getEmptyArgsInstance() {
3254
        return new getCurrentSerializedInventoryByScans_args();
3255
      }
3256
 
3257
      protected getCurrentSerializedInventoryByScans_result getResult(I iface, getCurrentSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3258
        getCurrentSerializedInventoryByScans_result result = new getCurrentSerializedInventoryByScans_result();
3259
        result.success = iface.getCurrentSerializedInventoryByScans();
3260
        return result;
3261
      }
3262
    }
3263
 
6630 amar.kumar 3264
    private static class getCurrentNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCurrentNonSerializedInventoryByScans_args> {
3265
      public getCurrentNonSerializedInventoryByScans() {
3266
        super("getCurrentNonSerializedInventoryByScans");
3267
      }
3268
 
3269
      protected getCurrentNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3270
        return new getCurrentNonSerializedInventoryByScans_args();
3271
      }
3272
 
3273
      protected getCurrentNonSerializedInventoryByScans_result getResult(I iface, getCurrentNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3274
        getCurrentNonSerializedInventoryByScans_result result = new getCurrentNonSerializedInventoryByScans_result();
3275
        result.success = iface.getCurrentNonSerializedInventoryByScans();
3276
        return result;
3277
      }
3278
    }
3279
 
6762 amar.kumar 3280
    private static class getHistoricSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricSerializedInventoryByScans_args> {
3281
      public getHistoricSerializedInventoryByScans() {
3282
        super("getHistoricSerializedInventoryByScans");
3283
      }
3284
 
3285
      protected getHistoricSerializedInventoryByScans_args getEmptyArgsInstance() {
3286
        return new getHistoricSerializedInventoryByScans_args();
3287
      }
3288
 
3289
      protected getHistoricSerializedInventoryByScans_result getResult(I iface, getHistoricSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3290
        getHistoricSerializedInventoryByScans_result result = new getHistoricSerializedInventoryByScans_result();
3291
        result.success = iface.getHistoricSerializedInventoryByScans(args.date);
3292
        return result;
3293
      }
3294
    }
3295
 
3296
    private static class getHistoricNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHistoricNonSerializedInventoryByScans_args> {
3297
      public getHistoricNonSerializedInventoryByScans() {
3298
        super("getHistoricNonSerializedInventoryByScans");
3299
      }
3300
 
3301
      protected getHistoricNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3302
        return new getHistoricNonSerializedInventoryByScans_args();
3303
      }
3304
 
3305
      protected getHistoricNonSerializedInventoryByScans_result getResult(I iface, getHistoricNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3306
        getHistoricNonSerializedInventoryByScans_result result = new getHistoricNonSerializedInventoryByScans_result();
3307
        result.success = iface.getHistoricNonSerializedInventoryByScans(args.date);
3308
        return result;
3309
      }
3310
    }
3311
 
3312
    private static class scanForOursExternalSale<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSale_args> {
3313
      public scanForOursExternalSale() {
3314
        super("scanForOursExternalSale");
3315
      }
3316
 
3317
      protected scanForOursExternalSale_args getEmptyArgsInstance() {
3318
        return new scanForOursExternalSale_args();
3319
      }
3320
 
3321
      protected scanForOursExternalSale_result getResult(I iface, scanForOursExternalSale_args args) throws org.apache.thrift.TException {
3322
        scanForOursExternalSale_result result = new scanForOursExternalSale_result();
3323
        try {
3324
          result.success = iface.scanForOursExternalSale(args.itemId, args.serialNumber, args.itemNumber, args.invoiceNumber, args.warehouseId, args.unitPrice, args.orderId);
3325
        } catch (WarehouseServiceException ex) {
3326
          result.ex = ex;
3327
        }
3328
        return result;
3329
      }
3330
    }
3331
 
3332
    private static class scanForOursExternalSaleReturn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForOursExternalSaleReturn_args> {
3333
      public scanForOursExternalSaleReturn() {
3334
        super("scanForOursExternalSaleReturn");
3335
      }
3336
 
3337
      protected scanForOursExternalSaleReturn_args getEmptyArgsInstance() {
3338
        return new scanForOursExternalSaleReturn_args();
3339
      }
3340
 
3341
      protected scanForOursExternalSaleReturn_result getResult(I iface, scanForOursExternalSaleReturn_args args) throws org.apache.thrift.TException {
3342
        scanForOursExternalSaleReturn_result result = new scanForOursExternalSaleReturn_result();
7410 amar.kumar 3343
        try {
3344
          iface.scanForOursExternalSaleReturn(args.orderId, args.unitPrice);
3345
        } catch (WarehouseServiceException ex) {
3346
          result.ex = ex;
3347
        }
6762 amar.kumar 3348
        return result;
3349
      }
3350
    }
3351
 
6880 amar.kumar 3352
    private static class getMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementNonSerializedInventoryByScans_args> {
3353
      public getMovementNonSerializedInventoryByScans() {
3354
        super("getMovementNonSerializedInventoryByScans");
3355
      }
3356
 
3357
      protected getMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3358
        return new getMovementNonSerializedInventoryByScans_args();
3359
      }
3360
 
3361
      protected getMovementNonSerializedInventoryByScans_result getResult(I iface, getMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3362
        getMovementNonSerializedInventoryByScans_result result = new getMovementNonSerializedInventoryByScans_result();
3363
        result.success = iface.getMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3364
        return result;
3365
      }
3366
    }
3367
 
3368
    private static class getMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMovementSerializedInventoryByScans_args> {
3369
      public getMovementSerializedInventoryByScans() {
3370
        super("getMovementSerializedInventoryByScans");
3371
      }
3372
 
3373
      protected getMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3374
        return new getMovementSerializedInventoryByScans_args();
3375
      }
3376
 
3377
      protected getMovementSerializedInventoryByScans_result getResult(I iface, getMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3378
        getMovementSerializedInventoryByScans_result result = new getMovementSerializedInventoryByScans_result();
3379
        result.success = iface.getMovementSerializedInventoryByScans(args.startDate, args.endDate);
3380
        return result;
3381
      }
3382
    }
3383
 
7216 amar.kumar 3384
    private static class getCompleteMovementSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementSerializedInventoryByScans_args> {
3385
      public getCompleteMovementSerializedInventoryByScans() {
3386
        super("getCompleteMovementSerializedInventoryByScans");
3387
      }
3388
 
3389
      protected getCompleteMovementSerializedInventoryByScans_args getEmptyArgsInstance() {
3390
        return new getCompleteMovementSerializedInventoryByScans_args();
3391
      }
3392
 
3393
      protected getCompleteMovementSerializedInventoryByScans_result getResult(I iface, getCompleteMovementSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3394
        getCompleteMovementSerializedInventoryByScans_result result = new getCompleteMovementSerializedInventoryByScans_result();
3395
        result.success = iface.getCompleteMovementSerializedInventoryByScans(args.startDate, args.endDate);
3396
        return result;
3397
      }
3398
    }
3399
 
3400
    private static class getCompleteMovementNonSerializedInventoryByScans<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCompleteMovementNonSerializedInventoryByScans_args> {
3401
      public getCompleteMovementNonSerializedInventoryByScans() {
3402
        super("getCompleteMovementNonSerializedInventoryByScans");
3403
      }
3404
 
3405
      protected getCompleteMovementNonSerializedInventoryByScans_args getEmptyArgsInstance() {
3406
        return new getCompleteMovementNonSerializedInventoryByScans_args();
3407
      }
3408
 
3409
      protected getCompleteMovementNonSerializedInventoryByScans_result getResult(I iface, getCompleteMovementNonSerializedInventoryByScans_args args) throws org.apache.thrift.TException {
3410
        getCompleteMovementNonSerializedInventoryByScans_result result = new getCompleteMovementNonSerializedInventoryByScans_result();
3411
        result.success = iface.getCompleteMovementNonSerializedInventoryByScans(args.startDate, args.endDate);
3412
        return result;
3413
      }
3414
    }
3415
 
7190 amar.kumar 3416
    private static class scanfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanfreebie_args> {
3417
      public scanfreebie() {
3418
        super("scanfreebie");
3419
      }
3420
 
3421
      protected scanfreebie_args getEmptyArgsInstance() {
3422
        return new scanfreebie_args();
3423
      }
3424
 
3425
      protected scanfreebie_result getResult(I iface, scanfreebie_args args) throws org.apache.thrift.TException {
3426
        scanfreebie_result result = new scanfreebie_result();
3427
        try {
3428
          result.success = iface.scanfreebie(args.orderId, args.freebieItemId, args.freebieWarehouseId, args.scanType);
3429
        } catch (WarehouseServiceException wex) {
3430
          result.wex = wex;
3431
        }
3432
        return result;
3433
      }
3434
    }
3435
 
7199 amar.kumar 3436
    private static class reshipfreebie<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reshipfreebie_args> {
3437
      public reshipfreebie() {
3438
        super("reshipfreebie");
3439
      }
3440
 
3441
      protected reshipfreebie_args getEmptyArgsInstance() {
3442
        return new reshipfreebie_args();
3443
      }
3444
 
3445
      protected reshipfreebie_result getResult(I iface, reshipfreebie_args args) throws org.apache.thrift.TException {
3446
        reshipfreebie_result result = new reshipfreebie_result();
3447
        try {
3448
          iface.reshipfreebie(args.oldOrderId, args.newOrderId, args.freebieItemId, args.scanType);
3449
        } catch (WarehouseServiceException wex) {
3450
          result.wex = wex;
3451
        }
3452
        return result;
3453
      }
3454
    }
3455
 
7410 amar.kumar 3456
    private static class isItemTransferAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isItemTransferAllowed_args> {
3457
      public isItemTransferAllowed() {
3458
        super("isItemTransferAllowed");
3459
      }
3460
 
3461
      protected isItemTransferAllowed_args getEmptyArgsInstance() {
3462
        return new isItemTransferAllowed_args();
3463
      }
3464
 
3465
      protected isItemTransferAllowed_result getResult(I iface, isItemTransferAllowed_args args) throws org.apache.thrift.TException {
3466
        isItemTransferAllowed_result result = new isItemTransferAllowed_result();
3467
        result.success = iface.isItemTransferAllowed(args.warehouseId, args.transferWarehouseId);
3468
        result.setSuccessIsSet(true);
3469
        return result;
3470
      }
3471
    }
3472
 
3473
    private static class createTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransferLot_args> {
3474
      public createTransferLot() {
3475
        super("createTransferLot");
3476
      }
3477
 
3478
      protected createTransferLot_args getEmptyArgsInstance() {
3479
        return new createTransferLot_args();
3480
      }
3481
 
3482
      protected createTransferLot_result getResult(I iface, createTransferLot_args args) throws org.apache.thrift.TException {
3483
        createTransferLot_result result = new createTransferLot_result();
3484
        try {
3485
          result.success = iface.createTransferLot(args.originWarehouseId, args.destWarehouseId);
3486
          result.setSuccessIsSet(true);
3487
        } catch (WarehouseServiceException wex) {
3488
          result.wex = wex;
3489
        }
3490
        return result;
3491
      }
3492
    }
3493
 
3494
    private static class getTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLot_args> {
3495
      public getTransferLot() {
3496
        super("getTransferLot");
3497
      }
3498
 
3499
      protected getTransferLot_args getEmptyArgsInstance() {
3500
        return new getTransferLot_args();
3501
      }
3502
 
3503
      protected getTransferLot_result getResult(I iface, getTransferLot_args args) throws org.apache.thrift.TException {
3504
        getTransferLot_result result = new getTransferLot_result();
3505
        try {
3506
          result.success = iface.getTransferLot(args.transferLotId);
3507
        } catch (WarehouseServiceException wex) {
3508
          result.wex = wex;
3509
        }
3510
        return result;
3511
      }
3512
    }
3513
 
3514
    private static class markTransferLotAsReceived<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markTransferLotAsReceived_args> {
3515
      public markTransferLotAsReceived() {
3516
        super("markTransferLotAsReceived");
3517
      }
3518
 
3519
      protected markTransferLotAsReceived_args getEmptyArgsInstance() {
3520
        return new markTransferLotAsReceived_args();
3521
      }
3522
 
3523
      protected markTransferLotAsReceived_result getResult(I iface, markTransferLotAsReceived_args args) throws org.apache.thrift.TException {
3524
        markTransferLotAsReceived_result result = new markTransferLotAsReceived_result();
3525
        try {
3526
          iface.markTransferLotAsReceived(args.id, args.remoteTransferRefNumber);
3527
        } catch (WarehouseServiceException wex) {
3528
          result.wex = wex;
3529
        }
3530
        return result;
3531
      }
3532
    }
3533
 
3534
    private static class getTransferLotsByDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTransferLotsByDate_args> {
3535
      public getTransferLotsByDate() {
3536
        super("getTransferLotsByDate");
3537
      }
3538
 
3539
      protected getTransferLotsByDate_args getEmptyArgsInstance() {
3540
        return new getTransferLotsByDate_args();
3541
      }
3542
 
3543
      protected getTransferLotsByDate_result getResult(I iface, getTransferLotsByDate_args args) throws org.apache.thrift.TException {
3544
        getTransferLotsByDate_result result = new getTransferLotsByDate_result();
3545
        try {
3546
          result.success = iface.getTransferLotsByDate(args.fromDate, args.toDate);
3547
        } catch (WarehouseServiceException wex) {
3548
          result.wex = wex;
3549
        }
3550
        return result;
3551
      }
3552
    }
3553
 
3554
    private static class getAllowedDestinationWarehousesForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllowedDestinationWarehousesForTransfer_args> {
3555
      public getAllowedDestinationWarehousesForTransfer() {
3556
        super("getAllowedDestinationWarehousesForTransfer");
3557
      }
3558
 
3559
      protected getAllowedDestinationWarehousesForTransfer_args getEmptyArgsInstance() {
3560
        return new getAllowedDestinationWarehousesForTransfer_args();
3561
      }
3562
 
3563
      protected getAllowedDestinationWarehousesForTransfer_result getResult(I iface, getAllowedDestinationWarehousesForTransfer_args args) throws org.apache.thrift.TException {
3564
        getAllowedDestinationWarehousesForTransfer_result result = new getAllowedDestinationWarehousesForTransfer_result();
3565
        result.success = iface.getAllowedDestinationWarehousesForTransfer(args.warehouseId);
3566
        return result;
3567
      }
3568
    }
3569
 
3570
    private static class getItemsInTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemsInTransferLot_args> {
3571
      public getItemsInTransferLot() {
3572
        super("getItemsInTransferLot");
3573
      }
3574
 
3575
      protected getItemsInTransferLot_args getEmptyArgsInstance() {
3576
        return new getItemsInTransferLot_args();
3577
      }
3578
 
3579
      protected getItemsInTransferLot_result getResult(I iface, getItemsInTransferLot_args args) throws org.apache.thrift.TException {
3580
        getItemsInTransferLot_result result = new getItemsInTransferLot_result();
3581
        result.success = iface.getItemsInTransferLot(args.transferLotId);
3582
        return result;
3583
      }
3584
    }
3585
 
3586
    private static class markItemsAsReceivedForTransferLot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markItemsAsReceivedForTransferLot_args> {
3587
      public markItemsAsReceivedForTransferLot() {
3588
        super("markItemsAsReceivedForTransferLot");
3589
      }
3590
 
3591
      protected markItemsAsReceivedForTransferLot_args getEmptyArgsInstance() {
3592
        return new markItemsAsReceivedForTransferLot_args();
3593
      }
3594
 
3595
      protected markItemsAsReceivedForTransferLot_result getResult(I iface, markItemsAsReceivedForTransferLot_args args) throws org.apache.thrift.TException {
3596
        markItemsAsReceivedForTransferLot_result result = new markItemsAsReceivedForTransferLot_result();
3597
        try {
3598
          iface.markItemsAsReceivedForTransferLot(args.id);
3599
        } catch (WarehouseServiceException wex) {
3600
          result.wex = wex;
3601
        }
3602
        return result;
3603
      }
3604
    }
3605
 
3606
    private static class updateTransferLotAfterItemReceive<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTransferLotAfterItemReceive_args> {
3607
      public updateTransferLotAfterItemReceive() {
3608
        super("updateTransferLotAfterItemReceive");
3609
      }
3610
 
3611
      protected updateTransferLotAfterItemReceive_args getEmptyArgsInstance() {
3612
        return new updateTransferLotAfterItemReceive_args();
3613
      }
3614
 
3615
      protected updateTransferLotAfterItemReceive_result getResult(I iface, updateTransferLotAfterItemReceive_args args) throws org.apache.thrift.TException {
3616
        updateTransferLotAfterItemReceive_result result = new updateTransferLotAfterItemReceive_result();
3617
        try {
3618
          result.success = iface.updateTransferLotAfterItemReceive(args.id);
3619
        } catch (WarehouseServiceException wex) {
3620
          result.wex = wex;
3621
        }
3622
        return result;
3623
      }
3624
    }
3625
 
3626
    private static class scanForTransfer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, scanForTransfer_args> {
3627
      public scanForTransfer() {
3628
        super("scanForTransfer");
3629
      }
3630
 
3631
      protected scanForTransfer_args getEmptyArgsInstance() {
3632
        return new scanForTransfer_args();
3633
      }
3634
 
3635
      protected scanForTransfer_result getResult(I iface, scanForTransfer_args args) throws org.apache.thrift.TException {
3636
        scanForTransfer_result result = new scanForTransfer_result();
3637
        try {
3638
          iface.scanForTransfer(args.inventoryItems, args.type, args.transferLotId);
3639
        } catch (WarehouseServiceException wex) {
3640
          result.wex = wex;
3641
        }
3642
        return result;
3643
      }
3644
    }
3645
 
2820 chandransh 3646
  }
3647
 
4496 mandeep.dh 3648
  public static class getInventoryItem_args implements org.apache.thrift.TBase<getInventoryItem_args, getInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
3649
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_args");
2832 chandransh 3650
 
4496 mandeep.dh 3651
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
2832 chandransh 3652
 
4496 mandeep.dh 3653
    private String serialNumber; // required
2832 chandransh 3654
 
3655
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3656
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 3657
      SERIAL_NUMBER((short)1, "serialNumber");
2832 chandransh 3658
 
3659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3660
 
3661
      static {
3662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3663
          byName.put(field.getFieldName(), field);
3664
        }
3665
      }
3666
 
3667
      /**
3668
       * Find the _Fields constant that matches fieldId, or null if its not found.
3669
       */
3670
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3671
        switch(fieldId) {
4496 mandeep.dh 3672
          case 1: // SERIAL_NUMBER
3673
            return SERIAL_NUMBER;
3430 rajveer 3674
          default:
3675
            return null;
3676
        }
2832 chandransh 3677
      }
3678
 
3679
      /**
3680
       * Find the _Fields constant that matches fieldId, throwing an exception
3681
       * if it is not found.
3682
       */
3683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3684
        _Fields fields = findByThriftId(fieldId);
3685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3686
        return fields;
3687
      }
3688
 
3689
      /**
3690
       * Find the _Fields constant that matches name, or null if its not found.
3691
       */
3692
      public static _Fields findByName(String name) {
3693
        return byName.get(name);
3694
      }
3695
 
3696
      private final short _thriftId;
3697
      private final String _fieldName;
3698
 
3699
      _Fields(short thriftId, String fieldName) {
3700
        _thriftId = thriftId;
3701
        _fieldName = fieldName;
3702
      }
3703
 
3704
      public short getThriftFieldId() {
3705
        return _thriftId;
3706
      }
3707
 
3708
      public String getFieldName() {
3709
        return _fieldName;
3710
      }
3711
    }
3712
 
3713
    // isset id assignments
3714
 
3430 rajveer 3715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 3716
    static {
3430 rajveer 3717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 3718
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3719
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 3720
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 3721
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_args.class, metaDataMap);
2832 chandransh 3722
    }
3723
 
4496 mandeep.dh 3724
    public getInventoryItem_args() {
2832 chandransh 3725
    }
3726
 
4496 mandeep.dh 3727
    public getInventoryItem_args(
3728
      String serialNumber)
2832 chandransh 3729
    {
3730
      this();
4496 mandeep.dh 3731
      this.serialNumber = serialNumber;
2832 chandransh 3732
    }
3733
 
3734
    /**
3735
     * Performs a deep copy on <i>other</i>.
3736
     */
4496 mandeep.dh 3737
    public getInventoryItem_args(getInventoryItem_args other) {
3738
      if (other.isSetSerialNumber()) {
3739
        this.serialNumber = other.serialNumber;
3740
      }
2832 chandransh 3741
    }
3742
 
4496 mandeep.dh 3743
    public getInventoryItem_args deepCopy() {
3744
      return new getInventoryItem_args(this);
2832 chandransh 3745
    }
3746
 
3430 rajveer 3747
    @Override
3748
    public void clear() {
4496 mandeep.dh 3749
      this.serialNumber = null;
2832 chandransh 3750
    }
3751
 
4496 mandeep.dh 3752
    public String getSerialNumber() {
3753
      return this.serialNumber;
2832 chandransh 3754
    }
3755
 
4496 mandeep.dh 3756
    public void setSerialNumber(String serialNumber) {
3757
      this.serialNumber = serialNumber;
2832 chandransh 3758
    }
3759
 
4496 mandeep.dh 3760
    public void unsetSerialNumber() {
3761
      this.serialNumber = null;
2832 chandransh 3762
    }
3763
 
4496 mandeep.dh 3764
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
3765
    public boolean isSetSerialNumber() {
3766
      return this.serialNumber != null;
2832 chandransh 3767
    }
3768
 
4496 mandeep.dh 3769
    public void setSerialNumberIsSet(boolean value) {
3770
      if (!value) {
3771
        this.serialNumber = null;
3772
      }
2832 chandransh 3773
    }
3774
 
3775
    public void setFieldValue(_Fields field, Object value) {
3776
      switch (field) {
4496 mandeep.dh 3777
      case SERIAL_NUMBER:
2832 chandransh 3778
        if (value == null) {
4496 mandeep.dh 3779
          unsetSerialNumber();
2832 chandransh 3780
        } else {
4496 mandeep.dh 3781
          setSerialNumber((String)value);
2832 chandransh 3782
        }
3783
        break;
3784
 
3785
      }
3786
    }
3787
 
3788
    public Object getFieldValue(_Fields field) {
3789
      switch (field) {
4496 mandeep.dh 3790
      case SERIAL_NUMBER:
3791
        return getSerialNumber();
2832 chandransh 3792
 
3793
      }
3794
      throw new IllegalStateException();
3795
    }
3796
 
3430 rajveer 3797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3798
    public boolean isSet(_Fields field) {
3799
      if (field == null) {
3800
        throw new IllegalArgumentException();
3801
      }
2832 chandransh 3802
 
3803
      switch (field) {
4496 mandeep.dh 3804
      case SERIAL_NUMBER:
3805
        return isSetSerialNumber();
2832 chandransh 3806
      }
3807
      throw new IllegalStateException();
3808
    }
3809
 
3810
    @Override
3811
    public boolean equals(Object that) {
3812
      if (that == null)
3813
        return false;
4496 mandeep.dh 3814
      if (that instanceof getInventoryItem_args)
3815
        return this.equals((getInventoryItem_args)that);
2832 chandransh 3816
      return false;
3817
    }
3818
 
4496 mandeep.dh 3819
    public boolean equals(getInventoryItem_args that) {
2832 chandransh 3820
      if (that == null)
3821
        return false;
3822
 
4496 mandeep.dh 3823
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
3824
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
3825
      if (this_present_serialNumber || that_present_serialNumber) {
3826
        if (!(this_present_serialNumber && that_present_serialNumber))
2832 chandransh 3827
          return false;
4496 mandeep.dh 3828
        if (!this.serialNumber.equals(that.serialNumber))
2832 chandransh 3829
          return false;
3830
      }
3831
 
3832
      return true;
3833
    }
3834
 
3835
    @Override
3836
    public int hashCode() {
3837
      return 0;
3838
    }
3839
 
4496 mandeep.dh 3840
    public int compareTo(getInventoryItem_args other) {
2832 chandransh 3841
      if (!getClass().equals(other.getClass())) {
3842
        return getClass().getName().compareTo(other.getClass().getName());
3843
      }
3844
 
3845
      int lastComparison = 0;
4496 mandeep.dh 3846
      getInventoryItem_args typedOther = (getInventoryItem_args)other;
2832 chandransh 3847
 
4496 mandeep.dh 3848
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2832 chandransh 3849
      if (lastComparison != 0) {
3850
        return lastComparison;
3851
      }
4496 mandeep.dh 3852
      if (isSetSerialNumber()) {
3853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 3854
        if (lastComparison != 0) {
3855
          return lastComparison;
3856
        }
2832 chandransh 3857
      }
3858
      return 0;
3859
    }
3860
 
3430 rajveer 3861
    public _Fields fieldForId(int fieldId) {
3862
      return _Fields.findByThriftId(fieldId);
3863
    }
3864
 
3865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3866
      org.apache.thrift.protocol.TField field;
2832 chandransh 3867
      iprot.readStructBegin();
3868
      while (true)
3869
      {
3870
        field = iprot.readFieldBegin();
3430 rajveer 3871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 3872
          break;
3873
        }
3430 rajveer 3874
        switch (field.id) {
4496 mandeep.dh 3875
          case 1: // SERIAL_NUMBER
3876
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3877
              this.serialNumber = iprot.readString();
3430 rajveer 3878
            } else { 
3879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3880
            }
3881
            break;
3882
          default:
3883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 3884
        }
3430 rajveer 3885
        iprot.readFieldEnd();
2832 chandransh 3886
      }
3887
      iprot.readStructEnd();
3888
      validate();
3889
    }
3890
 
3430 rajveer 3891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 3892
      validate();
3893
 
3894
      oprot.writeStructBegin(STRUCT_DESC);
4496 mandeep.dh 3895
      if (this.serialNumber != null) {
3896
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
3897
        oprot.writeString(this.serialNumber);
3898
        oprot.writeFieldEnd();
3899
      }
2832 chandransh 3900
      oprot.writeFieldStop();
3901
      oprot.writeStructEnd();
3902
    }
3903
 
3904
    @Override
3905
    public String toString() {
4496 mandeep.dh 3906
      StringBuilder sb = new StringBuilder("getInventoryItem_args(");
2832 chandransh 3907
      boolean first = true;
3908
 
4496 mandeep.dh 3909
      sb.append("serialNumber:");
3910
      if (this.serialNumber == null) {
3911
        sb.append("null");
3912
      } else {
3913
        sb.append(this.serialNumber);
3914
      }
2832 chandransh 3915
      first = false;
3916
      sb.append(")");
3917
      return sb.toString();
3918
    }
3919
 
3430 rajveer 3920
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 3921
      // check for required fields
3922
    }
3923
 
3430 rajveer 3924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3925
      try {
3926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3927
      } catch (org.apache.thrift.TException te) {
3928
        throw new java.io.IOException(te);
3929
      }
3930
    }
3931
 
3932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3933
      try {
3934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3935
      } catch (org.apache.thrift.TException te) {
3936
        throw new java.io.IOException(te);
3937
      }
3938
    }
3939
 
2832 chandransh 3940
  }
3941
 
4496 mandeep.dh 3942
  public static class getInventoryItem_result implements org.apache.thrift.TBase<getInventoryItem_result, getInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
3943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItem_result");
2832 chandransh 3944
 
3430 rajveer 3945
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
4541 mandeep.dh 3946
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2832 chandransh 3947
 
4496 mandeep.dh 3948
    private InventoryItem success; // required
4541 mandeep.dh 3949
    private WarehouseServiceException wex; // required
2832 chandransh 3950
 
3951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4541 mandeep.dh 3953
      SUCCESS((short)0, "success"),
3954
      WEX((short)1, "wex");
2832 chandransh 3955
 
3956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3957
 
3958
      static {
3959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3960
          byName.put(field.getFieldName(), field);
3961
        }
3962
      }
3963
 
3964
      /**
3965
       * Find the _Fields constant that matches fieldId, or null if its not found.
3966
       */
3967
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3968
        switch(fieldId) {
3969
          case 0: // SUCCESS
3970
            return SUCCESS;
4541 mandeep.dh 3971
          case 1: // WEX
3972
            return WEX;
3430 rajveer 3973
          default:
3974
            return null;
3975
        }
2832 chandransh 3976
      }
3977
 
3978
      /**
3979
       * Find the _Fields constant that matches fieldId, throwing an exception
3980
       * if it is not found.
3981
       */
3982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3983
        _Fields fields = findByThriftId(fieldId);
3984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3985
        return fields;
3986
      }
3987
 
3988
      /**
3989
       * Find the _Fields constant that matches name, or null if its not found.
3990
       */
3991
      public static _Fields findByName(String name) {
3992
        return byName.get(name);
3993
      }
3994
 
3995
      private final short _thriftId;
3996
      private final String _fieldName;
3997
 
3998
      _Fields(short thriftId, String fieldName) {
3999
        _thriftId = thriftId;
4000
        _fieldName = fieldName;
4001
      }
4002
 
4003
      public short getThriftFieldId() {
4004
        return _thriftId;
4005
      }
4006
 
4007
      public String getFieldName() {
4008
        return _fieldName;
4009
      }
4010
    }
4011
 
4012
    // isset id assignments
4013
 
3430 rajveer 4014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2832 chandransh 4015
    static {
3430 rajveer 4016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4017
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4018
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4541 mandeep.dh 4019
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 4021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 4022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItem_result.class, metaDataMap);
2832 chandransh 4023
    }
4024
 
4496 mandeep.dh 4025
    public getInventoryItem_result() {
2832 chandransh 4026
    }
4027
 
4496 mandeep.dh 4028
    public getInventoryItem_result(
4541 mandeep.dh 4029
      InventoryItem success,
4030
      WarehouseServiceException wex)
2832 chandransh 4031
    {
4032
      this();
4033
      this.success = success;
4541 mandeep.dh 4034
      this.wex = wex;
2832 chandransh 4035
    }
4036
 
4037
    /**
4038
     * Performs a deep copy on <i>other</i>.
4039
     */
4496 mandeep.dh 4040
    public getInventoryItem_result(getInventoryItem_result other) {
2832 chandransh 4041
      if (other.isSetSuccess()) {
4496 mandeep.dh 4042
        this.success = new InventoryItem(other.success);
2832 chandransh 4043
      }
4541 mandeep.dh 4044
      if (other.isSetWex()) {
4045
        this.wex = new WarehouseServiceException(other.wex);
4046
      }
2832 chandransh 4047
    }
4048
 
4496 mandeep.dh 4049
    public getInventoryItem_result deepCopy() {
4050
      return new getInventoryItem_result(this);
2832 chandransh 4051
    }
4052
 
3430 rajveer 4053
    @Override
4054
    public void clear() {
4055
      this.success = null;
4541 mandeep.dh 4056
      this.wex = null;
2832 chandransh 4057
    }
4058
 
4496 mandeep.dh 4059
    public InventoryItem getSuccess() {
2832 chandransh 4060
      return this.success;
4061
    }
4062
 
4496 mandeep.dh 4063
    public void setSuccess(InventoryItem success) {
2832 chandransh 4064
      this.success = success;
4065
    }
4066
 
4067
    public void unsetSuccess() {
4068
      this.success = null;
4069
    }
4070
 
3430 rajveer 4071
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2832 chandransh 4072
    public boolean isSetSuccess() {
4073
      return this.success != null;
4074
    }
4075
 
4076
    public void setSuccessIsSet(boolean value) {
4077
      if (!value) {
4078
        this.success = null;
4079
      }
4080
    }
4081
 
4541 mandeep.dh 4082
    public WarehouseServiceException getWex() {
4083
      return this.wex;
4084
    }
4085
 
4086
    public void setWex(WarehouseServiceException wex) {
4087
      this.wex = wex;
4088
    }
4089
 
4090
    public void unsetWex() {
4091
      this.wex = null;
4092
    }
4093
 
4094
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
4095
    public boolean isSetWex() {
4096
      return this.wex != null;
4097
    }
4098
 
4099
    public void setWexIsSet(boolean value) {
4100
      if (!value) {
4101
        this.wex = null;
4102
      }
4103
    }
4104
 
2832 chandransh 4105
    public void setFieldValue(_Fields field, Object value) {
4106
      switch (field) {
4107
      case SUCCESS:
4108
        if (value == null) {
4109
          unsetSuccess();
4110
        } else {
4496 mandeep.dh 4111
          setSuccess((InventoryItem)value);
2832 chandransh 4112
        }
4113
        break;
4114
 
4541 mandeep.dh 4115
      case WEX:
4116
        if (value == null) {
4117
          unsetWex();
4118
        } else {
4119
          setWex((WarehouseServiceException)value);
4120
        }
4121
        break;
4122
 
2832 chandransh 4123
      }
4124
    }
4125
 
4126
    public Object getFieldValue(_Fields field) {
4127
      switch (field) {
4128
      case SUCCESS:
4129
        return getSuccess();
4130
 
4541 mandeep.dh 4131
      case WEX:
4132
        return getWex();
4133
 
2832 chandransh 4134
      }
4135
      throw new IllegalStateException();
4136
    }
4137
 
3430 rajveer 4138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4139
    public boolean isSet(_Fields field) {
4140
      if (field == null) {
4141
        throw new IllegalArgumentException();
4142
      }
2832 chandransh 4143
 
4144
      switch (field) {
4145
      case SUCCESS:
4146
        return isSetSuccess();
4541 mandeep.dh 4147
      case WEX:
4148
        return isSetWex();
2832 chandransh 4149
      }
4150
      throw new IllegalStateException();
4151
    }
4152
 
4153
    @Override
4154
    public boolean equals(Object that) {
4155
      if (that == null)
4156
        return false;
4496 mandeep.dh 4157
      if (that instanceof getInventoryItem_result)
4158
        return this.equals((getInventoryItem_result)that);
2832 chandransh 4159
      return false;
4160
    }
4161
 
4496 mandeep.dh 4162
    public boolean equals(getInventoryItem_result that) {
2832 chandransh 4163
      if (that == null)
4164
        return false;
4165
 
4166
      boolean this_present_success = true && this.isSetSuccess();
4167
      boolean that_present_success = true && that.isSetSuccess();
4168
      if (this_present_success || that_present_success) {
4169
        if (!(this_present_success && that_present_success))
4170
          return false;
4171
        if (!this.success.equals(that.success))
4172
          return false;
4173
      }
4174
 
4541 mandeep.dh 4175
      boolean this_present_wex = true && this.isSetWex();
4176
      boolean that_present_wex = true && that.isSetWex();
4177
      if (this_present_wex || that_present_wex) {
4178
        if (!(this_present_wex && that_present_wex))
4179
          return false;
4180
        if (!this.wex.equals(that.wex))
4181
          return false;
4182
      }
4183
 
2832 chandransh 4184
      return true;
4185
    }
4186
 
4187
    @Override
4188
    public int hashCode() {
4189
      return 0;
4190
    }
4191
 
4496 mandeep.dh 4192
    public int compareTo(getInventoryItem_result other) {
2832 chandransh 4193
      if (!getClass().equals(other.getClass())) {
4194
        return getClass().getName().compareTo(other.getClass().getName());
4195
      }
4196
 
4197
      int lastComparison = 0;
4496 mandeep.dh 4198
      getInventoryItem_result typedOther = (getInventoryItem_result)other;
2832 chandransh 4199
 
3430 rajveer 4200
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2832 chandransh 4201
      if (lastComparison != 0) {
4202
        return lastComparison;
4203
      }
3430 rajveer 4204
      if (isSetSuccess()) {
4205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4206
        if (lastComparison != 0) {
4207
          return lastComparison;
4208
        }
2832 chandransh 4209
      }
4541 mandeep.dh 4210
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
4211
      if (lastComparison != 0) {
4212
        return lastComparison;
4213
      }
4214
      if (isSetWex()) {
4215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
4216
        if (lastComparison != 0) {
4217
          return lastComparison;
4218
        }
4219
      }
2832 chandransh 4220
      return 0;
4221
    }
4222
 
3430 rajveer 4223
    public _Fields fieldForId(int fieldId) {
4224
      return _Fields.findByThriftId(fieldId);
4225
    }
4226
 
4227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4228
      org.apache.thrift.protocol.TField field;
2832 chandransh 4229
      iprot.readStructBegin();
4230
      while (true)
4231
      {
4232
        field = iprot.readFieldBegin();
3430 rajveer 4233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2832 chandransh 4234
          break;
4235
        }
3430 rajveer 4236
        switch (field.id) {
4237
          case 0: // SUCCESS
4238
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4496 mandeep.dh 4239
              this.success = new InventoryItem();
3430 rajveer 4240
              this.success.read(iprot);
4241
            } else { 
4242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4243
            }
4244
            break;
4541 mandeep.dh 4245
          case 1: // WEX
4246
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4247
              this.wex = new WarehouseServiceException();
4248
              this.wex.read(iprot);
4249
            } else { 
4250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4251
            }
4252
            break;
3430 rajveer 4253
          default:
4254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2832 chandransh 4255
        }
3430 rajveer 4256
        iprot.readFieldEnd();
2832 chandransh 4257
      }
4258
      iprot.readStructEnd();
4259
      validate();
4260
    }
4261
 
3430 rajveer 4262
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2832 chandransh 4263
      oprot.writeStructBegin(STRUCT_DESC);
4264
 
4265
      if (this.isSetSuccess()) {
4266
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4267
        this.success.write(oprot);
4268
        oprot.writeFieldEnd();
4541 mandeep.dh 4269
      } else if (this.isSetWex()) {
4270
        oprot.writeFieldBegin(WEX_FIELD_DESC);
4271
        this.wex.write(oprot);
4272
        oprot.writeFieldEnd();
2832 chandransh 4273
      }
4274
      oprot.writeFieldStop();
4275
      oprot.writeStructEnd();
4276
    }
4277
 
4278
    @Override
4279
    public String toString() {
4496 mandeep.dh 4280
      StringBuilder sb = new StringBuilder("getInventoryItem_result(");
2832 chandransh 4281
      boolean first = true;
4282
 
4283
      sb.append("success:");
4284
      if (this.success == null) {
4285
        sb.append("null");
4286
      } else {
4287
        sb.append(this.success);
4288
      }
4289
      first = false;
4541 mandeep.dh 4290
      if (!first) sb.append(", ");
4291
      sb.append("wex:");
4292
      if (this.wex == null) {
4293
        sb.append("null");
4294
      } else {
4295
        sb.append(this.wex);
4296
      }
4297
      first = false;
2832 chandransh 4298
      sb.append(")");
4299
      return sb.toString();
4300
    }
4301
 
3430 rajveer 4302
    public void validate() throws org.apache.thrift.TException {
2832 chandransh 4303
      // check for required fields
4304
    }
4305
 
3430 rajveer 4306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4307
      try {
4308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4309
      } catch (org.apache.thrift.TException te) {
4310
        throw new java.io.IOException(te);
4311
      }
4312
    }
4313
 
4314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4315
      try {
4316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4317
      } catch (org.apache.thrift.TException te) {
4318
        throw new java.io.IOException(te);
4319
      }
4320
    }
4321
 
2832 chandransh 4322
  }
4323
 
5361 mandeep.dh 4324
  public static class getNonSeralizedInventoryItem_args implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_args, getNonSeralizedInventoryItem_args._Fields>, java.io.Serializable, Cloneable   {
4325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_args");
2820 chandransh 4326
 
5530 mandeep.dh 4327
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
4328
    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)2);
4329
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
2820 chandransh 4330
 
5530 mandeep.dh 4331
    private String itemNumber; // required
4496 mandeep.dh 4332
    private long itemId; // required
5530 mandeep.dh 4333
    private long fulfilmentWarehouseId; // required
2820 chandransh 4334
 
4335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4336
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5530 mandeep.dh 4337
      ITEM_NUMBER((short)1, "itemNumber"),
4338
      ITEM_ID((short)2, "itemId"),
4339
      FULFILMENT_WAREHOUSE_ID((short)3, "fulfilmentWarehouseId");
2820 chandransh 4340
 
4341
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4342
 
4343
      static {
4344
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4345
          byName.put(field.getFieldName(), field);
4346
        }
4347
      }
4348
 
4349
      /**
4350
       * Find the _Fields constant that matches fieldId, or null if its not found.
4351
       */
4352
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4353
        switch(fieldId) {
5530 mandeep.dh 4354
          case 1: // ITEM_NUMBER
4355
            return ITEM_NUMBER;
4356
          case 2: // ITEM_ID
4496 mandeep.dh 4357
            return ITEM_ID;
5530 mandeep.dh 4358
          case 3: // FULFILMENT_WAREHOUSE_ID
4359
            return FULFILMENT_WAREHOUSE_ID;
3430 rajveer 4360
          default:
4361
            return null;
4362
        }
2820 chandransh 4363
      }
4364
 
4365
      /**
4366
       * Find the _Fields constant that matches fieldId, throwing an exception
4367
       * if it is not found.
4368
       */
4369
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4370
        _Fields fields = findByThriftId(fieldId);
4371
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4372
        return fields;
4373
      }
4374
 
4375
      /**
4376
       * Find the _Fields constant that matches name, or null if its not found.
4377
       */
4378
      public static _Fields findByName(String name) {
4379
        return byName.get(name);
4380
      }
4381
 
4382
      private final short _thriftId;
4383
      private final String _fieldName;
4384
 
4385
      _Fields(short thriftId, String fieldName) {
4386
        _thriftId = thriftId;
4387
        _fieldName = fieldName;
4388
      }
4389
 
4390
      public short getThriftFieldId() {
4391
        return _thriftId;
4392
      }
4393
 
4394
      public String getFieldName() {
4395
        return _fieldName;
4396
      }
4397
    }
4398
 
4399
    // isset id assignments
4496 mandeep.dh 4400
    private static final int __ITEMID_ISSET_ID = 0;
5530 mandeep.dh 4401
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
5361 mandeep.dh 4402
    private BitSet __isset_bit_vector = new BitSet(2);
2820 chandransh 4403
 
3430 rajveer 4404
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 4405
    static {
3430 rajveer 4406
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5530 mandeep.dh 4407
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 4409
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3430 rajveer 4410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5530 mandeep.dh 4411
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 4412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 4413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 4414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_args.class, metaDataMap);
2820 chandransh 4415
    }
4416
 
5361 mandeep.dh 4417
    public getNonSeralizedInventoryItem_args() {
2820 chandransh 4418
    }
4419
 
5361 mandeep.dh 4420
    public getNonSeralizedInventoryItem_args(
5530 mandeep.dh 4421
      String itemNumber,
4496 mandeep.dh 4422
      long itemId,
5530 mandeep.dh 4423
      long fulfilmentWarehouseId)
2820 chandransh 4424
    {
4425
      this();
5530 mandeep.dh 4426
      this.itemNumber = itemNumber;
4496 mandeep.dh 4427
      this.itemId = itemId;
4428
      setItemIdIsSet(true);
5530 mandeep.dh 4429
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4430
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4431
    }
4432
 
4433
    /**
4434
     * Performs a deep copy on <i>other</i>.
4435
     */
5361 mandeep.dh 4436
    public getNonSeralizedInventoryItem_args(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4437
      __isset_bit_vector.clear();
4438
      __isset_bit_vector.or(other.__isset_bit_vector);
5530 mandeep.dh 4439
      if (other.isSetItemNumber()) {
4440
        this.itemNumber = other.itemNumber;
4441
      }
4496 mandeep.dh 4442
      this.itemId = other.itemId;
5530 mandeep.dh 4443
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
2820 chandransh 4444
    }
4445
 
5361 mandeep.dh 4446
    public getNonSeralizedInventoryItem_args deepCopy() {
4447
      return new getNonSeralizedInventoryItem_args(this);
2820 chandransh 4448
    }
4449
 
3430 rajveer 4450
    @Override
4451
    public void clear() {
5530 mandeep.dh 4452
      this.itemNumber = null;
4496 mandeep.dh 4453
      setItemIdIsSet(false);
4454
      this.itemId = 0;
5530 mandeep.dh 4455
      setFulfilmentWarehouseIdIsSet(false);
4456
      this.fulfilmentWarehouseId = 0;
2820 chandransh 4457
    }
4458
 
5530 mandeep.dh 4459
    public String getItemNumber() {
4460
      return this.itemNumber;
4461
    }
4462
 
4463
    public void setItemNumber(String itemNumber) {
4464
      this.itemNumber = itemNumber;
4465
    }
4466
 
4467
    public void unsetItemNumber() {
4468
      this.itemNumber = null;
4469
    }
4470
 
4471
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
4472
    public boolean isSetItemNumber() {
4473
      return this.itemNumber != null;
4474
    }
4475
 
4476
    public void setItemNumberIsSet(boolean value) {
4477
      if (!value) {
4478
        this.itemNumber = null;
4479
      }
4480
    }
4481
 
4496 mandeep.dh 4482
    public long getItemId() {
4483
      return this.itemId;
2820 chandransh 4484
    }
4485
 
4496 mandeep.dh 4486
    public void setItemId(long itemId) {
4487
      this.itemId = itemId;
4488
      setItemIdIsSet(true);
2820 chandransh 4489
    }
4490
 
4496 mandeep.dh 4491
    public void unsetItemId() {
4492
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2820 chandransh 4493
    }
4494
 
4496 mandeep.dh 4495
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
4496
    public boolean isSetItemId() {
4497
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2820 chandransh 4498
    }
4499
 
4496 mandeep.dh 4500
    public void setItemIdIsSet(boolean value) {
4501
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
2820 chandransh 4502
    }
4503
 
5530 mandeep.dh 4504
    public long getFulfilmentWarehouseId() {
4505
      return this.fulfilmentWarehouseId;
2820 chandransh 4506
    }
4507
 
5530 mandeep.dh 4508
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
4509
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
4510
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 4511
    }
4512
 
5530 mandeep.dh 4513
    public void unsetFulfilmentWarehouseId() {
4514
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4515
    }
4516
 
5530 mandeep.dh 4517
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
4518
    public boolean isSetFulfilmentWarehouseId() {
4519
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 4520
    }
4521
 
5530 mandeep.dh 4522
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
4523
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 4524
    }
4525
 
4526
    public void setFieldValue(_Fields field, Object value) {
4527
      switch (field) {
5530 mandeep.dh 4528
      case ITEM_NUMBER:
4529
        if (value == null) {
4530
          unsetItemNumber();
4531
        } else {
4532
          setItemNumber((String)value);
4533
        }
4534
        break;
4535
 
4496 mandeep.dh 4536
      case ITEM_ID:
2820 chandransh 4537
        if (value == null) {
4496 mandeep.dh 4538
          unsetItemId();
2820 chandransh 4539
        } else {
4496 mandeep.dh 4540
          setItemId((Long)value);
2820 chandransh 4541
        }
4542
        break;
4543
 
5530 mandeep.dh 4544
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 4545
        if (value == null) {
5530 mandeep.dh 4546
          unsetFulfilmentWarehouseId();
2820 chandransh 4547
        } else {
5530 mandeep.dh 4548
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 4549
        }
4550
        break;
4551
 
4552
      }
4553
    }
4554
 
4555
    public Object getFieldValue(_Fields field) {
4556
      switch (field) {
5530 mandeep.dh 4557
      case ITEM_NUMBER:
4558
        return getItemNumber();
4559
 
4496 mandeep.dh 4560
      case ITEM_ID:
4561
        return Long.valueOf(getItemId());
2820 chandransh 4562
 
5530 mandeep.dh 4563
      case FULFILMENT_WAREHOUSE_ID:
4564
        return Long.valueOf(getFulfilmentWarehouseId());
2820 chandransh 4565
 
4566
      }
4567
      throw new IllegalStateException();
4568
    }
4569
 
3430 rajveer 4570
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4571
    public boolean isSet(_Fields field) {
4572
      if (field == null) {
4573
        throw new IllegalArgumentException();
4574
      }
2820 chandransh 4575
 
4576
      switch (field) {
5530 mandeep.dh 4577
      case ITEM_NUMBER:
4578
        return isSetItemNumber();
4496 mandeep.dh 4579
      case ITEM_ID:
4580
        return isSetItemId();
5530 mandeep.dh 4581
      case FULFILMENT_WAREHOUSE_ID:
4582
        return isSetFulfilmentWarehouseId();
2820 chandransh 4583
      }
4584
      throw new IllegalStateException();
4585
    }
4586
 
4587
    @Override
4588
    public boolean equals(Object that) {
4589
      if (that == null)
4590
        return false;
5361 mandeep.dh 4591
      if (that instanceof getNonSeralizedInventoryItem_args)
4592
        return this.equals((getNonSeralizedInventoryItem_args)that);
2820 chandransh 4593
      return false;
4594
    }
4595
 
5361 mandeep.dh 4596
    public boolean equals(getNonSeralizedInventoryItem_args that) {
2820 chandransh 4597
      if (that == null)
4598
        return false;
4599
 
5530 mandeep.dh 4600
      boolean this_present_itemNumber = true && this.isSetItemNumber();
4601
      boolean that_present_itemNumber = true && that.isSetItemNumber();
4602
      if (this_present_itemNumber || that_present_itemNumber) {
4603
        if (!(this_present_itemNumber && that_present_itemNumber))
4604
          return false;
4605
        if (!this.itemNumber.equals(that.itemNumber))
4606
          return false;
4607
      }
4608
 
4496 mandeep.dh 4609
      boolean this_present_itemId = true;
4610
      boolean that_present_itemId = true;
4611
      if (this_present_itemId || that_present_itemId) {
4612
        if (!(this_present_itemId && that_present_itemId))
2820 chandransh 4613
          return false;
4496 mandeep.dh 4614
        if (this.itemId != that.itemId)
2820 chandransh 4615
          return false;
4616
      }
4617
 
5530 mandeep.dh 4618
      boolean this_present_fulfilmentWarehouseId = true;
4619
      boolean that_present_fulfilmentWarehouseId = true;
4620
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
4621
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 4622
          return false;
5530 mandeep.dh 4623
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 4624
          return false;
4625
      }
4626
 
4627
      return true;
4628
    }
4629
 
4630
    @Override
4631
    public int hashCode() {
4632
      return 0;
4633
    }
4634
 
5361 mandeep.dh 4635
    public int compareTo(getNonSeralizedInventoryItem_args other) {
2820 chandransh 4636
      if (!getClass().equals(other.getClass())) {
4637
        return getClass().getName().compareTo(other.getClass().getName());
4638
      }
4639
 
4640
      int lastComparison = 0;
5361 mandeep.dh 4641
      getNonSeralizedInventoryItem_args typedOther = (getNonSeralizedInventoryItem_args)other;
2820 chandransh 4642
 
5530 mandeep.dh 4643
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
4644
      if (lastComparison != 0) {
4645
        return lastComparison;
4646
      }
4647
      if (isSetItemNumber()) {
4648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
4649
        if (lastComparison != 0) {
4650
          return lastComparison;
4651
        }
4652
      }
4496 mandeep.dh 4653
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2820 chandransh 4654
      if (lastComparison != 0) {
4655
        return lastComparison;
4656
      }
4496 mandeep.dh 4657
      if (isSetItemId()) {
4658
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
3430 rajveer 4659
        if (lastComparison != 0) {
4660
          return lastComparison;
4661
        }
2820 chandransh 4662
      }
5530 mandeep.dh 4663
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 4664
      if (lastComparison != 0) {
4665
        return lastComparison;
4666
      }
5530 mandeep.dh 4667
      if (isSetFulfilmentWarehouseId()) {
4668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 4669
        if (lastComparison != 0) {
4670
          return lastComparison;
4671
        }
2820 chandransh 4672
      }
4673
      return 0;
4674
    }
4675
 
3430 rajveer 4676
    public _Fields fieldForId(int fieldId) {
4677
      return _Fields.findByThriftId(fieldId);
4678
    }
4679
 
4680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4681
      org.apache.thrift.protocol.TField field;
2820 chandransh 4682
      iprot.readStructBegin();
4683
      while (true)
4684
      {
4685
        field = iprot.readFieldBegin();
3430 rajveer 4686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 4687
          break;
4688
        }
3430 rajveer 4689
        switch (field.id) {
5530 mandeep.dh 4690
          case 1: // ITEM_NUMBER
4691
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4692
              this.itemNumber = iprot.readString();
4693
            } else { 
4694
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4695
            }
4696
            break;
4697
          case 2: // ITEM_ID
3430 rajveer 4698
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4496 mandeep.dh 4699
              this.itemId = iprot.readI64();
4700
              setItemIdIsSet(true);
3430 rajveer 4701
            } else { 
4702
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4703
            }
4704
            break;
5530 mandeep.dh 4705
          case 3: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 4706
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5530 mandeep.dh 4707
              this.fulfilmentWarehouseId = iprot.readI64();
4708
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 4709
            } else { 
4710
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4711
            }
4712
            break;
4713
          default:
4714
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 4715
        }
3430 rajveer 4716
        iprot.readFieldEnd();
2820 chandransh 4717
      }
4718
      iprot.readStructEnd();
4719
      validate();
4720
    }
4721
 
3430 rajveer 4722
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 4723
      validate();
4724
 
4725
      oprot.writeStructBegin(STRUCT_DESC);
5530 mandeep.dh 4726
      if (this.itemNumber != null) {
4727
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
4728
        oprot.writeString(this.itemNumber);
4729
        oprot.writeFieldEnd();
4730
      }
4496 mandeep.dh 4731
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
4732
      oprot.writeI64(this.itemId);
2820 chandransh 4733
      oprot.writeFieldEnd();
5530 mandeep.dh 4734
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
4735
      oprot.writeI64(this.fulfilmentWarehouseId);
2820 chandransh 4736
      oprot.writeFieldEnd();
4737
      oprot.writeFieldStop();
4738
      oprot.writeStructEnd();
4739
    }
4740
 
4741
    @Override
4742
    public String toString() {
5361 mandeep.dh 4743
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_args(");
2820 chandransh 4744
      boolean first = true;
4745
 
5530 mandeep.dh 4746
      sb.append("itemNumber:");
4747
      if (this.itemNumber == null) {
4748
        sb.append("null");
4749
      } else {
4750
        sb.append(this.itemNumber);
4751
      }
4752
      first = false;
4753
      if (!first) sb.append(", ");
4496 mandeep.dh 4754
      sb.append("itemId:");
4755
      sb.append(this.itemId);
2820 chandransh 4756
      first = false;
4757
      if (!first) sb.append(", ");
5530 mandeep.dh 4758
      sb.append("fulfilmentWarehouseId:");
4759
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 4760
      first = false;
4761
      sb.append(")");
4762
      return sb.toString();
4763
    }
4764
 
3430 rajveer 4765
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 4766
      // check for required fields
4767
    }
4768
 
3430 rajveer 4769
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4770
      try {
4771
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4772
      } catch (org.apache.thrift.TException te) {
4773
        throw new java.io.IOException(te);
4774
      }
4775
    }
4776
 
4777
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4778
      try {
4779
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4780
      } catch (org.apache.thrift.TException te) {
4781
        throw new java.io.IOException(te);
4782
      }
4783
    }
4784
 
2820 chandransh 4785
  }
4786
 
5361 mandeep.dh 4787
  public static class getNonSeralizedInventoryItem_result implements org.apache.thrift.TBase<getNonSeralizedInventoryItem_result, getNonSeralizedInventoryItem_result._Fields>, java.io.Serializable, Cloneable   {
4788
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getNonSeralizedInventoryItem_result");
2820 chandransh 4789
 
5361 mandeep.dh 4790
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
4791
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2820 chandransh 4792
 
5361 mandeep.dh 4793
    private InventoryItem success; // required
4794
    private WarehouseServiceException wex; // required
2820 chandransh 4795
 
4796
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4797
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 4798
      SUCCESS((short)0, "success"),
4799
      WEX((short)1, "wex");
2820 chandransh 4800
 
4801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4802
 
4803
      static {
4804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4805
          byName.put(field.getFieldName(), field);
4806
        }
4807
      }
4808
 
4809
      /**
4810
       * Find the _Fields constant that matches fieldId, or null if its not found.
4811
       */
4812
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4813
        switch(fieldId) {
4814
          case 0: // SUCCESS
4815
            return SUCCESS;
5361 mandeep.dh 4816
          case 1: // WEX
4817
            return WEX;
3430 rajveer 4818
          default:
4819
            return null;
4820
        }
2820 chandransh 4821
      }
4822
 
4823
      /**
4824
       * Find the _Fields constant that matches fieldId, throwing an exception
4825
       * if it is not found.
4826
       */
4827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4828
        _Fields fields = findByThriftId(fieldId);
4829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4830
        return fields;
4831
      }
4832
 
4833
      /**
4834
       * Find the _Fields constant that matches name, or null if its not found.
4835
       */
4836
      public static _Fields findByName(String name) {
4837
        return byName.get(name);
4838
      }
4839
 
4840
      private final short _thriftId;
4841
      private final String _fieldName;
4842
 
4843
      _Fields(short thriftId, String fieldName) {
4844
        _thriftId = thriftId;
4845
        _fieldName = fieldName;
4846
      }
4847
 
4848
      public short getThriftFieldId() {
4849
        return _thriftId;
4850
      }
4851
 
4852
      public String getFieldName() {
4853
        return _fieldName;
4854
      }
4855
    }
4856
 
4857
    // isset id assignments
4858
 
3430 rajveer 4859
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 4860
    static {
3430 rajveer 4861
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4862
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5361 mandeep.dh 4863
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4864
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3430 rajveer 4866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5361 mandeep.dh 4867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getNonSeralizedInventoryItem_result.class, metaDataMap);
2820 chandransh 4868
    }
4869
 
5361 mandeep.dh 4870
    public getNonSeralizedInventoryItem_result() {
2820 chandransh 4871
    }
4872
 
5361 mandeep.dh 4873
    public getNonSeralizedInventoryItem_result(
4874
      InventoryItem success,
4875
      WarehouseServiceException wex)
2820 chandransh 4876
    {
4877
      this();
4878
      this.success = success;
5361 mandeep.dh 4879
      this.wex = wex;
2820 chandransh 4880
    }
4881
 
4882
    /**
4883
     * Performs a deep copy on <i>other</i>.
4884
     */
5361 mandeep.dh 4885
    public getNonSeralizedInventoryItem_result(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 4886
      if (other.isSetSuccess()) {
5361 mandeep.dh 4887
        this.success = new InventoryItem(other.success);
2820 chandransh 4888
      }
5361 mandeep.dh 4889
      if (other.isSetWex()) {
4890
        this.wex = new WarehouseServiceException(other.wex);
4891
      }
2820 chandransh 4892
    }
4893
 
5361 mandeep.dh 4894
    public getNonSeralizedInventoryItem_result deepCopy() {
4895
      return new getNonSeralizedInventoryItem_result(this);
2820 chandransh 4896
    }
4897
 
3430 rajveer 4898
    @Override
4899
    public void clear() {
4496 mandeep.dh 4900
      this.success = null;
5361 mandeep.dh 4901
      this.wex = null;
2820 chandransh 4902
    }
4903
 
5361 mandeep.dh 4904
    public InventoryItem getSuccess() {
2820 chandransh 4905
      return this.success;
4906
    }
4907
 
5361 mandeep.dh 4908
    public void setSuccess(InventoryItem success) {
2820 chandransh 4909
      this.success = success;
4910
    }
4911
 
4912
    public void unsetSuccess() {
4496 mandeep.dh 4913
      this.success = null;
2820 chandransh 4914
    }
4915
 
3430 rajveer 4916
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2820 chandransh 4917
    public boolean isSetSuccess() {
4496 mandeep.dh 4918
      return this.success != null;
2820 chandransh 4919
    }
4920
 
4921
    public void setSuccessIsSet(boolean value) {
4496 mandeep.dh 4922
      if (!value) {
4923
        this.success = null;
4924
      }
2820 chandransh 4925
    }
4926
 
5361 mandeep.dh 4927
    public WarehouseServiceException getWex() {
4928
      return this.wex;
2820 chandransh 4929
    }
4930
 
5361 mandeep.dh 4931
    public void setWex(WarehouseServiceException wex) {
4932
      this.wex = wex;
2820 chandransh 4933
    }
4934
 
5361 mandeep.dh 4935
    public void unsetWex() {
4936
      this.wex = null;
2820 chandransh 4937
    }
4938
 
5361 mandeep.dh 4939
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
4940
    public boolean isSetWex() {
4941
      return this.wex != null;
2820 chandransh 4942
    }
4943
 
5361 mandeep.dh 4944
    public void setWexIsSet(boolean value) {
4945
      if (!value) {
4946
        this.wex = null;
2820 chandransh 4947
      }
4948
    }
4949
 
4950
    public void setFieldValue(_Fields field, Object value) {
4951
      switch (field) {
5361 mandeep.dh 4952
      case SUCCESS:
2820 chandransh 4953
        if (value == null) {
5361 mandeep.dh 4954
          unsetSuccess();
2820 chandransh 4955
        } else {
5361 mandeep.dh 4956
          setSuccess((InventoryItem)value);
2820 chandransh 4957
        }
4958
        break;
4959
 
5361 mandeep.dh 4960
      case WEX:
2820 chandransh 4961
        if (value == null) {
5361 mandeep.dh 4962
          unsetWex();
2820 chandransh 4963
        } else {
5361 mandeep.dh 4964
          setWex((WarehouseServiceException)value);
2820 chandransh 4965
        }
4966
        break;
4967
 
4968
      }
4969
    }
4970
 
4971
    public Object getFieldValue(_Fields field) {
4972
      switch (field) {
4973
      case SUCCESS:
4496 mandeep.dh 4974
        return getSuccess();
2820 chandransh 4975
 
5361 mandeep.dh 4976
      case WEX:
4977
        return getWex();
4978
 
2820 chandransh 4979
      }
4980
      throw new IllegalStateException();
4981
    }
4982
 
3430 rajveer 4983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4984
    public boolean isSet(_Fields field) {
4985
      if (field == null) {
4986
        throw new IllegalArgumentException();
4987
      }
2820 chandransh 4988
 
4989
      switch (field) {
4990
      case SUCCESS:
4991
        return isSetSuccess();
5361 mandeep.dh 4992
      case WEX:
4993
        return isSetWex();
2820 chandransh 4994
      }
4995
      throw new IllegalStateException();
4996
    }
4997
 
4998
    @Override
4999
    public boolean equals(Object that) {
5000
      if (that == null)
5001
        return false;
5361 mandeep.dh 5002
      if (that instanceof getNonSeralizedInventoryItem_result)
5003
        return this.equals((getNonSeralizedInventoryItem_result)that);
2820 chandransh 5004
      return false;
5005
    }
5006
 
5361 mandeep.dh 5007
    public boolean equals(getNonSeralizedInventoryItem_result that) {
2820 chandransh 5008
      if (that == null)
5009
        return false;
5010
 
4496 mandeep.dh 5011
      boolean this_present_success = true && this.isSetSuccess();
5012
      boolean that_present_success = true && that.isSetSuccess();
2820 chandransh 5013
      if (this_present_success || that_present_success) {
5014
        if (!(this_present_success && that_present_success))
5015
          return false;
4496 mandeep.dh 5016
        if (!this.success.equals(that.success))
2820 chandransh 5017
          return false;
5018
      }
5019
 
5361 mandeep.dh 5020
      boolean this_present_wex = true && this.isSetWex();
5021
      boolean that_present_wex = true && that.isSetWex();
5022
      if (this_present_wex || that_present_wex) {
5023
        if (!(this_present_wex && that_present_wex))
4496 mandeep.dh 5024
          return false;
5361 mandeep.dh 5025
        if (!this.wex.equals(that.wex))
4496 mandeep.dh 5026
          return false;
5027
      }
5028
 
5029
      return true;
5030
    }
5031
 
5032
    @Override
5033
    public int hashCode() {
5034
      return 0;
5035
    }
5036
 
5361 mandeep.dh 5037
    public int compareTo(getNonSeralizedInventoryItem_result other) {
4496 mandeep.dh 5038
      if (!getClass().equals(other.getClass())) {
5039
        return getClass().getName().compareTo(other.getClass().getName());
5040
      }
5041
 
5042
      int lastComparison = 0;
5361 mandeep.dh 5043
      getNonSeralizedInventoryItem_result typedOther = (getNonSeralizedInventoryItem_result)other;
4496 mandeep.dh 5044
 
5045
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5046
      if (lastComparison != 0) {
5047
        return lastComparison;
5048
      }
5049
      if (isSetSuccess()) {
5050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5051
        if (lastComparison != 0) {
5052
          return lastComparison;
5053
        }
5054
      }
5361 mandeep.dh 5055
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 5056
      if (lastComparison != 0) {
5057
        return lastComparison;
5058
      }
5361 mandeep.dh 5059
      if (isSetWex()) {
5060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
3430 rajveer 5061
        if (lastComparison != 0) {
5062
          return lastComparison;
5063
        }
2820 chandransh 5064
      }
5065
      return 0;
5066
    }
5067
 
3430 rajveer 5068
    public _Fields fieldForId(int fieldId) {
5069
      return _Fields.findByThriftId(fieldId);
5070
    }
5071
 
5072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5073
      org.apache.thrift.protocol.TField field;
2820 chandransh 5074
      iprot.readStructBegin();
5075
      while (true)
5076
      {
5077
        field = iprot.readFieldBegin();
3430 rajveer 5078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 5079
          break;
5080
        }
3430 rajveer 5081
        switch (field.id) {
5361 mandeep.dh 5082
          case 0: // SUCCESS
5083
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5084
              this.success = new InventoryItem();
5085
              this.success.read(iprot);
3430 rajveer 5086
            } else { 
5087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5088
            }
5089
            break;
5361 mandeep.dh 5090
          case 1: // WEX
5091
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5092
              this.wex = new WarehouseServiceException();
5093
              this.wex.read(iprot);
4496 mandeep.dh 5094
            } else { 
5095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5096
            }
5097
            break;
5098
          default:
5099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5100
        }
5101
        iprot.readFieldEnd();
5102
      }
5103
      iprot.readStructEnd();
5104
      validate();
5105
    }
5106
 
5107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5108
      oprot.writeStructBegin(STRUCT_DESC);
5109
 
5110
      if (this.isSetSuccess()) {
5111
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5361 mandeep.dh 5112
        this.success.write(oprot);
4496 mandeep.dh 5113
        oprot.writeFieldEnd();
5361 mandeep.dh 5114
      } else if (this.isSetWex()) {
5115
        oprot.writeFieldBegin(WEX_FIELD_DESC);
5116
        this.wex.write(oprot);
5117
        oprot.writeFieldEnd();
4496 mandeep.dh 5118
      }
5119
      oprot.writeFieldStop();
5120
      oprot.writeStructEnd();
5121
    }
5122
 
5123
    @Override
5124
    public String toString() {
5361 mandeep.dh 5125
      StringBuilder sb = new StringBuilder("getNonSeralizedInventoryItem_result(");
4496 mandeep.dh 5126
      boolean first = true;
5127
 
5128
      sb.append("success:");
5129
      if (this.success == null) {
5130
        sb.append("null");
5131
      } else {
5132
        sb.append(this.success);
5133
      }
5134
      first = false;
5361 mandeep.dh 5135
      if (!first) sb.append(", ");
5136
      sb.append("wex:");
5137
      if (this.wex == null) {
5138
        sb.append("null");
5139
      } else {
5140
        sb.append(this.wex);
5141
      }
5142
      first = false;
4496 mandeep.dh 5143
      sb.append(")");
5144
      return sb.toString();
5145
    }
5146
 
5147
    public void validate() throws org.apache.thrift.TException {
5148
      // check for required fields
5149
    }
5150
 
5151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5152
      try {
5153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5154
      } catch (org.apache.thrift.TException te) {
5155
        throw new java.io.IOException(te);
5156
      }
5157
    }
5158
 
5159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5160
      try {
5161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5162
      } catch (org.apache.thrift.TException te) {
5163
        throw new java.io.IOException(te);
5164
      }
5165
    }
5166
 
5167
  }
5168
 
5169
  public static class scan_args implements org.apache.thrift.TBase<scan_args, scan_args._Fields>, java.io.Serializable, Cloneable   {
5170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_args");
3383 chandransh 5171
 
5361 mandeep.dh 5172
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4496 mandeep.dh 5173
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
5174
    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)3);
5361 mandeep.dh 5175
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
7410 amar.kumar 5176
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)5);
3383 chandransh 5177
 
5361 mandeep.dh 5178
    private InventoryItem inventoryItem; // required
4496 mandeep.dh 5179
    private ScanType type; // required
5180
    private long quantity; // required
5361 mandeep.dh 5181
    private long billingWarehouseId; // required
7410 amar.kumar 5182
    private long transferLotId; // required
3383 chandransh 5183
 
5184
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5185
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 5186
      INVENTORY_ITEM((short)1, "inventoryItem"),
4496 mandeep.dh 5187
      /**
5188
       * 
5189
       * @see ScanType
5190
       */
5191
      TYPE((short)2, "type"),
5192
      QUANTITY((short)3, "quantity"),
7410 amar.kumar 5193
      BILLING_WAREHOUSE_ID((short)4, "billingWarehouseId"),
5194
      TRANSFER_LOT_ID((short)5, "transferLotId");
3383 chandransh 5195
 
5196
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5197
 
5198
      static {
5199
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5200
          byName.put(field.getFieldName(), field);
5201
        }
5202
      }
5203
 
5204
      /**
5205
       * Find the _Fields constant that matches fieldId, or null if its not found.
5206
       */
5207
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5208
        switch(fieldId) {
5361 mandeep.dh 5209
          case 1: // INVENTORY_ITEM
5210
            return INVENTORY_ITEM;
4496 mandeep.dh 5211
          case 2: // TYPE
5212
            return TYPE;
5213
          case 3: // QUANTITY
5214
            return QUANTITY;
5361 mandeep.dh 5215
          case 4: // BILLING_WAREHOUSE_ID
5216
            return BILLING_WAREHOUSE_ID;
7410 amar.kumar 5217
          case 5: // TRANSFER_LOT_ID
5218
            return TRANSFER_LOT_ID;
3430 rajveer 5219
          default:
5220
            return null;
5221
        }
3383 chandransh 5222
      }
5223
 
5224
      /**
5225
       * Find the _Fields constant that matches fieldId, throwing an exception
5226
       * if it is not found.
5227
       */
5228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5229
        _Fields fields = findByThriftId(fieldId);
5230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5231
        return fields;
5232
      }
5233
 
5234
      /**
5235
       * Find the _Fields constant that matches name, or null if its not found.
5236
       */
5237
      public static _Fields findByName(String name) {
5238
        return byName.get(name);
5239
      }
5240
 
5241
      private final short _thriftId;
5242
      private final String _fieldName;
5243
 
5244
      _Fields(short thriftId, String fieldName) {
5245
        _thriftId = thriftId;
5246
        _fieldName = fieldName;
5247
      }
5248
 
5249
      public short getThriftFieldId() {
5250
        return _thriftId;
5251
      }
5252
 
5253
      public String getFieldName() {
5254
        return _fieldName;
5255
      }
5256
    }
5257
 
5258
    // isset id assignments
5361 mandeep.dh 5259
    private static final int __QUANTITY_ISSET_ID = 0;
5260
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 1;
7410 amar.kumar 5261
    private static final int __TRANSFERLOTID_ISSET_ID = 2;
5262
    private BitSet __isset_bit_vector = new BitSet(3);
3383 chandransh 5263
 
3430 rajveer 5264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 5265
    static {
3430 rajveer 5266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 5267
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5268
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
4496 mandeep.dh 5269
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5270
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
5271
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 5273
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 5274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7410 amar.kumar 5275
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 5277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 5278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_args.class, metaDataMap);
3383 chandransh 5279
    }
5280
 
4496 mandeep.dh 5281
    public scan_args() {
3383 chandransh 5282
    }
5283
 
4496 mandeep.dh 5284
    public scan_args(
5361 mandeep.dh 5285
      InventoryItem inventoryItem,
4496 mandeep.dh 5286
      ScanType type,
5287
      long quantity,
7410 amar.kumar 5288
      long billingWarehouseId,
5289
      long transferLotId)
3383 chandransh 5290
    {
5291
      this();
5361 mandeep.dh 5292
      this.inventoryItem = inventoryItem;
4496 mandeep.dh 5293
      this.type = type;
5294
      this.quantity = quantity;
5295
      setQuantityIsSet(true);
5361 mandeep.dh 5296
      this.billingWarehouseId = billingWarehouseId;
5297
      setBillingWarehouseIdIsSet(true);
7410 amar.kumar 5298
      this.transferLotId = transferLotId;
5299
      setTransferLotIdIsSet(true);
3383 chandransh 5300
    }
5301
 
5302
    /**
5303
     * Performs a deep copy on <i>other</i>.
5304
     */
4496 mandeep.dh 5305
    public scan_args(scan_args other) {
3383 chandransh 5306
      __isset_bit_vector.clear();
5307
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 5308
      if (other.isSetInventoryItem()) {
5309
        this.inventoryItem = new InventoryItem(other.inventoryItem);
5310
      }
4496 mandeep.dh 5311
      if (other.isSetType()) {
5312
        this.type = other.type;
5313
      }
5314
      this.quantity = other.quantity;
5361 mandeep.dh 5315
      this.billingWarehouseId = other.billingWarehouseId;
7410 amar.kumar 5316
      this.transferLotId = other.transferLotId;
3383 chandransh 5317
    }
5318
 
4496 mandeep.dh 5319
    public scan_args deepCopy() {
5320
      return new scan_args(this);
3383 chandransh 5321
    }
5322
 
3430 rajveer 5323
    @Override
5324
    public void clear() {
5361 mandeep.dh 5325
      this.inventoryItem = null;
4496 mandeep.dh 5326
      this.type = null;
5327
      setQuantityIsSet(false);
5328
      this.quantity = 0;
5361 mandeep.dh 5329
      setBillingWarehouseIdIsSet(false);
5330
      this.billingWarehouseId = 0;
7410 amar.kumar 5331
      setTransferLotIdIsSet(false);
5332
      this.transferLotId = 0;
3383 chandransh 5333
    }
5334
 
5361 mandeep.dh 5335
    public InventoryItem getInventoryItem() {
5336
      return this.inventoryItem;
3383 chandransh 5337
    }
5338
 
5361 mandeep.dh 5339
    public void setInventoryItem(InventoryItem inventoryItem) {
5340
      this.inventoryItem = inventoryItem;
3383 chandransh 5341
    }
5342
 
5361 mandeep.dh 5343
    public void unsetInventoryItem() {
5344
      this.inventoryItem = null;
3383 chandransh 5345
    }
5346
 
5361 mandeep.dh 5347
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
5348
    public boolean isSetInventoryItem() {
5349
      return this.inventoryItem != null;
3383 chandransh 5350
    }
5351
 
5361 mandeep.dh 5352
    public void setInventoryItemIsSet(boolean value) {
5353
      if (!value) {
5354
        this.inventoryItem = null;
5355
      }
3383 chandransh 5356
    }
5357
 
4496 mandeep.dh 5358
    /**
5359
     * 
5360
     * @see ScanType
5361
     */
5362
    public ScanType getType() {
5363
      return this.type;
3383 chandransh 5364
    }
5365
 
4496 mandeep.dh 5366
    /**
5367
     * 
5368
     * @see ScanType
5369
     */
5370
    public void setType(ScanType type) {
5371
      this.type = type;
3383 chandransh 5372
    }
5373
 
4496 mandeep.dh 5374
    public void unsetType() {
5375
      this.type = null;
3383 chandransh 5376
    }
5377
 
4496 mandeep.dh 5378
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5379
    public boolean isSetType() {
5380
      return this.type != null;
3383 chandransh 5381
    }
5382
 
4496 mandeep.dh 5383
    public void setTypeIsSet(boolean value) {
5384
      if (!value) {
5385
        this.type = null;
5386
      }
3383 chandransh 5387
    }
5388
 
4496 mandeep.dh 5389
    public long getQuantity() {
5390
      return this.quantity;
5391
    }
5392
 
5393
    public void setQuantity(long quantity) {
5394
      this.quantity = quantity;
5395
      setQuantityIsSet(true);
5396
    }
5397
 
5398
    public void unsetQuantity() {
5399
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
5400
    }
5401
 
5402
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
5403
    public boolean isSetQuantity() {
5404
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
5405
    }
5406
 
5407
    public void setQuantityIsSet(boolean value) {
5408
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
5409
    }
5410
 
5361 mandeep.dh 5411
    public long getBillingWarehouseId() {
5412
      return this.billingWarehouseId;
4496 mandeep.dh 5413
    }
5414
 
5361 mandeep.dh 5415
    public void setBillingWarehouseId(long billingWarehouseId) {
5416
      this.billingWarehouseId = billingWarehouseId;
5417
      setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5418
    }
5419
 
5361 mandeep.dh 5420
    public void unsetBillingWarehouseId() {
5421
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5422
    }
5423
 
5361 mandeep.dh 5424
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
5425
    public boolean isSetBillingWarehouseId() {
5426
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 5427
    }
5428
 
5361 mandeep.dh 5429
    public void setBillingWarehouseIdIsSet(boolean value) {
5430
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 5431
    }
5432
 
7410 amar.kumar 5433
    public long getTransferLotId() {
5434
      return this.transferLotId;
5435
    }
5436
 
5437
    public void setTransferLotId(long transferLotId) {
5438
      this.transferLotId = transferLotId;
5439
      setTransferLotIdIsSet(true);
5440
    }
5441
 
5442
    public void unsetTransferLotId() {
5443
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
5444
    }
5445
 
5446
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
5447
    public boolean isSetTransferLotId() {
5448
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
5449
    }
5450
 
5451
    public void setTransferLotIdIsSet(boolean value) {
5452
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
5453
    }
5454
 
3383 chandransh 5455
    public void setFieldValue(_Fields field, Object value) {
5456
      switch (field) {
5361 mandeep.dh 5457
      case INVENTORY_ITEM:
3383 chandransh 5458
        if (value == null) {
5361 mandeep.dh 5459
          unsetInventoryItem();
3383 chandransh 5460
        } else {
5361 mandeep.dh 5461
          setInventoryItem((InventoryItem)value);
3383 chandransh 5462
        }
5463
        break;
5464
 
4496 mandeep.dh 5465
      case TYPE:
3383 chandransh 5466
        if (value == null) {
4496 mandeep.dh 5467
          unsetType();
3383 chandransh 5468
        } else {
4496 mandeep.dh 5469
          setType((ScanType)value);
3383 chandransh 5470
        }
5471
        break;
5472
 
4496 mandeep.dh 5473
      case QUANTITY:
5474
        if (value == null) {
5475
          unsetQuantity();
5476
        } else {
5477
          setQuantity((Long)value);
5478
        }
5479
        break;
5480
 
5361 mandeep.dh 5481
      case BILLING_WAREHOUSE_ID:
4496 mandeep.dh 5482
        if (value == null) {
5361 mandeep.dh 5483
          unsetBillingWarehouseId();
4496 mandeep.dh 5484
        } else {
5361 mandeep.dh 5485
          setBillingWarehouseId((Long)value);
4496 mandeep.dh 5486
        }
5487
        break;
5488
 
7410 amar.kumar 5489
      case TRANSFER_LOT_ID:
5490
        if (value == null) {
5491
          unsetTransferLotId();
5492
        } else {
5493
          setTransferLotId((Long)value);
5494
        }
5495
        break;
5496
 
3383 chandransh 5497
      }
5498
    }
5499
 
5500
    public Object getFieldValue(_Fields field) {
5501
      switch (field) {
5361 mandeep.dh 5502
      case INVENTORY_ITEM:
5503
        return getInventoryItem();
3383 chandransh 5504
 
4496 mandeep.dh 5505
      case TYPE:
5506
        return getType();
3383 chandransh 5507
 
4496 mandeep.dh 5508
      case QUANTITY:
5509
        return Long.valueOf(getQuantity());
5510
 
5361 mandeep.dh 5511
      case BILLING_WAREHOUSE_ID:
5512
        return Long.valueOf(getBillingWarehouseId());
4496 mandeep.dh 5513
 
7410 amar.kumar 5514
      case TRANSFER_LOT_ID:
5515
        return Long.valueOf(getTransferLotId());
5516
 
3383 chandransh 5517
      }
5518
      throw new IllegalStateException();
5519
    }
5520
 
3430 rajveer 5521
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5522
    public boolean isSet(_Fields field) {
5523
      if (field == null) {
5524
        throw new IllegalArgumentException();
5525
      }
3383 chandransh 5526
 
5527
      switch (field) {
5361 mandeep.dh 5528
      case INVENTORY_ITEM:
5529
        return isSetInventoryItem();
4496 mandeep.dh 5530
      case TYPE:
5531
        return isSetType();
5532
      case QUANTITY:
5533
        return isSetQuantity();
5361 mandeep.dh 5534
      case BILLING_WAREHOUSE_ID:
5535
        return isSetBillingWarehouseId();
7410 amar.kumar 5536
      case TRANSFER_LOT_ID:
5537
        return isSetTransferLotId();
3383 chandransh 5538
      }
5539
      throw new IllegalStateException();
5540
    }
5541
 
5542
    @Override
5543
    public boolean equals(Object that) {
5544
      if (that == null)
5545
        return false;
4496 mandeep.dh 5546
      if (that instanceof scan_args)
5547
        return this.equals((scan_args)that);
3383 chandransh 5548
      return false;
5549
    }
5550
 
4496 mandeep.dh 5551
    public boolean equals(scan_args that) {
3383 chandransh 5552
      if (that == null)
5553
        return false;
5554
 
5361 mandeep.dh 5555
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
5556
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
5557
      if (this_present_inventoryItem || that_present_inventoryItem) {
5558
        if (!(this_present_inventoryItem && that_present_inventoryItem))
3383 chandransh 5559
          return false;
5361 mandeep.dh 5560
        if (!this.inventoryItem.equals(that.inventoryItem))
3383 chandransh 5561
          return false;
5562
      }
5563
 
4496 mandeep.dh 5564
      boolean this_present_type = true && this.isSetType();
5565
      boolean that_present_type = true && that.isSetType();
5566
      if (this_present_type || that_present_type) {
5567
        if (!(this_present_type && that_present_type))
3383 chandransh 5568
          return false;
4496 mandeep.dh 5569
        if (!this.type.equals(that.type))
3383 chandransh 5570
          return false;
5571
      }
5572
 
4496 mandeep.dh 5573
      boolean this_present_quantity = true;
5574
      boolean that_present_quantity = true;
5575
      if (this_present_quantity || that_present_quantity) {
5576
        if (!(this_present_quantity && that_present_quantity))
5577
          return false;
5578
        if (this.quantity != that.quantity)
5579
          return false;
5580
      }
5581
 
5361 mandeep.dh 5582
      boolean this_present_billingWarehouseId = true;
5583
      boolean that_present_billingWarehouseId = true;
5584
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
5585
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
4496 mandeep.dh 5586
          return false;
5361 mandeep.dh 5587
        if (this.billingWarehouseId != that.billingWarehouseId)
4496 mandeep.dh 5588
          return false;
5589
      }
5590
 
7410 amar.kumar 5591
      boolean this_present_transferLotId = true;
5592
      boolean that_present_transferLotId = true;
5593
      if (this_present_transferLotId || that_present_transferLotId) {
5594
        if (!(this_present_transferLotId && that_present_transferLotId))
5595
          return false;
5596
        if (this.transferLotId != that.transferLotId)
5597
          return false;
5598
      }
5599
 
3383 chandransh 5600
      return true;
5601
    }
5602
 
5603
    @Override
5604
    public int hashCode() {
5605
      return 0;
5606
    }
5607
 
4496 mandeep.dh 5608
    public int compareTo(scan_args other) {
3383 chandransh 5609
      if (!getClass().equals(other.getClass())) {
5610
        return getClass().getName().compareTo(other.getClass().getName());
5611
      }
5612
 
5613
      int lastComparison = 0;
4496 mandeep.dh 5614
      scan_args typedOther = (scan_args)other;
3383 chandransh 5615
 
5361 mandeep.dh 5616
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
3383 chandransh 5617
      if (lastComparison != 0) {
5618
        return lastComparison;
5619
      }
5361 mandeep.dh 5620
      if (isSetInventoryItem()) {
5621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 5622
        if (lastComparison != 0) {
5623
          return lastComparison;
5624
        }
3383 chandransh 5625
      }
4496 mandeep.dh 5626
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3383 chandransh 5627
      if (lastComparison != 0) {
5628
        return lastComparison;
5629
      }
4496 mandeep.dh 5630
      if (isSetType()) {
5631
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 5632
        if (lastComparison != 0) {
5633
          return lastComparison;
5634
        }
3383 chandransh 5635
      }
4496 mandeep.dh 5636
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
5637
      if (lastComparison != 0) {
5638
        return lastComparison;
5639
      }
5640
      if (isSetQuantity()) {
5641
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
5642
        if (lastComparison != 0) {
5643
          return lastComparison;
5644
        }
5645
      }
5361 mandeep.dh 5646
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
4496 mandeep.dh 5647
      if (lastComparison != 0) {
5648
        return lastComparison;
5649
      }
5361 mandeep.dh 5650
      if (isSetBillingWarehouseId()) {
5651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
4496 mandeep.dh 5652
        if (lastComparison != 0) {
5653
          return lastComparison;
5654
        }
5655
      }
7410 amar.kumar 5656
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
5657
      if (lastComparison != 0) {
5658
        return lastComparison;
5659
      }
5660
      if (isSetTransferLotId()) {
5661
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
5662
        if (lastComparison != 0) {
5663
          return lastComparison;
5664
        }
5665
      }
3383 chandransh 5666
      return 0;
5667
    }
5668
 
3430 rajveer 5669
    public _Fields fieldForId(int fieldId) {
5670
      return _Fields.findByThriftId(fieldId);
5671
    }
5672
 
5673
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5674
      org.apache.thrift.protocol.TField field;
3383 chandransh 5675
      iprot.readStructBegin();
5676
      while (true)
5677
      {
5678
        field = iprot.readFieldBegin();
3430 rajveer 5679
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 5680
          break;
5681
        }
3430 rajveer 5682
        switch (field.id) {
5361 mandeep.dh 5683
          case 1: // INVENTORY_ITEM
5684
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5685
              this.inventoryItem = new InventoryItem();
5686
              this.inventoryItem.read(iprot);
3430 rajveer 5687
            } else { 
5688
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5689
            }
5690
            break;
4496 mandeep.dh 5691
          case 2: // TYPE
5692
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5693
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 5694
            } else { 
5695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5696
            }
5697
            break;
4496 mandeep.dh 5698
          case 3: // QUANTITY
5699
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5700
              this.quantity = iprot.readI64();
5701
              setQuantityIsSet(true);
5702
            } else { 
5703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5704
            }
5705
            break;
5361 mandeep.dh 5706
          case 4: // BILLING_WAREHOUSE_ID
4496 mandeep.dh 5707
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5361 mandeep.dh 5708
              this.billingWarehouseId = iprot.readI64();
5709
              setBillingWarehouseIdIsSet(true);
4496 mandeep.dh 5710
            } else { 
5711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5712
            }
5713
            break;
7410 amar.kumar 5714
          case 5: // TRANSFER_LOT_ID
5715
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5716
              this.transferLotId = iprot.readI64();
5717
              setTransferLotIdIsSet(true);
5718
            } else { 
5719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5720
            }
5721
            break;
3430 rajveer 5722
          default:
5723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 5724
        }
3430 rajveer 5725
        iprot.readFieldEnd();
3383 chandransh 5726
      }
5727
      iprot.readStructEnd();
5728
      validate();
5729
    }
5730
 
3430 rajveer 5731
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 5732
      validate();
5733
 
5734
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 5735
      if (this.inventoryItem != null) {
5736
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
5737
        this.inventoryItem.write(oprot);
5738
        oprot.writeFieldEnd();
5739
      }
4496 mandeep.dh 5740
      if (this.type != null) {
5741
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
5742
        oprot.writeI32(this.type.getValue());
5743
        oprot.writeFieldEnd();
5744
      }
5745
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
5746
      oprot.writeI64(this.quantity);
3383 chandransh 5747
      oprot.writeFieldEnd();
5361 mandeep.dh 5748
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
5749
      oprot.writeI64(this.billingWarehouseId);
4496 mandeep.dh 5750
      oprot.writeFieldEnd();
7410 amar.kumar 5751
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
5752
      oprot.writeI64(this.transferLotId);
5753
      oprot.writeFieldEnd();
3383 chandransh 5754
      oprot.writeFieldStop();
5755
      oprot.writeStructEnd();
5756
    }
5757
 
5758
    @Override
5759
    public String toString() {
4496 mandeep.dh 5760
      StringBuilder sb = new StringBuilder("scan_args(");
3383 chandransh 5761
      boolean first = true;
5762
 
5361 mandeep.dh 5763
      sb.append("inventoryItem:");
5764
      if (this.inventoryItem == null) {
5765
        sb.append("null");
5766
      } else {
5767
        sb.append(this.inventoryItem);
5768
      }
3383 chandransh 5769
      first = false;
5770
      if (!first) sb.append(", ");
4496 mandeep.dh 5771
      sb.append("type:");
5772
      if (this.type == null) {
5773
        sb.append("null");
5774
      } else {
5775
        sb.append(this.type);
5776
      }
3383 chandransh 5777
      first = false;
4496 mandeep.dh 5778
      if (!first) sb.append(", ");
5779
      sb.append("quantity:");
5780
      sb.append(this.quantity);
5781
      first = false;
5782
      if (!first) sb.append(", ");
5361 mandeep.dh 5783
      sb.append("billingWarehouseId:");
5784
      sb.append(this.billingWarehouseId);
4496 mandeep.dh 5785
      first = false;
7410 amar.kumar 5786
      if (!first) sb.append(", ");
5787
      sb.append("transferLotId:");
5788
      sb.append(this.transferLotId);
5789
      first = false;
3383 chandransh 5790
      sb.append(")");
5791
      return sb.toString();
5792
    }
5793
 
3430 rajveer 5794
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 5795
      // check for required fields
5796
    }
5797
 
3430 rajveer 5798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5799
      try {
5800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5801
      } catch (org.apache.thrift.TException te) {
5802
        throw new java.io.IOException(te);
5803
      }
5804
    }
5805
 
5806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5807
      try {
4496 mandeep.dh 5808
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5809
        __isset_bit_vector = new BitSet(1);
3430 rajveer 5810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5811
      } catch (org.apache.thrift.TException te) {
5812
        throw new java.io.IOException(te);
5813
      }
5814
    }
5815
 
3383 chandransh 5816
  }
5817
 
4496 mandeep.dh 5818
  public static class scan_result implements org.apache.thrift.TBase<scan_result, scan_result._Fields>, java.io.Serializable, Cloneable   {
5819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scan_result");
3383 chandransh 5820
 
3430 rajveer 5821
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3383 chandransh 5822
 
3430 rajveer 5823
    private WarehouseServiceException wex; // required
3383 chandransh 5824
 
5825
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5826
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3383 chandransh 5827
      WEX((short)1, "wex");
5828
 
5829
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5830
 
5831
      static {
5832
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5833
          byName.put(field.getFieldName(), field);
5834
        }
5835
      }
5836
 
5837
      /**
5838
       * Find the _Fields constant that matches fieldId, or null if its not found.
5839
       */
5840
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5841
        switch(fieldId) {
5842
          case 1: // WEX
5843
            return WEX;
5844
          default:
5845
            return null;
5846
        }
3383 chandransh 5847
      }
5848
 
5849
      /**
5850
       * Find the _Fields constant that matches fieldId, throwing an exception
5851
       * if it is not found.
5852
       */
5853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5854
        _Fields fields = findByThriftId(fieldId);
5855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5856
        return fields;
5857
      }
5858
 
5859
      /**
5860
       * Find the _Fields constant that matches name, or null if its not found.
5861
       */
5862
      public static _Fields findByName(String name) {
5863
        return byName.get(name);
5864
      }
5865
 
5866
      private final short _thriftId;
5867
      private final String _fieldName;
5868
 
5869
      _Fields(short thriftId, String fieldName) {
5870
        _thriftId = thriftId;
5871
        _fieldName = fieldName;
5872
      }
5873
 
5874
      public short getThriftFieldId() {
5875
        return _thriftId;
5876
      }
5877
 
5878
      public String getFieldName() {
5879
        return _fieldName;
5880
      }
5881
    }
5882
 
5883
    // isset id assignments
5884
 
3430 rajveer 5885
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3383 chandransh 5886
    static {
3430 rajveer 5887
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5888
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5889
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5890
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 5891
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scan_result.class, metaDataMap);
3383 chandransh 5892
    }
5893
 
4496 mandeep.dh 5894
    public scan_result() {
3383 chandransh 5895
    }
5896
 
4496 mandeep.dh 5897
    public scan_result(
3383 chandransh 5898
      WarehouseServiceException wex)
5899
    {
5900
      this();
5901
      this.wex = wex;
5902
    }
5903
 
5904
    /**
5905
     * Performs a deep copy on <i>other</i>.
5906
     */
4496 mandeep.dh 5907
    public scan_result(scan_result other) {
3383 chandransh 5908
      if (other.isSetWex()) {
5909
        this.wex = new WarehouseServiceException(other.wex);
5910
      }
5911
    }
5912
 
4496 mandeep.dh 5913
    public scan_result deepCopy() {
5914
      return new scan_result(this);
3383 chandransh 5915
    }
5916
 
3430 rajveer 5917
    @Override
5918
    public void clear() {
5919
      this.wex = null;
3383 chandransh 5920
    }
5921
 
5922
    public WarehouseServiceException getWex() {
5923
      return this.wex;
5924
    }
5925
 
3430 rajveer 5926
    public void setWex(WarehouseServiceException wex) {
3383 chandransh 5927
      this.wex = wex;
5928
    }
5929
 
5930
    public void unsetWex() {
5931
      this.wex = null;
5932
    }
5933
 
3430 rajveer 5934
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
3383 chandransh 5935
    public boolean isSetWex() {
5936
      return this.wex != null;
5937
    }
5938
 
5939
    public void setWexIsSet(boolean value) {
5940
      if (!value) {
5941
        this.wex = null;
5942
      }
5943
    }
5944
 
5945
    public void setFieldValue(_Fields field, Object value) {
5946
      switch (field) {
5947
      case WEX:
5948
        if (value == null) {
5949
          unsetWex();
5950
        } else {
5951
          setWex((WarehouseServiceException)value);
5952
        }
5953
        break;
5954
 
5955
      }
5956
    }
5957
 
5958
    public Object getFieldValue(_Fields field) {
5959
      switch (field) {
5960
      case WEX:
5961
        return getWex();
5962
 
5963
      }
5964
      throw new IllegalStateException();
5965
    }
5966
 
3430 rajveer 5967
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5968
    public boolean isSet(_Fields field) {
5969
      if (field == null) {
5970
        throw new IllegalArgumentException();
5971
      }
3383 chandransh 5972
 
5973
      switch (field) {
5974
      case WEX:
5975
        return isSetWex();
5976
      }
5977
      throw new IllegalStateException();
5978
    }
5979
 
5980
    @Override
5981
    public boolean equals(Object that) {
5982
      if (that == null)
5983
        return false;
4496 mandeep.dh 5984
      if (that instanceof scan_result)
5985
        return this.equals((scan_result)that);
3383 chandransh 5986
      return false;
5987
    }
5988
 
4496 mandeep.dh 5989
    public boolean equals(scan_result that) {
3383 chandransh 5990
      if (that == null)
5991
        return false;
5992
 
5993
      boolean this_present_wex = true && this.isSetWex();
5994
      boolean that_present_wex = true && that.isSetWex();
5995
      if (this_present_wex || that_present_wex) {
5996
        if (!(this_present_wex && that_present_wex))
5997
          return false;
5998
        if (!this.wex.equals(that.wex))
5999
          return false;
6000
      }
6001
 
6002
      return true;
6003
    }
6004
 
6005
    @Override
6006
    public int hashCode() {
6007
      return 0;
6008
    }
6009
 
4496 mandeep.dh 6010
    public int compareTo(scan_result other) {
3383 chandransh 6011
      if (!getClass().equals(other.getClass())) {
6012
        return getClass().getName().compareTo(other.getClass().getName());
6013
      }
6014
 
6015
      int lastComparison = 0;
4496 mandeep.dh 6016
      scan_result typedOther = (scan_result)other;
3383 chandransh 6017
 
3430 rajveer 6018
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
3383 chandransh 6019
      if (lastComparison != 0) {
6020
        return lastComparison;
6021
      }
3430 rajveer 6022
      if (isSetWex()) {
6023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
6024
        if (lastComparison != 0) {
6025
          return lastComparison;
6026
        }
3383 chandransh 6027
      }
6028
      return 0;
6029
    }
6030
 
3430 rajveer 6031
    public _Fields fieldForId(int fieldId) {
6032
      return _Fields.findByThriftId(fieldId);
6033
    }
6034
 
6035
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6036
      org.apache.thrift.protocol.TField field;
3383 chandransh 6037
      iprot.readStructBegin();
6038
      while (true)
6039
      {
6040
        field = iprot.readFieldBegin();
3430 rajveer 6041
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3383 chandransh 6042
          break;
6043
        }
3430 rajveer 6044
        switch (field.id) {
6045
          case 1: // WEX
6046
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6047
              this.wex = new WarehouseServiceException();
6048
              this.wex.read(iprot);
6049
            } else { 
6050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6051
            }
6052
            break;
6053
          default:
6054
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3383 chandransh 6055
        }
3430 rajveer 6056
        iprot.readFieldEnd();
3383 chandransh 6057
      }
6058
      iprot.readStructEnd();
6059
      validate();
6060
    }
6061
 
3430 rajveer 6062
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3383 chandransh 6063
      oprot.writeStructBegin(STRUCT_DESC);
6064
 
4496 mandeep.dh 6065
      if (this.isSetWex()) {
3383 chandransh 6066
        oprot.writeFieldBegin(WEX_FIELD_DESC);
6067
        this.wex.write(oprot);
6068
        oprot.writeFieldEnd();
6069
      }
6070
      oprot.writeFieldStop();
6071
      oprot.writeStructEnd();
6072
    }
6073
 
6074
    @Override
6075
    public String toString() {
4496 mandeep.dh 6076
      StringBuilder sb = new StringBuilder("scan_result(");
3383 chandransh 6077
      boolean first = true;
6078
 
6079
      sb.append("wex:");
6080
      if (this.wex == null) {
6081
        sb.append("null");
6082
      } else {
6083
        sb.append(this.wex);
6084
      }
6085
      first = false;
6086
      sb.append(")");
6087
      return sb.toString();
6088
    }
6089
 
3430 rajveer 6090
    public void validate() throws org.apache.thrift.TException {
3383 chandransh 6091
      // check for required fields
6092
    }
6093
 
3430 rajveer 6094
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6095
      try {
6096
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6097
      } catch (org.apache.thrift.TException te) {
6098
        throw new java.io.IOException(te);
6099
      }
6100
    }
6101
 
6102
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6103
      try {
6104
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6105
      } catch (org.apache.thrift.TException te) {
6106
        throw new java.io.IOException(te);
6107
      }
6108
    }
6109
 
3383 chandransh 6110
  }
6111
 
4496 mandeep.dh 6112
  public static class scanSerializedItemForOrder_args implements org.apache.thrift.TBase<scanSerializedItemForOrder_args, scanSerializedItemForOrder_args._Fields>, java.io.Serializable, Cloneable   {
6113
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_args");
2820 chandransh 6114
 
4555 mandeep.dh 6115
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
4496 mandeep.dh 6116
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
6117
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)3);
5110 mandeep.dh 6118
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)4);
6119
    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)5);
6120
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)6);
2820 chandransh 6121
 
4555 mandeep.dh 6122
    private String serialNumber; // required
3430 rajveer 6123
    private ScanType type; // required
4496 mandeep.dh 6124
    private long orderId; // required
5110 mandeep.dh 6125
    private long fulfilmentWarehouseId; // required
6126
    private double quantity; // required
6127
    private long billingWarehouseId; // required
2820 chandransh 6128
 
6129
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6130
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4555 mandeep.dh 6131
      SERIAL_NUMBER((short)1, "serialNumber"),
2820 chandransh 6132
      /**
6133
       * 
6134
       * @see ScanType
6135
       */
4496 mandeep.dh 6136
      TYPE((short)2, "type"),
6137
      ORDER_ID((short)3, "orderId"),
5110 mandeep.dh 6138
      FULFILMENT_WAREHOUSE_ID((short)4, "fulfilmentWarehouseId"),
6139
      QUANTITY((short)5, "quantity"),
6140
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 6141
 
6142
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6143
 
6144
      static {
6145
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6146
          byName.put(field.getFieldName(), field);
6147
        }
6148
      }
6149
 
6150
      /**
6151
       * Find the _Fields constant that matches fieldId, or null if its not found.
6152
       */
6153
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6154
        switch(fieldId) {
4555 mandeep.dh 6155
          case 1: // SERIAL_NUMBER
6156
            return SERIAL_NUMBER;
4496 mandeep.dh 6157
          case 2: // TYPE
3430 rajveer 6158
            return TYPE;
4496 mandeep.dh 6159
          case 3: // ORDER_ID
6160
            return ORDER_ID;
5110 mandeep.dh 6161
          case 4: // FULFILMENT_WAREHOUSE_ID
6162
            return FULFILMENT_WAREHOUSE_ID;
6163
          case 5: // QUANTITY
6164
            return QUANTITY;
6165
          case 6: // BILLING_WAREHOUSE_ID
6166
            return BILLING_WAREHOUSE_ID;
3430 rajveer 6167
          default:
6168
            return null;
6169
        }
2820 chandransh 6170
      }
6171
 
6172
      /**
6173
       * Find the _Fields constant that matches fieldId, throwing an exception
6174
       * if it is not found.
6175
       */
6176
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6177
        _Fields fields = findByThriftId(fieldId);
6178
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6179
        return fields;
6180
      }
6181
 
6182
      /**
6183
       * Find the _Fields constant that matches name, or null if its not found.
6184
       */
6185
      public static _Fields findByName(String name) {
6186
        return byName.get(name);
6187
      }
6188
 
6189
      private final short _thriftId;
6190
      private final String _fieldName;
6191
 
6192
      _Fields(short thriftId, String fieldName) {
6193
        _thriftId = thriftId;
6194
        _fieldName = fieldName;
6195
      }
6196
 
6197
      public short getThriftFieldId() {
6198
        return _thriftId;
6199
      }
6200
 
6201
      public String getFieldName() {
6202
        return _fieldName;
6203
      }
6204
    }
6205
 
6206
    // isset id assignments
4555 mandeep.dh 6207
    private static final int __ORDERID_ISSET_ID = 0;
5110 mandeep.dh 6208
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 1;
6209
    private static final int __QUANTITY_ISSET_ID = 2;
6210
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
6211
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 6212
 
3430 rajveer 6213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 6214
    static {
3430 rajveer 6215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4555 mandeep.dh 6216
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3430 rajveer 6218
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6219
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 6220
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6222
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 6223
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 6224
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6225
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
6226
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 6228
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6229
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_args.class, metaDataMap);
2820 chandransh 6230
    }
6231
 
4496 mandeep.dh 6232
    public scanSerializedItemForOrder_args() {
2820 chandransh 6233
    }
6234
 
4496 mandeep.dh 6235
    public scanSerializedItemForOrder_args(
4555 mandeep.dh 6236
      String serialNumber,
4496 mandeep.dh 6237
      ScanType type,
6238
      long orderId,
5110 mandeep.dh 6239
      long fulfilmentWarehouseId,
6240
      double quantity,
6241
      long billingWarehouseId)
2820 chandransh 6242
    {
6243
      this();
4555 mandeep.dh 6244
      this.serialNumber = serialNumber;
2820 chandransh 6245
      this.type = type;
4496 mandeep.dh 6246
      this.orderId = orderId;
6247
      setOrderIdIsSet(true);
5110 mandeep.dh 6248
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6249
      setFulfilmentWarehouseIdIsSet(true);
6250
      this.quantity = quantity;
6251
      setQuantityIsSet(true);
6252
      this.billingWarehouseId = billingWarehouseId;
6253
      setBillingWarehouseIdIsSet(true);
2820 chandransh 6254
    }
6255
 
6256
    /**
6257
     * Performs a deep copy on <i>other</i>.
6258
     */
4496 mandeep.dh 6259
    public scanSerializedItemForOrder_args(scanSerializedItemForOrder_args other) {
2820 chandransh 6260
      __isset_bit_vector.clear();
6261
      __isset_bit_vector.or(other.__isset_bit_vector);
4555 mandeep.dh 6262
      if (other.isSetSerialNumber()) {
6263
        this.serialNumber = other.serialNumber;
6264
      }
2820 chandransh 6265
      if (other.isSetType()) {
6266
        this.type = other.type;
6267
      }
4496 mandeep.dh 6268
      this.orderId = other.orderId;
5110 mandeep.dh 6269
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
6270
      this.quantity = other.quantity;
6271
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 6272
    }
6273
 
4496 mandeep.dh 6274
    public scanSerializedItemForOrder_args deepCopy() {
6275
      return new scanSerializedItemForOrder_args(this);
2820 chandransh 6276
    }
6277
 
3430 rajveer 6278
    @Override
6279
    public void clear() {
4555 mandeep.dh 6280
      this.serialNumber = null;
3430 rajveer 6281
      this.type = null;
4496 mandeep.dh 6282
      setOrderIdIsSet(false);
6283
      this.orderId = 0;
5110 mandeep.dh 6284
      setFulfilmentWarehouseIdIsSet(false);
6285
      this.fulfilmentWarehouseId = 0;
6286
      setQuantityIsSet(false);
6287
      this.quantity = 0.0;
6288
      setBillingWarehouseIdIsSet(false);
6289
      this.billingWarehouseId = 0;
2820 chandransh 6290
    }
6291
 
4555 mandeep.dh 6292
    public String getSerialNumber() {
6293
      return this.serialNumber;
2820 chandransh 6294
    }
6295
 
4555 mandeep.dh 6296
    public void setSerialNumber(String serialNumber) {
6297
      this.serialNumber = serialNumber;
2820 chandransh 6298
    }
6299
 
4555 mandeep.dh 6300
    public void unsetSerialNumber() {
6301
      this.serialNumber = null;
2820 chandransh 6302
    }
6303
 
4555 mandeep.dh 6304
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
6305
    public boolean isSetSerialNumber() {
6306
      return this.serialNumber != null;
2820 chandransh 6307
    }
6308
 
4555 mandeep.dh 6309
    public void setSerialNumberIsSet(boolean value) {
6310
      if (!value) {
6311
        this.serialNumber = null;
6312
      }
2820 chandransh 6313
    }
6314
 
4496 mandeep.dh 6315
    /**
6316
     * 
6317
     * @see ScanType
6318
     */
6319
    public ScanType getType() {
6320
      return this.type;
2820 chandransh 6321
    }
6322
 
4496 mandeep.dh 6323
    /**
6324
     * 
6325
     * @see ScanType
6326
     */
6327
    public void setType(ScanType type) {
6328
      this.type = type;
2820 chandransh 6329
    }
6330
 
4496 mandeep.dh 6331
    public void unsetType() {
6332
      this.type = null;
2820 chandransh 6333
    }
6334
 
4496 mandeep.dh 6335
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
6336
    public boolean isSetType() {
6337
      return this.type != null;
2820 chandransh 6338
    }
6339
 
4496 mandeep.dh 6340
    public void setTypeIsSet(boolean value) {
2820 chandransh 6341
      if (!value) {
4496 mandeep.dh 6342
        this.type = null;
2820 chandransh 6343
      }
6344
    }
6345
 
4496 mandeep.dh 6346
    public long getOrderId() {
6347
      return this.orderId;
2820 chandransh 6348
    }
6349
 
4496 mandeep.dh 6350
    public void setOrderId(long orderId) {
6351
      this.orderId = orderId;
6352
      setOrderIdIsSet(true);
2820 chandransh 6353
    }
6354
 
4496 mandeep.dh 6355
    public void unsetOrderId() {
6356
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2820 chandransh 6357
    }
6358
 
4496 mandeep.dh 6359
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
6360
    public boolean isSetOrderId() {
6361
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2820 chandransh 6362
    }
6363
 
4496 mandeep.dh 6364
    public void setOrderIdIsSet(boolean value) {
6365
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2820 chandransh 6366
    }
6367
 
5110 mandeep.dh 6368
    public long getFulfilmentWarehouseId() {
6369
      return this.fulfilmentWarehouseId;
2820 chandransh 6370
    }
6371
 
5110 mandeep.dh 6372
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
6373
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
6374
      setFulfilmentWarehouseIdIsSet(true);
2820 chandransh 6375
    }
6376
 
5110 mandeep.dh 6377
    public void unsetFulfilmentWarehouseId() {
6378
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6379
    }
6380
 
5110 mandeep.dh 6381
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
6382
    public boolean isSetFulfilmentWarehouseId() {
6383
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
2820 chandransh 6384
    }
6385
 
5110 mandeep.dh 6386
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
6387
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
2820 chandransh 6388
    }
6389
 
5110 mandeep.dh 6390
    public double getQuantity() {
6391
      return this.quantity;
6392
    }
6393
 
6394
    public void setQuantity(double quantity) {
6395
      this.quantity = quantity;
6396
      setQuantityIsSet(true);
6397
    }
6398
 
6399
    public void unsetQuantity() {
6400
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
6401
    }
6402
 
6403
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
6404
    public boolean isSetQuantity() {
6405
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
6406
    }
6407
 
6408
    public void setQuantityIsSet(boolean value) {
6409
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
6410
    }
6411
 
6412
    public long getBillingWarehouseId() {
6413
      return this.billingWarehouseId;
6414
    }
6415
 
6416
    public void setBillingWarehouseId(long billingWarehouseId) {
6417
      this.billingWarehouseId = billingWarehouseId;
6418
      setBillingWarehouseIdIsSet(true);
6419
    }
6420
 
6421
    public void unsetBillingWarehouseId() {
6422
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
6423
    }
6424
 
6425
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
6426
    public boolean isSetBillingWarehouseId() {
6427
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
6428
    }
6429
 
6430
    public void setBillingWarehouseIdIsSet(boolean value) {
6431
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
6432
    }
6433
 
2820 chandransh 6434
    public void setFieldValue(_Fields field, Object value) {
6435
      switch (field) {
4555 mandeep.dh 6436
      case SERIAL_NUMBER:
2820 chandransh 6437
        if (value == null) {
4555 mandeep.dh 6438
          unsetSerialNumber();
2820 chandransh 6439
        } else {
4555 mandeep.dh 6440
          setSerialNumber((String)value);
2820 chandransh 6441
        }
6442
        break;
6443
 
4496 mandeep.dh 6444
      case TYPE:
2820 chandransh 6445
        if (value == null) {
4496 mandeep.dh 6446
          unsetType();
2820 chandransh 6447
        } else {
4496 mandeep.dh 6448
          setType((ScanType)value);
2820 chandransh 6449
        }
6450
        break;
6451
 
4496 mandeep.dh 6452
      case ORDER_ID:
2820 chandransh 6453
        if (value == null) {
4496 mandeep.dh 6454
          unsetOrderId();
2820 chandransh 6455
        } else {
4496 mandeep.dh 6456
          setOrderId((Long)value);
2820 chandransh 6457
        }
6458
        break;
6459
 
5110 mandeep.dh 6460
      case FULFILMENT_WAREHOUSE_ID:
2820 chandransh 6461
        if (value == null) {
5110 mandeep.dh 6462
          unsetFulfilmentWarehouseId();
2820 chandransh 6463
        } else {
5110 mandeep.dh 6464
          setFulfilmentWarehouseId((Long)value);
2820 chandransh 6465
        }
6466
        break;
6467
 
5110 mandeep.dh 6468
      case QUANTITY:
6469
        if (value == null) {
6470
          unsetQuantity();
6471
        } else {
6472
          setQuantity((Double)value);
6473
        }
6474
        break;
6475
 
6476
      case BILLING_WAREHOUSE_ID:
6477
        if (value == null) {
6478
          unsetBillingWarehouseId();
6479
        } else {
6480
          setBillingWarehouseId((Long)value);
6481
        }
6482
        break;
6483
 
2820 chandransh 6484
      }
6485
    }
6486
 
6487
    public Object getFieldValue(_Fields field) {
6488
      switch (field) {
4555 mandeep.dh 6489
      case SERIAL_NUMBER:
6490
        return getSerialNumber();
2820 chandransh 6491
 
6492
      case TYPE:
6493
        return getType();
6494
 
4496 mandeep.dh 6495
      case ORDER_ID:
6496
        return Long.valueOf(getOrderId());
6497
 
5110 mandeep.dh 6498
      case FULFILMENT_WAREHOUSE_ID:
6499
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 6500
 
5110 mandeep.dh 6501
      case QUANTITY:
6502
        return Double.valueOf(getQuantity());
6503
 
6504
      case BILLING_WAREHOUSE_ID:
6505
        return Long.valueOf(getBillingWarehouseId());
6506
 
2820 chandransh 6507
      }
6508
      throw new IllegalStateException();
6509
    }
6510
 
3430 rajveer 6511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6512
    public boolean isSet(_Fields field) {
6513
      if (field == null) {
6514
        throw new IllegalArgumentException();
6515
      }
2820 chandransh 6516
 
6517
      switch (field) {
4555 mandeep.dh 6518
      case SERIAL_NUMBER:
6519
        return isSetSerialNumber();
2820 chandransh 6520
      case TYPE:
6521
        return isSetType();
4496 mandeep.dh 6522
      case ORDER_ID:
6523
        return isSetOrderId();
5110 mandeep.dh 6524
      case FULFILMENT_WAREHOUSE_ID:
6525
        return isSetFulfilmentWarehouseId();
6526
      case QUANTITY:
6527
        return isSetQuantity();
6528
      case BILLING_WAREHOUSE_ID:
6529
        return isSetBillingWarehouseId();
2820 chandransh 6530
      }
6531
      throw new IllegalStateException();
6532
    }
6533
 
6534
    @Override
6535
    public boolean equals(Object that) {
6536
      if (that == null)
6537
        return false;
4496 mandeep.dh 6538
      if (that instanceof scanSerializedItemForOrder_args)
6539
        return this.equals((scanSerializedItemForOrder_args)that);
2820 chandransh 6540
      return false;
6541
    }
6542
 
4496 mandeep.dh 6543
    public boolean equals(scanSerializedItemForOrder_args that) {
2820 chandransh 6544
      if (that == null)
6545
        return false;
6546
 
4555 mandeep.dh 6547
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
6548
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6549
      if (this_present_serialNumber || that_present_serialNumber) {
6550
        if (!(this_present_serialNumber && that_present_serialNumber))
2820 chandransh 6551
          return false;
4555 mandeep.dh 6552
        if (!this.serialNumber.equals(that.serialNumber))
2820 chandransh 6553
          return false;
6554
      }
6555
 
4496 mandeep.dh 6556
      boolean this_present_type = true && this.isSetType();
6557
      boolean that_present_type = true && that.isSetType();
6558
      if (this_present_type || that_present_type) {
6559
        if (!(this_present_type && that_present_type))
2820 chandransh 6560
          return false;
4496 mandeep.dh 6561
        if (!this.type.equals(that.type))
2820 chandransh 6562
          return false;
6563
      }
6564
 
4496 mandeep.dh 6565
      boolean this_present_orderId = true;
6566
      boolean that_present_orderId = true;
6567
      if (this_present_orderId || that_present_orderId) {
6568
        if (!(this_present_orderId && that_present_orderId))
2820 chandransh 6569
          return false;
4496 mandeep.dh 6570
        if (this.orderId != that.orderId)
2820 chandransh 6571
          return false;
6572
      }
6573
 
5110 mandeep.dh 6574
      boolean this_present_fulfilmentWarehouseId = true;
6575
      boolean that_present_fulfilmentWarehouseId = true;
6576
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
6577
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
2820 chandransh 6578
          return false;
5110 mandeep.dh 6579
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
2820 chandransh 6580
          return false;
6581
      }
6582
 
5110 mandeep.dh 6583
      boolean this_present_quantity = true;
6584
      boolean that_present_quantity = true;
6585
      if (this_present_quantity || that_present_quantity) {
6586
        if (!(this_present_quantity && that_present_quantity))
6587
          return false;
6588
        if (this.quantity != that.quantity)
6589
          return false;
6590
      }
6591
 
6592
      boolean this_present_billingWarehouseId = true;
6593
      boolean that_present_billingWarehouseId = true;
6594
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
6595
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
6596
          return false;
6597
        if (this.billingWarehouseId != that.billingWarehouseId)
6598
          return false;
6599
      }
6600
 
2820 chandransh 6601
      return true;
6602
    }
6603
 
6604
    @Override
6605
    public int hashCode() {
6606
      return 0;
6607
    }
6608
 
4496 mandeep.dh 6609
    public int compareTo(scanSerializedItemForOrder_args other) {
2820 chandransh 6610
      if (!getClass().equals(other.getClass())) {
6611
        return getClass().getName().compareTo(other.getClass().getName());
6612
      }
6613
 
6614
      int lastComparison = 0;
4496 mandeep.dh 6615
      scanSerializedItemForOrder_args typedOther = (scanSerializedItemForOrder_args)other;
2820 chandransh 6616
 
4555 mandeep.dh 6617
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
2820 chandransh 6618
      if (lastComparison != 0) {
6619
        return lastComparison;
6620
      }
4555 mandeep.dh 6621
      if (isSetSerialNumber()) {
6622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
3430 rajveer 6623
        if (lastComparison != 0) {
6624
          return lastComparison;
6625
        }
2820 chandransh 6626
      }
4496 mandeep.dh 6627
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 6628
      if (lastComparison != 0) {
6629
        return lastComparison;
6630
      }
4496 mandeep.dh 6631
      if (isSetType()) {
6632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 6633
        if (lastComparison != 0) {
6634
          return lastComparison;
6635
        }
2820 chandransh 6636
      }
4496 mandeep.dh 6637
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2820 chandransh 6638
      if (lastComparison != 0) {
6639
        return lastComparison;
6640
      }
4496 mandeep.dh 6641
      if (isSetOrderId()) {
6642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
3430 rajveer 6643
        if (lastComparison != 0) {
6644
          return lastComparison;
6645
        }
2820 chandransh 6646
      }
5110 mandeep.dh 6647
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
2820 chandransh 6648
      if (lastComparison != 0) {
6649
        return lastComparison;
6650
      }
5110 mandeep.dh 6651
      if (isSetFulfilmentWarehouseId()) {
6652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
3430 rajveer 6653
        if (lastComparison != 0) {
6654
          return lastComparison;
6655
        }
2820 chandransh 6656
      }
5110 mandeep.dh 6657
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
6658
      if (lastComparison != 0) {
6659
        return lastComparison;
6660
      }
6661
      if (isSetQuantity()) {
6662
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
6663
        if (lastComparison != 0) {
6664
          return lastComparison;
6665
        }
6666
      }
6667
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
6668
      if (lastComparison != 0) {
6669
        return lastComparison;
6670
      }
6671
      if (isSetBillingWarehouseId()) {
6672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
6673
        if (lastComparison != 0) {
6674
          return lastComparison;
6675
        }
6676
      }
2820 chandransh 6677
      return 0;
6678
    }
6679
 
3430 rajveer 6680
    public _Fields fieldForId(int fieldId) {
6681
      return _Fields.findByThriftId(fieldId);
6682
    }
6683
 
6684
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6685
      org.apache.thrift.protocol.TField field;
2820 chandransh 6686
      iprot.readStructBegin();
6687
      while (true)
6688
      {
6689
        field = iprot.readFieldBegin();
3430 rajveer 6690
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 6691
          break;
6692
        }
3430 rajveer 6693
        switch (field.id) {
4555 mandeep.dh 6694
          case 1: // SERIAL_NUMBER
6695
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6696
              this.serialNumber = iprot.readString();
3430 rajveer 6697
            } else { 
6698
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6699
            }
6700
            break;
4496 mandeep.dh 6701
          case 2: // TYPE
6702
            if (field.type == org.apache.thrift.protocol.TType.I32) {
6703
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 6704
            } else { 
6705
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6706
            }
6707
            break;
4496 mandeep.dh 6708
          case 3: // ORDER_ID
6709
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6710
              this.orderId = iprot.readI64();
6711
              setOrderIdIsSet(true);
3430 rajveer 6712
            } else { 
6713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6714
            }
6715
            break;
5110 mandeep.dh 6716
          case 4: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 6717
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 6718
              this.fulfilmentWarehouseId = iprot.readI64();
6719
              setFulfilmentWarehouseIdIsSet(true);
3430 rajveer 6720
            } else { 
6721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6722
            }
6723
            break;
5110 mandeep.dh 6724
          case 5: // QUANTITY
6725
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
6726
              this.quantity = iprot.readDouble();
6727
              setQuantityIsSet(true);
6728
            } else { 
6729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6730
            }
6731
            break;
6732
          case 6: // BILLING_WAREHOUSE_ID
6733
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6734
              this.billingWarehouseId = iprot.readI64();
6735
              setBillingWarehouseIdIsSet(true);
6736
            } else { 
6737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6738
            }
6739
            break;
3430 rajveer 6740
          default:
6741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 6742
        }
3430 rajveer 6743
        iprot.readFieldEnd();
2820 chandransh 6744
      }
6745
      iprot.readStructEnd();
6746
      validate();
6747
    }
6748
 
3430 rajveer 6749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 6750
      validate();
6751
 
6752
      oprot.writeStructBegin(STRUCT_DESC);
4555 mandeep.dh 6753
      if (this.serialNumber != null) {
6754
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
6755
        oprot.writeString(this.serialNumber);
6756
        oprot.writeFieldEnd();
6757
      }
2820 chandransh 6758
      if (this.type != null) {
6759
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
6760
        oprot.writeI32(this.type.getValue());
6761
        oprot.writeFieldEnd();
6762
      }
4496 mandeep.dh 6763
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
6764
      oprot.writeI64(this.orderId);
6765
      oprot.writeFieldEnd();
5110 mandeep.dh 6766
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
6767
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 6768
      oprot.writeFieldEnd();
5110 mandeep.dh 6769
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
6770
      oprot.writeDouble(this.quantity);
6771
      oprot.writeFieldEnd();
6772
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
6773
      oprot.writeI64(this.billingWarehouseId);
6774
      oprot.writeFieldEnd();
2820 chandransh 6775
      oprot.writeFieldStop();
6776
      oprot.writeStructEnd();
6777
    }
6778
 
6779
    @Override
6780
    public String toString() {
4496 mandeep.dh 6781
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_args(");
2820 chandransh 6782
      boolean first = true;
6783
 
4555 mandeep.dh 6784
      sb.append("serialNumber:");
6785
      if (this.serialNumber == null) {
6786
        sb.append("null");
6787
      } else {
6788
        sb.append(this.serialNumber);
6789
      }
2820 chandransh 6790
      first = false;
6791
      if (!first) sb.append(", ");
4496 mandeep.dh 6792
      sb.append("type:");
6793
      if (this.type == null) {
2820 chandransh 6794
        sb.append("null");
6795
      } else {
4496 mandeep.dh 6796
        sb.append(this.type);
2820 chandransh 6797
      }
6798
      first = false;
6799
      if (!first) sb.append(", ");
4496 mandeep.dh 6800
      sb.append("orderId:");
6801
      sb.append(this.orderId);
2820 chandransh 6802
      first = false;
6803
      if (!first) sb.append(", ");
5110 mandeep.dh 6804
      sb.append("fulfilmentWarehouseId:");
6805
      sb.append(this.fulfilmentWarehouseId);
2820 chandransh 6806
      first = false;
5110 mandeep.dh 6807
      if (!first) sb.append(", ");
6808
      sb.append("quantity:");
6809
      sb.append(this.quantity);
6810
      first = false;
6811
      if (!first) sb.append(", ");
6812
      sb.append("billingWarehouseId:");
6813
      sb.append(this.billingWarehouseId);
6814
      first = false;
2820 chandransh 6815
      sb.append(")");
6816
      return sb.toString();
6817
    }
6818
 
3430 rajveer 6819
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 6820
      // check for required fields
6821
    }
6822
 
3430 rajveer 6823
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6824
      try {
6825
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6826
      } catch (org.apache.thrift.TException te) {
6827
        throw new java.io.IOException(te);
6828
      }
6829
    }
6830
 
6831
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6832
      try {
6833
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6834
      } catch (org.apache.thrift.TException te) {
6835
        throw new java.io.IOException(te);
6836
      }
6837
    }
6838
 
2820 chandransh 6839
  }
6840
 
4496 mandeep.dh 6841
  public static class scanSerializedItemForOrder_result implements org.apache.thrift.TBase<scanSerializedItemForOrder_result, scanSerializedItemForOrder_result._Fields>, java.io.Serializable, Cloneable   {
6842
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanSerializedItemForOrder_result");
2820 chandransh 6843
 
4555 mandeep.dh 6844
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
3430 rajveer 6845
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2820 chandransh 6846
 
4555 mandeep.dh 6847
    private InventoryItem success; // required
3430 rajveer 6848
    private WarehouseServiceException wex; // required
2820 chandransh 6849
 
6850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6851
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4496 mandeep.dh 6852
      SUCCESS((short)0, "success"),
2820 chandransh 6853
      WEX((short)1, "wex");
6854
 
6855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6856
 
6857
      static {
6858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6859
          byName.put(field.getFieldName(), field);
6860
        }
6861
      }
6862
 
6863
      /**
6864
       * Find the _Fields constant that matches fieldId, or null if its not found.
6865
       */
6866
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6867
        switch(fieldId) {
4496 mandeep.dh 6868
          case 0: // SUCCESS
6869
            return SUCCESS;
3430 rajveer 6870
          case 1: // WEX
6871
            return WEX;
6872
          default:
6873
            return null;
6874
        }
2820 chandransh 6875
      }
6876
 
6877
      /**
6878
       * Find the _Fields constant that matches fieldId, throwing an exception
6879
       * if it is not found.
6880
       */
6881
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6882
        _Fields fields = findByThriftId(fieldId);
6883
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6884
        return fields;
6885
      }
6886
 
6887
      /**
6888
       * Find the _Fields constant that matches name, or null if its not found.
6889
       */
6890
      public static _Fields findByName(String name) {
6891
        return byName.get(name);
6892
      }
6893
 
6894
      private final short _thriftId;
6895
      private final String _fieldName;
6896
 
6897
      _Fields(short thriftId, String fieldName) {
6898
        _thriftId = thriftId;
6899
        _fieldName = fieldName;
6900
      }
6901
 
6902
      public short getThriftFieldId() {
6903
        return _thriftId;
6904
      }
6905
 
6906
      public String getFieldName() {
6907
        return _fieldName;
6908
      }
6909
    }
6910
 
6911
    // isset id assignments
6912
 
3430 rajveer 6913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 6914
    static {
3430 rajveer 6915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4496 mandeep.dh 6916
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4555 mandeep.dh 6917
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 6918
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6919
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6920
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 6921
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanSerializedItemForOrder_result.class, metaDataMap);
2820 chandransh 6922
    }
6923
 
4496 mandeep.dh 6924
    public scanSerializedItemForOrder_result() {
2820 chandransh 6925
    }
6926
 
4496 mandeep.dh 6927
    public scanSerializedItemForOrder_result(
4555 mandeep.dh 6928
      InventoryItem success,
2820 chandransh 6929
      WarehouseServiceException wex)
6930
    {
6931
      this();
4496 mandeep.dh 6932
      this.success = success;
2820 chandransh 6933
      this.wex = wex;
6934
    }
6935
 
6936
    /**
6937
     * Performs a deep copy on <i>other</i>.
6938
     */
4496 mandeep.dh 6939
    public scanSerializedItemForOrder_result(scanSerializedItemForOrder_result other) {
4555 mandeep.dh 6940
      if (other.isSetSuccess()) {
6941
        this.success = new InventoryItem(other.success);
6942
      }
2820 chandransh 6943
      if (other.isSetWex()) {
6944
        this.wex = new WarehouseServiceException(other.wex);
6945
      }
6946
    }
6947
 
4496 mandeep.dh 6948
    public scanSerializedItemForOrder_result deepCopy() {
6949
      return new scanSerializedItemForOrder_result(this);
2820 chandransh 6950
    }
6951
 
3430 rajveer 6952
    @Override
6953
    public void clear() {
4555 mandeep.dh 6954
      this.success = null;
3430 rajveer 6955
      this.wex = null;
2820 chandransh 6956
    }
6957
 
4555 mandeep.dh 6958
    public InventoryItem getSuccess() {
4496 mandeep.dh 6959
      return this.success;
6960
    }
6961
 
4555 mandeep.dh 6962
    public void setSuccess(InventoryItem success) {
4496 mandeep.dh 6963
      this.success = success;
6964
    }
6965
 
6966
    public void unsetSuccess() {
4555 mandeep.dh 6967
      this.success = null;
4496 mandeep.dh 6968
    }
6969
 
6970
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6971
    public boolean isSetSuccess() {
4555 mandeep.dh 6972
      return this.success != null;
4496 mandeep.dh 6973
    }
6974
 
6975
    public void setSuccessIsSet(boolean value) {
4555 mandeep.dh 6976
      if (!value) {
6977
        this.success = null;
6978
      }
4496 mandeep.dh 6979
    }
6980
 
2820 chandransh 6981
    public WarehouseServiceException getWex() {
6982
      return this.wex;
6983
    }
6984
 
3430 rajveer 6985
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 6986
      this.wex = wex;
6987
    }
6988
 
6989
    public void unsetWex() {
6990
      this.wex = null;
6991
    }
6992
 
3430 rajveer 6993
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 6994
    public boolean isSetWex() {
6995
      return this.wex != null;
6996
    }
6997
 
6998
    public void setWexIsSet(boolean value) {
6999
      if (!value) {
7000
        this.wex = null;
7001
      }
7002
    }
7003
 
7004
    public void setFieldValue(_Fields field, Object value) {
7005
      switch (field) {
4496 mandeep.dh 7006
      case SUCCESS:
7007
        if (value == null) {
7008
          unsetSuccess();
7009
        } else {
4555 mandeep.dh 7010
          setSuccess((InventoryItem)value);
4496 mandeep.dh 7011
        }
7012
        break;
7013
 
2820 chandransh 7014
      case WEX:
7015
        if (value == null) {
7016
          unsetWex();
7017
        } else {
7018
          setWex((WarehouseServiceException)value);
7019
        }
7020
        break;
7021
 
7022
      }
7023
    }
7024
 
7025
    public Object getFieldValue(_Fields field) {
7026
      switch (field) {
4496 mandeep.dh 7027
      case SUCCESS:
4555 mandeep.dh 7028
        return getSuccess();
4496 mandeep.dh 7029
 
2820 chandransh 7030
      case WEX:
7031
        return getWex();
7032
 
7033
      }
7034
      throw new IllegalStateException();
7035
    }
7036
 
3430 rajveer 7037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7038
    public boolean isSet(_Fields field) {
7039
      if (field == null) {
7040
        throw new IllegalArgumentException();
7041
      }
2820 chandransh 7042
 
7043
      switch (field) {
4496 mandeep.dh 7044
      case SUCCESS:
7045
        return isSetSuccess();
2820 chandransh 7046
      case WEX:
7047
        return isSetWex();
7048
      }
7049
      throw new IllegalStateException();
7050
    }
7051
 
7052
    @Override
7053
    public boolean equals(Object that) {
7054
      if (that == null)
7055
        return false;
4496 mandeep.dh 7056
      if (that instanceof scanSerializedItemForOrder_result)
7057
        return this.equals((scanSerializedItemForOrder_result)that);
2820 chandransh 7058
      return false;
7059
    }
7060
 
4496 mandeep.dh 7061
    public boolean equals(scanSerializedItemForOrder_result that) {
2820 chandransh 7062
      if (that == null)
7063
        return false;
7064
 
4555 mandeep.dh 7065
      boolean this_present_success = true && this.isSetSuccess();
7066
      boolean that_present_success = true && that.isSetSuccess();
4496 mandeep.dh 7067
      if (this_present_success || that_present_success) {
7068
        if (!(this_present_success && that_present_success))
7069
          return false;
4555 mandeep.dh 7070
        if (!this.success.equals(that.success))
4496 mandeep.dh 7071
          return false;
7072
      }
7073
 
2820 chandransh 7074
      boolean this_present_wex = true && this.isSetWex();
7075
      boolean that_present_wex = true && that.isSetWex();
7076
      if (this_present_wex || that_present_wex) {
7077
        if (!(this_present_wex && that_present_wex))
7078
          return false;
7079
        if (!this.wex.equals(that.wex))
7080
          return false;
7081
      }
7082
 
7083
      return true;
7084
    }
7085
 
7086
    @Override
7087
    public int hashCode() {
7088
      return 0;
7089
    }
7090
 
4496 mandeep.dh 7091
    public int compareTo(scanSerializedItemForOrder_result other) {
2820 chandransh 7092
      if (!getClass().equals(other.getClass())) {
7093
        return getClass().getName().compareTo(other.getClass().getName());
7094
      }
7095
 
7096
      int lastComparison = 0;
4496 mandeep.dh 7097
      scanSerializedItemForOrder_result typedOther = (scanSerializedItemForOrder_result)other;
2820 chandransh 7098
 
4496 mandeep.dh 7099
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7100
      if (lastComparison != 0) {
7101
        return lastComparison;
7102
      }
7103
      if (isSetSuccess()) {
7104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7105
        if (lastComparison != 0) {
7106
          return lastComparison;
7107
        }
7108
      }
3430 rajveer 7109
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 7110
      if (lastComparison != 0) {
7111
        return lastComparison;
7112
      }
3430 rajveer 7113
      if (isSetWex()) {
7114
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
7115
        if (lastComparison != 0) {
7116
          return lastComparison;
7117
        }
2820 chandransh 7118
      }
7119
      return 0;
7120
    }
7121
 
3430 rajveer 7122
    public _Fields fieldForId(int fieldId) {
7123
      return _Fields.findByThriftId(fieldId);
7124
    }
7125
 
7126
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7127
      org.apache.thrift.protocol.TField field;
2820 chandransh 7128
      iprot.readStructBegin();
7129
      while (true)
7130
      {
7131
        field = iprot.readFieldBegin();
3430 rajveer 7132
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7133
          break;
7134
        }
3430 rajveer 7135
        switch (field.id) {
4496 mandeep.dh 7136
          case 0: // SUCCESS
4555 mandeep.dh 7137
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7138
              this.success = new InventoryItem();
7139
              this.success.read(iprot);
4496 mandeep.dh 7140
            } else { 
7141
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7142
            }
7143
            break;
3430 rajveer 7144
          case 1: // WEX
7145
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7146
              this.wex = new WarehouseServiceException();
7147
              this.wex.read(iprot);
7148
            } else { 
7149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7150
            }
7151
            break;
7152
          default:
7153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7154
        }
3430 rajveer 7155
        iprot.readFieldEnd();
2820 chandransh 7156
      }
7157
      iprot.readStructEnd();
7158
      validate();
7159
    }
7160
 
3430 rajveer 7161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7162
      oprot.writeStructBegin(STRUCT_DESC);
7163
 
4496 mandeep.dh 7164
      if (this.isSetSuccess()) {
7165
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4555 mandeep.dh 7166
        this.success.write(oprot);
4496 mandeep.dh 7167
        oprot.writeFieldEnd();
7168
      } else if (this.isSetWex()) {
2820 chandransh 7169
        oprot.writeFieldBegin(WEX_FIELD_DESC);
7170
        this.wex.write(oprot);
7171
        oprot.writeFieldEnd();
7172
      }
7173
      oprot.writeFieldStop();
7174
      oprot.writeStructEnd();
7175
    }
7176
 
7177
    @Override
7178
    public String toString() {
4496 mandeep.dh 7179
      StringBuilder sb = new StringBuilder("scanSerializedItemForOrder_result(");
2820 chandransh 7180
      boolean first = true;
7181
 
4496 mandeep.dh 7182
      sb.append("success:");
4555 mandeep.dh 7183
      if (this.success == null) {
7184
        sb.append("null");
7185
      } else {
7186
        sb.append(this.success);
7187
      }
4496 mandeep.dh 7188
      first = false;
7189
      if (!first) sb.append(", ");
2820 chandransh 7190
      sb.append("wex:");
7191
      if (this.wex == null) {
7192
        sb.append("null");
7193
      } else {
7194
        sb.append(this.wex);
7195
      }
7196
      first = false;
7197
      sb.append(")");
7198
      return sb.toString();
7199
    }
7200
 
3430 rajveer 7201
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7202
      // check for required fields
7203
    }
7204
 
3430 rajveer 7205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7206
      try {
7207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7208
      } catch (org.apache.thrift.TException te) {
7209
        throw new java.io.IOException(te);
7210
      }
7211
    }
7212
 
7213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7214
      try {
7215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7216
      } catch (org.apache.thrift.TException te) {
7217
        throw new java.io.IOException(te);
7218
      }
7219
    }
7220
 
2820 chandransh 7221
  }
7222
 
4496 mandeep.dh 7223
  public static class scanForOrder_args implements org.apache.thrift.TBase<scanForOrder_args, scanForOrder_args._Fields>, java.io.Serializable, Cloneable   {
7224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_args");
2820 chandransh 7225
 
5361 mandeep.dh 7226
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItem", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4496 mandeep.dh 7227
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
7228
    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)3);
7229
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);
5110 mandeep.dh 7230
    private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)5);
5361 mandeep.dh 7231
    private static final org.apache.thrift.protocol.TField BILLING_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("billingWarehouseId", org.apache.thrift.protocol.TType.I64, (short)6);
2820 chandransh 7232
 
5361 mandeep.dh 7233
    private InventoryItem inventoryItem; // required
3430 rajveer 7234
    private ScanType type; // required
4496 mandeep.dh 7235
    private long quantity; // required
7236
    private long orderId; // required
5110 mandeep.dh 7237
    private long fulfilmentWarehouseId; // required
5361 mandeep.dh 7238
    private long billingWarehouseId; // required
2820 chandransh 7239
 
7240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 7242
      INVENTORY_ITEM((short)1, "inventoryItem"),
2820 chandransh 7243
      /**
7244
       * 
7245
       * @see ScanType
7246
       */
4496 mandeep.dh 7247
      TYPE((short)2, "type"),
7248
      QUANTITY((short)3, "quantity"),
7249
      ORDER_ID((short)4, "orderId"),
5361 mandeep.dh 7250
      FULFILMENT_WAREHOUSE_ID((short)5, "fulfilmentWarehouseId"),
7251
      BILLING_WAREHOUSE_ID((short)6, "billingWarehouseId");
2820 chandransh 7252
 
7253
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7254
 
7255
      static {
7256
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7257
          byName.put(field.getFieldName(), field);
7258
        }
7259
      }
7260
 
7261
      /**
7262
       * Find the _Fields constant that matches fieldId, or null if its not found.
7263
       */
7264
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7265
        switch(fieldId) {
5361 mandeep.dh 7266
          case 1: // INVENTORY_ITEM
7267
            return INVENTORY_ITEM;
4496 mandeep.dh 7268
          case 2: // TYPE
3430 rajveer 7269
            return TYPE;
4496 mandeep.dh 7270
          case 3: // QUANTITY
7271
            return QUANTITY;
7272
          case 4: // ORDER_ID
7273
            return ORDER_ID;
5110 mandeep.dh 7274
          case 5: // FULFILMENT_WAREHOUSE_ID
7275
            return FULFILMENT_WAREHOUSE_ID;
5361 mandeep.dh 7276
          case 6: // BILLING_WAREHOUSE_ID
7277
            return BILLING_WAREHOUSE_ID;
3430 rajveer 7278
          default:
7279
            return null;
7280
        }
2820 chandransh 7281
      }
7282
 
7283
      /**
7284
       * Find the _Fields constant that matches fieldId, throwing an exception
7285
       * if it is not found.
7286
       */
7287
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7288
        _Fields fields = findByThriftId(fieldId);
7289
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7290
        return fields;
7291
      }
7292
 
7293
      /**
7294
       * Find the _Fields constant that matches name, or null if its not found.
7295
       */
7296
      public static _Fields findByName(String name) {
7297
        return byName.get(name);
7298
      }
7299
 
7300
      private final short _thriftId;
7301
      private final String _fieldName;
7302
 
7303
      _Fields(short thriftId, String fieldName) {
7304
        _thriftId = thriftId;
7305
        _fieldName = fieldName;
7306
      }
7307
 
7308
      public short getThriftFieldId() {
7309
        return _thriftId;
7310
      }
7311
 
7312
      public String getFieldName() {
7313
        return _fieldName;
7314
      }
7315
    }
7316
 
7317
    // isset id assignments
5361 mandeep.dh 7318
    private static final int __QUANTITY_ISSET_ID = 0;
7319
    private static final int __ORDERID_ISSET_ID = 1;
7320
    private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 2;
7321
    private static final int __BILLINGWAREHOUSEID_ISSET_ID = 3;
4496 mandeep.dh 7322
    private BitSet __isset_bit_vector = new BitSet(4);
2820 chandransh 7323
 
3430 rajveer 7324
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 7325
    static {
3430 rajveer 7326
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 7327
      tmpMap.put(_Fields.INVENTORY_ITEM, new org.apache.thrift.meta_data.FieldMetaData("inventoryItem", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7328
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 7329
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7330
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
4496 mandeep.dh 7331
      tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7333
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7334
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5110 mandeep.dh 7335
      tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4496 mandeep.dh 7336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5361 mandeep.dh 7337
      tmpMap.put(_Fields.BILLING_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("billingWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 7339
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 7340
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_args.class, metaDataMap);
2820 chandransh 7341
    }
7342
 
4496 mandeep.dh 7343
    public scanForOrder_args() {
2820 chandransh 7344
    }
7345
 
4496 mandeep.dh 7346
    public scanForOrder_args(
5361 mandeep.dh 7347
      InventoryItem inventoryItem,
4496 mandeep.dh 7348
      ScanType type,
7349
      long quantity,
7350
      long orderId,
5361 mandeep.dh 7351
      long fulfilmentWarehouseId,
7352
      long billingWarehouseId)
2820 chandransh 7353
    {
7354
      this();
5361 mandeep.dh 7355
      this.inventoryItem = inventoryItem;
2820 chandransh 7356
      this.type = type;
4496 mandeep.dh 7357
      this.quantity = quantity;
7358
      setQuantityIsSet(true);
7359
      this.orderId = orderId;
7360
      setOrderIdIsSet(true);
5110 mandeep.dh 7361
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7362
      setFulfilmentWarehouseIdIsSet(true);
5361 mandeep.dh 7363
      this.billingWarehouseId = billingWarehouseId;
7364
      setBillingWarehouseIdIsSet(true);
2820 chandransh 7365
    }
7366
 
7367
    /**
7368
     * Performs a deep copy on <i>other</i>.
7369
     */
4496 mandeep.dh 7370
    public scanForOrder_args(scanForOrder_args other) {
7371
      __isset_bit_vector.clear();
7372
      __isset_bit_vector.or(other.__isset_bit_vector);
5361 mandeep.dh 7373
      if (other.isSetInventoryItem()) {
7374
        this.inventoryItem = new InventoryItem(other.inventoryItem);
7375
      }
2820 chandransh 7376
      if (other.isSetType()) {
7377
        this.type = other.type;
7378
      }
4496 mandeep.dh 7379
      this.quantity = other.quantity;
7380
      this.orderId = other.orderId;
5110 mandeep.dh 7381
      this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
5361 mandeep.dh 7382
      this.billingWarehouseId = other.billingWarehouseId;
2820 chandransh 7383
    }
7384
 
4496 mandeep.dh 7385
    public scanForOrder_args deepCopy() {
7386
      return new scanForOrder_args(this);
2820 chandransh 7387
    }
7388
 
3430 rajveer 7389
    @Override
7390
    public void clear() {
5361 mandeep.dh 7391
      this.inventoryItem = null;
3430 rajveer 7392
      this.type = null;
4496 mandeep.dh 7393
      setQuantityIsSet(false);
7394
      this.quantity = 0;
7395
      setOrderIdIsSet(false);
7396
      this.orderId = 0;
5110 mandeep.dh 7397
      setFulfilmentWarehouseIdIsSet(false);
7398
      this.fulfilmentWarehouseId = 0;
5361 mandeep.dh 7399
      setBillingWarehouseIdIsSet(false);
7400
      this.billingWarehouseId = 0;
2820 chandransh 7401
    }
7402
 
5361 mandeep.dh 7403
    public InventoryItem getInventoryItem() {
7404
      return this.inventoryItem;
2820 chandransh 7405
    }
7406
 
5361 mandeep.dh 7407
    public void setInventoryItem(InventoryItem inventoryItem) {
7408
      this.inventoryItem = inventoryItem;
2820 chandransh 7409
    }
7410
 
5361 mandeep.dh 7411
    public void unsetInventoryItem() {
7412
      this.inventoryItem = null;
2820 chandransh 7413
    }
7414
 
5361 mandeep.dh 7415
    /** Returns true if field inventoryItem is set (has been assigned a value) and false otherwise */
7416
    public boolean isSetInventoryItem() {
7417
      return this.inventoryItem != null;
2820 chandransh 7418
    }
7419
 
5361 mandeep.dh 7420
    public void setInventoryItemIsSet(boolean value) {
7421
      if (!value) {
7422
        this.inventoryItem = null;
7423
      }
2820 chandransh 7424
    }
7425
 
7426
    /**
7427
     * 
7428
     * @see ScanType
7429
     */
7430
    public ScanType getType() {
7431
      return this.type;
7432
    }
7433
 
7434
    /**
7435
     * 
7436
     * @see ScanType
7437
     */
3430 rajveer 7438
    public void setType(ScanType type) {
2820 chandransh 7439
      this.type = type;
7440
    }
7441
 
7442
    public void unsetType() {
7443
      this.type = null;
7444
    }
7445
 
3430 rajveer 7446
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2820 chandransh 7447
    public boolean isSetType() {
7448
      return this.type != null;
7449
    }
7450
 
7451
    public void setTypeIsSet(boolean value) {
7452
      if (!value) {
7453
        this.type = null;
7454
      }
7455
    }
7456
 
4496 mandeep.dh 7457
    public long getQuantity() {
7458
      return this.quantity;
7459
    }
7460
 
7461
    public void setQuantity(long quantity) {
7462
      this.quantity = quantity;
7463
      setQuantityIsSet(true);
7464
    }
7465
 
7466
    public void unsetQuantity() {
7467
      __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
7468
    }
7469
 
7470
    /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
7471
    public boolean isSetQuantity() {
7472
      return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
7473
    }
7474
 
7475
    public void setQuantityIsSet(boolean value) {
7476
      __isset_bit_vector.set(__QUANTITY_ISSET_ID, value);
7477
    }
7478
 
7479
    public long getOrderId() {
7480
      return this.orderId;
7481
    }
7482
 
7483
    public void setOrderId(long orderId) {
7484
      this.orderId = orderId;
7485
      setOrderIdIsSet(true);
7486
    }
7487
 
7488
    public void unsetOrderId() {
7489
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
7490
    }
7491
 
7492
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
7493
    public boolean isSetOrderId() {
7494
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
7495
    }
7496
 
7497
    public void setOrderIdIsSet(boolean value) {
7498
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
7499
    }
7500
 
5110 mandeep.dh 7501
    public long getFulfilmentWarehouseId() {
7502
      return this.fulfilmentWarehouseId;
4496 mandeep.dh 7503
    }
7504
 
5110 mandeep.dh 7505
    public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
7506
      this.fulfilmentWarehouseId = fulfilmentWarehouseId;
7507
      setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 7508
    }
7509
 
5110 mandeep.dh 7510
    public void unsetFulfilmentWarehouseId() {
7511
      __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7512
    }
7513
 
5110 mandeep.dh 7514
    /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
7515
    public boolean isSetFulfilmentWarehouseId() {
7516
      return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
4496 mandeep.dh 7517
    }
7518
 
5110 mandeep.dh 7519
    public void setFulfilmentWarehouseIdIsSet(boolean value) {
7520
      __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
4496 mandeep.dh 7521
    }
7522
 
5361 mandeep.dh 7523
    public long getBillingWarehouseId() {
7524
      return this.billingWarehouseId;
7525
    }
7526
 
7527
    public void setBillingWarehouseId(long billingWarehouseId) {
7528
      this.billingWarehouseId = billingWarehouseId;
7529
      setBillingWarehouseIdIsSet(true);
7530
    }
7531
 
7532
    public void unsetBillingWarehouseId() {
7533
      __isset_bit_vector.clear(__BILLINGWAREHOUSEID_ISSET_ID);
7534
    }
7535
 
7536
    /** Returns true if field billingWarehouseId is set (has been assigned a value) and false otherwise */
7537
    public boolean isSetBillingWarehouseId() {
7538
      return __isset_bit_vector.get(__BILLINGWAREHOUSEID_ISSET_ID);
7539
    }
7540
 
7541
    public void setBillingWarehouseIdIsSet(boolean value) {
7542
      __isset_bit_vector.set(__BILLINGWAREHOUSEID_ISSET_ID, value);
7543
    }
7544
 
2820 chandransh 7545
    public void setFieldValue(_Fields field, Object value) {
7546
      switch (field) {
5361 mandeep.dh 7547
      case INVENTORY_ITEM:
2820 chandransh 7548
        if (value == null) {
5361 mandeep.dh 7549
          unsetInventoryItem();
2820 chandransh 7550
        } else {
5361 mandeep.dh 7551
          setInventoryItem((InventoryItem)value);
2820 chandransh 7552
        }
7553
        break;
7554
 
4496 mandeep.dh 7555
      case TYPE:
2820 chandransh 7556
        if (value == null) {
4496 mandeep.dh 7557
          unsetType();
2820 chandransh 7558
        } else {
4496 mandeep.dh 7559
          setType((ScanType)value);
2820 chandransh 7560
        }
7561
        break;
7562
 
4496 mandeep.dh 7563
      case QUANTITY:
2820 chandransh 7564
        if (value == null) {
4496 mandeep.dh 7565
          unsetQuantity();
2820 chandransh 7566
        } else {
4496 mandeep.dh 7567
          setQuantity((Long)value);
2820 chandransh 7568
        }
7569
        break;
7570
 
4496 mandeep.dh 7571
      case ORDER_ID:
7572
        if (value == null) {
7573
          unsetOrderId();
7574
        } else {
7575
          setOrderId((Long)value);
7576
        }
7577
        break;
7578
 
5110 mandeep.dh 7579
      case FULFILMENT_WAREHOUSE_ID:
4496 mandeep.dh 7580
        if (value == null) {
5110 mandeep.dh 7581
          unsetFulfilmentWarehouseId();
4496 mandeep.dh 7582
        } else {
5110 mandeep.dh 7583
          setFulfilmentWarehouseId((Long)value);
4496 mandeep.dh 7584
        }
7585
        break;
7586
 
5361 mandeep.dh 7587
      case BILLING_WAREHOUSE_ID:
7588
        if (value == null) {
7589
          unsetBillingWarehouseId();
7590
        } else {
7591
          setBillingWarehouseId((Long)value);
7592
        }
7593
        break;
7594
 
2820 chandransh 7595
      }
7596
    }
7597
 
7598
    public Object getFieldValue(_Fields field) {
7599
      switch (field) {
5361 mandeep.dh 7600
      case INVENTORY_ITEM:
7601
        return getInventoryItem();
2820 chandransh 7602
 
7603
      case TYPE:
7604
        return getType();
7605
 
4496 mandeep.dh 7606
      case QUANTITY:
7607
        return Long.valueOf(getQuantity());
7608
 
7609
      case ORDER_ID:
7610
        return Long.valueOf(getOrderId());
7611
 
5110 mandeep.dh 7612
      case FULFILMENT_WAREHOUSE_ID:
7613
        return Long.valueOf(getFulfilmentWarehouseId());
4496 mandeep.dh 7614
 
5361 mandeep.dh 7615
      case BILLING_WAREHOUSE_ID:
7616
        return Long.valueOf(getBillingWarehouseId());
7617
 
2820 chandransh 7618
      }
7619
      throw new IllegalStateException();
7620
    }
7621
 
3430 rajveer 7622
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7623
    public boolean isSet(_Fields field) {
7624
      if (field == null) {
7625
        throw new IllegalArgumentException();
7626
      }
2820 chandransh 7627
 
7628
      switch (field) {
5361 mandeep.dh 7629
      case INVENTORY_ITEM:
7630
        return isSetInventoryItem();
2820 chandransh 7631
      case TYPE:
7632
        return isSetType();
4496 mandeep.dh 7633
      case QUANTITY:
7634
        return isSetQuantity();
7635
      case ORDER_ID:
7636
        return isSetOrderId();
5110 mandeep.dh 7637
      case FULFILMENT_WAREHOUSE_ID:
7638
        return isSetFulfilmentWarehouseId();
5361 mandeep.dh 7639
      case BILLING_WAREHOUSE_ID:
7640
        return isSetBillingWarehouseId();
2820 chandransh 7641
      }
7642
      throw new IllegalStateException();
7643
    }
7644
 
7645
    @Override
7646
    public boolean equals(Object that) {
7647
      if (that == null)
7648
        return false;
4496 mandeep.dh 7649
      if (that instanceof scanForOrder_args)
7650
        return this.equals((scanForOrder_args)that);
2820 chandransh 7651
      return false;
7652
    }
7653
 
4496 mandeep.dh 7654
    public boolean equals(scanForOrder_args that) {
2820 chandransh 7655
      if (that == null)
7656
        return false;
7657
 
5361 mandeep.dh 7658
      boolean this_present_inventoryItem = true && this.isSetInventoryItem();
7659
      boolean that_present_inventoryItem = true && that.isSetInventoryItem();
7660
      if (this_present_inventoryItem || that_present_inventoryItem) {
7661
        if (!(this_present_inventoryItem && that_present_inventoryItem))
2820 chandransh 7662
          return false;
5361 mandeep.dh 7663
        if (!this.inventoryItem.equals(that.inventoryItem))
2820 chandransh 7664
          return false;
7665
      }
7666
 
7667
      boolean this_present_type = true && this.isSetType();
7668
      boolean that_present_type = true && that.isSetType();
7669
      if (this_present_type || that_present_type) {
7670
        if (!(this_present_type && that_present_type))
7671
          return false;
7672
        if (!this.type.equals(that.type))
7673
          return false;
7674
      }
7675
 
4496 mandeep.dh 7676
      boolean this_present_quantity = true;
7677
      boolean that_present_quantity = true;
7678
      if (this_present_quantity || that_present_quantity) {
7679
        if (!(this_present_quantity && that_present_quantity))
7680
          return false;
7681
        if (this.quantity != that.quantity)
7682
          return false;
7683
      }
7684
 
7685
      boolean this_present_orderId = true;
7686
      boolean that_present_orderId = true;
7687
      if (this_present_orderId || that_present_orderId) {
7688
        if (!(this_present_orderId && that_present_orderId))
7689
          return false;
7690
        if (this.orderId != that.orderId)
7691
          return false;
7692
      }
7693
 
5110 mandeep.dh 7694
      boolean this_present_fulfilmentWarehouseId = true;
7695
      boolean that_present_fulfilmentWarehouseId = true;
7696
      if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
7697
        if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
4496 mandeep.dh 7698
          return false;
5110 mandeep.dh 7699
        if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
4496 mandeep.dh 7700
          return false;
7701
      }
7702
 
5361 mandeep.dh 7703
      boolean this_present_billingWarehouseId = true;
7704
      boolean that_present_billingWarehouseId = true;
7705
      if (this_present_billingWarehouseId || that_present_billingWarehouseId) {
7706
        if (!(this_present_billingWarehouseId && that_present_billingWarehouseId))
7707
          return false;
7708
        if (this.billingWarehouseId != that.billingWarehouseId)
7709
          return false;
7710
      }
7711
 
2820 chandransh 7712
      return true;
7713
    }
7714
 
7715
    @Override
7716
    public int hashCode() {
7717
      return 0;
7718
    }
7719
 
4496 mandeep.dh 7720
    public int compareTo(scanForOrder_args other) {
2820 chandransh 7721
      if (!getClass().equals(other.getClass())) {
7722
        return getClass().getName().compareTo(other.getClass().getName());
7723
      }
7724
 
7725
      int lastComparison = 0;
4496 mandeep.dh 7726
      scanForOrder_args typedOther = (scanForOrder_args)other;
2820 chandransh 7727
 
5361 mandeep.dh 7728
      lastComparison = Boolean.valueOf(isSetInventoryItem()).compareTo(typedOther.isSetInventoryItem());
2820 chandransh 7729
      if (lastComparison != 0) {
7730
        return lastComparison;
7731
      }
5361 mandeep.dh 7732
      if (isSetInventoryItem()) {
7733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItem, typedOther.inventoryItem);
3430 rajveer 7734
        if (lastComparison != 0) {
7735
          return lastComparison;
7736
        }
2820 chandransh 7737
      }
4496 mandeep.dh 7738
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
2820 chandransh 7739
      if (lastComparison != 0) {
7740
        return lastComparison;
7741
      }
4496 mandeep.dh 7742
      if (isSetType()) {
7743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3430 rajveer 7744
        if (lastComparison != 0) {
7745
          return lastComparison;
7746
        }
2820 chandransh 7747
      }
4496 mandeep.dh 7748
      lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
2820 chandransh 7749
      if (lastComparison != 0) {
7750
        return lastComparison;
7751
      }
4496 mandeep.dh 7752
      if (isSetQuantity()) {
7753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
3430 rajveer 7754
        if (lastComparison != 0) {
7755
          return lastComparison;
7756
        }
2820 chandransh 7757
      }
4496 mandeep.dh 7758
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
7759
      if (lastComparison != 0) {
7760
        return lastComparison;
7761
      }
7762
      if (isSetOrderId()) {
7763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
7764
        if (lastComparison != 0) {
7765
          return lastComparison;
7766
        }
7767
      }
5110 mandeep.dh 7768
      lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
4496 mandeep.dh 7769
      if (lastComparison != 0) {
7770
        return lastComparison;
7771
      }
5110 mandeep.dh 7772
      if (isSetFulfilmentWarehouseId()) {
7773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
4496 mandeep.dh 7774
        if (lastComparison != 0) {
7775
          return lastComparison;
7776
        }
7777
      }
5361 mandeep.dh 7778
      lastComparison = Boolean.valueOf(isSetBillingWarehouseId()).compareTo(typedOther.isSetBillingWarehouseId());
7779
      if (lastComparison != 0) {
7780
        return lastComparison;
7781
      }
7782
      if (isSetBillingWarehouseId()) {
7783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billingWarehouseId, typedOther.billingWarehouseId);
7784
        if (lastComparison != 0) {
7785
          return lastComparison;
7786
        }
7787
      }
2820 chandransh 7788
      return 0;
7789
    }
7790
 
3430 rajveer 7791
    public _Fields fieldForId(int fieldId) {
7792
      return _Fields.findByThriftId(fieldId);
7793
    }
7794
 
7795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7796
      org.apache.thrift.protocol.TField field;
2820 chandransh 7797
      iprot.readStructBegin();
7798
      while (true)
7799
      {
7800
        field = iprot.readFieldBegin();
3430 rajveer 7801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 7802
          break;
7803
        }
3430 rajveer 7804
        switch (field.id) {
5361 mandeep.dh 7805
          case 1: // INVENTORY_ITEM
7806
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7807
              this.inventoryItem = new InventoryItem();
7808
              this.inventoryItem.read(iprot);
3430 rajveer 7809
            } else { 
7810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7811
            }
7812
            break;
4496 mandeep.dh 7813
          case 2: // TYPE
7814
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7815
              this.type = ScanType.findByValue(iprot.readI32());
3430 rajveer 7816
            } else { 
7817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7818
            }
7819
            break;
4496 mandeep.dh 7820
          case 3: // QUANTITY
7821
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7822
              this.quantity = iprot.readI64();
7823
              setQuantityIsSet(true);
3430 rajveer 7824
            } else { 
7825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7826
            }
7827
            break;
4496 mandeep.dh 7828
          case 4: // ORDER_ID
7829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7830
              this.orderId = iprot.readI64();
7831
              setOrderIdIsSet(true);
7832
            } else { 
7833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7834
            }
7835
            break;
5110 mandeep.dh 7836
          case 5: // FULFILMENT_WAREHOUSE_ID
4496 mandeep.dh 7837
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5110 mandeep.dh 7838
              this.fulfilmentWarehouseId = iprot.readI64();
7839
              setFulfilmentWarehouseIdIsSet(true);
4496 mandeep.dh 7840
            } else { 
7841
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7842
            }
7843
            break;
5361 mandeep.dh 7844
          case 6: // BILLING_WAREHOUSE_ID
7845
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7846
              this.billingWarehouseId = iprot.readI64();
7847
              setBillingWarehouseIdIsSet(true);
7848
            } else { 
7849
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7850
            }
7851
            break;
3430 rajveer 7852
          default:
7853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 7854
        }
3430 rajveer 7855
        iprot.readFieldEnd();
2820 chandransh 7856
      }
7857
      iprot.readStructEnd();
7858
      validate();
7859
    }
7860
 
3430 rajveer 7861
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 7862
      validate();
7863
 
7864
      oprot.writeStructBegin(STRUCT_DESC);
5361 mandeep.dh 7865
      if (this.inventoryItem != null) {
7866
        oprot.writeFieldBegin(INVENTORY_ITEM_FIELD_DESC);
7867
        this.inventoryItem.write(oprot);
7868
        oprot.writeFieldEnd();
7869
      }
2820 chandransh 7870
      if (this.type != null) {
7871
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
7872
        oprot.writeI32(this.type.getValue());
7873
        oprot.writeFieldEnd();
7874
      }
4496 mandeep.dh 7875
      oprot.writeFieldBegin(QUANTITY_FIELD_DESC);
7876
      oprot.writeI64(this.quantity);
7877
      oprot.writeFieldEnd();
7878
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
7879
      oprot.writeI64(this.orderId);
7880
      oprot.writeFieldEnd();
5110 mandeep.dh 7881
      oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
7882
      oprot.writeI64(this.fulfilmentWarehouseId);
4496 mandeep.dh 7883
      oprot.writeFieldEnd();
5361 mandeep.dh 7884
      oprot.writeFieldBegin(BILLING_WAREHOUSE_ID_FIELD_DESC);
7885
      oprot.writeI64(this.billingWarehouseId);
7886
      oprot.writeFieldEnd();
2820 chandransh 7887
      oprot.writeFieldStop();
7888
      oprot.writeStructEnd();
7889
    }
7890
 
7891
    @Override
7892
    public String toString() {
4496 mandeep.dh 7893
      StringBuilder sb = new StringBuilder("scanForOrder_args(");
2820 chandransh 7894
      boolean first = true;
7895
 
5361 mandeep.dh 7896
      sb.append("inventoryItem:");
7897
      if (this.inventoryItem == null) {
7898
        sb.append("null");
7899
      } else {
7900
        sb.append(this.inventoryItem);
7901
      }
2820 chandransh 7902
      first = false;
7903
      if (!first) sb.append(", ");
7904
      sb.append("type:");
7905
      if (this.type == null) {
7906
        sb.append("null");
7907
      } else {
7908
        sb.append(this.type);
7909
      }
7910
      first = false;
4496 mandeep.dh 7911
      if (!first) sb.append(", ");
7912
      sb.append("quantity:");
7913
      sb.append(this.quantity);
7914
      first = false;
7915
      if (!first) sb.append(", ");
7916
      sb.append("orderId:");
7917
      sb.append(this.orderId);
7918
      first = false;
7919
      if (!first) sb.append(", ");
5110 mandeep.dh 7920
      sb.append("fulfilmentWarehouseId:");
7921
      sb.append(this.fulfilmentWarehouseId);
4496 mandeep.dh 7922
      first = false;
5361 mandeep.dh 7923
      if (!first) sb.append(", ");
7924
      sb.append("billingWarehouseId:");
7925
      sb.append(this.billingWarehouseId);
7926
      first = false;
2820 chandransh 7927
      sb.append(")");
7928
      return sb.toString();
7929
    }
7930
 
3430 rajveer 7931
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 7932
      // check for required fields
7933
    }
7934
 
3430 rajveer 7935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7936
      try {
7937
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7938
      } catch (org.apache.thrift.TException te) {
7939
        throw new java.io.IOException(te);
7940
      }
7941
    }
7942
 
7943
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7944
      try {
4496 mandeep.dh 7945
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7946
        __isset_bit_vector = new BitSet(1);
3430 rajveer 7947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7948
      } catch (org.apache.thrift.TException te) {
7949
        throw new java.io.IOException(te);
7950
      }
7951
    }
7952
 
2820 chandransh 7953
  }
7954
 
4496 mandeep.dh 7955
  public static class scanForOrder_result implements org.apache.thrift.TBase<scanForOrder_result, scanForOrder_result._Fields>, java.io.Serializable, Cloneable   {
7956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOrder_result");
2820 chandransh 7957
 
5361 mandeep.dh 7958
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
3430 rajveer 7959
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2820 chandransh 7960
 
5361 mandeep.dh 7961
    private InventoryItem success; // required
3430 rajveer 7962
    private WarehouseServiceException wex; // required
2820 chandransh 7963
 
7964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5361 mandeep.dh 7966
      SUCCESS((short)0, "success"),
2820 chandransh 7967
      WEX((short)1, "wex");
7968
 
7969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7970
 
7971
      static {
7972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7973
          byName.put(field.getFieldName(), field);
7974
        }
7975
      }
7976
 
7977
      /**
7978
       * Find the _Fields constant that matches fieldId, or null if its not found.
7979
       */
7980
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7981
        switch(fieldId) {
5361 mandeep.dh 7982
          case 0: // SUCCESS
7983
            return SUCCESS;
3430 rajveer 7984
          case 1: // WEX
7985
            return WEX;
7986
          default:
7987
            return null;
7988
        }
2820 chandransh 7989
      }
7990
 
7991
      /**
7992
       * Find the _Fields constant that matches fieldId, throwing an exception
7993
       * if it is not found.
7994
       */
7995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7996
        _Fields fields = findByThriftId(fieldId);
7997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7998
        return fields;
7999
      }
8000
 
8001
      /**
8002
       * Find the _Fields constant that matches name, or null if its not found.
8003
       */
8004
      public static _Fields findByName(String name) {
8005
        return byName.get(name);
8006
      }
8007
 
8008
      private final short _thriftId;
8009
      private final String _fieldName;
8010
 
8011
      _Fields(short thriftId, String fieldName) {
8012
        _thriftId = thriftId;
8013
        _fieldName = fieldName;
8014
      }
8015
 
8016
      public short getThriftFieldId() {
8017
        return _thriftId;
8018
      }
8019
 
8020
      public String getFieldName() {
8021
        return _fieldName;
8022
      }
8023
    }
8024
 
8025
    // isset id assignments
8026
 
3430 rajveer 8027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2820 chandransh 8028
    static {
3430 rajveer 8029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5361 mandeep.dh 8030
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8031
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
3430 rajveer 8032
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8034
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4496 mandeep.dh 8035
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOrder_result.class, metaDataMap);
2820 chandransh 8036
    }
8037
 
4496 mandeep.dh 8038
    public scanForOrder_result() {
2820 chandransh 8039
    }
8040
 
4496 mandeep.dh 8041
    public scanForOrder_result(
5361 mandeep.dh 8042
      InventoryItem success,
2820 chandransh 8043
      WarehouseServiceException wex)
8044
    {
8045
      this();
5361 mandeep.dh 8046
      this.success = success;
2820 chandransh 8047
      this.wex = wex;
8048
    }
8049
 
8050
    /**
8051
     * Performs a deep copy on <i>other</i>.
8052
     */
4496 mandeep.dh 8053
    public scanForOrder_result(scanForOrder_result other) {
5361 mandeep.dh 8054
      if (other.isSetSuccess()) {
8055
        this.success = new InventoryItem(other.success);
8056
      }
2820 chandransh 8057
      if (other.isSetWex()) {
8058
        this.wex = new WarehouseServiceException(other.wex);
8059
      }
8060
    }
8061
 
4496 mandeep.dh 8062
    public scanForOrder_result deepCopy() {
8063
      return new scanForOrder_result(this);
2820 chandransh 8064
    }
8065
 
3430 rajveer 8066
    @Override
8067
    public void clear() {
5361 mandeep.dh 8068
      this.success = null;
3430 rajveer 8069
      this.wex = null;
2820 chandransh 8070
    }
8071
 
5361 mandeep.dh 8072
    public InventoryItem getSuccess() {
8073
      return this.success;
8074
    }
8075
 
8076
    public void setSuccess(InventoryItem success) {
8077
      this.success = success;
8078
    }
8079
 
8080
    public void unsetSuccess() {
8081
      this.success = null;
8082
    }
8083
 
8084
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8085
    public boolean isSetSuccess() {
8086
      return this.success != null;
8087
    }
8088
 
8089
    public void setSuccessIsSet(boolean value) {
8090
      if (!value) {
8091
        this.success = null;
8092
      }
8093
    }
8094
 
2820 chandransh 8095
    public WarehouseServiceException getWex() {
8096
      return this.wex;
8097
    }
8098
 
3430 rajveer 8099
    public void setWex(WarehouseServiceException wex) {
2820 chandransh 8100
      this.wex = wex;
8101
    }
8102
 
8103
    public void unsetWex() {
8104
      this.wex = null;
8105
    }
8106
 
3430 rajveer 8107
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
2820 chandransh 8108
    public boolean isSetWex() {
8109
      return this.wex != null;
8110
    }
8111
 
8112
    public void setWexIsSet(boolean value) {
8113
      if (!value) {
8114
        this.wex = null;
8115
      }
8116
    }
8117
 
8118
    public void setFieldValue(_Fields field, Object value) {
8119
      switch (field) {
5361 mandeep.dh 8120
      case SUCCESS:
8121
        if (value == null) {
8122
          unsetSuccess();
8123
        } else {
8124
          setSuccess((InventoryItem)value);
8125
        }
8126
        break;
8127
 
2820 chandransh 8128
      case WEX:
8129
        if (value == null) {
8130
          unsetWex();
8131
        } else {
8132
          setWex((WarehouseServiceException)value);
8133
        }
8134
        break;
8135
 
8136
      }
8137
    }
8138
 
8139
    public Object getFieldValue(_Fields field) {
8140
      switch (field) {
5361 mandeep.dh 8141
      case SUCCESS:
8142
        return getSuccess();
8143
 
2820 chandransh 8144
      case WEX:
8145
        return getWex();
8146
 
8147
      }
8148
      throw new IllegalStateException();
8149
    }
8150
 
3430 rajveer 8151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8152
    public boolean isSet(_Fields field) {
8153
      if (field == null) {
8154
        throw new IllegalArgumentException();
8155
      }
2820 chandransh 8156
 
8157
      switch (field) {
5361 mandeep.dh 8158
      case SUCCESS:
8159
        return isSetSuccess();
2820 chandransh 8160
      case WEX:
8161
        return isSetWex();
8162
      }
8163
      throw new IllegalStateException();
8164
    }
8165
 
8166
    @Override
8167
    public boolean equals(Object that) {
8168
      if (that == null)
8169
        return false;
4496 mandeep.dh 8170
      if (that instanceof scanForOrder_result)
8171
        return this.equals((scanForOrder_result)that);
2820 chandransh 8172
      return false;
8173
    }
8174
 
4496 mandeep.dh 8175
    public boolean equals(scanForOrder_result that) {
2820 chandransh 8176
      if (that == null)
8177
        return false;
8178
 
5361 mandeep.dh 8179
      boolean this_present_success = true && this.isSetSuccess();
8180
      boolean that_present_success = true && that.isSetSuccess();
8181
      if (this_present_success || that_present_success) {
8182
        if (!(this_present_success && that_present_success))
8183
          return false;
8184
        if (!this.success.equals(that.success))
8185
          return false;
8186
      }
8187
 
2820 chandransh 8188
      boolean this_present_wex = true && this.isSetWex();
8189
      boolean that_present_wex = true && that.isSetWex();
8190
      if (this_present_wex || that_present_wex) {
8191
        if (!(this_present_wex && that_present_wex))
8192
          return false;
8193
        if (!this.wex.equals(that.wex))
8194
          return false;
8195
      }
8196
 
8197
      return true;
8198
    }
8199
 
8200
    @Override
8201
    public int hashCode() {
8202
      return 0;
8203
    }
8204
 
4496 mandeep.dh 8205
    public int compareTo(scanForOrder_result other) {
2820 chandransh 8206
      if (!getClass().equals(other.getClass())) {
8207
        return getClass().getName().compareTo(other.getClass().getName());
8208
      }
8209
 
8210
      int lastComparison = 0;
4496 mandeep.dh 8211
      scanForOrder_result typedOther = (scanForOrder_result)other;
2820 chandransh 8212
 
5361 mandeep.dh 8213
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8214
      if (lastComparison != 0) {
8215
        return lastComparison;
8216
      }
8217
      if (isSetSuccess()) {
8218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8219
        if (lastComparison != 0) {
8220
          return lastComparison;
8221
        }
8222
      }
3430 rajveer 8223
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
2820 chandransh 8224
      if (lastComparison != 0) {
8225
        return lastComparison;
8226
      }
3430 rajveer 8227
      if (isSetWex()) {
8228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
8229
        if (lastComparison != 0) {
8230
          return lastComparison;
8231
        }
2820 chandransh 8232
      }
8233
      return 0;
8234
    }
8235
 
3430 rajveer 8236
    public _Fields fieldForId(int fieldId) {
8237
      return _Fields.findByThriftId(fieldId);
8238
    }
8239
 
8240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8241
      org.apache.thrift.protocol.TField field;
2820 chandransh 8242
      iprot.readStructBegin();
8243
      while (true)
8244
      {
8245
        field = iprot.readFieldBegin();
3430 rajveer 8246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2820 chandransh 8247
          break;
8248
        }
3430 rajveer 8249
        switch (field.id) {
5361 mandeep.dh 8250
          case 0: // SUCCESS
8251
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8252
              this.success = new InventoryItem();
8253
              this.success.read(iprot);
8254
            } else { 
8255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8256
            }
8257
            break;
3430 rajveer 8258
          case 1: // WEX
8259
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8260
              this.wex = new WarehouseServiceException();
8261
              this.wex.read(iprot);
8262
            } else { 
8263
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8264
            }
8265
            break;
8266
          default:
8267
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2820 chandransh 8268
        }
3430 rajveer 8269
        iprot.readFieldEnd();
2820 chandransh 8270
      }
8271
      iprot.readStructEnd();
8272
      validate();
8273
    }
8274
 
3430 rajveer 8275
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2820 chandransh 8276
      oprot.writeStructBegin(STRUCT_DESC);
8277
 
5361 mandeep.dh 8278
      if (this.isSetSuccess()) {
8279
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8280
        this.success.write(oprot);
8281
        oprot.writeFieldEnd();
8282
      } else if (this.isSetWex()) {
2820 chandransh 8283
        oprot.writeFieldBegin(WEX_FIELD_DESC);
8284
        this.wex.write(oprot);
8285
        oprot.writeFieldEnd();
8286
      }
8287
      oprot.writeFieldStop();
8288
      oprot.writeStructEnd();
8289
    }
8290
 
8291
    @Override
8292
    public String toString() {
4496 mandeep.dh 8293
      StringBuilder sb = new StringBuilder("scanForOrder_result(");
2820 chandransh 8294
      boolean first = true;
8295
 
5361 mandeep.dh 8296
      sb.append("success:");
8297
      if (this.success == null) {
8298
        sb.append("null");
8299
      } else {
8300
        sb.append(this.success);
8301
      }
8302
      first = false;
8303
      if (!first) sb.append(", ");
2820 chandransh 8304
      sb.append("wex:");
8305
      if (this.wex == null) {
8306
        sb.append("null");
8307
      } else {
8308
        sb.append(this.wex);
8309
      }
8310
      first = false;
8311
      sb.append(")");
8312
      return sb.toString();
8313
    }
8314
 
3430 rajveer 8315
    public void validate() throws org.apache.thrift.TException {
2820 chandransh 8316
      // check for required fields
8317
    }
8318
 
3430 rajveer 8319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8320
      try {
8321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8322
      } catch (org.apache.thrift.TException te) {
8323
        throw new java.io.IOException(te);
8324
      }
8325
    }
8326
 
8327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8328
      try {
8329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8330
      } catch (org.apache.thrift.TException te) {
8331
        throw new java.io.IOException(te);
8332
      }
8333
    }
8334
 
2820 chandransh 8335
  }
8336
 
4496 mandeep.dh 8337
  public static class createItemNumberMapping_args implements org.apache.thrift.TBase<createItemNumberMapping_args, createItemNumberMapping_args._Fields>, java.io.Serializable, Cloneable   {
8338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_args");
8339
 
8340
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
8341
    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)2);
8342
 
8343
    private String itemNumber; // required
8344
    private long itemId; // required
8345
 
8346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8348
      ITEM_NUMBER((short)1, "itemNumber"),
8349
      ITEM_ID((short)2, "itemId");
8350
 
8351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8352
 
8353
      static {
8354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8355
          byName.put(field.getFieldName(), field);
8356
        }
8357
      }
8358
 
8359
      /**
8360
       * Find the _Fields constant that matches fieldId, or null if its not found.
8361
       */
8362
      public static _Fields findByThriftId(int fieldId) {
8363
        switch(fieldId) {
8364
          case 1: // ITEM_NUMBER
8365
            return ITEM_NUMBER;
8366
          case 2: // ITEM_ID
8367
            return ITEM_ID;
8368
          default:
8369
            return null;
8370
        }
8371
      }
8372
 
8373
      /**
8374
       * Find the _Fields constant that matches fieldId, throwing an exception
8375
       * if it is not found.
8376
       */
8377
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8378
        _Fields fields = findByThriftId(fieldId);
8379
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8380
        return fields;
8381
      }
8382
 
8383
      /**
8384
       * Find the _Fields constant that matches name, or null if its not found.
8385
       */
8386
      public static _Fields findByName(String name) {
8387
        return byName.get(name);
8388
      }
8389
 
8390
      private final short _thriftId;
8391
      private final String _fieldName;
8392
 
8393
      _Fields(short thriftId, String fieldName) {
8394
        _thriftId = thriftId;
8395
        _fieldName = fieldName;
8396
      }
8397
 
8398
      public short getThriftFieldId() {
8399
        return _thriftId;
8400
      }
8401
 
8402
      public String getFieldName() {
8403
        return _fieldName;
8404
      }
8405
    }
8406
 
8407
    // isset id assignments
8408
    private static final int __ITEMID_ISSET_ID = 0;
8409
    private BitSet __isset_bit_vector = new BitSet(1);
8410
 
8411
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8412
    static {
8413
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8414
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8416
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8417
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8418
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8419
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_args.class, metaDataMap);
8420
    }
8421
 
8422
    public createItemNumberMapping_args() {
8423
    }
8424
 
8425
    public createItemNumberMapping_args(
8426
      String itemNumber,
8427
      long itemId)
8428
    {
8429
      this();
8430
      this.itemNumber = itemNumber;
8431
      this.itemId = itemId;
8432
      setItemIdIsSet(true);
8433
    }
8434
 
8435
    /**
8436
     * Performs a deep copy on <i>other</i>.
8437
     */
8438
    public createItemNumberMapping_args(createItemNumberMapping_args other) {
8439
      __isset_bit_vector.clear();
8440
      __isset_bit_vector.or(other.__isset_bit_vector);
8441
      if (other.isSetItemNumber()) {
8442
        this.itemNumber = other.itemNumber;
8443
      }
8444
      this.itemId = other.itemId;
8445
    }
8446
 
8447
    public createItemNumberMapping_args deepCopy() {
8448
      return new createItemNumberMapping_args(this);
8449
    }
8450
 
8451
    @Override
8452
    public void clear() {
8453
      this.itemNumber = null;
8454
      setItemIdIsSet(false);
8455
      this.itemId = 0;
8456
    }
8457
 
8458
    public String getItemNumber() {
8459
      return this.itemNumber;
8460
    }
8461
 
8462
    public void setItemNumber(String itemNumber) {
8463
      this.itemNumber = itemNumber;
8464
    }
8465
 
8466
    public void unsetItemNumber() {
8467
      this.itemNumber = null;
8468
    }
8469
 
8470
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
8471
    public boolean isSetItemNumber() {
8472
      return this.itemNumber != null;
8473
    }
8474
 
8475
    public void setItemNumberIsSet(boolean value) {
8476
      if (!value) {
8477
        this.itemNumber = null;
8478
      }
8479
    }
8480
 
8481
    public long getItemId() {
8482
      return this.itemId;
8483
    }
8484
 
8485
    public void setItemId(long itemId) {
8486
      this.itemId = itemId;
8487
      setItemIdIsSet(true);
8488
    }
8489
 
8490
    public void unsetItemId() {
8491
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
8492
    }
8493
 
8494
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
8495
    public boolean isSetItemId() {
8496
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
8497
    }
8498
 
8499
    public void setItemIdIsSet(boolean value) {
8500
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
8501
    }
8502
 
8503
    public void setFieldValue(_Fields field, Object value) {
8504
      switch (field) {
8505
      case ITEM_NUMBER:
8506
        if (value == null) {
8507
          unsetItemNumber();
8508
        } else {
8509
          setItemNumber((String)value);
8510
        }
8511
        break;
8512
 
8513
      case ITEM_ID:
8514
        if (value == null) {
8515
          unsetItemId();
8516
        } else {
8517
          setItemId((Long)value);
8518
        }
8519
        break;
8520
 
8521
      }
8522
    }
8523
 
8524
    public Object getFieldValue(_Fields field) {
8525
      switch (field) {
8526
      case ITEM_NUMBER:
8527
        return getItemNumber();
8528
 
8529
      case ITEM_ID:
8530
        return Long.valueOf(getItemId());
8531
 
8532
      }
8533
      throw new IllegalStateException();
8534
    }
8535
 
8536
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8537
    public boolean isSet(_Fields field) {
8538
      if (field == null) {
8539
        throw new IllegalArgumentException();
8540
      }
8541
 
8542
      switch (field) {
8543
      case ITEM_NUMBER:
8544
        return isSetItemNumber();
8545
      case ITEM_ID:
8546
        return isSetItemId();
8547
      }
8548
      throw new IllegalStateException();
8549
    }
8550
 
8551
    @Override
8552
    public boolean equals(Object that) {
8553
      if (that == null)
8554
        return false;
8555
      if (that instanceof createItemNumberMapping_args)
8556
        return this.equals((createItemNumberMapping_args)that);
8557
      return false;
8558
    }
8559
 
8560
    public boolean equals(createItemNumberMapping_args that) {
8561
      if (that == null)
8562
        return false;
8563
 
8564
      boolean this_present_itemNumber = true && this.isSetItemNumber();
8565
      boolean that_present_itemNumber = true && that.isSetItemNumber();
8566
      if (this_present_itemNumber || that_present_itemNumber) {
8567
        if (!(this_present_itemNumber && that_present_itemNumber))
8568
          return false;
8569
        if (!this.itemNumber.equals(that.itemNumber))
8570
          return false;
8571
      }
8572
 
8573
      boolean this_present_itemId = true;
8574
      boolean that_present_itemId = true;
8575
      if (this_present_itemId || that_present_itemId) {
8576
        if (!(this_present_itemId && that_present_itemId))
8577
          return false;
8578
        if (this.itemId != that.itemId)
8579
          return false;
8580
      }
8581
 
8582
      return true;
8583
    }
8584
 
8585
    @Override
8586
    public int hashCode() {
8587
      return 0;
8588
    }
8589
 
8590
    public int compareTo(createItemNumberMapping_args other) {
8591
      if (!getClass().equals(other.getClass())) {
8592
        return getClass().getName().compareTo(other.getClass().getName());
8593
      }
8594
 
8595
      int lastComparison = 0;
8596
      createItemNumberMapping_args typedOther = (createItemNumberMapping_args)other;
8597
 
8598
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
8599
      if (lastComparison != 0) {
8600
        return lastComparison;
8601
      }
8602
      if (isSetItemNumber()) {
8603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
8604
        if (lastComparison != 0) {
8605
          return lastComparison;
8606
        }
8607
      }
8608
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
8609
      if (lastComparison != 0) {
8610
        return lastComparison;
8611
      }
8612
      if (isSetItemId()) {
8613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
8614
        if (lastComparison != 0) {
8615
          return lastComparison;
8616
        }
8617
      }
8618
      return 0;
8619
    }
8620
 
8621
    public _Fields fieldForId(int fieldId) {
8622
      return _Fields.findByThriftId(fieldId);
8623
    }
8624
 
8625
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8626
      org.apache.thrift.protocol.TField field;
8627
      iprot.readStructBegin();
8628
      while (true)
8629
      {
8630
        field = iprot.readFieldBegin();
8631
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8632
          break;
8633
        }
8634
        switch (field.id) {
8635
          case 1: // ITEM_NUMBER
8636
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8637
              this.itemNumber = iprot.readString();
8638
            } else { 
8639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8640
            }
8641
            break;
8642
          case 2: // ITEM_ID
8643
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8644
              this.itemId = iprot.readI64();
8645
              setItemIdIsSet(true);
8646
            } else { 
8647
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8648
            }
8649
            break;
8650
          default:
8651
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8652
        }
8653
        iprot.readFieldEnd();
8654
      }
8655
      iprot.readStructEnd();
8656
      validate();
8657
    }
8658
 
8659
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8660
      validate();
8661
 
8662
      oprot.writeStructBegin(STRUCT_DESC);
8663
      if (this.itemNumber != null) {
8664
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
8665
        oprot.writeString(this.itemNumber);
8666
        oprot.writeFieldEnd();
8667
      }
8668
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
8669
      oprot.writeI64(this.itemId);
8670
      oprot.writeFieldEnd();
8671
      oprot.writeFieldStop();
8672
      oprot.writeStructEnd();
8673
    }
8674
 
8675
    @Override
8676
    public String toString() {
8677
      StringBuilder sb = new StringBuilder("createItemNumberMapping_args(");
8678
      boolean first = true;
8679
 
8680
      sb.append("itemNumber:");
8681
      if (this.itemNumber == null) {
8682
        sb.append("null");
8683
      } else {
8684
        sb.append(this.itemNumber);
8685
      }
8686
      first = false;
8687
      if (!first) sb.append(", ");
8688
      sb.append("itemId:");
8689
      sb.append(this.itemId);
8690
      first = false;
8691
      sb.append(")");
8692
      return sb.toString();
8693
    }
8694
 
8695
    public void validate() throws org.apache.thrift.TException {
8696
      // check for required fields
8697
    }
8698
 
8699
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8700
      try {
8701
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8702
      } catch (org.apache.thrift.TException te) {
8703
        throw new java.io.IOException(te);
8704
      }
8705
    }
8706
 
8707
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8708
      try {
8709
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8710
        __isset_bit_vector = new BitSet(1);
8711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8712
      } catch (org.apache.thrift.TException te) {
8713
        throw new java.io.IOException(te);
8714
      }
8715
    }
8716
 
8717
  }
8718
 
8719
  public static class createItemNumberMapping_result implements org.apache.thrift.TBase<createItemNumberMapping_result, createItemNumberMapping_result._Fields>, java.io.Serializable, Cloneable   {
8720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createItemNumberMapping_result");
8721
 
8722
 
8723
 
8724
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8725
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8726
;
8727
 
8728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8729
 
8730
      static {
8731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8732
          byName.put(field.getFieldName(), field);
8733
        }
8734
      }
8735
 
8736
      /**
8737
       * Find the _Fields constant that matches fieldId, or null if its not found.
8738
       */
8739
      public static _Fields findByThriftId(int fieldId) {
8740
        switch(fieldId) {
8741
          default:
8742
            return null;
8743
        }
8744
      }
8745
 
8746
      /**
8747
       * Find the _Fields constant that matches fieldId, throwing an exception
8748
       * if it is not found.
8749
       */
8750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8751
        _Fields fields = findByThriftId(fieldId);
8752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8753
        return fields;
8754
      }
8755
 
8756
      /**
8757
       * Find the _Fields constant that matches name, or null if its not found.
8758
       */
8759
      public static _Fields findByName(String name) {
8760
        return byName.get(name);
8761
      }
8762
 
8763
      private final short _thriftId;
8764
      private final String _fieldName;
8765
 
8766
      _Fields(short thriftId, String fieldName) {
8767
        _thriftId = thriftId;
8768
        _fieldName = fieldName;
8769
      }
8770
 
8771
      public short getThriftFieldId() {
8772
        return _thriftId;
8773
      }
8774
 
8775
      public String getFieldName() {
8776
        return _fieldName;
8777
      }
8778
    }
8779
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8780
    static {
8781
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8782
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8783
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createItemNumberMapping_result.class, metaDataMap);
8784
    }
8785
 
8786
    public createItemNumberMapping_result() {
8787
    }
8788
 
8789
    /**
8790
     * Performs a deep copy on <i>other</i>.
8791
     */
8792
    public createItemNumberMapping_result(createItemNumberMapping_result other) {
8793
    }
8794
 
8795
    public createItemNumberMapping_result deepCopy() {
8796
      return new createItemNumberMapping_result(this);
8797
    }
8798
 
8799
    @Override
8800
    public void clear() {
8801
    }
8802
 
8803
    public void setFieldValue(_Fields field, Object value) {
8804
      switch (field) {
8805
      }
8806
    }
8807
 
8808
    public Object getFieldValue(_Fields field) {
8809
      switch (field) {
8810
      }
8811
      throw new IllegalStateException();
8812
    }
8813
 
8814
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8815
    public boolean isSet(_Fields field) {
8816
      if (field == null) {
8817
        throw new IllegalArgumentException();
8818
      }
8819
 
8820
      switch (field) {
8821
      }
8822
      throw new IllegalStateException();
8823
    }
8824
 
8825
    @Override
8826
    public boolean equals(Object that) {
8827
      if (that == null)
8828
        return false;
8829
      if (that instanceof createItemNumberMapping_result)
8830
        return this.equals((createItemNumberMapping_result)that);
8831
      return false;
8832
    }
8833
 
8834
    public boolean equals(createItemNumberMapping_result that) {
8835
      if (that == null)
8836
        return false;
8837
 
8838
      return true;
8839
    }
8840
 
8841
    @Override
8842
    public int hashCode() {
8843
      return 0;
8844
    }
8845
 
8846
    public int compareTo(createItemNumberMapping_result other) {
8847
      if (!getClass().equals(other.getClass())) {
8848
        return getClass().getName().compareTo(other.getClass().getName());
8849
      }
8850
 
8851
      int lastComparison = 0;
8852
      createItemNumberMapping_result typedOther = (createItemNumberMapping_result)other;
8853
 
8854
      return 0;
8855
    }
8856
 
8857
    public _Fields fieldForId(int fieldId) {
8858
      return _Fields.findByThriftId(fieldId);
8859
    }
8860
 
8861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8862
      org.apache.thrift.protocol.TField field;
8863
      iprot.readStructBegin();
8864
      while (true)
8865
      {
8866
        field = iprot.readFieldBegin();
8867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8868
          break;
8869
        }
8870
        switch (field.id) {
8871
          default:
8872
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8873
        }
8874
        iprot.readFieldEnd();
8875
      }
8876
      iprot.readStructEnd();
8877
      validate();
8878
    }
8879
 
8880
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8881
      oprot.writeStructBegin(STRUCT_DESC);
8882
 
8883
      oprot.writeFieldStop();
8884
      oprot.writeStructEnd();
8885
    }
8886
 
8887
    @Override
8888
    public String toString() {
8889
      StringBuilder sb = new StringBuilder("createItemNumberMapping_result(");
8890
      boolean first = true;
8891
 
8892
      sb.append(")");
8893
      return sb.toString();
8894
    }
8895
 
8896
    public void validate() throws org.apache.thrift.TException {
8897
      // check for required fields
8898
    }
8899
 
8900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8901
      try {
8902
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8903
      } catch (org.apache.thrift.TException te) {
8904
        throw new java.io.IOException(te);
8905
      }
8906
    }
8907
 
8908
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8909
      try {
8910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8911
      } catch (org.apache.thrift.TException te) {
8912
        throw new java.io.IOException(te);
8913
      }
8914
    }
8915
 
8916
  }
8917
 
4622 amit.gupta 8918
  public static class getItemNumbers_args implements org.apache.thrift.TBase<getItemNumbers_args, getItemNumbers_args._Fields>, java.io.Serializable, Cloneable   {
8919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_args");
8920
 
8921
    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)1);
8922
 
8923
    private long itemId; // required
8924
 
8925
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8926
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8927
      ITEM_ID((short)1, "itemId");
8928
 
8929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8930
 
8931
      static {
8932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8933
          byName.put(field.getFieldName(), field);
8934
        }
8935
      }
8936
 
8937
      /**
8938
       * Find the _Fields constant that matches fieldId, or null if its not found.
8939
       */
8940
      public static _Fields findByThriftId(int fieldId) {
8941
        switch(fieldId) {
8942
          case 1: // ITEM_ID
8943
            return ITEM_ID;
8944
          default:
8945
            return null;
8946
        }
8947
      }
8948
 
8949
      /**
8950
       * Find the _Fields constant that matches fieldId, throwing an exception
8951
       * if it is not found.
8952
       */
8953
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8954
        _Fields fields = findByThriftId(fieldId);
8955
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8956
        return fields;
8957
      }
8958
 
8959
      /**
8960
       * Find the _Fields constant that matches name, or null if its not found.
8961
       */
8962
      public static _Fields findByName(String name) {
8963
        return byName.get(name);
8964
      }
8965
 
8966
      private final short _thriftId;
8967
      private final String _fieldName;
8968
 
8969
      _Fields(short thriftId, String fieldName) {
8970
        _thriftId = thriftId;
8971
        _fieldName = fieldName;
8972
      }
8973
 
8974
      public short getThriftFieldId() {
8975
        return _thriftId;
8976
      }
8977
 
8978
      public String getFieldName() {
8979
        return _fieldName;
8980
      }
8981
    }
8982
 
8983
    // isset id assignments
8984
    private static final int __ITEMID_ISSET_ID = 0;
8985
    private BitSet __isset_bit_vector = new BitSet(1);
8986
 
8987
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8988
    static {
8989
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8990
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8991
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8992
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8993
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_args.class, metaDataMap);
8994
    }
8995
 
8996
    public getItemNumbers_args() {
8997
    }
8998
 
8999
    public getItemNumbers_args(
9000
      long itemId)
9001
    {
9002
      this();
9003
      this.itemId = itemId;
9004
      setItemIdIsSet(true);
9005
    }
9006
 
9007
    /**
9008
     * Performs a deep copy on <i>other</i>.
9009
     */
9010
    public getItemNumbers_args(getItemNumbers_args other) {
9011
      __isset_bit_vector.clear();
9012
      __isset_bit_vector.or(other.__isset_bit_vector);
9013
      this.itemId = other.itemId;
9014
    }
9015
 
9016
    public getItemNumbers_args deepCopy() {
9017
      return new getItemNumbers_args(this);
9018
    }
9019
 
9020
    @Override
9021
    public void clear() {
9022
      setItemIdIsSet(false);
9023
      this.itemId = 0;
9024
    }
9025
 
9026
    public long getItemId() {
9027
      return this.itemId;
9028
    }
9029
 
9030
    public void setItemId(long itemId) {
9031
      this.itemId = itemId;
9032
      setItemIdIsSet(true);
9033
    }
9034
 
9035
    public void unsetItemId() {
9036
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
9037
    }
9038
 
9039
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
9040
    public boolean isSetItemId() {
9041
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
9042
    }
9043
 
9044
    public void setItemIdIsSet(boolean value) {
9045
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
9046
    }
9047
 
9048
    public void setFieldValue(_Fields field, Object value) {
9049
      switch (field) {
9050
      case ITEM_ID:
9051
        if (value == null) {
9052
          unsetItemId();
9053
        } else {
9054
          setItemId((Long)value);
9055
        }
9056
        break;
9057
 
9058
      }
9059
    }
9060
 
9061
    public Object getFieldValue(_Fields field) {
9062
      switch (field) {
9063
      case ITEM_ID:
9064
        return Long.valueOf(getItemId());
9065
 
9066
      }
9067
      throw new IllegalStateException();
9068
    }
9069
 
9070
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9071
    public boolean isSet(_Fields field) {
9072
      if (field == null) {
9073
        throw new IllegalArgumentException();
9074
      }
9075
 
9076
      switch (field) {
9077
      case ITEM_ID:
9078
        return isSetItemId();
9079
      }
9080
      throw new IllegalStateException();
9081
    }
9082
 
9083
    @Override
9084
    public boolean equals(Object that) {
9085
      if (that == null)
9086
        return false;
9087
      if (that instanceof getItemNumbers_args)
9088
        return this.equals((getItemNumbers_args)that);
9089
      return false;
9090
    }
9091
 
9092
    public boolean equals(getItemNumbers_args that) {
9093
      if (that == null)
9094
        return false;
9095
 
9096
      boolean this_present_itemId = true;
9097
      boolean that_present_itemId = true;
9098
      if (this_present_itemId || that_present_itemId) {
9099
        if (!(this_present_itemId && that_present_itemId))
9100
          return false;
9101
        if (this.itemId != that.itemId)
9102
          return false;
9103
      }
9104
 
9105
      return true;
9106
    }
9107
 
9108
    @Override
9109
    public int hashCode() {
9110
      return 0;
9111
    }
9112
 
9113
    public int compareTo(getItemNumbers_args other) {
9114
      if (!getClass().equals(other.getClass())) {
9115
        return getClass().getName().compareTo(other.getClass().getName());
9116
      }
9117
 
9118
      int lastComparison = 0;
9119
      getItemNumbers_args typedOther = (getItemNumbers_args)other;
9120
 
9121
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
9122
      if (lastComparison != 0) {
9123
        return lastComparison;
9124
      }
9125
      if (isSetItemId()) {
9126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
9127
        if (lastComparison != 0) {
9128
          return lastComparison;
9129
        }
9130
      }
9131
      return 0;
9132
    }
9133
 
9134
    public _Fields fieldForId(int fieldId) {
9135
      return _Fields.findByThriftId(fieldId);
9136
    }
9137
 
9138
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9139
      org.apache.thrift.protocol.TField field;
9140
      iprot.readStructBegin();
9141
      while (true)
9142
      {
9143
        field = iprot.readFieldBegin();
9144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9145
          break;
9146
        }
9147
        switch (field.id) {
9148
          case 1: // ITEM_ID
9149
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9150
              this.itemId = iprot.readI64();
9151
              setItemIdIsSet(true);
9152
            } else { 
9153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9154
            }
9155
            break;
9156
          default:
9157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9158
        }
9159
        iprot.readFieldEnd();
9160
      }
9161
      iprot.readStructEnd();
9162
      validate();
9163
    }
9164
 
9165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9166
      validate();
9167
 
9168
      oprot.writeStructBegin(STRUCT_DESC);
9169
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
9170
      oprot.writeI64(this.itemId);
9171
      oprot.writeFieldEnd();
9172
      oprot.writeFieldStop();
9173
      oprot.writeStructEnd();
9174
    }
9175
 
9176
    @Override
9177
    public String toString() {
9178
      StringBuilder sb = new StringBuilder("getItemNumbers_args(");
9179
      boolean first = true;
9180
 
9181
      sb.append("itemId:");
9182
      sb.append(this.itemId);
9183
      first = false;
9184
      sb.append(")");
9185
      return sb.toString();
9186
    }
9187
 
9188
    public void validate() throws org.apache.thrift.TException {
9189
      // check for required fields
9190
    }
9191
 
9192
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9193
      try {
9194
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9195
      } catch (org.apache.thrift.TException te) {
9196
        throw new java.io.IOException(te);
9197
      }
9198
    }
9199
 
9200
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9201
      try {
9202
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9203
        __isset_bit_vector = new BitSet(1);
9204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9205
      } catch (org.apache.thrift.TException te) {
9206
        throw new java.io.IOException(te);
9207
      }
9208
    }
9209
 
9210
  }
9211
 
9212
  public static class getItemNumbers_result implements org.apache.thrift.TBase<getItemNumbers_result, getItemNumbers_result._Fields>, java.io.Serializable, Cloneable   {
9213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemNumbers_result");
9214
 
9215
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
9216
 
9217
    private List<String> success; // required
9218
 
9219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9221
      SUCCESS((short)0, "success");
9222
 
9223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9224
 
9225
      static {
9226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9227
          byName.put(field.getFieldName(), field);
9228
        }
9229
      }
9230
 
9231
      /**
9232
       * Find the _Fields constant that matches fieldId, or null if its not found.
9233
       */
9234
      public static _Fields findByThriftId(int fieldId) {
9235
        switch(fieldId) {
9236
          case 0: // SUCCESS
9237
            return SUCCESS;
9238
          default:
9239
            return null;
9240
        }
9241
      }
9242
 
9243
      /**
9244
       * Find the _Fields constant that matches fieldId, throwing an exception
9245
       * if it is not found.
9246
       */
9247
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9248
        _Fields fields = findByThriftId(fieldId);
9249
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9250
        return fields;
9251
      }
9252
 
9253
      /**
9254
       * Find the _Fields constant that matches name, or null if its not found.
9255
       */
9256
      public static _Fields findByName(String name) {
9257
        return byName.get(name);
9258
      }
9259
 
9260
      private final short _thriftId;
9261
      private final String _fieldName;
9262
 
9263
      _Fields(short thriftId, String fieldName) {
9264
        _thriftId = thriftId;
9265
        _fieldName = fieldName;
9266
      }
9267
 
9268
      public short getThriftFieldId() {
9269
        return _thriftId;
9270
      }
9271
 
9272
      public String getFieldName() {
9273
        return _fieldName;
9274
      }
9275
    }
9276
 
9277
    // isset id assignments
9278
 
9279
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9280
    static {
9281
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9282
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9283
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9284
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9285
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9286
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemNumbers_result.class, metaDataMap);
9287
    }
9288
 
9289
    public getItemNumbers_result() {
9290
    }
9291
 
9292
    public getItemNumbers_result(
9293
      List<String> success)
9294
    {
9295
      this();
9296
      this.success = success;
9297
    }
9298
 
9299
    /**
9300
     * Performs a deep copy on <i>other</i>.
9301
     */
9302
    public getItemNumbers_result(getItemNumbers_result other) {
9303
      if (other.isSetSuccess()) {
9304
        List<String> __this__success = new ArrayList<String>();
9305
        for (String other_element : other.success) {
9306
          __this__success.add(other_element);
9307
        }
9308
        this.success = __this__success;
9309
      }
9310
    }
9311
 
9312
    public getItemNumbers_result deepCopy() {
9313
      return new getItemNumbers_result(this);
9314
    }
9315
 
9316
    @Override
9317
    public void clear() {
9318
      this.success = null;
9319
    }
9320
 
9321
    public int getSuccessSize() {
9322
      return (this.success == null) ? 0 : this.success.size();
9323
    }
9324
 
9325
    public java.util.Iterator<String> getSuccessIterator() {
9326
      return (this.success == null) ? null : this.success.iterator();
9327
    }
9328
 
9329
    public void addToSuccess(String elem) {
9330
      if (this.success == null) {
9331
        this.success = new ArrayList<String>();
9332
      }
9333
      this.success.add(elem);
9334
    }
9335
 
9336
    public List<String> getSuccess() {
9337
      return this.success;
9338
    }
9339
 
9340
    public void setSuccess(List<String> success) {
9341
      this.success = success;
9342
    }
9343
 
9344
    public void unsetSuccess() {
9345
      this.success = null;
9346
    }
9347
 
9348
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9349
    public boolean isSetSuccess() {
9350
      return this.success != null;
9351
    }
9352
 
9353
    public void setSuccessIsSet(boolean value) {
9354
      if (!value) {
9355
        this.success = null;
9356
      }
9357
    }
9358
 
9359
    public void setFieldValue(_Fields field, Object value) {
9360
      switch (field) {
9361
      case SUCCESS:
9362
        if (value == null) {
9363
          unsetSuccess();
9364
        } else {
9365
          setSuccess((List<String>)value);
9366
        }
9367
        break;
9368
 
9369
      }
9370
    }
9371
 
9372
    public Object getFieldValue(_Fields field) {
9373
      switch (field) {
9374
      case SUCCESS:
9375
        return getSuccess();
9376
 
9377
      }
9378
      throw new IllegalStateException();
9379
    }
9380
 
9381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9382
    public boolean isSet(_Fields field) {
9383
      if (field == null) {
9384
        throw new IllegalArgumentException();
9385
      }
9386
 
9387
      switch (field) {
9388
      case SUCCESS:
9389
        return isSetSuccess();
9390
      }
9391
      throw new IllegalStateException();
9392
    }
9393
 
9394
    @Override
9395
    public boolean equals(Object that) {
9396
      if (that == null)
9397
        return false;
9398
      if (that instanceof getItemNumbers_result)
9399
        return this.equals((getItemNumbers_result)that);
9400
      return false;
9401
    }
9402
 
9403
    public boolean equals(getItemNumbers_result that) {
9404
      if (that == null)
9405
        return false;
9406
 
9407
      boolean this_present_success = true && this.isSetSuccess();
9408
      boolean that_present_success = true && that.isSetSuccess();
9409
      if (this_present_success || that_present_success) {
9410
        if (!(this_present_success && that_present_success))
9411
          return false;
9412
        if (!this.success.equals(that.success))
9413
          return false;
9414
      }
9415
 
9416
      return true;
9417
    }
9418
 
9419
    @Override
9420
    public int hashCode() {
9421
      return 0;
9422
    }
9423
 
9424
    public int compareTo(getItemNumbers_result other) {
9425
      if (!getClass().equals(other.getClass())) {
9426
        return getClass().getName().compareTo(other.getClass().getName());
9427
      }
9428
 
9429
      int lastComparison = 0;
9430
      getItemNumbers_result typedOther = (getItemNumbers_result)other;
9431
 
9432
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9433
      if (lastComparison != 0) {
9434
        return lastComparison;
9435
      }
9436
      if (isSetSuccess()) {
9437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9438
        if (lastComparison != 0) {
9439
          return lastComparison;
9440
        }
9441
      }
9442
      return 0;
9443
    }
9444
 
9445
    public _Fields fieldForId(int fieldId) {
9446
      return _Fields.findByThriftId(fieldId);
9447
    }
9448
 
9449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9450
      org.apache.thrift.protocol.TField field;
9451
      iprot.readStructBegin();
9452
      while (true)
9453
      {
9454
        field = iprot.readFieldBegin();
9455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9456
          break;
9457
        }
9458
        switch (field.id) {
9459
          case 0: // SUCCESS
9460
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9461
              {
5361 mandeep.dh 9462
                org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
9463
                this.success = new ArrayList<String>(_list0.size);
9464
                for (int _i1 = 0; _i1 < _list0.size; ++_i1)
4622 amit.gupta 9465
                {
5361 mandeep.dh 9466
                  String _elem2; // required
9467
                  _elem2 = iprot.readString();
9468
                  this.success.add(_elem2);
4622 amit.gupta 9469
                }
9470
                iprot.readListEnd();
9471
              }
9472
            } else { 
9473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9474
            }
9475
            break;
9476
          default:
9477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9478
        }
9479
        iprot.readFieldEnd();
9480
      }
9481
      iprot.readStructEnd();
9482
      validate();
9483
    }
9484
 
9485
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9486
      oprot.writeStructBegin(STRUCT_DESC);
9487
 
9488
      if (this.isSetSuccess()) {
9489
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9490
        {
9491
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5361 mandeep.dh 9492
          for (String _iter3 : this.success)
4622 amit.gupta 9493
          {
5361 mandeep.dh 9494
            oprot.writeString(_iter3);
4622 amit.gupta 9495
          }
9496
          oprot.writeListEnd();
9497
        }
9498
        oprot.writeFieldEnd();
9499
      }
9500
      oprot.writeFieldStop();
9501
      oprot.writeStructEnd();
9502
    }
9503
 
9504
    @Override
9505
    public String toString() {
9506
      StringBuilder sb = new StringBuilder("getItemNumbers_result(");
9507
      boolean first = true;
9508
 
9509
      sb.append("success:");
9510
      if (this.success == null) {
9511
        sb.append("null");
9512
      } else {
9513
        sb.append(this.success);
9514
      }
9515
      first = false;
9516
      sb.append(")");
9517
      return sb.toString();
9518
    }
9519
 
9520
    public void validate() throws org.apache.thrift.TException {
9521
      // check for required fields
9522
    }
9523
 
9524
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9525
      try {
9526
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9527
      } catch (org.apache.thrift.TException te) {
9528
        throw new java.io.IOException(te);
9529
      }
9530
    }
9531
 
9532
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9533
      try {
9534
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9535
      } catch (org.apache.thrift.TException te) {
9536
        throw new java.io.IOException(te);
9537
      }
9538
    }
9539
 
9540
  }
9541
 
5110 mandeep.dh 9542
  public static class getItemIds_args implements org.apache.thrift.TBase<getItemIds_args, getItemIds_args._Fields>, java.io.Serializable, Cloneable   {
9543
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_args");
9544
 
9545
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
9546
 
9547
    private String itemNumber; // required
9548
 
9549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9551
      ITEM_NUMBER((short)1, "itemNumber");
9552
 
9553
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9554
 
9555
      static {
9556
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9557
          byName.put(field.getFieldName(), field);
9558
        }
9559
      }
9560
 
9561
      /**
9562
       * Find the _Fields constant that matches fieldId, or null if its not found.
9563
       */
9564
      public static _Fields findByThriftId(int fieldId) {
9565
        switch(fieldId) {
9566
          case 1: // ITEM_NUMBER
9567
            return ITEM_NUMBER;
9568
          default:
9569
            return null;
9570
        }
9571
      }
9572
 
9573
      /**
9574
       * Find the _Fields constant that matches fieldId, throwing an exception
9575
       * if it is not found.
9576
       */
9577
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9578
        _Fields fields = findByThriftId(fieldId);
9579
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9580
        return fields;
9581
      }
9582
 
9583
      /**
9584
       * Find the _Fields constant that matches name, or null if its not found.
9585
       */
9586
      public static _Fields findByName(String name) {
9587
        return byName.get(name);
9588
      }
9589
 
9590
      private final short _thriftId;
9591
      private final String _fieldName;
9592
 
9593
      _Fields(short thriftId, String fieldName) {
9594
        _thriftId = thriftId;
9595
        _fieldName = fieldName;
9596
      }
9597
 
9598
      public short getThriftFieldId() {
9599
        return _thriftId;
9600
      }
9601
 
9602
      public String getFieldName() {
9603
        return _fieldName;
9604
      }
9605
    }
9606
 
9607
    // isset id assignments
9608
 
9609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9610
    static {
9611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9612
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9613
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9614
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9615
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_args.class, metaDataMap);
9616
    }
9617
 
9618
    public getItemIds_args() {
9619
    }
9620
 
9621
    public getItemIds_args(
9622
      String itemNumber)
9623
    {
9624
      this();
9625
      this.itemNumber = itemNumber;
9626
    }
9627
 
9628
    /**
9629
     * Performs a deep copy on <i>other</i>.
9630
     */
9631
    public getItemIds_args(getItemIds_args other) {
9632
      if (other.isSetItemNumber()) {
9633
        this.itemNumber = other.itemNumber;
9634
      }
9635
    }
9636
 
9637
    public getItemIds_args deepCopy() {
9638
      return new getItemIds_args(this);
9639
    }
9640
 
9641
    @Override
9642
    public void clear() {
9643
      this.itemNumber = null;
9644
    }
9645
 
9646
    public String getItemNumber() {
9647
      return this.itemNumber;
9648
    }
9649
 
9650
    public void setItemNumber(String itemNumber) {
9651
      this.itemNumber = itemNumber;
9652
    }
9653
 
9654
    public void unsetItemNumber() {
9655
      this.itemNumber = null;
9656
    }
9657
 
9658
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
9659
    public boolean isSetItemNumber() {
9660
      return this.itemNumber != null;
9661
    }
9662
 
9663
    public void setItemNumberIsSet(boolean value) {
9664
      if (!value) {
9665
        this.itemNumber = null;
9666
      }
9667
    }
9668
 
9669
    public void setFieldValue(_Fields field, Object value) {
9670
      switch (field) {
9671
      case ITEM_NUMBER:
9672
        if (value == null) {
9673
          unsetItemNumber();
9674
        } else {
9675
          setItemNumber((String)value);
9676
        }
9677
        break;
9678
 
9679
      }
9680
    }
9681
 
9682
    public Object getFieldValue(_Fields field) {
9683
      switch (field) {
9684
      case ITEM_NUMBER:
9685
        return getItemNumber();
9686
 
9687
      }
9688
      throw new IllegalStateException();
9689
    }
9690
 
9691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9692
    public boolean isSet(_Fields field) {
9693
      if (field == null) {
9694
        throw new IllegalArgumentException();
9695
      }
9696
 
9697
      switch (field) {
9698
      case ITEM_NUMBER:
9699
        return isSetItemNumber();
9700
      }
9701
      throw new IllegalStateException();
9702
    }
9703
 
9704
    @Override
9705
    public boolean equals(Object that) {
9706
      if (that == null)
9707
        return false;
9708
      if (that instanceof getItemIds_args)
9709
        return this.equals((getItemIds_args)that);
9710
      return false;
9711
    }
9712
 
9713
    public boolean equals(getItemIds_args that) {
9714
      if (that == null)
9715
        return false;
9716
 
9717
      boolean this_present_itemNumber = true && this.isSetItemNumber();
9718
      boolean that_present_itemNumber = true && that.isSetItemNumber();
9719
      if (this_present_itemNumber || that_present_itemNumber) {
9720
        if (!(this_present_itemNumber && that_present_itemNumber))
9721
          return false;
9722
        if (!this.itemNumber.equals(that.itemNumber))
9723
          return false;
9724
      }
9725
 
9726
      return true;
9727
    }
9728
 
9729
    @Override
9730
    public int hashCode() {
9731
      return 0;
9732
    }
9733
 
9734
    public int compareTo(getItemIds_args other) {
9735
      if (!getClass().equals(other.getClass())) {
9736
        return getClass().getName().compareTo(other.getClass().getName());
9737
      }
9738
 
9739
      int lastComparison = 0;
9740
      getItemIds_args typedOther = (getItemIds_args)other;
9741
 
9742
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
9743
      if (lastComparison != 0) {
9744
        return lastComparison;
9745
      }
9746
      if (isSetItemNumber()) {
9747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
9748
        if (lastComparison != 0) {
9749
          return lastComparison;
9750
        }
9751
      }
9752
      return 0;
9753
    }
9754
 
9755
    public _Fields fieldForId(int fieldId) {
9756
      return _Fields.findByThriftId(fieldId);
9757
    }
9758
 
9759
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9760
      org.apache.thrift.protocol.TField field;
9761
      iprot.readStructBegin();
9762
      while (true)
9763
      {
9764
        field = iprot.readFieldBegin();
9765
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9766
          break;
9767
        }
9768
        switch (field.id) {
9769
          case 1: // ITEM_NUMBER
9770
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9771
              this.itemNumber = iprot.readString();
9772
            } else { 
9773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9774
            }
9775
            break;
9776
          default:
9777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9778
        }
9779
        iprot.readFieldEnd();
9780
      }
9781
      iprot.readStructEnd();
9782
      validate();
9783
    }
9784
 
9785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9786
      validate();
9787
 
9788
      oprot.writeStructBegin(STRUCT_DESC);
9789
      if (this.itemNumber != null) {
9790
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
9791
        oprot.writeString(this.itemNumber);
9792
        oprot.writeFieldEnd();
9793
      }
9794
      oprot.writeFieldStop();
9795
      oprot.writeStructEnd();
9796
    }
9797
 
9798
    @Override
9799
    public String toString() {
9800
      StringBuilder sb = new StringBuilder("getItemIds_args(");
9801
      boolean first = true;
9802
 
9803
      sb.append("itemNumber:");
9804
      if (this.itemNumber == null) {
9805
        sb.append("null");
9806
      } else {
9807
        sb.append(this.itemNumber);
9808
      }
9809
      first = false;
9810
      sb.append(")");
9811
      return sb.toString();
9812
    }
9813
 
9814
    public void validate() throws org.apache.thrift.TException {
9815
      // check for required fields
9816
    }
9817
 
9818
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9819
      try {
9820
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9821
      } catch (org.apache.thrift.TException te) {
9822
        throw new java.io.IOException(te);
9823
      }
9824
    }
9825
 
9826
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9827
      try {
9828
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9829
      } catch (org.apache.thrift.TException te) {
9830
        throw new java.io.IOException(te);
9831
      }
9832
    }
9833
 
9834
  }
9835
 
9836
  public static class getItemIds_result implements org.apache.thrift.TBase<getItemIds_result, getItemIds_result._Fields>, java.io.Serializable, Cloneable   {
9837
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemIds_result");
9838
 
9839
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
9840
 
9841
    private List<Long> success; // required
9842
 
9843
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9844
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9845
      SUCCESS((short)0, "success");
9846
 
9847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9848
 
9849
      static {
9850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9851
          byName.put(field.getFieldName(), field);
9852
        }
9853
      }
9854
 
9855
      /**
9856
       * Find the _Fields constant that matches fieldId, or null if its not found.
9857
       */
9858
      public static _Fields findByThriftId(int fieldId) {
9859
        switch(fieldId) {
9860
          case 0: // SUCCESS
9861
            return SUCCESS;
9862
          default:
9863
            return null;
9864
        }
9865
      }
9866
 
9867
      /**
9868
       * Find the _Fields constant that matches fieldId, throwing an exception
9869
       * if it is not found.
9870
       */
9871
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9872
        _Fields fields = findByThriftId(fieldId);
9873
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9874
        return fields;
9875
      }
9876
 
9877
      /**
9878
       * Find the _Fields constant that matches name, or null if its not found.
9879
       */
9880
      public static _Fields findByName(String name) {
9881
        return byName.get(name);
9882
      }
9883
 
9884
      private final short _thriftId;
9885
      private final String _fieldName;
9886
 
9887
      _Fields(short thriftId, String fieldName) {
9888
        _thriftId = thriftId;
9889
        _fieldName = fieldName;
9890
      }
9891
 
9892
      public short getThriftFieldId() {
9893
        return _thriftId;
9894
      }
9895
 
9896
      public String getFieldName() {
9897
        return _fieldName;
9898
      }
9899
    }
9900
 
9901
    // isset id assignments
9902
 
9903
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9904
    static {
9905
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9906
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9907
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9908
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
9909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemIds_result.class, metaDataMap);
9911
    }
9912
 
9913
    public getItemIds_result() {
9914
    }
9915
 
9916
    public getItemIds_result(
9917
      List<Long> success)
9918
    {
9919
      this();
9920
      this.success = success;
9921
    }
9922
 
9923
    /**
9924
     * Performs a deep copy on <i>other</i>.
9925
     */
9926
    public getItemIds_result(getItemIds_result other) {
9927
      if (other.isSetSuccess()) {
9928
        List<Long> __this__success = new ArrayList<Long>();
9929
        for (Long other_element : other.success) {
9930
          __this__success.add(other_element);
9931
        }
9932
        this.success = __this__success;
9933
      }
9934
    }
9935
 
9936
    public getItemIds_result deepCopy() {
9937
      return new getItemIds_result(this);
9938
    }
9939
 
9940
    @Override
9941
    public void clear() {
9942
      this.success = null;
9943
    }
9944
 
9945
    public int getSuccessSize() {
9946
      return (this.success == null) ? 0 : this.success.size();
9947
    }
9948
 
9949
    public java.util.Iterator<Long> getSuccessIterator() {
9950
      return (this.success == null) ? null : this.success.iterator();
9951
    }
9952
 
9953
    public void addToSuccess(long elem) {
9954
      if (this.success == null) {
9955
        this.success = new ArrayList<Long>();
9956
      }
9957
      this.success.add(elem);
9958
    }
9959
 
9960
    public List<Long> getSuccess() {
9961
      return this.success;
9962
    }
9963
 
9964
    public void setSuccess(List<Long> success) {
9965
      this.success = success;
9966
    }
9967
 
9968
    public void unsetSuccess() {
9969
      this.success = null;
9970
    }
9971
 
9972
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9973
    public boolean isSetSuccess() {
9974
      return this.success != null;
9975
    }
9976
 
9977
    public void setSuccessIsSet(boolean value) {
9978
      if (!value) {
9979
        this.success = null;
9980
      }
9981
    }
9982
 
9983
    public void setFieldValue(_Fields field, Object value) {
9984
      switch (field) {
9985
      case SUCCESS:
9986
        if (value == null) {
9987
          unsetSuccess();
9988
        } else {
9989
          setSuccess((List<Long>)value);
9990
        }
9991
        break;
9992
 
9993
      }
9994
    }
9995
 
9996
    public Object getFieldValue(_Fields field) {
9997
      switch (field) {
9998
      case SUCCESS:
9999
        return getSuccess();
10000
 
10001
      }
10002
      throw new IllegalStateException();
10003
    }
10004
 
10005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10006
    public boolean isSet(_Fields field) {
10007
      if (field == null) {
10008
        throw new IllegalArgumentException();
10009
      }
10010
 
10011
      switch (field) {
10012
      case SUCCESS:
10013
        return isSetSuccess();
10014
      }
10015
      throw new IllegalStateException();
10016
    }
10017
 
10018
    @Override
10019
    public boolean equals(Object that) {
10020
      if (that == null)
10021
        return false;
10022
      if (that instanceof getItemIds_result)
10023
        return this.equals((getItemIds_result)that);
10024
      return false;
10025
    }
10026
 
10027
    public boolean equals(getItemIds_result that) {
10028
      if (that == null)
10029
        return false;
10030
 
10031
      boolean this_present_success = true && this.isSetSuccess();
10032
      boolean that_present_success = true && that.isSetSuccess();
10033
      if (this_present_success || that_present_success) {
10034
        if (!(this_present_success && that_present_success))
10035
          return false;
10036
        if (!this.success.equals(that.success))
10037
          return false;
10038
      }
10039
 
10040
      return true;
10041
    }
10042
 
10043
    @Override
10044
    public int hashCode() {
10045
      return 0;
10046
    }
10047
 
10048
    public int compareTo(getItemIds_result other) {
10049
      if (!getClass().equals(other.getClass())) {
10050
        return getClass().getName().compareTo(other.getClass().getName());
10051
      }
10052
 
10053
      int lastComparison = 0;
10054
      getItemIds_result typedOther = (getItemIds_result)other;
10055
 
10056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10057
      if (lastComparison != 0) {
10058
        return lastComparison;
10059
      }
10060
      if (isSetSuccess()) {
10061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10062
        if (lastComparison != 0) {
10063
          return lastComparison;
10064
        }
10065
      }
10066
      return 0;
10067
    }
10068
 
10069
    public _Fields fieldForId(int fieldId) {
10070
      return _Fields.findByThriftId(fieldId);
10071
    }
10072
 
10073
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10074
      org.apache.thrift.protocol.TField field;
10075
      iprot.readStructBegin();
10076
      while (true)
10077
      {
10078
        field = iprot.readFieldBegin();
10079
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10080
          break;
10081
        }
10082
        switch (field.id) {
10083
          case 0: // SUCCESS
10084
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10085
              {
5361 mandeep.dh 10086
                org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
10087
                this.success = new ArrayList<Long>(_list4.size);
10088
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
5110 mandeep.dh 10089
                {
5361 mandeep.dh 10090
                  long _elem6; // required
10091
                  _elem6 = iprot.readI64();
10092
                  this.success.add(_elem6);
5110 mandeep.dh 10093
                }
10094
                iprot.readListEnd();
10095
              }
10096
            } else { 
10097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10098
            }
10099
            break;
10100
          default:
10101
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10102
        }
10103
        iprot.readFieldEnd();
10104
      }
10105
      iprot.readStructEnd();
10106
      validate();
10107
    }
10108
 
10109
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10110
      oprot.writeStructBegin(STRUCT_DESC);
10111
 
10112
      if (this.isSetSuccess()) {
10113
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10114
        {
10115
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
5361 mandeep.dh 10116
          for (long _iter7 : this.success)
5110 mandeep.dh 10117
          {
5361 mandeep.dh 10118
            oprot.writeI64(_iter7);
5110 mandeep.dh 10119
          }
10120
          oprot.writeListEnd();
10121
        }
10122
        oprot.writeFieldEnd();
10123
      }
10124
      oprot.writeFieldStop();
10125
      oprot.writeStructEnd();
10126
    }
10127
 
10128
    @Override
10129
    public String toString() {
10130
      StringBuilder sb = new StringBuilder("getItemIds_result(");
10131
      boolean first = true;
10132
 
10133
      sb.append("success:");
10134
      if (this.success == null) {
10135
        sb.append("null");
10136
      } else {
10137
        sb.append(this.success);
10138
      }
10139
      first = false;
10140
      sb.append(")");
10141
      return sb.toString();
10142
    }
10143
 
10144
    public void validate() throws org.apache.thrift.TException {
10145
      // check for required fields
10146
    }
10147
 
10148
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10149
      try {
10150
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10151
      } catch (org.apache.thrift.TException te) {
10152
        throw new java.io.IOException(te);
10153
      }
10154
    }
10155
 
10156
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10157
      try {
10158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10159
      } catch (org.apache.thrift.TException te) {
10160
        throw new java.io.IOException(te);
10161
      }
10162
    }
10163
 
10164
  }
10165
 
5185 mandeep.dh 10166
  public static class getInventoryItemsFromLastScanType_args implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_args, getInventoryItemsFromLastScanType_args._Fields>, java.io.Serializable, Cloneable   {
10167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_args");
10168
 
10169
    private static final org.apache.thrift.protocol.TField LAST_SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("lastScanType", org.apache.thrift.protocol.TType.I32, (short)1);
10170
 
10171
    private ScanType lastScanType; // required
10172
 
10173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10175
      /**
10176
       * 
10177
       * @see ScanType
10178
       */
10179
      LAST_SCAN_TYPE((short)1, "lastScanType");
10180
 
10181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10182
 
10183
      static {
10184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10185
          byName.put(field.getFieldName(), field);
10186
        }
10187
      }
10188
 
10189
      /**
10190
       * Find the _Fields constant that matches fieldId, or null if its not found.
10191
       */
10192
      public static _Fields findByThriftId(int fieldId) {
10193
        switch(fieldId) {
10194
          case 1: // LAST_SCAN_TYPE
10195
            return LAST_SCAN_TYPE;
10196
          default:
10197
            return null;
10198
        }
10199
      }
10200
 
10201
      /**
10202
       * Find the _Fields constant that matches fieldId, throwing an exception
10203
       * if it is not found.
10204
       */
10205
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10206
        _Fields fields = findByThriftId(fieldId);
10207
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10208
        return fields;
10209
      }
10210
 
10211
      /**
10212
       * Find the _Fields constant that matches name, or null if its not found.
10213
       */
10214
      public static _Fields findByName(String name) {
10215
        return byName.get(name);
10216
      }
10217
 
10218
      private final short _thriftId;
10219
      private final String _fieldName;
10220
 
10221
      _Fields(short thriftId, String fieldName) {
10222
        _thriftId = thriftId;
10223
        _fieldName = fieldName;
10224
      }
10225
 
10226
      public short getThriftFieldId() {
10227
        return _thriftId;
10228
      }
10229
 
10230
      public String getFieldName() {
10231
        return _fieldName;
10232
      }
10233
    }
10234
 
10235
    // isset id assignments
10236
 
10237
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10238
    static {
10239
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10240
      tmpMap.put(_Fields.LAST_SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("lastScanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10241
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
10242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_args.class, metaDataMap);
10244
    }
10245
 
10246
    public getInventoryItemsFromLastScanType_args() {
10247
    }
10248
 
10249
    public getInventoryItemsFromLastScanType_args(
10250
      ScanType lastScanType)
10251
    {
10252
      this();
10253
      this.lastScanType = lastScanType;
10254
    }
10255
 
10256
    /**
10257
     * Performs a deep copy on <i>other</i>.
10258
     */
10259
    public getInventoryItemsFromLastScanType_args(getInventoryItemsFromLastScanType_args other) {
10260
      if (other.isSetLastScanType()) {
10261
        this.lastScanType = other.lastScanType;
10262
      }
10263
    }
10264
 
10265
    public getInventoryItemsFromLastScanType_args deepCopy() {
10266
      return new getInventoryItemsFromLastScanType_args(this);
10267
    }
10268
 
10269
    @Override
10270
    public void clear() {
10271
      this.lastScanType = null;
10272
    }
10273
 
10274
    /**
10275
     * 
10276
     * @see ScanType
10277
     */
10278
    public ScanType getLastScanType() {
10279
      return this.lastScanType;
10280
    }
10281
 
10282
    /**
10283
     * 
10284
     * @see ScanType
10285
     */
10286
    public void setLastScanType(ScanType lastScanType) {
10287
      this.lastScanType = lastScanType;
10288
    }
10289
 
10290
    public void unsetLastScanType() {
10291
      this.lastScanType = null;
10292
    }
10293
 
10294
    /** Returns true if field lastScanType is set (has been assigned a value) and false otherwise */
10295
    public boolean isSetLastScanType() {
10296
      return this.lastScanType != null;
10297
    }
10298
 
10299
    public void setLastScanTypeIsSet(boolean value) {
10300
      if (!value) {
10301
        this.lastScanType = null;
10302
      }
10303
    }
10304
 
10305
    public void setFieldValue(_Fields field, Object value) {
10306
      switch (field) {
10307
      case LAST_SCAN_TYPE:
10308
        if (value == null) {
10309
          unsetLastScanType();
10310
        } else {
10311
          setLastScanType((ScanType)value);
10312
        }
10313
        break;
10314
 
10315
      }
10316
    }
10317
 
10318
    public Object getFieldValue(_Fields field) {
10319
      switch (field) {
10320
      case LAST_SCAN_TYPE:
10321
        return getLastScanType();
10322
 
10323
      }
10324
      throw new IllegalStateException();
10325
    }
10326
 
10327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10328
    public boolean isSet(_Fields field) {
10329
      if (field == null) {
10330
        throw new IllegalArgumentException();
10331
      }
10332
 
10333
      switch (field) {
10334
      case LAST_SCAN_TYPE:
10335
        return isSetLastScanType();
10336
      }
10337
      throw new IllegalStateException();
10338
    }
10339
 
10340
    @Override
10341
    public boolean equals(Object that) {
10342
      if (that == null)
10343
        return false;
10344
      if (that instanceof getInventoryItemsFromLastScanType_args)
10345
        return this.equals((getInventoryItemsFromLastScanType_args)that);
10346
      return false;
10347
    }
10348
 
10349
    public boolean equals(getInventoryItemsFromLastScanType_args that) {
10350
      if (that == null)
10351
        return false;
10352
 
10353
      boolean this_present_lastScanType = true && this.isSetLastScanType();
10354
      boolean that_present_lastScanType = true && that.isSetLastScanType();
10355
      if (this_present_lastScanType || that_present_lastScanType) {
10356
        if (!(this_present_lastScanType && that_present_lastScanType))
10357
          return false;
10358
        if (!this.lastScanType.equals(that.lastScanType))
10359
          return false;
10360
      }
10361
 
10362
      return true;
10363
    }
10364
 
10365
    @Override
10366
    public int hashCode() {
10367
      return 0;
10368
    }
10369
 
10370
    public int compareTo(getInventoryItemsFromLastScanType_args other) {
10371
      if (!getClass().equals(other.getClass())) {
10372
        return getClass().getName().compareTo(other.getClass().getName());
10373
      }
10374
 
10375
      int lastComparison = 0;
10376
      getInventoryItemsFromLastScanType_args typedOther = (getInventoryItemsFromLastScanType_args)other;
10377
 
10378
      lastComparison = Boolean.valueOf(isSetLastScanType()).compareTo(typedOther.isSetLastScanType());
10379
      if (lastComparison != 0) {
10380
        return lastComparison;
10381
      }
10382
      if (isSetLastScanType()) {
10383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastScanType, typedOther.lastScanType);
10384
        if (lastComparison != 0) {
10385
          return lastComparison;
10386
        }
10387
      }
10388
      return 0;
10389
    }
10390
 
10391
    public _Fields fieldForId(int fieldId) {
10392
      return _Fields.findByThriftId(fieldId);
10393
    }
10394
 
10395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10396
      org.apache.thrift.protocol.TField field;
10397
      iprot.readStructBegin();
10398
      while (true)
10399
      {
10400
        field = iprot.readFieldBegin();
10401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10402
          break;
10403
        }
10404
        switch (field.id) {
10405
          case 1: // LAST_SCAN_TYPE
10406
            if (field.type == org.apache.thrift.protocol.TType.I32) {
10407
              this.lastScanType = ScanType.findByValue(iprot.readI32());
10408
            } else { 
10409
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10410
            }
10411
            break;
10412
          default:
10413
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10414
        }
10415
        iprot.readFieldEnd();
10416
      }
10417
      iprot.readStructEnd();
10418
      validate();
10419
    }
10420
 
10421
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10422
      validate();
10423
 
10424
      oprot.writeStructBegin(STRUCT_DESC);
10425
      if (this.lastScanType != null) {
10426
        oprot.writeFieldBegin(LAST_SCAN_TYPE_FIELD_DESC);
10427
        oprot.writeI32(this.lastScanType.getValue());
10428
        oprot.writeFieldEnd();
10429
      }
10430
      oprot.writeFieldStop();
10431
      oprot.writeStructEnd();
10432
    }
10433
 
10434
    @Override
10435
    public String toString() {
10436
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_args(");
10437
      boolean first = true;
10438
 
10439
      sb.append("lastScanType:");
10440
      if (this.lastScanType == null) {
10441
        sb.append("null");
10442
      } else {
10443
        sb.append(this.lastScanType);
10444
      }
10445
      first = false;
10446
      sb.append(")");
10447
      return sb.toString();
10448
    }
10449
 
10450
    public void validate() throws org.apache.thrift.TException {
10451
      // check for required fields
10452
    }
10453
 
10454
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10455
      try {
10456
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10457
      } catch (org.apache.thrift.TException te) {
10458
        throw new java.io.IOException(te);
10459
      }
10460
    }
10461
 
10462
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10463
      try {
10464
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10465
      } catch (org.apache.thrift.TException te) {
10466
        throw new java.io.IOException(te);
10467
      }
10468
    }
10469
 
10470
  }
10471
 
10472
  public static class getInventoryItemsFromLastScanType_result implements org.apache.thrift.TBase<getInventoryItemsFromLastScanType_result, getInventoryItemsFromLastScanType_result._Fields>, java.io.Serializable, Cloneable   {
10473
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemsFromLastScanType_result");
10474
 
10475
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
10476
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10477
 
10478
    private List<InventoryItem> success; // required
10479
    private WarehouseServiceException wex; // required
10480
 
10481
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10482
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10483
      SUCCESS((short)0, "success"),
10484
      WEX((short)1, "wex");
10485
 
10486
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10487
 
10488
      static {
10489
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10490
          byName.put(field.getFieldName(), field);
10491
        }
10492
      }
10493
 
10494
      /**
10495
       * Find the _Fields constant that matches fieldId, or null if its not found.
10496
       */
10497
      public static _Fields findByThriftId(int fieldId) {
10498
        switch(fieldId) {
10499
          case 0: // SUCCESS
10500
            return SUCCESS;
10501
          case 1: // WEX
10502
            return WEX;
10503
          default:
10504
            return null;
10505
        }
10506
      }
10507
 
10508
      /**
10509
       * Find the _Fields constant that matches fieldId, throwing an exception
10510
       * if it is not found.
10511
       */
10512
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10513
        _Fields fields = findByThriftId(fieldId);
10514
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10515
        return fields;
10516
      }
10517
 
10518
      /**
10519
       * Find the _Fields constant that matches name, or null if its not found.
10520
       */
10521
      public static _Fields findByName(String name) {
10522
        return byName.get(name);
10523
      }
10524
 
10525
      private final short _thriftId;
10526
      private final String _fieldName;
10527
 
10528
      _Fields(short thriftId, String fieldName) {
10529
        _thriftId = thriftId;
10530
        _fieldName = fieldName;
10531
      }
10532
 
10533
      public short getThriftFieldId() {
10534
        return _thriftId;
10535
      }
10536
 
10537
      public String getFieldName() {
10538
        return _fieldName;
10539
      }
10540
    }
10541
 
10542
    // isset id assignments
10543
 
10544
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10545
    static {
10546
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10547
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10548
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10549
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
10550
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10551
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10552
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10553
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemsFromLastScanType_result.class, metaDataMap);
10554
    }
10555
 
10556
    public getInventoryItemsFromLastScanType_result() {
10557
    }
10558
 
10559
    public getInventoryItemsFromLastScanType_result(
10560
      List<InventoryItem> success,
10561
      WarehouseServiceException wex)
10562
    {
10563
      this();
10564
      this.success = success;
10565
      this.wex = wex;
10566
    }
10567
 
10568
    /**
10569
     * Performs a deep copy on <i>other</i>.
10570
     */
10571
    public getInventoryItemsFromLastScanType_result(getInventoryItemsFromLastScanType_result other) {
10572
      if (other.isSetSuccess()) {
10573
        List<InventoryItem> __this__success = new ArrayList<InventoryItem>();
10574
        for (InventoryItem other_element : other.success) {
10575
          __this__success.add(new InventoryItem(other_element));
10576
        }
10577
        this.success = __this__success;
10578
      }
10579
      if (other.isSetWex()) {
10580
        this.wex = new WarehouseServiceException(other.wex);
10581
      }
10582
    }
10583
 
10584
    public getInventoryItemsFromLastScanType_result deepCopy() {
10585
      return new getInventoryItemsFromLastScanType_result(this);
10586
    }
10587
 
10588
    @Override
10589
    public void clear() {
10590
      this.success = null;
10591
      this.wex = null;
10592
    }
10593
 
10594
    public int getSuccessSize() {
10595
      return (this.success == null) ? 0 : this.success.size();
10596
    }
10597
 
10598
    public java.util.Iterator<InventoryItem> getSuccessIterator() {
10599
      return (this.success == null) ? null : this.success.iterator();
10600
    }
10601
 
10602
    public void addToSuccess(InventoryItem elem) {
10603
      if (this.success == null) {
10604
        this.success = new ArrayList<InventoryItem>();
10605
      }
10606
      this.success.add(elem);
10607
    }
10608
 
10609
    public List<InventoryItem> getSuccess() {
10610
      return this.success;
10611
    }
10612
 
10613
    public void setSuccess(List<InventoryItem> success) {
10614
      this.success = success;
10615
    }
10616
 
10617
    public void unsetSuccess() {
10618
      this.success = null;
10619
    }
10620
 
10621
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10622
    public boolean isSetSuccess() {
10623
      return this.success != null;
10624
    }
10625
 
10626
    public void setSuccessIsSet(boolean value) {
10627
      if (!value) {
10628
        this.success = null;
10629
      }
10630
    }
10631
 
10632
    public WarehouseServiceException getWex() {
10633
      return this.wex;
10634
    }
10635
 
10636
    public void setWex(WarehouseServiceException wex) {
10637
      this.wex = wex;
10638
    }
10639
 
10640
    public void unsetWex() {
10641
      this.wex = null;
10642
    }
10643
 
10644
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
10645
    public boolean isSetWex() {
10646
      return this.wex != null;
10647
    }
10648
 
10649
    public void setWexIsSet(boolean value) {
10650
      if (!value) {
10651
        this.wex = null;
10652
      }
10653
    }
10654
 
10655
    public void setFieldValue(_Fields field, Object value) {
10656
      switch (field) {
10657
      case SUCCESS:
10658
        if (value == null) {
10659
          unsetSuccess();
10660
        } else {
10661
          setSuccess((List<InventoryItem>)value);
10662
        }
10663
        break;
10664
 
10665
      case WEX:
10666
        if (value == null) {
10667
          unsetWex();
10668
        } else {
10669
          setWex((WarehouseServiceException)value);
10670
        }
10671
        break;
10672
 
10673
      }
10674
    }
10675
 
10676
    public Object getFieldValue(_Fields field) {
10677
      switch (field) {
10678
      case SUCCESS:
10679
        return getSuccess();
10680
 
10681
      case WEX:
10682
        return getWex();
10683
 
10684
      }
10685
      throw new IllegalStateException();
10686
    }
10687
 
10688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10689
    public boolean isSet(_Fields field) {
10690
      if (field == null) {
10691
        throw new IllegalArgumentException();
10692
      }
10693
 
10694
      switch (field) {
10695
      case SUCCESS:
10696
        return isSetSuccess();
10697
      case WEX:
10698
        return isSetWex();
10699
      }
10700
      throw new IllegalStateException();
10701
    }
10702
 
10703
    @Override
10704
    public boolean equals(Object that) {
10705
      if (that == null)
10706
        return false;
10707
      if (that instanceof getInventoryItemsFromLastScanType_result)
10708
        return this.equals((getInventoryItemsFromLastScanType_result)that);
10709
      return false;
10710
    }
10711
 
10712
    public boolean equals(getInventoryItemsFromLastScanType_result that) {
10713
      if (that == null)
10714
        return false;
10715
 
10716
      boolean this_present_success = true && this.isSetSuccess();
10717
      boolean that_present_success = true && that.isSetSuccess();
10718
      if (this_present_success || that_present_success) {
10719
        if (!(this_present_success && that_present_success))
10720
          return false;
10721
        if (!this.success.equals(that.success))
10722
          return false;
10723
      }
10724
 
10725
      boolean this_present_wex = true && this.isSetWex();
10726
      boolean that_present_wex = true && that.isSetWex();
10727
      if (this_present_wex || that_present_wex) {
10728
        if (!(this_present_wex && that_present_wex))
10729
          return false;
10730
        if (!this.wex.equals(that.wex))
10731
          return false;
10732
      }
10733
 
10734
      return true;
10735
    }
10736
 
10737
    @Override
10738
    public int hashCode() {
10739
      return 0;
10740
    }
10741
 
10742
    public int compareTo(getInventoryItemsFromLastScanType_result other) {
10743
      if (!getClass().equals(other.getClass())) {
10744
        return getClass().getName().compareTo(other.getClass().getName());
10745
      }
10746
 
10747
      int lastComparison = 0;
10748
      getInventoryItemsFromLastScanType_result typedOther = (getInventoryItemsFromLastScanType_result)other;
10749
 
10750
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10751
      if (lastComparison != 0) {
10752
        return lastComparison;
10753
      }
10754
      if (isSetSuccess()) {
10755
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10756
        if (lastComparison != 0) {
10757
          return lastComparison;
10758
        }
10759
      }
10760
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
10761
      if (lastComparison != 0) {
10762
        return lastComparison;
10763
      }
10764
      if (isSetWex()) {
10765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
10766
        if (lastComparison != 0) {
10767
          return lastComparison;
10768
        }
10769
      }
10770
      return 0;
10771
    }
10772
 
10773
    public _Fields fieldForId(int fieldId) {
10774
      return _Fields.findByThriftId(fieldId);
10775
    }
10776
 
10777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10778
      org.apache.thrift.protocol.TField field;
10779
      iprot.readStructBegin();
10780
      while (true)
10781
      {
10782
        field = iprot.readFieldBegin();
10783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10784
          break;
10785
        }
10786
        switch (field.id) {
10787
          case 0: // SUCCESS
10788
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10789
              {
5361 mandeep.dh 10790
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
10791
                this.success = new ArrayList<InventoryItem>(_list8.size);
10792
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
5185 mandeep.dh 10793
                {
5361 mandeep.dh 10794
                  InventoryItem _elem10; // required
10795
                  _elem10 = new InventoryItem();
10796
                  _elem10.read(iprot);
10797
                  this.success.add(_elem10);
5185 mandeep.dh 10798
                }
10799
                iprot.readListEnd();
10800
              }
10801
            } else { 
10802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10803
            }
10804
            break;
10805
          case 1: // WEX
10806
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10807
              this.wex = new WarehouseServiceException();
10808
              this.wex.read(iprot);
10809
            } else { 
10810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10811
            }
10812
            break;
10813
          default:
10814
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10815
        }
10816
        iprot.readFieldEnd();
10817
      }
10818
      iprot.readStructEnd();
10819
      validate();
10820
    }
10821
 
10822
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10823
      oprot.writeStructBegin(STRUCT_DESC);
10824
 
10825
      if (this.isSetSuccess()) {
10826
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10827
        {
10828
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5361 mandeep.dh 10829
          for (InventoryItem _iter11 : this.success)
5185 mandeep.dh 10830
          {
5361 mandeep.dh 10831
            _iter11.write(oprot);
5185 mandeep.dh 10832
          }
10833
          oprot.writeListEnd();
10834
        }
10835
        oprot.writeFieldEnd();
10836
      } else if (this.isSetWex()) {
10837
        oprot.writeFieldBegin(WEX_FIELD_DESC);
10838
        this.wex.write(oprot);
10839
        oprot.writeFieldEnd();
10840
      }
10841
      oprot.writeFieldStop();
10842
      oprot.writeStructEnd();
10843
    }
10844
 
10845
    @Override
10846
    public String toString() {
10847
      StringBuilder sb = new StringBuilder("getInventoryItemsFromLastScanType_result(");
10848
      boolean first = true;
10849
 
10850
      sb.append("success:");
10851
      if (this.success == null) {
10852
        sb.append("null");
10853
      } else {
10854
        sb.append(this.success);
10855
      }
10856
      first = false;
10857
      if (!first) sb.append(", ");
10858
      sb.append("wex:");
10859
      if (this.wex == null) {
10860
        sb.append("null");
10861
      } else {
10862
        sb.append(this.wex);
10863
      }
10864
      first = false;
10865
      sb.append(")");
10866
      return sb.toString();
10867
    }
10868
 
10869
    public void validate() throws org.apache.thrift.TException {
10870
      // check for required fields
10871
    }
10872
 
10873
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10874
      try {
10875
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10876
      } catch (org.apache.thrift.TException te) {
10877
        throw new java.io.IOException(te);
10878
      }
10879
    }
10880
 
10881
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10882
      try {
10883
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10884
      } catch (org.apache.thrift.TException te) {
10885
        throw new java.io.IOException(te);
10886
      }
10887
    }
10888
 
10889
  }
10890
 
10891
  public static class getInventoryItemFromId_args implements org.apache.thrift.TBase<getInventoryItemFromId_args, getInventoryItemFromId_args._Fields>, java.io.Serializable, Cloneable   {
10892
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_args");
10893
 
10894
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItemId", org.apache.thrift.protocol.TType.I64, (short)1);
10895
 
10896
    private long inventoryItemId; // required
10897
 
10898
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10899
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10900
      INVENTORY_ITEM_ID((short)1, "inventoryItemId");
10901
 
10902
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10903
 
10904
      static {
10905
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10906
          byName.put(field.getFieldName(), field);
10907
        }
10908
      }
10909
 
10910
      /**
10911
       * Find the _Fields constant that matches fieldId, or null if its not found.
10912
       */
10913
      public static _Fields findByThriftId(int fieldId) {
10914
        switch(fieldId) {
10915
          case 1: // INVENTORY_ITEM_ID
10916
            return INVENTORY_ITEM_ID;
10917
          default:
10918
            return null;
10919
        }
10920
      }
10921
 
10922
      /**
10923
       * Find the _Fields constant that matches fieldId, throwing an exception
10924
       * if it is not found.
10925
       */
10926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10927
        _Fields fields = findByThriftId(fieldId);
10928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10929
        return fields;
10930
      }
10931
 
10932
      /**
10933
       * Find the _Fields constant that matches name, or null if its not found.
10934
       */
10935
      public static _Fields findByName(String name) {
10936
        return byName.get(name);
10937
      }
10938
 
10939
      private final short _thriftId;
10940
      private final String _fieldName;
10941
 
10942
      _Fields(short thriftId, String fieldName) {
10943
        _thriftId = thriftId;
10944
        _fieldName = fieldName;
10945
      }
10946
 
10947
      public short getThriftFieldId() {
10948
        return _thriftId;
10949
      }
10950
 
10951
      public String getFieldName() {
10952
        return _fieldName;
10953
      }
10954
    }
10955
 
10956
    // isset id assignments
10957
    private static final int __INVENTORYITEMID_ISSET_ID = 0;
10958
    private BitSet __isset_bit_vector = new BitSet(1);
10959
 
10960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10961
    static {
10962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10963
      tmpMap.put(_Fields.INVENTORY_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("inventoryItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_args.class, metaDataMap);
10967
    }
10968
 
10969
    public getInventoryItemFromId_args() {
10970
    }
10971
 
10972
    public getInventoryItemFromId_args(
10973
      long inventoryItemId)
10974
    {
10975
      this();
10976
      this.inventoryItemId = inventoryItemId;
10977
      setInventoryItemIdIsSet(true);
10978
    }
10979
 
10980
    /**
10981
     * Performs a deep copy on <i>other</i>.
10982
     */
10983
    public getInventoryItemFromId_args(getInventoryItemFromId_args other) {
10984
      __isset_bit_vector.clear();
10985
      __isset_bit_vector.or(other.__isset_bit_vector);
10986
      this.inventoryItemId = other.inventoryItemId;
10987
    }
10988
 
10989
    public getInventoryItemFromId_args deepCopy() {
10990
      return new getInventoryItemFromId_args(this);
10991
    }
10992
 
10993
    @Override
10994
    public void clear() {
10995
      setInventoryItemIdIsSet(false);
10996
      this.inventoryItemId = 0;
10997
    }
10998
 
10999
    public long getInventoryItemId() {
11000
      return this.inventoryItemId;
11001
    }
11002
 
11003
    public void setInventoryItemId(long inventoryItemId) {
11004
      this.inventoryItemId = inventoryItemId;
11005
      setInventoryItemIdIsSet(true);
11006
    }
11007
 
11008
    public void unsetInventoryItemId() {
11009
      __isset_bit_vector.clear(__INVENTORYITEMID_ISSET_ID);
11010
    }
11011
 
11012
    /** Returns true if field inventoryItemId is set (has been assigned a value) and false otherwise */
11013
    public boolean isSetInventoryItemId() {
11014
      return __isset_bit_vector.get(__INVENTORYITEMID_ISSET_ID);
11015
    }
11016
 
11017
    public void setInventoryItemIdIsSet(boolean value) {
11018
      __isset_bit_vector.set(__INVENTORYITEMID_ISSET_ID, value);
11019
    }
11020
 
11021
    public void setFieldValue(_Fields field, Object value) {
11022
      switch (field) {
11023
      case INVENTORY_ITEM_ID:
11024
        if (value == null) {
11025
          unsetInventoryItemId();
11026
        } else {
11027
          setInventoryItemId((Long)value);
11028
        }
11029
        break;
11030
 
11031
      }
11032
    }
11033
 
11034
    public Object getFieldValue(_Fields field) {
11035
      switch (field) {
11036
      case INVENTORY_ITEM_ID:
11037
        return Long.valueOf(getInventoryItemId());
11038
 
11039
      }
11040
      throw new IllegalStateException();
11041
    }
11042
 
11043
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11044
    public boolean isSet(_Fields field) {
11045
      if (field == null) {
11046
        throw new IllegalArgumentException();
11047
      }
11048
 
11049
      switch (field) {
11050
      case INVENTORY_ITEM_ID:
11051
        return isSetInventoryItemId();
11052
      }
11053
      throw new IllegalStateException();
11054
    }
11055
 
11056
    @Override
11057
    public boolean equals(Object that) {
11058
      if (that == null)
11059
        return false;
11060
      if (that instanceof getInventoryItemFromId_args)
11061
        return this.equals((getInventoryItemFromId_args)that);
11062
      return false;
11063
    }
11064
 
11065
    public boolean equals(getInventoryItemFromId_args that) {
11066
      if (that == null)
11067
        return false;
11068
 
11069
      boolean this_present_inventoryItemId = true;
11070
      boolean that_present_inventoryItemId = true;
11071
      if (this_present_inventoryItemId || that_present_inventoryItemId) {
11072
        if (!(this_present_inventoryItemId && that_present_inventoryItemId))
11073
          return false;
11074
        if (this.inventoryItemId != that.inventoryItemId)
11075
          return false;
11076
      }
11077
 
11078
      return true;
11079
    }
11080
 
11081
    @Override
11082
    public int hashCode() {
11083
      return 0;
11084
    }
11085
 
11086
    public int compareTo(getInventoryItemFromId_args other) {
11087
      if (!getClass().equals(other.getClass())) {
11088
        return getClass().getName().compareTo(other.getClass().getName());
11089
      }
11090
 
11091
      int lastComparison = 0;
11092
      getInventoryItemFromId_args typedOther = (getInventoryItemFromId_args)other;
11093
 
11094
      lastComparison = Boolean.valueOf(isSetInventoryItemId()).compareTo(typedOther.isSetInventoryItemId());
11095
      if (lastComparison != 0) {
11096
        return lastComparison;
11097
      }
11098
      if (isSetInventoryItemId()) {
11099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItemId, typedOther.inventoryItemId);
11100
        if (lastComparison != 0) {
11101
          return lastComparison;
11102
        }
11103
      }
11104
      return 0;
11105
    }
11106
 
11107
    public _Fields fieldForId(int fieldId) {
11108
      return _Fields.findByThriftId(fieldId);
11109
    }
11110
 
11111
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11112
      org.apache.thrift.protocol.TField field;
11113
      iprot.readStructBegin();
11114
      while (true)
11115
      {
11116
        field = iprot.readFieldBegin();
11117
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11118
          break;
11119
        }
11120
        switch (field.id) {
11121
          case 1: // INVENTORY_ITEM_ID
11122
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11123
              this.inventoryItemId = iprot.readI64();
11124
              setInventoryItemIdIsSet(true);
11125
            } else { 
11126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11127
            }
11128
            break;
11129
          default:
11130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11131
        }
11132
        iprot.readFieldEnd();
11133
      }
11134
      iprot.readStructEnd();
11135
      validate();
11136
    }
11137
 
11138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11139
      validate();
11140
 
11141
      oprot.writeStructBegin(STRUCT_DESC);
11142
      oprot.writeFieldBegin(INVENTORY_ITEM_ID_FIELD_DESC);
11143
      oprot.writeI64(this.inventoryItemId);
11144
      oprot.writeFieldEnd();
11145
      oprot.writeFieldStop();
11146
      oprot.writeStructEnd();
11147
    }
11148
 
11149
    @Override
11150
    public String toString() {
11151
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_args(");
11152
      boolean first = true;
11153
 
11154
      sb.append("inventoryItemId:");
11155
      sb.append(this.inventoryItemId);
11156
      first = false;
11157
      sb.append(")");
11158
      return sb.toString();
11159
    }
11160
 
11161
    public void validate() throws org.apache.thrift.TException {
11162
      // check for required fields
11163
    }
11164
 
11165
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11166
      try {
11167
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11168
      } catch (org.apache.thrift.TException te) {
11169
        throw new java.io.IOException(te);
11170
      }
11171
    }
11172
 
11173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11174
      try {
5372 mandeep.dh 11175
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11176
        __isset_bit_vector = new BitSet(1);
5185 mandeep.dh 11177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11178
      } catch (org.apache.thrift.TException te) {
11179
        throw new java.io.IOException(te);
11180
      }
11181
    }
11182
 
11183
  }
11184
 
11185
  public static class getInventoryItemFromId_result implements org.apache.thrift.TBase<getInventoryItemFromId_result, getInventoryItemFromId_result._Fields>, java.io.Serializable, Cloneable   {
11186
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromId_result");
11187
 
11188
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
11189
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
11190
 
11191
    private InventoryItem success; // required
11192
    private WarehouseServiceException wex; // required
11193
 
11194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11196
      SUCCESS((short)0, "success"),
11197
      WEX((short)1, "wex");
11198
 
11199
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11200
 
11201
      static {
11202
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11203
          byName.put(field.getFieldName(), field);
11204
        }
11205
      }
11206
 
11207
      /**
11208
       * Find the _Fields constant that matches fieldId, or null if its not found.
11209
       */
11210
      public static _Fields findByThriftId(int fieldId) {
11211
        switch(fieldId) {
11212
          case 0: // SUCCESS
11213
            return SUCCESS;
11214
          case 1: // WEX
11215
            return WEX;
11216
          default:
11217
            return null;
11218
        }
11219
      }
11220
 
11221
      /**
11222
       * Find the _Fields constant that matches fieldId, throwing an exception
11223
       * if it is not found.
11224
       */
11225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11226
        _Fields fields = findByThriftId(fieldId);
11227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11228
        return fields;
11229
      }
11230
 
11231
      /**
11232
       * Find the _Fields constant that matches name, or null if its not found.
11233
       */
11234
      public static _Fields findByName(String name) {
11235
        return byName.get(name);
11236
      }
11237
 
11238
      private final short _thriftId;
11239
      private final String _fieldName;
11240
 
11241
      _Fields(short thriftId, String fieldName) {
11242
        _thriftId = thriftId;
11243
        _fieldName = fieldName;
11244
      }
11245
 
11246
      public short getThriftFieldId() {
11247
        return _thriftId;
11248
      }
11249
 
11250
      public String getFieldName() {
11251
        return _fieldName;
11252
      }
11253
    }
11254
 
11255
    // isset id assignments
11256
 
11257
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11258
    static {
11259
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11260
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11261
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
11262
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromId_result.class, metaDataMap);
11266
    }
11267
 
11268
    public getInventoryItemFromId_result() {
11269
    }
11270
 
11271
    public getInventoryItemFromId_result(
11272
      InventoryItem success,
11273
      WarehouseServiceException wex)
11274
    {
11275
      this();
11276
      this.success = success;
11277
      this.wex = wex;
11278
    }
11279
 
11280
    /**
11281
     * Performs a deep copy on <i>other</i>.
11282
     */
11283
    public getInventoryItemFromId_result(getInventoryItemFromId_result other) {
11284
      if (other.isSetSuccess()) {
11285
        this.success = new InventoryItem(other.success);
11286
      }
11287
      if (other.isSetWex()) {
11288
        this.wex = new WarehouseServiceException(other.wex);
11289
      }
11290
    }
11291
 
11292
    public getInventoryItemFromId_result deepCopy() {
11293
      return new getInventoryItemFromId_result(this);
11294
    }
11295
 
11296
    @Override
11297
    public void clear() {
11298
      this.success = null;
11299
      this.wex = null;
11300
    }
11301
 
11302
    public InventoryItem getSuccess() {
11303
      return this.success;
11304
    }
11305
 
11306
    public void setSuccess(InventoryItem success) {
11307
      this.success = success;
11308
    }
11309
 
11310
    public void unsetSuccess() {
11311
      this.success = null;
11312
    }
11313
 
11314
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11315
    public boolean isSetSuccess() {
11316
      return this.success != null;
11317
    }
11318
 
11319
    public void setSuccessIsSet(boolean value) {
11320
      if (!value) {
11321
        this.success = null;
11322
      }
11323
    }
11324
 
11325
    public WarehouseServiceException getWex() {
11326
      return this.wex;
11327
    }
11328
 
11329
    public void setWex(WarehouseServiceException wex) {
11330
      this.wex = wex;
11331
    }
11332
 
11333
    public void unsetWex() {
11334
      this.wex = null;
11335
    }
11336
 
11337
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
11338
    public boolean isSetWex() {
11339
      return this.wex != null;
11340
    }
11341
 
11342
    public void setWexIsSet(boolean value) {
11343
      if (!value) {
11344
        this.wex = null;
11345
      }
11346
    }
11347
 
11348
    public void setFieldValue(_Fields field, Object value) {
11349
      switch (field) {
11350
      case SUCCESS:
11351
        if (value == null) {
11352
          unsetSuccess();
11353
        } else {
11354
          setSuccess((InventoryItem)value);
11355
        }
11356
        break;
11357
 
11358
      case WEX:
11359
        if (value == null) {
11360
          unsetWex();
11361
        } else {
11362
          setWex((WarehouseServiceException)value);
11363
        }
11364
        break;
11365
 
11366
      }
11367
    }
11368
 
11369
    public Object getFieldValue(_Fields field) {
11370
      switch (field) {
11371
      case SUCCESS:
11372
        return getSuccess();
11373
 
11374
      case WEX:
11375
        return getWex();
11376
 
11377
      }
11378
      throw new IllegalStateException();
11379
    }
11380
 
11381
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11382
    public boolean isSet(_Fields field) {
11383
      if (field == null) {
11384
        throw new IllegalArgumentException();
11385
      }
11386
 
11387
      switch (field) {
11388
      case SUCCESS:
11389
        return isSetSuccess();
11390
      case WEX:
11391
        return isSetWex();
11392
      }
11393
      throw new IllegalStateException();
11394
    }
11395
 
11396
    @Override
11397
    public boolean equals(Object that) {
11398
      if (that == null)
11399
        return false;
11400
      if (that instanceof getInventoryItemFromId_result)
11401
        return this.equals((getInventoryItemFromId_result)that);
11402
      return false;
11403
    }
11404
 
11405
    public boolean equals(getInventoryItemFromId_result that) {
11406
      if (that == null)
11407
        return false;
11408
 
11409
      boolean this_present_success = true && this.isSetSuccess();
11410
      boolean that_present_success = true && that.isSetSuccess();
11411
      if (this_present_success || that_present_success) {
11412
        if (!(this_present_success && that_present_success))
11413
          return false;
11414
        if (!this.success.equals(that.success))
11415
          return false;
11416
      }
11417
 
11418
      boolean this_present_wex = true && this.isSetWex();
11419
      boolean that_present_wex = true && that.isSetWex();
11420
      if (this_present_wex || that_present_wex) {
11421
        if (!(this_present_wex && that_present_wex))
11422
          return false;
11423
        if (!this.wex.equals(that.wex))
11424
          return false;
11425
      }
11426
 
11427
      return true;
11428
    }
11429
 
11430
    @Override
11431
    public int hashCode() {
11432
      return 0;
11433
    }
11434
 
11435
    public int compareTo(getInventoryItemFromId_result other) {
11436
      if (!getClass().equals(other.getClass())) {
11437
        return getClass().getName().compareTo(other.getClass().getName());
11438
      }
11439
 
11440
      int lastComparison = 0;
11441
      getInventoryItemFromId_result typedOther = (getInventoryItemFromId_result)other;
11442
 
11443
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11444
      if (lastComparison != 0) {
11445
        return lastComparison;
11446
      }
11447
      if (isSetSuccess()) {
11448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11449
        if (lastComparison != 0) {
11450
          return lastComparison;
11451
        }
11452
      }
11453
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
11454
      if (lastComparison != 0) {
11455
        return lastComparison;
11456
      }
11457
      if (isSetWex()) {
11458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
11459
        if (lastComparison != 0) {
11460
          return lastComparison;
11461
        }
11462
      }
11463
      return 0;
11464
    }
11465
 
11466
    public _Fields fieldForId(int fieldId) {
11467
      return _Fields.findByThriftId(fieldId);
11468
    }
11469
 
11470
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11471
      org.apache.thrift.protocol.TField field;
11472
      iprot.readStructBegin();
11473
      while (true)
11474
      {
11475
        field = iprot.readFieldBegin();
11476
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11477
          break;
11478
        }
11479
        switch (field.id) {
11480
          case 0: // SUCCESS
11481
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11482
              this.success = new InventoryItem();
11483
              this.success.read(iprot);
11484
            } else { 
11485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11486
            }
11487
            break;
11488
          case 1: // WEX
11489
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11490
              this.wex = new WarehouseServiceException();
11491
              this.wex.read(iprot);
11492
            } else { 
11493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11494
            }
11495
            break;
11496
          default:
11497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11498
        }
11499
        iprot.readFieldEnd();
11500
      }
11501
      iprot.readStructEnd();
11502
      validate();
11503
    }
11504
 
11505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11506
      oprot.writeStructBegin(STRUCT_DESC);
11507
 
11508
      if (this.isSetSuccess()) {
11509
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11510
        this.success.write(oprot);
11511
        oprot.writeFieldEnd();
11512
      } else if (this.isSetWex()) {
11513
        oprot.writeFieldBegin(WEX_FIELD_DESC);
11514
        this.wex.write(oprot);
11515
        oprot.writeFieldEnd();
11516
      }
11517
      oprot.writeFieldStop();
11518
      oprot.writeStructEnd();
11519
    }
11520
 
11521
    @Override
11522
    public String toString() {
11523
      StringBuilder sb = new StringBuilder("getInventoryItemFromId_result(");
11524
      boolean first = true;
11525
 
11526
      sb.append("success:");
11527
      if (this.success == null) {
11528
        sb.append("null");
11529
      } else {
11530
        sb.append(this.success);
11531
      }
11532
      first = false;
11533
      if (!first) sb.append(", ");
11534
      sb.append("wex:");
11535
      if (this.wex == null) {
11536
        sb.append("null");
11537
      } else {
11538
        sb.append(this.wex);
11539
      }
11540
      first = false;
11541
      sb.append(")");
11542
      return sb.toString();
11543
    }
11544
 
11545
    public void validate() throws org.apache.thrift.TException {
11546
      // check for required fields
11547
    }
11548
 
11549
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11550
      try {
11551
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11552
      } catch (org.apache.thrift.TException te) {
11553
        throw new java.io.IOException(te);
11554
      }
11555
    }
11556
 
11557
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11558
      try {
11559
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11560
      } catch (org.apache.thrift.TException te) {
11561
        throw new java.io.IOException(te);
11562
      }
11563
    }
11564
 
11565
  }
11566
 
5372 mandeep.dh 11567
  public static class getPurchaseScans_args implements org.apache.thrift.TBase<getPurchaseScans_args, getPurchaseScans_args._Fields>, java.io.Serializable, Cloneable   {
11568
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_args");
11569
 
11570
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
11571
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
11572
 
11573
    private long startDate; // required
11574
    private long endDate; // required
11575
 
11576
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11577
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11578
      START_DATE((short)1, "startDate"),
11579
      END_DATE((short)2, "endDate");
11580
 
11581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11582
 
11583
      static {
11584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11585
          byName.put(field.getFieldName(), field);
11586
        }
11587
      }
11588
 
11589
      /**
11590
       * Find the _Fields constant that matches fieldId, or null if its not found.
11591
       */
11592
      public static _Fields findByThriftId(int fieldId) {
11593
        switch(fieldId) {
11594
          case 1: // START_DATE
11595
            return START_DATE;
11596
          case 2: // END_DATE
11597
            return END_DATE;
11598
          default:
11599
            return null;
11600
        }
11601
      }
11602
 
11603
      /**
11604
       * Find the _Fields constant that matches fieldId, throwing an exception
11605
       * if it is not found.
11606
       */
11607
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11608
        _Fields fields = findByThriftId(fieldId);
11609
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11610
        return fields;
11611
      }
11612
 
11613
      /**
11614
       * Find the _Fields constant that matches name, or null if its not found.
11615
       */
11616
      public static _Fields findByName(String name) {
11617
        return byName.get(name);
11618
      }
11619
 
11620
      private final short _thriftId;
11621
      private final String _fieldName;
11622
 
11623
      _Fields(short thriftId, String fieldName) {
11624
        _thriftId = thriftId;
11625
        _fieldName = fieldName;
11626
      }
11627
 
11628
      public short getThriftFieldId() {
11629
        return _thriftId;
11630
      }
11631
 
11632
      public String getFieldName() {
11633
        return _fieldName;
11634
      }
11635
    }
11636
 
11637
    // isset id assignments
11638
    private static final int __STARTDATE_ISSET_ID = 0;
11639
    private static final int __ENDDATE_ISSET_ID = 1;
11640
    private BitSet __isset_bit_vector = new BitSet(2);
11641
 
11642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11643
    static {
11644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11645
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11647
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_args.class, metaDataMap);
11651
    }
11652
 
11653
    public getPurchaseScans_args() {
11654
    }
11655
 
11656
    public getPurchaseScans_args(
11657
      long startDate,
11658
      long endDate)
11659
    {
11660
      this();
11661
      this.startDate = startDate;
11662
      setStartDateIsSet(true);
11663
      this.endDate = endDate;
11664
      setEndDateIsSet(true);
11665
    }
11666
 
11667
    /**
11668
     * Performs a deep copy on <i>other</i>.
11669
     */
11670
    public getPurchaseScans_args(getPurchaseScans_args other) {
11671
      __isset_bit_vector.clear();
11672
      __isset_bit_vector.or(other.__isset_bit_vector);
11673
      this.startDate = other.startDate;
11674
      this.endDate = other.endDate;
11675
    }
11676
 
11677
    public getPurchaseScans_args deepCopy() {
11678
      return new getPurchaseScans_args(this);
11679
    }
11680
 
11681
    @Override
11682
    public void clear() {
11683
      setStartDateIsSet(false);
11684
      this.startDate = 0;
11685
      setEndDateIsSet(false);
11686
      this.endDate = 0;
11687
    }
11688
 
11689
    public long getStartDate() {
11690
      return this.startDate;
11691
    }
11692
 
11693
    public void setStartDate(long startDate) {
11694
      this.startDate = startDate;
11695
      setStartDateIsSet(true);
11696
    }
11697
 
11698
    public void unsetStartDate() {
11699
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
11700
    }
11701
 
11702
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
11703
    public boolean isSetStartDate() {
11704
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
11705
    }
11706
 
11707
    public void setStartDateIsSet(boolean value) {
11708
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
11709
    }
11710
 
11711
    public long getEndDate() {
11712
      return this.endDate;
11713
    }
11714
 
11715
    public void setEndDate(long endDate) {
11716
      this.endDate = endDate;
11717
      setEndDateIsSet(true);
11718
    }
11719
 
11720
    public void unsetEndDate() {
11721
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
11722
    }
11723
 
11724
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
11725
    public boolean isSetEndDate() {
11726
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
11727
    }
11728
 
11729
    public void setEndDateIsSet(boolean value) {
11730
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
11731
    }
11732
 
11733
    public void setFieldValue(_Fields field, Object value) {
11734
      switch (field) {
11735
      case START_DATE:
11736
        if (value == null) {
11737
          unsetStartDate();
11738
        } else {
11739
          setStartDate((Long)value);
11740
        }
11741
        break;
11742
 
11743
      case END_DATE:
11744
        if (value == null) {
11745
          unsetEndDate();
11746
        } else {
11747
          setEndDate((Long)value);
11748
        }
11749
        break;
11750
 
11751
      }
11752
    }
11753
 
11754
    public Object getFieldValue(_Fields field) {
11755
      switch (field) {
11756
      case START_DATE:
11757
        return Long.valueOf(getStartDate());
11758
 
11759
      case END_DATE:
11760
        return Long.valueOf(getEndDate());
11761
 
11762
      }
11763
      throw new IllegalStateException();
11764
    }
11765
 
11766
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11767
    public boolean isSet(_Fields field) {
11768
      if (field == null) {
11769
        throw new IllegalArgumentException();
11770
      }
11771
 
11772
      switch (field) {
11773
      case START_DATE:
11774
        return isSetStartDate();
11775
      case END_DATE:
11776
        return isSetEndDate();
11777
      }
11778
      throw new IllegalStateException();
11779
    }
11780
 
11781
    @Override
11782
    public boolean equals(Object that) {
11783
      if (that == null)
11784
        return false;
11785
      if (that instanceof getPurchaseScans_args)
11786
        return this.equals((getPurchaseScans_args)that);
11787
      return false;
11788
    }
11789
 
11790
    public boolean equals(getPurchaseScans_args that) {
11791
      if (that == null)
11792
        return false;
11793
 
11794
      boolean this_present_startDate = true;
11795
      boolean that_present_startDate = true;
11796
      if (this_present_startDate || that_present_startDate) {
11797
        if (!(this_present_startDate && that_present_startDate))
11798
          return false;
11799
        if (this.startDate != that.startDate)
11800
          return false;
11801
      }
11802
 
11803
      boolean this_present_endDate = true;
11804
      boolean that_present_endDate = true;
11805
      if (this_present_endDate || that_present_endDate) {
11806
        if (!(this_present_endDate && that_present_endDate))
11807
          return false;
11808
        if (this.endDate != that.endDate)
11809
          return false;
11810
      }
11811
 
11812
      return true;
11813
    }
11814
 
11815
    @Override
11816
    public int hashCode() {
11817
      return 0;
11818
    }
11819
 
11820
    public int compareTo(getPurchaseScans_args other) {
11821
      if (!getClass().equals(other.getClass())) {
11822
        return getClass().getName().compareTo(other.getClass().getName());
11823
      }
11824
 
11825
      int lastComparison = 0;
11826
      getPurchaseScans_args typedOther = (getPurchaseScans_args)other;
11827
 
11828
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
11829
      if (lastComparison != 0) {
11830
        return lastComparison;
11831
      }
11832
      if (isSetStartDate()) {
11833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
11834
        if (lastComparison != 0) {
11835
          return lastComparison;
11836
        }
11837
      }
11838
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
11839
      if (lastComparison != 0) {
11840
        return lastComparison;
11841
      }
11842
      if (isSetEndDate()) {
11843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
11844
        if (lastComparison != 0) {
11845
          return lastComparison;
11846
        }
11847
      }
11848
      return 0;
11849
    }
11850
 
11851
    public _Fields fieldForId(int fieldId) {
11852
      return _Fields.findByThriftId(fieldId);
11853
    }
11854
 
11855
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11856
      org.apache.thrift.protocol.TField field;
11857
      iprot.readStructBegin();
11858
      while (true)
11859
      {
11860
        field = iprot.readFieldBegin();
11861
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11862
          break;
11863
        }
11864
        switch (field.id) {
11865
          case 1: // START_DATE
11866
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11867
              this.startDate = iprot.readI64();
11868
              setStartDateIsSet(true);
11869
            } else { 
11870
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11871
            }
11872
            break;
11873
          case 2: // END_DATE
11874
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11875
              this.endDate = iprot.readI64();
11876
              setEndDateIsSet(true);
11877
            } else { 
11878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11879
            }
11880
            break;
11881
          default:
11882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11883
        }
11884
        iprot.readFieldEnd();
11885
      }
11886
      iprot.readStructEnd();
11887
      validate();
11888
    }
11889
 
11890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11891
      validate();
11892
 
11893
      oprot.writeStructBegin(STRUCT_DESC);
11894
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
11895
      oprot.writeI64(this.startDate);
11896
      oprot.writeFieldEnd();
11897
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
11898
      oprot.writeI64(this.endDate);
11899
      oprot.writeFieldEnd();
11900
      oprot.writeFieldStop();
11901
      oprot.writeStructEnd();
11902
    }
11903
 
11904
    @Override
11905
    public String toString() {
11906
      StringBuilder sb = new StringBuilder("getPurchaseScans_args(");
11907
      boolean first = true;
11908
 
11909
      sb.append("startDate:");
11910
      sb.append(this.startDate);
11911
      first = false;
11912
      if (!first) sb.append(", ");
11913
      sb.append("endDate:");
11914
      sb.append(this.endDate);
11915
      first = false;
11916
      sb.append(")");
11917
      return sb.toString();
11918
    }
11919
 
11920
    public void validate() throws org.apache.thrift.TException {
11921
      // check for required fields
11922
    }
11923
 
11924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11925
      try {
11926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11927
      } catch (org.apache.thrift.TException te) {
11928
        throw new java.io.IOException(te);
11929
      }
11930
    }
11931
 
11932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11933
      try {
11934
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11935
        __isset_bit_vector = new BitSet(1);
11936
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11937
      } catch (org.apache.thrift.TException te) {
11938
        throw new java.io.IOException(te);
11939
      }
11940
    }
11941
 
11942
  }
11943
 
11944
  public static class getPurchaseScans_result implements org.apache.thrift.TBase<getPurchaseScans_result, getPurchaseScans_result._Fields>, java.io.Serializable, Cloneable   {
11945
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScans_result");
11946
 
11947
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
11948
 
11949
    private List<DetailedPurchaseScan> success; // required
11950
 
11951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11953
      SUCCESS((short)0, "success");
11954
 
11955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11956
 
11957
      static {
11958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11959
          byName.put(field.getFieldName(), field);
11960
        }
11961
      }
11962
 
11963
      /**
11964
       * Find the _Fields constant that matches fieldId, or null if its not found.
11965
       */
11966
      public static _Fields findByThriftId(int fieldId) {
11967
        switch(fieldId) {
11968
          case 0: // SUCCESS
11969
            return SUCCESS;
11970
          default:
11971
            return null;
11972
        }
11973
      }
11974
 
11975
      /**
11976
       * Find the _Fields constant that matches fieldId, throwing an exception
11977
       * if it is not found.
11978
       */
11979
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11980
        _Fields fields = findByThriftId(fieldId);
11981
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11982
        return fields;
11983
      }
11984
 
11985
      /**
11986
       * Find the _Fields constant that matches name, or null if its not found.
11987
       */
11988
      public static _Fields findByName(String name) {
11989
        return byName.get(name);
11990
      }
11991
 
11992
      private final short _thriftId;
11993
      private final String _fieldName;
11994
 
11995
      _Fields(short thriftId, String fieldName) {
11996
        _thriftId = thriftId;
11997
        _fieldName = fieldName;
11998
      }
11999
 
12000
      public short getThriftFieldId() {
12001
        return _thriftId;
12002
      }
12003
 
12004
      public String getFieldName() {
12005
        return _fieldName;
12006
      }
12007
    }
12008
 
12009
    // isset id assignments
12010
 
12011
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12012
    static {
12013
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12014
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12015
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12016
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12017
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12018
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScans_result.class, metaDataMap);
12019
    }
12020
 
12021
    public getPurchaseScans_result() {
12022
    }
12023
 
12024
    public getPurchaseScans_result(
12025
      List<DetailedPurchaseScan> success)
12026
    {
12027
      this();
12028
      this.success = success;
12029
    }
12030
 
12031
    /**
12032
     * Performs a deep copy on <i>other</i>.
12033
     */
12034
    public getPurchaseScans_result(getPurchaseScans_result other) {
12035
      if (other.isSetSuccess()) {
12036
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12037
        for (DetailedPurchaseScan other_element : other.success) {
12038
          __this__success.add(new DetailedPurchaseScan(other_element));
12039
        }
12040
        this.success = __this__success;
12041
      }
12042
    }
12043
 
12044
    public getPurchaseScans_result deepCopy() {
12045
      return new getPurchaseScans_result(this);
12046
    }
12047
 
12048
    @Override
12049
    public void clear() {
12050
      this.success = null;
12051
    }
12052
 
12053
    public int getSuccessSize() {
12054
      return (this.success == null) ? 0 : this.success.size();
12055
    }
12056
 
12057
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12058
      return (this.success == null) ? null : this.success.iterator();
12059
    }
12060
 
12061
    public void addToSuccess(DetailedPurchaseScan elem) {
12062
      if (this.success == null) {
12063
        this.success = new ArrayList<DetailedPurchaseScan>();
12064
      }
12065
      this.success.add(elem);
12066
    }
12067
 
12068
    public List<DetailedPurchaseScan> getSuccess() {
12069
      return this.success;
12070
    }
12071
 
12072
    public void setSuccess(List<DetailedPurchaseScan> success) {
12073
      this.success = success;
12074
    }
12075
 
12076
    public void unsetSuccess() {
12077
      this.success = null;
12078
    }
12079
 
12080
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12081
    public boolean isSetSuccess() {
12082
      return this.success != null;
12083
    }
12084
 
12085
    public void setSuccessIsSet(boolean value) {
12086
      if (!value) {
12087
        this.success = null;
12088
      }
12089
    }
12090
 
12091
    public void setFieldValue(_Fields field, Object value) {
12092
      switch (field) {
12093
      case SUCCESS:
12094
        if (value == null) {
12095
          unsetSuccess();
12096
        } else {
12097
          setSuccess((List<DetailedPurchaseScan>)value);
12098
        }
12099
        break;
12100
 
12101
      }
12102
    }
12103
 
12104
    public Object getFieldValue(_Fields field) {
12105
      switch (field) {
12106
      case SUCCESS:
12107
        return getSuccess();
12108
 
12109
      }
12110
      throw new IllegalStateException();
12111
    }
12112
 
12113
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12114
    public boolean isSet(_Fields field) {
12115
      if (field == null) {
12116
        throw new IllegalArgumentException();
12117
      }
12118
 
12119
      switch (field) {
12120
      case SUCCESS:
12121
        return isSetSuccess();
12122
      }
12123
      throw new IllegalStateException();
12124
    }
12125
 
12126
    @Override
12127
    public boolean equals(Object that) {
12128
      if (that == null)
12129
        return false;
12130
      if (that instanceof getPurchaseScans_result)
12131
        return this.equals((getPurchaseScans_result)that);
12132
      return false;
12133
    }
12134
 
12135
    public boolean equals(getPurchaseScans_result that) {
12136
      if (that == null)
12137
        return false;
12138
 
12139
      boolean this_present_success = true && this.isSetSuccess();
12140
      boolean that_present_success = true && that.isSetSuccess();
12141
      if (this_present_success || that_present_success) {
12142
        if (!(this_present_success && that_present_success))
12143
          return false;
12144
        if (!this.success.equals(that.success))
12145
          return false;
12146
      }
12147
 
12148
      return true;
12149
    }
12150
 
12151
    @Override
12152
    public int hashCode() {
12153
      return 0;
12154
    }
12155
 
12156
    public int compareTo(getPurchaseScans_result other) {
12157
      if (!getClass().equals(other.getClass())) {
12158
        return getClass().getName().compareTo(other.getClass().getName());
12159
      }
12160
 
12161
      int lastComparison = 0;
12162
      getPurchaseScans_result typedOther = (getPurchaseScans_result)other;
12163
 
12164
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12165
      if (lastComparison != 0) {
12166
        return lastComparison;
12167
      }
12168
      if (isSetSuccess()) {
12169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12170
        if (lastComparison != 0) {
12171
          return lastComparison;
12172
        }
12173
      }
12174
      return 0;
12175
    }
12176
 
12177
    public _Fields fieldForId(int fieldId) {
12178
      return _Fields.findByThriftId(fieldId);
12179
    }
12180
 
12181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12182
      org.apache.thrift.protocol.TField field;
12183
      iprot.readStructBegin();
12184
      while (true)
12185
      {
12186
        field = iprot.readFieldBegin();
12187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12188
          break;
12189
        }
12190
        switch (field.id) {
12191
          case 0: // SUCCESS
12192
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12193
              {
12194
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
12195
                this.success = new ArrayList<DetailedPurchaseScan>(_list12.size);
12196
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
12197
                {
12198
                  DetailedPurchaseScan _elem14; // required
12199
                  _elem14 = new DetailedPurchaseScan();
12200
                  _elem14.read(iprot);
12201
                  this.success.add(_elem14);
12202
                }
12203
                iprot.readListEnd();
12204
              }
12205
            } else { 
12206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12207
            }
12208
            break;
12209
          default:
12210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12211
        }
12212
        iprot.readFieldEnd();
12213
      }
12214
      iprot.readStructEnd();
12215
      validate();
12216
    }
12217
 
12218
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12219
      oprot.writeStructBegin(STRUCT_DESC);
12220
 
12221
      if (this.isSetSuccess()) {
12222
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12223
        {
12224
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12225
          for (DetailedPurchaseScan _iter15 : this.success)
12226
          {
12227
            _iter15.write(oprot);
12228
          }
12229
          oprot.writeListEnd();
12230
        }
12231
        oprot.writeFieldEnd();
12232
      }
12233
      oprot.writeFieldStop();
12234
      oprot.writeStructEnd();
12235
    }
12236
 
12237
    @Override
12238
    public String toString() {
12239
      StringBuilder sb = new StringBuilder("getPurchaseScans_result(");
12240
      boolean first = true;
12241
 
12242
      sb.append("success:");
12243
      if (this.success == null) {
12244
        sb.append("null");
12245
      } else {
12246
        sb.append(this.success);
12247
      }
12248
      first = false;
12249
      sb.append(")");
12250
      return sb.toString();
12251
    }
12252
 
12253
    public void validate() throws org.apache.thrift.TException {
12254
      // check for required fields
12255
    }
12256
 
12257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12258
      try {
12259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12260
      } catch (org.apache.thrift.TException te) {
12261
        throw new java.io.IOException(te);
12262
      }
12263
    }
12264
 
12265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12266
      try {
12267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12268
      } catch (org.apache.thrift.TException te) {
12269
        throw new java.io.IOException(te);
12270
      }
12271
    }
12272
 
12273
  }
12274
 
7210 amar.kumar 12275
  public static class getPurchaseScansByGrnDate_args implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_args, getPurchaseScansByGrnDate_args._Fields>, java.io.Serializable, Cloneable   {
12276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_args");
12277
 
12278
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
12279
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
12280
 
12281
    private long startDate; // required
12282
    private long endDate; // required
12283
 
12284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12286
      START_DATE((short)1, "startDate"),
12287
      END_DATE((short)2, "endDate");
12288
 
12289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12290
 
12291
      static {
12292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12293
          byName.put(field.getFieldName(), field);
12294
        }
12295
      }
12296
 
12297
      /**
12298
       * Find the _Fields constant that matches fieldId, or null if its not found.
12299
       */
12300
      public static _Fields findByThriftId(int fieldId) {
12301
        switch(fieldId) {
12302
          case 1: // START_DATE
12303
            return START_DATE;
12304
          case 2: // END_DATE
12305
            return END_DATE;
12306
          default:
12307
            return null;
12308
        }
12309
      }
12310
 
12311
      /**
12312
       * Find the _Fields constant that matches fieldId, throwing an exception
12313
       * if it is not found.
12314
       */
12315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12316
        _Fields fields = findByThriftId(fieldId);
12317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12318
        return fields;
12319
      }
12320
 
12321
      /**
12322
       * Find the _Fields constant that matches name, or null if its not found.
12323
       */
12324
      public static _Fields findByName(String name) {
12325
        return byName.get(name);
12326
      }
12327
 
12328
      private final short _thriftId;
12329
      private final String _fieldName;
12330
 
12331
      _Fields(short thriftId, String fieldName) {
12332
        _thriftId = thriftId;
12333
        _fieldName = fieldName;
12334
      }
12335
 
12336
      public short getThriftFieldId() {
12337
        return _thriftId;
12338
      }
12339
 
12340
      public String getFieldName() {
12341
        return _fieldName;
12342
      }
12343
    }
12344
 
12345
    // isset id assignments
12346
    private static final int __STARTDATE_ISSET_ID = 0;
12347
    private static final int __ENDDATE_ISSET_ID = 1;
12348
    private BitSet __isset_bit_vector = new BitSet(2);
12349
 
12350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12351
    static {
12352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12353
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12355
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_args.class, metaDataMap);
12359
    }
12360
 
12361
    public getPurchaseScansByGrnDate_args() {
12362
    }
12363
 
12364
    public getPurchaseScansByGrnDate_args(
12365
      long startDate,
12366
      long endDate)
12367
    {
12368
      this();
12369
      this.startDate = startDate;
12370
      setStartDateIsSet(true);
12371
      this.endDate = endDate;
12372
      setEndDateIsSet(true);
12373
    }
12374
 
12375
    /**
12376
     * Performs a deep copy on <i>other</i>.
12377
     */
12378
    public getPurchaseScansByGrnDate_args(getPurchaseScansByGrnDate_args other) {
12379
      __isset_bit_vector.clear();
12380
      __isset_bit_vector.or(other.__isset_bit_vector);
12381
      this.startDate = other.startDate;
12382
      this.endDate = other.endDate;
12383
    }
12384
 
12385
    public getPurchaseScansByGrnDate_args deepCopy() {
12386
      return new getPurchaseScansByGrnDate_args(this);
12387
    }
12388
 
12389
    @Override
12390
    public void clear() {
12391
      setStartDateIsSet(false);
12392
      this.startDate = 0;
12393
      setEndDateIsSet(false);
12394
      this.endDate = 0;
12395
    }
12396
 
12397
    public long getStartDate() {
12398
      return this.startDate;
12399
    }
12400
 
12401
    public void setStartDate(long startDate) {
12402
      this.startDate = startDate;
12403
      setStartDateIsSet(true);
12404
    }
12405
 
12406
    public void unsetStartDate() {
12407
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
12408
    }
12409
 
12410
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
12411
    public boolean isSetStartDate() {
12412
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
12413
    }
12414
 
12415
    public void setStartDateIsSet(boolean value) {
12416
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
12417
    }
12418
 
12419
    public long getEndDate() {
12420
      return this.endDate;
12421
    }
12422
 
12423
    public void setEndDate(long endDate) {
12424
      this.endDate = endDate;
12425
      setEndDateIsSet(true);
12426
    }
12427
 
12428
    public void unsetEndDate() {
12429
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
12430
    }
12431
 
12432
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
12433
    public boolean isSetEndDate() {
12434
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
12435
    }
12436
 
12437
    public void setEndDateIsSet(boolean value) {
12438
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
12439
    }
12440
 
12441
    public void setFieldValue(_Fields field, Object value) {
12442
      switch (field) {
12443
      case START_DATE:
12444
        if (value == null) {
12445
          unsetStartDate();
12446
        } else {
12447
          setStartDate((Long)value);
12448
        }
12449
        break;
12450
 
12451
      case END_DATE:
12452
        if (value == null) {
12453
          unsetEndDate();
12454
        } else {
12455
          setEndDate((Long)value);
12456
        }
12457
        break;
12458
 
12459
      }
12460
    }
12461
 
12462
    public Object getFieldValue(_Fields field) {
12463
      switch (field) {
12464
      case START_DATE:
12465
        return Long.valueOf(getStartDate());
12466
 
12467
      case END_DATE:
12468
        return Long.valueOf(getEndDate());
12469
 
12470
      }
12471
      throw new IllegalStateException();
12472
    }
12473
 
12474
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12475
    public boolean isSet(_Fields field) {
12476
      if (field == null) {
12477
        throw new IllegalArgumentException();
12478
      }
12479
 
12480
      switch (field) {
12481
      case START_DATE:
12482
        return isSetStartDate();
12483
      case END_DATE:
12484
        return isSetEndDate();
12485
      }
12486
      throw new IllegalStateException();
12487
    }
12488
 
12489
    @Override
12490
    public boolean equals(Object that) {
12491
      if (that == null)
12492
        return false;
12493
      if (that instanceof getPurchaseScansByGrnDate_args)
12494
        return this.equals((getPurchaseScansByGrnDate_args)that);
12495
      return false;
12496
    }
12497
 
12498
    public boolean equals(getPurchaseScansByGrnDate_args that) {
12499
      if (that == null)
12500
        return false;
12501
 
12502
      boolean this_present_startDate = true;
12503
      boolean that_present_startDate = true;
12504
      if (this_present_startDate || that_present_startDate) {
12505
        if (!(this_present_startDate && that_present_startDate))
12506
          return false;
12507
        if (this.startDate != that.startDate)
12508
          return false;
12509
      }
12510
 
12511
      boolean this_present_endDate = true;
12512
      boolean that_present_endDate = true;
12513
      if (this_present_endDate || that_present_endDate) {
12514
        if (!(this_present_endDate && that_present_endDate))
12515
          return false;
12516
        if (this.endDate != that.endDate)
12517
          return false;
12518
      }
12519
 
12520
      return true;
12521
    }
12522
 
12523
    @Override
12524
    public int hashCode() {
12525
      return 0;
12526
    }
12527
 
12528
    public int compareTo(getPurchaseScansByGrnDate_args other) {
12529
      if (!getClass().equals(other.getClass())) {
12530
        return getClass().getName().compareTo(other.getClass().getName());
12531
      }
12532
 
12533
      int lastComparison = 0;
12534
      getPurchaseScansByGrnDate_args typedOther = (getPurchaseScansByGrnDate_args)other;
12535
 
12536
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
12537
      if (lastComparison != 0) {
12538
        return lastComparison;
12539
      }
12540
      if (isSetStartDate()) {
12541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
12542
        if (lastComparison != 0) {
12543
          return lastComparison;
12544
        }
12545
      }
12546
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
12547
      if (lastComparison != 0) {
12548
        return lastComparison;
12549
      }
12550
      if (isSetEndDate()) {
12551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
12552
        if (lastComparison != 0) {
12553
          return lastComparison;
12554
        }
12555
      }
12556
      return 0;
12557
    }
12558
 
12559
    public _Fields fieldForId(int fieldId) {
12560
      return _Fields.findByThriftId(fieldId);
12561
    }
12562
 
12563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12564
      org.apache.thrift.protocol.TField field;
12565
      iprot.readStructBegin();
12566
      while (true)
12567
      {
12568
        field = iprot.readFieldBegin();
12569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12570
          break;
12571
        }
12572
        switch (field.id) {
12573
          case 1: // START_DATE
12574
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12575
              this.startDate = iprot.readI64();
12576
              setStartDateIsSet(true);
12577
            } else { 
12578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12579
            }
12580
            break;
12581
          case 2: // END_DATE
12582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12583
              this.endDate = iprot.readI64();
12584
              setEndDateIsSet(true);
12585
            } else { 
12586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12587
            }
12588
            break;
12589
          default:
12590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12591
        }
12592
        iprot.readFieldEnd();
12593
      }
12594
      iprot.readStructEnd();
12595
      validate();
12596
    }
12597
 
12598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12599
      validate();
12600
 
12601
      oprot.writeStructBegin(STRUCT_DESC);
12602
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
12603
      oprot.writeI64(this.startDate);
12604
      oprot.writeFieldEnd();
12605
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
12606
      oprot.writeI64(this.endDate);
12607
      oprot.writeFieldEnd();
12608
      oprot.writeFieldStop();
12609
      oprot.writeStructEnd();
12610
    }
12611
 
12612
    @Override
12613
    public String toString() {
12614
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_args(");
12615
      boolean first = true;
12616
 
12617
      sb.append("startDate:");
12618
      sb.append(this.startDate);
12619
      first = false;
12620
      if (!first) sb.append(", ");
12621
      sb.append("endDate:");
12622
      sb.append(this.endDate);
12623
      first = false;
12624
      sb.append(")");
12625
      return sb.toString();
12626
    }
12627
 
12628
    public void validate() throws org.apache.thrift.TException {
12629
      // check for required fields
12630
    }
12631
 
12632
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12633
      try {
12634
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12635
      } catch (org.apache.thrift.TException te) {
12636
        throw new java.io.IOException(te);
12637
      }
12638
    }
12639
 
12640
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12641
      try {
12642
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12643
        __isset_bit_vector = new BitSet(1);
12644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12645
      } catch (org.apache.thrift.TException te) {
12646
        throw new java.io.IOException(te);
12647
      }
12648
    }
12649
 
12650
  }
12651
 
12652
  public static class getPurchaseScansByGrnDate_result implements org.apache.thrift.TBase<getPurchaseScansByGrnDate_result, getPurchaseScansByGrnDate_result._Fields>, java.io.Serializable, Cloneable   {
12653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPurchaseScansByGrnDate_result");
12654
 
12655
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
12656
 
12657
    private List<DetailedPurchaseScan> success; // required
12658
 
12659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12661
      SUCCESS((short)0, "success");
12662
 
12663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12664
 
12665
      static {
12666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12667
          byName.put(field.getFieldName(), field);
12668
        }
12669
      }
12670
 
12671
      /**
12672
       * Find the _Fields constant that matches fieldId, or null if its not found.
12673
       */
12674
      public static _Fields findByThriftId(int fieldId) {
12675
        switch(fieldId) {
12676
          case 0: // SUCCESS
12677
            return SUCCESS;
12678
          default:
12679
            return null;
12680
        }
12681
      }
12682
 
12683
      /**
12684
       * Find the _Fields constant that matches fieldId, throwing an exception
12685
       * if it is not found.
12686
       */
12687
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12688
        _Fields fields = findByThriftId(fieldId);
12689
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12690
        return fields;
12691
      }
12692
 
12693
      /**
12694
       * Find the _Fields constant that matches name, or null if its not found.
12695
       */
12696
      public static _Fields findByName(String name) {
12697
        return byName.get(name);
12698
      }
12699
 
12700
      private final short _thriftId;
12701
      private final String _fieldName;
12702
 
12703
      _Fields(short thriftId, String fieldName) {
12704
        _thriftId = thriftId;
12705
        _fieldName = fieldName;
12706
      }
12707
 
12708
      public short getThriftFieldId() {
12709
        return _thriftId;
12710
      }
12711
 
12712
      public String getFieldName() {
12713
        return _fieldName;
12714
      }
12715
    }
12716
 
12717
    // isset id assignments
12718
 
12719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12720
    static {
12721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12722
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12723
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12724
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DetailedPurchaseScan.class))));
12725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPurchaseScansByGrnDate_result.class, metaDataMap);
12727
    }
12728
 
12729
    public getPurchaseScansByGrnDate_result() {
12730
    }
12731
 
12732
    public getPurchaseScansByGrnDate_result(
12733
      List<DetailedPurchaseScan> success)
12734
    {
12735
      this();
12736
      this.success = success;
12737
    }
12738
 
12739
    /**
12740
     * Performs a deep copy on <i>other</i>.
12741
     */
12742
    public getPurchaseScansByGrnDate_result(getPurchaseScansByGrnDate_result other) {
12743
      if (other.isSetSuccess()) {
12744
        List<DetailedPurchaseScan> __this__success = new ArrayList<DetailedPurchaseScan>();
12745
        for (DetailedPurchaseScan other_element : other.success) {
12746
          __this__success.add(new DetailedPurchaseScan(other_element));
12747
        }
12748
        this.success = __this__success;
12749
      }
12750
    }
12751
 
12752
    public getPurchaseScansByGrnDate_result deepCopy() {
12753
      return new getPurchaseScansByGrnDate_result(this);
12754
    }
12755
 
12756
    @Override
12757
    public void clear() {
12758
      this.success = null;
12759
    }
12760
 
12761
    public int getSuccessSize() {
12762
      return (this.success == null) ? 0 : this.success.size();
12763
    }
12764
 
12765
    public java.util.Iterator<DetailedPurchaseScan> getSuccessIterator() {
12766
      return (this.success == null) ? null : this.success.iterator();
12767
    }
12768
 
12769
    public void addToSuccess(DetailedPurchaseScan elem) {
12770
      if (this.success == null) {
12771
        this.success = new ArrayList<DetailedPurchaseScan>();
12772
      }
12773
      this.success.add(elem);
12774
    }
12775
 
12776
    public List<DetailedPurchaseScan> getSuccess() {
12777
      return this.success;
12778
    }
12779
 
12780
    public void setSuccess(List<DetailedPurchaseScan> success) {
12781
      this.success = success;
12782
    }
12783
 
12784
    public void unsetSuccess() {
12785
      this.success = null;
12786
    }
12787
 
12788
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12789
    public boolean isSetSuccess() {
12790
      return this.success != null;
12791
    }
12792
 
12793
    public void setSuccessIsSet(boolean value) {
12794
      if (!value) {
12795
        this.success = null;
12796
      }
12797
    }
12798
 
12799
    public void setFieldValue(_Fields field, Object value) {
12800
      switch (field) {
12801
      case SUCCESS:
12802
        if (value == null) {
12803
          unsetSuccess();
12804
        } else {
12805
          setSuccess((List<DetailedPurchaseScan>)value);
12806
        }
12807
        break;
12808
 
12809
      }
12810
    }
12811
 
12812
    public Object getFieldValue(_Fields field) {
12813
      switch (field) {
12814
      case SUCCESS:
12815
        return getSuccess();
12816
 
12817
      }
12818
      throw new IllegalStateException();
12819
    }
12820
 
12821
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12822
    public boolean isSet(_Fields field) {
12823
      if (field == null) {
12824
        throw new IllegalArgumentException();
12825
      }
12826
 
12827
      switch (field) {
12828
      case SUCCESS:
12829
        return isSetSuccess();
12830
      }
12831
      throw new IllegalStateException();
12832
    }
12833
 
12834
    @Override
12835
    public boolean equals(Object that) {
12836
      if (that == null)
12837
        return false;
12838
      if (that instanceof getPurchaseScansByGrnDate_result)
12839
        return this.equals((getPurchaseScansByGrnDate_result)that);
12840
      return false;
12841
    }
12842
 
12843
    public boolean equals(getPurchaseScansByGrnDate_result that) {
12844
      if (that == null)
12845
        return false;
12846
 
12847
      boolean this_present_success = true && this.isSetSuccess();
12848
      boolean that_present_success = true && that.isSetSuccess();
12849
      if (this_present_success || that_present_success) {
12850
        if (!(this_present_success && that_present_success))
12851
          return false;
12852
        if (!this.success.equals(that.success))
12853
          return false;
12854
      }
12855
 
12856
      return true;
12857
    }
12858
 
12859
    @Override
12860
    public int hashCode() {
12861
      return 0;
12862
    }
12863
 
12864
    public int compareTo(getPurchaseScansByGrnDate_result other) {
12865
      if (!getClass().equals(other.getClass())) {
12866
        return getClass().getName().compareTo(other.getClass().getName());
12867
      }
12868
 
12869
      int lastComparison = 0;
12870
      getPurchaseScansByGrnDate_result typedOther = (getPurchaseScansByGrnDate_result)other;
12871
 
12872
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12873
      if (lastComparison != 0) {
12874
        return lastComparison;
12875
      }
12876
      if (isSetSuccess()) {
12877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12878
        if (lastComparison != 0) {
12879
          return lastComparison;
12880
        }
12881
      }
12882
      return 0;
12883
    }
12884
 
12885
    public _Fields fieldForId(int fieldId) {
12886
      return _Fields.findByThriftId(fieldId);
12887
    }
12888
 
12889
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12890
      org.apache.thrift.protocol.TField field;
12891
      iprot.readStructBegin();
12892
      while (true)
12893
      {
12894
        field = iprot.readFieldBegin();
12895
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12896
          break;
12897
        }
12898
        switch (field.id) {
12899
          case 0: // SUCCESS
12900
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12901
              {
12902
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
12903
                this.success = new ArrayList<DetailedPurchaseScan>(_list16.size);
12904
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
12905
                {
12906
                  DetailedPurchaseScan _elem18; // required
12907
                  _elem18 = new DetailedPurchaseScan();
12908
                  _elem18.read(iprot);
12909
                  this.success.add(_elem18);
12910
                }
12911
                iprot.readListEnd();
12912
              }
12913
            } else { 
12914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12915
            }
12916
            break;
12917
          default:
12918
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12919
        }
12920
        iprot.readFieldEnd();
12921
      }
12922
      iprot.readStructEnd();
12923
      validate();
12924
    }
12925
 
12926
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12927
      oprot.writeStructBegin(STRUCT_DESC);
12928
 
12929
      if (this.isSetSuccess()) {
12930
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12931
        {
12932
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
12933
          for (DetailedPurchaseScan _iter19 : this.success)
12934
          {
12935
            _iter19.write(oprot);
12936
          }
12937
          oprot.writeListEnd();
12938
        }
12939
        oprot.writeFieldEnd();
12940
      }
12941
      oprot.writeFieldStop();
12942
      oprot.writeStructEnd();
12943
    }
12944
 
12945
    @Override
12946
    public String toString() {
12947
      StringBuilder sb = new StringBuilder("getPurchaseScansByGrnDate_result(");
12948
      boolean first = true;
12949
 
12950
      sb.append("success:");
12951
      if (this.success == null) {
12952
        sb.append("null");
12953
      } else {
12954
        sb.append(this.success);
12955
      }
12956
      first = false;
12957
      sb.append(")");
12958
      return sb.toString();
12959
    }
12960
 
12961
    public void validate() throws org.apache.thrift.TException {
12962
      // check for required fields
12963
    }
12964
 
12965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12966
      try {
12967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12968
      } catch (org.apache.thrift.TException te) {
12969
        throw new java.io.IOException(te);
12970
      }
12971
    }
12972
 
12973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12974
      try {
12975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12976
      } catch (org.apache.thrift.TException te) {
12977
        throw new java.io.IOException(te);
12978
      }
12979
    }
12980
 
12981
  }
12982
 
5496 mandeep.dh 12983
  public static class fetchScansPerInvoiceNumber_args implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_args, fetchScansPerInvoiceNumber_args._Fields>, java.io.Serializable, Cloneable   {
12984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_args");
12985
 
12986
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
12987
 
12988
    private long date; // required
12989
 
12990
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12991
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12992
      DATE((short)1, "date");
12993
 
12994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12995
 
12996
      static {
12997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12998
          byName.put(field.getFieldName(), field);
12999
        }
13000
      }
13001
 
13002
      /**
13003
       * Find the _Fields constant that matches fieldId, or null if its not found.
13004
       */
13005
      public static _Fields findByThriftId(int fieldId) {
13006
        switch(fieldId) {
13007
          case 1: // DATE
13008
            return DATE;
13009
          default:
13010
            return null;
13011
        }
13012
      }
13013
 
13014
      /**
13015
       * Find the _Fields constant that matches fieldId, throwing an exception
13016
       * if it is not found.
13017
       */
13018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13019
        _Fields fields = findByThriftId(fieldId);
13020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13021
        return fields;
13022
      }
13023
 
13024
      /**
13025
       * Find the _Fields constant that matches name, or null if its not found.
13026
       */
13027
      public static _Fields findByName(String name) {
13028
        return byName.get(name);
13029
      }
13030
 
13031
      private final short _thriftId;
13032
      private final String _fieldName;
13033
 
13034
      _Fields(short thriftId, String fieldName) {
13035
        _thriftId = thriftId;
13036
        _fieldName = fieldName;
13037
      }
13038
 
13039
      public short getThriftFieldId() {
13040
        return _thriftId;
13041
      }
13042
 
13043
      public String getFieldName() {
13044
        return _fieldName;
13045
      }
13046
    }
13047
 
13048
    // isset id assignments
13049
    private static final int __DATE_ISSET_ID = 0;
13050
    private BitSet __isset_bit_vector = new BitSet(1);
13051
 
13052
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13053
    static {
13054
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13055
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13056
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_args.class, metaDataMap);
13059
    }
13060
 
13061
    public fetchScansPerInvoiceNumber_args() {
13062
    }
13063
 
13064
    public fetchScansPerInvoiceNumber_args(
13065
      long date)
13066
    {
13067
      this();
13068
      this.date = date;
13069
      setDateIsSet(true);
13070
    }
13071
 
13072
    /**
13073
     * Performs a deep copy on <i>other</i>.
13074
     */
13075
    public fetchScansPerInvoiceNumber_args(fetchScansPerInvoiceNumber_args other) {
13076
      __isset_bit_vector.clear();
13077
      __isset_bit_vector.or(other.__isset_bit_vector);
13078
      this.date = other.date;
13079
    }
13080
 
13081
    public fetchScansPerInvoiceNumber_args deepCopy() {
13082
      return new fetchScansPerInvoiceNumber_args(this);
13083
    }
13084
 
13085
    @Override
13086
    public void clear() {
13087
      setDateIsSet(false);
13088
      this.date = 0;
13089
    }
13090
 
13091
    public long getDate() {
13092
      return this.date;
13093
    }
13094
 
13095
    public void setDate(long date) {
13096
      this.date = date;
13097
      setDateIsSet(true);
13098
    }
13099
 
13100
    public void unsetDate() {
13101
      __isset_bit_vector.clear(__DATE_ISSET_ID);
13102
    }
13103
 
13104
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
13105
    public boolean isSetDate() {
13106
      return __isset_bit_vector.get(__DATE_ISSET_ID);
13107
    }
13108
 
13109
    public void setDateIsSet(boolean value) {
13110
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
13111
    }
13112
 
13113
    public void setFieldValue(_Fields field, Object value) {
13114
      switch (field) {
13115
      case DATE:
13116
        if (value == null) {
13117
          unsetDate();
13118
        } else {
13119
          setDate((Long)value);
13120
        }
13121
        break;
13122
 
13123
      }
13124
    }
13125
 
13126
    public Object getFieldValue(_Fields field) {
13127
      switch (field) {
13128
      case DATE:
13129
        return Long.valueOf(getDate());
13130
 
13131
      }
13132
      throw new IllegalStateException();
13133
    }
13134
 
13135
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13136
    public boolean isSet(_Fields field) {
13137
      if (field == null) {
13138
        throw new IllegalArgumentException();
13139
      }
13140
 
13141
      switch (field) {
13142
      case DATE:
13143
        return isSetDate();
13144
      }
13145
      throw new IllegalStateException();
13146
    }
13147
 
13148
    @Override
13149
    public boolean equals(Object that) {
13150
      if (that == null)
13151
        return false;
13152
      if (that instanceof fetchScansPerInvoiceNumber_args)
13153
        return this.equals((fetchScansPerInvoiceNumber_args)that);
13154
      return false;
13155
    }
13156
 
13157
    public boolean equals(fetchScansPerInvoiceNumber_args that) {
13158
      if (that == null)
13159
        return false;
13160
 
13161
      boolean this_present_date = true;
13162
      boolean that_present_date = true;
13163
      if (this_present_date || that_present_date) {
13164
        if (!(this_present_date && that_present_date))
13165
          return false;
13166
        if (this.date != that.date)
13167
          return false;
13168
      }
13169
 
13170
      return true;
13171
    }
13172
 
13173
    @Override
13174
    public int hashCode() {
13175
      return 0;
13176
    }
13177
 
13178
    public int compareTo(fetchScansPerInvoiceNumber_args other) {
13179
      if (!getClass().equals(other.getClass())) {
13180
        return getClass().getName().compareTo(other.getClass().getName());
13181
      }
13182
 
13183
      int lastComparison = 0;
13184
      fetchScansPerInvoiceNumber_args typedOther = (fetchScansPerInvoiceNumber_args)other;
13185
 
13186
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
13187
      if (lastComparison != 0) {
13188
        return lastComparison;
13189
      }
13190
      if (isSetDate()) {
13191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
13192
        if (lastComparison != 0) {
13193
          return lastComparison;
13194
        }
13195
      }
13196
      return 0;
13197
    }
13198
 
13199
    public _Fields fieldForId(int fieldId) {
13200
      return _Fields.findByThriftId(fieldId);
13201
    }
13202
 
13203
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13204
      org.apache.thrift.protocol.TField field;
13205
      iprot.readStructBegin();
13206
      while (true)
13207
      {
13208
        field = iprot.readFieldBegin();
13209
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13210
          break;
13211
        }
13212
        switch (field.id) {
13213
          case 1: // DATE
13214
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13215
              this.date = iprot.readI64();
13216
              setDateIsSet(true);
13217
            } else { 
13218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13219
            }
13220
            break;
13221
          default:
13222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13223
        }
13224
        iprot.readFieldEnd();
13225
      }
13226
      iprot.readStructEnd();
13227
      validate();
13228
    }
13229
 
13230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13231
      validate();
13232
 
13233
      oprot.writeStructBegin(STRUCT_DESC);
13234
      oprot.writeFieldBegin(DATE_FIELD_DESC);
13235
      oprot.writeI64(this.date);
13236
      oprot.writeFieldEnd();
13237
      oprot.writeFieldStop();
13238
      oprot.writeStructEnd();
13239
    }
13240
 
13241
    @Override
13242
    public String toString() {
13243
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_args(");
13244
      boolean first = true;
13245
 
13246
      sb.append("date:");
13247
      sb.append(this.date);
13248
      first = false;
13249
      sb.append(")");
13250
      return sb.toString();
13251
    }
13252
 
13253
    public void validate() throws org.apache.thrift.TException {
13254
      // check for required fields
13255
    }
13256
 
13257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13258
      try {
13259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13260
      } catch (org.apache.thrift.TException te) {
13261
        throw new java.io.IOException(te);
13262
      }
13263
    }
13264
 
13265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13266
      try {
5711 mandeep.dh 13267
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13268
        __isset_bit_vector = new BitSet(1);
5496 mandeep.dh 13269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13270
      } catch (org.apache.thrift.TException te) {
13271
        throw new java.io.IOException(te);
13272
      }
13273
    }
13274
 
13275
  }
13276
 
13277
  public static class fetchScansPerInvoiceNumber_result implements org.apache.thrift.TBase<fetchScansPerInvoiceNumber_result, fetchScansPerInvoiceNumber_result._Fields>, java.io.Serializable, Cloneable   {
13278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("fetchScansPerInvoiceNumber_result");
13279
 
13280
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
13281
 
13282
    private List<InvoiceScan> success; // required
13283
 
13284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13286
      SUCCESS((short)0, "success");
13287
 
13288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13289
 
13290
      static {
13291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13292
          byName.put(field.getFieldName(), field);
13293
        }
13294
      }
13295
 
13296
      /**
13297
       * Find the _Fields constant that matches fieldId, or null if its not found.
13298
       */
13299
      public static _Fields findByThriftId(int fieldId) {
13300
        switch(fieldId) {
13301
          case 0: // SUCCESS
13302
            return SUCCESS;
13303
          default:
13304
            return null;
13305
        }
13306
      }
13307
 
13308
      /**
13309
       * Find the _Fields constant that matches fieldId, throwing an exception
13310
       * if it is not found.
13311
       */
13312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13313
        _Fields fields = findByThriftId(fieldId);
13314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13315
        return fields;
13316
      }
13317
 
13318
      /**
13319
       * Find the _Fields constant that matches name, or null if its not found.
13320
       */
13321
      public static _Fields findByName(String name) {
13322
        return byName.get(name);
13323
      }
13324
 
13325
      private final short _thriftId;
13326
      private final String _fieldName;
13327
 
13328
      _Fields(short thriftId, String fieldName) {
13329
        _thriftId = thriftId;
13330
        _fieldName = fieldName;
13331
      }
13332
 
13333
      public short getThriftFieldId() {
13334
        return _thriftId;
13335
      }
13336
 
13337
      public String getFieldName() {
13338
        return _fieldName;
13339
      }
13340
    }
13341
 
13342
    // isset id assignments
13343
 
13344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13345
    static {
13346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13347
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13348
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13349
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InvoiceScan.class))));
13350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(fetchScansPerInvoiceNumber_result.class, metaDataMap);
13352
    }
13353
 
13354
    public fetchScansPerInvoiceNumber_result() {
13355
    }
13356
 
13357
    public fetchScansPerInvoiceNumber_result(
13358
      List<InvoiceScan> success)
13359
    {
13360
      this();
13361
      this.success = success;
13362
    }
13363
 
13364
    /**
13365
     * Performs a deep copy on <i>other</i>.
13366
     */
13367
    public fetchScansPerInvoiceNumber_result(fetchScansPerInvoiceNumber_result other) {
13368
      if (other.isSetSuccess()) {
13369
        List<InvoiceScan> __this__success = new ArrayList<InvoiceScan>();
13370
        for (InvoiceScan other_element : other.success) {
13371
          __this__success.add(new InvoiceScan(other_element));
13372
        }
13373
        this.success = __this__success;
13374
      }
13375
    }
13376
 
13377
    public fetchScansPerInvoiceNumber_result deepCopy() {
13378
      return new fetchScansPerInvoiceNumber_result(this);
13379
    }
13380
 
13381
    @Override
13382
    public void clear() {
13383
      this.success = null;
13384
    }
13385
 
13386
    public int getSuccessSize() {
13387
      return (this.success == null) ? 0 : this.success.size();
13388
    }
13389
 
13390
    public java.util.Iterator<InvoiceScan> getSuccessIterator() {
13391
      return (this.success == null) ? null : this.success.iterator();
13392
    }
13393
 
13394
    public void addToSuccess(InvoiceScan elem) {
13395
      if (this.success == null) {
13396
        this.success = new ArrayList<InvoiceScan>();
13397
      }
13398
      this.success.add(elem);
13399
    }
13400
 
13401
    public List<InvoiceScan> getSuccess() {
13402
      return this.success;
13403
    }
13404
 
13405
    public void setSuccess(List<InvoiceScan> success) {
13406
      this.success = success;
13407
    }
13408
 
13409
    public void unsetSuccess() {
13410
      this.success = null;
13411
    }
13412
 
13413
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13414
    public boolean isSetSuccess() {
13415
      return this.success != null;
13416
    }
13417
 
13418
    public void setSuccessIsSet(boolean value) {
13419
      if (!value) {
13420
        this.success = null;
13421
      }
13422
    }
13423
 
13424
    public void setFieldValue(_Fields field, Object value) {
13425
      switch (field) {
13426
      case SUCCESS:
13427
        if (value == null) {
13428
          unsetSuccess();
13429
        } else {
13430
          setSuccess((List<InvoiceScan>)value);
13431
        }
13432
        break;
13433
 
13434
      }
13435
    }
13436
 
13437
    public Object getFieldValue(_Fields field) {
13438
      switch (field) {
13439
      case SUCCESS:
13440
        return getSuccess();
13441
 
13442
      }
13443
      throw new IllegalStateException();
13444
    }
13445
 
13446
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13447
    public boolean isSet(_Fields field) {
13448
      if (field == null) {
13449
        throw new IllegalArgumentException();
13450
      }
13451
 
13452
      switch (field) {
13453
      case SUCCESS:
13454
        return isSetSuccess();
13455
      }
13456
      throw new IllegalStateException();
13457
    }
13458
 
13459
    @Override
13460
    public boolean equals(Object that) {
13461
      if (that == null)
13462
        return false;
13463
      if (that instanceof fetchScansPerInvoiceNumber_result)
13464
        return this.equals((fetchScansPerInvoiceNumber_result)that);
13465
      return false;
13466
    }
13467
 
13468
    public boolean equals(fetchScansPerInvoiceNumber_result that) {
13469
      if (that == null)
13470
        return false;
13471
 
13472
      boolean this_present_success = true && this.isSetSuccess();
13473
      boolean that_present_success = true && that.isSetSuccess();
13474
      if (this_present_success || that_present_success) {
13475
        if (!(this_present_success && that_present_success))
13476
          return false;
13477
        if (!this.success.equals(that.success))
13478
          return false;
13479
      }
13480
 
13481
      return true;
13482
    }
13483
 
13484
    @Override
13485
    public int hashCode() {
13486
      return 0;
13487
    }
13488
 
13489
    public int compareTo(fetchScansPerInvoiceNumber_result other) {
13490
      if (!getClass().equals(other.getClass())) {
13491
        return getClass().getName().compareTo(other.getClass().getName());
13492
      }
13493
 
13494
      int lastComparison = 0;
13495
      fetchScansPerInvoiceNumber_result typedOther = (fetchScansPerInvoiceNumber_result)other;
13496
 
13497
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13498
      if (lastComparison != 0) {
13499
        return lastComparison;
13500
      }
13501
      if (isSetSuccess()) {
13502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13503
        if (lastComparison != 0) {
13504
          return lastComparison;
13505
        }
13506
      }
13507
      return 0;
13508
    }
13509
 
13510
    public _Fields fieldForId(int fieldId) {
13511
      return _Fields.findByThriftId(fieldId);
13512
    }
13513
 
13514
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13515
      org.apache.thrift.protocol.TField field;
13516
      iprot.readStructBegin();
13517
      while (true)
13518
      {
13519
        field = iprot.readFieldBegin();
13520
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13521
          break;
13522
        }
13523
        switch (field.id) {
13524
          case 0: // SUCCESS
13525
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13526
              {
7210 amar.kumar 13527
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
13528
                this.success = new ArrayList<InvoiceScan>(_list20.size);
13529
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5496 mandeep.dh 13530
                {
7210 amar.kumar 13531
                  InvoiceScan _elem22; // required
13532
                  _elem22 = new InvoiceScan();
13533
                  _elem22.read(iprot);
13534
                  this.success.add(_elem22);
5496 mandeep.dh 13535
                }
13536
                iprot.readListEnd();
13537
              }
13538
            } else { 
13539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13540
            }
13541
            break;
13542
          default:
13543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13544
        }
13545
        iprot.readFieldEnd();
13546
      }
13547
      iprot.readStructEnd();
13548
      validate();
13549
    }
13550
 
13551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13552
      oprot.writeStructBegin(STRUCT_DESC);
13553
 
13554
      if (this.isSetSuccess()) {
13555
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13556
        {
13557
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 13558
          for (InvoiceScan _iter23 : this.success)
5496 mandeep.dh 13559
          {
7210 amar.kumar 13560
            _iter23.write(oprot);
5496 mandeep.dh 13561
          }
13562
          oprot.writeListEnd();
13563
        }
13564
        oprot.writeFieldEnd();
13565
      }
13566
      oprot.writeFieldStop();
13567
      oprot.writeStructEnd();
13568
    }
13569
 
13570
    @Override
13571
    public String toString() {
13572
      StringBuilder sb = new StringBuilder("fetchScansPerInvoiceNumber_result(");
13573
      boolean first = true;
13574
 
13575
      sb.append("success:");
13576
      if (this.success == null) {
13577
        sb.append("null");
13578
      } else {
13579
        sb.append(this.success);
13580
      }
13581
      first = false;
13582
      sb.append(")");
13583
      return sb.toString();
13584
    }
13585
 
13586
    public void validate() throws org.apache.thrift.TException {
13587
      // check for required fields
13588
    }
13589
 
13590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13591
      try {
13592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13593
      } catch (org.apache.thrift.TException te) {
13594
        throw new java.io.IOException(te);
13595
      }
13596
    }
13597
 
13598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13599
      try {
13600
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13601
      } catch (org.apache.thrift.TException te) {
13602
        throw new java.io.IOException(te);
13603
      }
13604
    }
13605
 
13606
  }
13607
 
5620 mandeep.dh 13608
  public static class getInventoryItemFromOrder_args implements org.apache.thrift.TBase<getInventoryItemFromOrder_args, getInventoryItemFromOrder_args._Fields>, java.io.Serializable, Cloneable   {
13609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_args");
13610
 
13611
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
13612
 
13613
    private long orderId; // required
13614
 
13615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13616
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13617
      ORDER_ID((short)1, "orderId");
13618
 
13619
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13620
 
13621
      static {
13622
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13623
          byName.put(field.getFieldName(), field);
13624
        }
13625
      }
13626
 
13627
      /**
13628
       * Find the _Fields constant that matches fieldId, or null if its not found.
13629
       */
13630
      public static _Fields findByThriftId(int fieldId) {
13631
        switch(fieldId) {
13632
          case 1: // ORDER_ID
13633
            return ORDER_ID;
13634
          default:
13635
            return null;
13636
        }
13637
      }
13638
 
13639
      /**
13640
       * Find the _Fields constant that matches fieldId, throwing an exception
13641
       * if it is not found.
13642
       */
13643
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13644
        _Fields fields = findByThriftId(fieldId);
13645
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13646
        return fields;
13647
      }
13648
 
13649
      /**
13650
       * Find the _Fields constant that matches name, or null if its not found.
13651
       */
13652
      public static _Fields findByName(String name) {
13653
        return byName.get(name);
13654
      }
13655
 
13656
      private final short _thriftId;
13657
      private final String _fieldName;
13658
 
13659
      _Fields(short thriftId, String fieldName) {
13660
        _thriftId = thriftId;
13661
        _fieldName = fieldName;
13662
      }
13663
 
13664
      public short getThriftFieldId() {
13665
        return _thriftId;
13666
      }
13667
 
13668
      public String getFieldName() {
13669
        return _fieldName;
13670
      }
13671
    }
13672
 
13673
    // isset id assignments
13674
    private static final int __ORDERID_ISSET_ID = 0;
13675
    private BitSet __isset_bit_vector = new BitSet(1);
13676
 
13677
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13678
    static {
13679
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13680
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13681
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13682
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13683
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_args.class, metaDataMap);
13684
    }
13685
 
13686
    public getInventoryItemFromOrder_args() {
13687
    }
13688
 
13689
    public getInventoryItemFromOrder_args(
13690
      long orderId)
13691
    {
13692
      this();
13693
      this.orderId = orderId;
13694
      setOrderIdIsSet(true);
13695
    }
13696
 
13697
    /**
13698
     * Performs a deep copy on <i>other</i>.
13699
     */
13700
    public getInventoryItemFromOrder_args(getInventoryItemFromOrder_args other) {
13701
      __isset_bit_vector.clear();
13702
      __isset_bit_vector.or(other.__isset_bit_vector);
13703
      this.orderId = other.orderId;
13704
    }
13705
 
13706
    public getInventoryItemFromOrder_args deepCopy() {
13707
      return new getInventoryItemFromOrder_args(this);
13708
    }
13709
 
13710
    @Override
13711
    public void clear() {
13712
      setOrderIdIsSet(false);
13713
      this.orderId = 0;
13714
    }
13715
 
13716
    public long getOrderId() {
13717
      return this.orderId;
13718
    }
13719
 
13720
    public void setOrderId(long orderId) {
13721
      this.orderId = orderId;
13722
      setOrderIdIsSet(true);
13723
    }
13724
 
13725
    public void unsetOrderId() {
13726
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
13727
    }
13728
 
13729
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
13730
    public boolean isSetOrderId() {
13731
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
13732
    }
13733
 
13734
    public void setOrderIdIsSet(boolean value) {
13735
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
13736
    }
13737
 
13738
    public void setFieldValue(_Fields field, Object value) {
13739
      switch (field) {
13740
      case ORDER_ID:
13741
        if (value == null) {
13742
          unsetOrderId();
13743
        } else {
13744
          setOrderId((Long)value);
13745
        }
13746
        break;
13747
 
13748
      }
13749
    }
13750
 
13751
    public Object getFieldValue(_Fields field) {
13752
      switch (field) {
13753
      case ORDER_ID:
13754
        return Long.valueOf(getOrderId());
13755
 
13756
      }
13757
      throw new IllegalStateException();
13758
    }
13759
 
13760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13761
    public boolean isSet(_Fields field) {
13762
      if (field == null) {
13763
        throw new IllegalArgumentException();
13764
      }
13765
 
13766
      switch (field) {
13767
      case ORDER_ID:
13768
        return isSetOrderId();
13769
      }
13770
      throw new IllegalStateException();
13771
    }
13772
 
13773
    @Override
13774
    public boolean equals(Object that) {
13775
      if (that == null)
13776
        return false;
13777
      if (that instanceof getInventoryItemFromOrder_args)
13778
        return this.equals((getInventoryItemFromOrder_args)that);
13779
      return false;
13780
    }
13781
 
13782
    public boolean equals(getInventoryItemFromOrder_args that) {
13783
      if (that == null)
13784
        return false;
13785
 
13786
      boolean this_present_orderId = true;
13787
      boolean that_present_orderId = true;
13788
      if (this_present_orderId || that_present_orderId) {
13789
        if (!(this_present_orderId && that_present_orderId))
13790
          return false;
13791
        if (this.orderId != that.orderId)
13792
          return false;
13793
      }
13794
 
13795
      return true;
13796
    }
13797
 
13798
    @Override
13799
    public int hashCode() {
13800
      return 0;
13801
    }
13802
 
13803
    public int compareTo(getInventoryItemFromOrder_args other) {
13804
      if (!getClass().equals(other.getClass())) {
13805
        return getClass().getName().compareTo(other.getClass().getName());
13806
      }
13807
 
13808
      int lastComparison = 0;
13809
      getInventoryItemFromOrder_args typedOther = (getInventoryItemFromOrder_args)other;
13810
 
13811
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
13812
      if (lastComparison != 0) {
13813
        return lastComparison;
13814
      }
13815
      if (isSetOrderId()) {
13816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
13817
        if (lastComparison != 0) {
13818
          return lastComparison;
13819
        }
13820
      }
13821
      return 0;
13822
    }
13823
 
13824
    public _Fields fieldForId(int fieldId) {
13825
      return _Fields.findByThriftId(fieldId);
13826
    }
13827
 
13828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13829
      org.apache.thrift.protocol.TField field;
13830
      iprot.readStructBegin();
13831
      while (true)
13832
      {
13833
        field = iprot.readFieldBegin();
13834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13835
          break;
13836
        }
13837
        switch (field.id) {
13838
          case 1: // ORDER_ID
13839
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13840
              this.orderId = iprot.readI64();
13841
              setOrderIdIsSet(true);
13842
            } else { 
13843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13844
            }
13845
            break;
13846
          default:
13847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13848
        }
13849
        iprot.readFieldEnd();
13850
      }
13851
      iprot.readStructEnd();
13852
      validate();
13853
    }
13854
 
13855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13856
      validate();
13857
 
13858
      oprot.writeStructBegin(STRUCT_DESC);
13859
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
13860
      oprot.writeI64(this.orderId);
13861
      oprot.writeFieldEnd();
13862
      oprot.writeFieldStop();
13863
      oprot.writeStructEnd();
13864
    }
13865
 
13866
    @Override
13867
    public String toString() {
13868
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_args(");
13869
      boolean first = true;
13870
 
13871
      sb.append("orderId:");
13872
      sb.append(this.orderId);
13873
      first = false;
13874
      sb.append(")");
13875
      return sb.toString();
13876
    }
13877
 
13878
    public void validate() throws org.apache.thrift.TException {
13879
      // check for required fields
13880
    }
13881
 
13882
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13883
      try {
13884
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13885
      } catch (org.apache.thrift.TException te) {
13886
        throw new java.io.IOException(te);
13887
      }
13888
    }
13889
 
13890
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13891
      try {
13892
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13893
        __isset_bit_vector = new BitSet(1);
13894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13895
      } catch (org.apache.thrift.TException te) {
13896
        throw new java.io.IOException(te);
13897
      }
13898
    }
13899
 
13900
  }
13901
 
13902
  public static class getInventoryItemFromOrder_result implements org.apache.thrift.TBase<getInventoryItemFromOrder_result, getInventoryItemFromOrder_result._Fields>, java.io.Serializable, Cloneable   {
13903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryItemFromOrder_result");
13904
 
13905
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
13906
    private static final org.apache.thrift.protocol.TField WE_FIELD_DESC = new org.apache.thrift.protocol.TField("we", org.apache.thrift.protocol.TType.STRUCT, (short)1);
13907
 
13908
    private InventoryItem success; // required
13909
    private WarehouseServiceException we; // required
13910
 
13911
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13912
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13913
      SUCCESS((short)0, "success"),
13914
      WE((short)1, "we");
13915
 
13916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13917
 
13918
      static {
13919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13920
          byName.put(field.getFieldName(), field);
13921
        }
13922
      }
13923
 
13924
      /**
13925
       * Find the _Fields constant that matches fieldId, or null if its not found.
13926
       */
13927
      public static _Fields findByThriftId(int fieldId) {
13928
        switch(fieldId) {
13929
          case 0: // SUCCESS
13930
            return SUCCESS;
13931
          case 1: // WE
13932
            return WE;
13933
          default:
13934
            return null;
13935
        }
13936
      }
13937
 
13938
      /**
13939
       * Find the _Fields constant that matches fieldId, throwing an exception
13940
       * if it is not found.
13941
       */
13942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13943
        _Fields fields = findByThriftId(fieldId);
13944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13945
        return fields;
13946
      }
13947
 
13948
      /**
13949
       * Find the _Fields constant that matches name, or null if its not found.
13950
       */
13951
      public static _Fields findByName(String name) {
13952
        return byName.get(name);
13953
      }
13954
 
13955
      private final short _thriftId;
13956
      private final String _fieldName;
13957
 
13958
      _Fields(short thriftId, String fieldName) {
13959
        _thriftId = thriftId;
13960
        _fieldName = fieldName;
13961
      }
13962
 
13963
      public short getThriftFieldId() {
13964
        return _thriftId;
13965
      }
13966
 
13967
      public String getFieldName() {
13968
        return _fieldName;
13969
      }
13970
    }
13971
 
13972
    // isset id assignments
13973
 
13974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13975
    static {
13976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13977
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13978
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
13979
      tmpMap.put(_Fields.WE, new org.apache.thrift.meta_data.FieldMetaData("we", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13980
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13981
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13982
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryItemFromOrder_result.class, metaDataMap);
13983
    }
13984
 
13985
    public getInventoryItemFromOrder_result() {
13986
    }
13987
 
13988
    public getInventoryItemFromOrder_result(
13989
      InventoryItem success,
13990
      WarehouseServiceException we)
13991
    {
13992
      this();
13993
      this.success = success;
13994
      this.we = we;
13995
    }
13996
 
13997
    /**
13998
     * Performs a deep copy on <i>other</i>.
13999
     */
14000
    public getInventoryItemFromOrder_result(getInventoryItemFromOrder_result other) {
14001
      if (other.isSetSuccess()) {
14002
        this.success = new InventoryItem(other.success);
14003
      }
14004
      if (other.isSetWe()) {
14005
        this.we = new WarehouseServiceException(other.we);
14006
      }
14007
    }
14008
 
14009
    public getInventoryItemFromOrder_result deepCopy() {
14010
      return new getInventoryItemFromOrder_result(this);
14011
    }
14012
 
14013
    @Override
14014
    public void clear() {
14015
      this.success = null;
14016
      this.we = null;
14017
    }
14018
 
14019
    public InventoryItem getSuccess() {
14020
      return this.success;
14021
    }
14022
 
14023
    public void setSuccess(InventoryItem success) {
14024
      this.success = success;
14025
    }
14026
 
14027
    public void unsetSuccess() {
14028
      this.success = null;
14029
    }
14030
 
14031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14032
    public boolean isSetSuccess() {
14033
      return this.success != null;
14034
    }
14035
 
14036
    public void setSuccessIsSet(boolean value) {
14037
      if (!value) {
14038
        this.success = null;
14039
      }
14040
    }
14041
 
14042
    public WarehouseServiceException getWe() {
14043
      return this.we;
14044
    }
14045
 
14046
    public void setWe(WarehouseServiceException we) {
14047
      this.we = we;
14048
    }
14049
 
14050
    public void unsetWe() {
14051
      this.we = null;
14052
    }
14053
 
14054
    /** Returns true if field we is set (has been assigned a value) and false otherwise */
14055
    public boolean isSetWe() {
14056
      return this.we != null;
14057
    }
14058
 
14059
    public void setWeIsSet(boolean value) {
14060
      if (!value) {
14061
        this.we = null;
14062
      }
14063
    }
14064
 
14065
    public void setFieldValue(_Fields field, Object value) {
14066
      switch (field) {
14067
      case SUCCESS:
14068
        if (value == null) {
14069
          unsetSuccess();
14070
        } else {
14071
          setSuccess((InventoryItem)value);
14072
        }
14073
        break;
14074
 
14075
      case WE:
14076
        if (value == null) {
14077
          unsetWe();
14078
        } else {
14079
          setWe((WarehouseServiceException)value);
14080
        }
14081
        break;
14082
 
14083
      }
14084
    }
14085
 
14086
    public Object getFieldValue(_Fields field) {
14087
      switch (field) {
14088
      case SUCCESS:
14089
        return getSuccess();
14090
 
14091
      case WE:
14092
        return getWe();
14093
 
14094
      }
14095
      throw new IllegalStateException();
14096
    }
14097
 
14098
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14099
    public boolean isSet(_Fields field) {
14100
      if (field == null) {
14101
        throw new IllegalArgumentException();
14102
      }
14103
 
14104
      switch (field) {
14105
      case SUCCESS:
14106
        return isSetSuccess();
14107
      case WE:
14108
        return isSetWe();
14109
      }
14110
      throw new IllegalStateException();
14111
    }
14112
 
14113
    @Override
14114
    public boolean equals(Object that) {
14115
      if (that == null)
14116
        return false;
14117
      if (that instanceof getInventoryItemFromOrder_result)
14118
        return this.equals((getInventoryItemFromOrder_result)that);
14119
      return false;
14120
    }
14121
 
14122
    public boolean equals(getInventoryItemFromOrder_result that) {
14123
      if (that == null)
14124
        return false;
14125
 
14126
      boolean this_present_success = true && this.isSetSuccess();
14127
      boolean that_present_success = true && that.isSetSuccess();
14128
      if (this_present_success || that_present_success) {
14129
        if (!(this_present_success && that_present_success))
14130
          return false;
14131
        if (!this.success.equals(that.success))
14132
          return false;
14133
      }
14134
 
14135
      boolean this_present_we = true && this.isSetWe();
14136
      boolean that_present_we = true && that.isSetWe();
14137
      if (this_present_we || that_present_we) {
14138
        if (!(this_present_we && that_present_we))
14139
          return false;
14140
        if (!this.we.equals(that.we))
14141
          return false;
14142
      }
14143
 
14144
      return true;
14145
    }
14146
 
14147
    @Override
14148
    public int hashCode() {
14149
      return 0;
14150
    }
14151
 
14152
    public int compareTo(getInventoryItemFromOrder_result other) {
14153
      if (!getClass().equals(other.getClass())) {
14154
        return getClass().getName().compareTo(other.getClass().getName());
14155
      }
14156
 
14157
      int lastComparison = 0;
14158
      getInventoryItemFromOrder_result typedOther = (getInventoryItemFromOrder_result)other;
14159
 
14160
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14161
      if (lastComparison != 0) {
14162
        return lastComparison;
14163
      }
14164
      if (isSetSuccess()) {
14165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14166
        if (lastComparison != 0) {
14167
          return lastComparison;
14168
        }
14169
      }
14170
      lastComparison = Boolean.valueOf(isSetWe()).compareTo(typedOther.isSetWe());
14171
      if (lastComparison != 0) {
14172
        return lastComparison;
14173
      }
14174
      if (isSetWe()) {
14175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.we, typedOther.we);
14176
        if (lastComparison != 0) {
14177
          return lastComparison;
14178
        }
14179
      }
14180
      return 0;
14181
    }
14182
 
14183
    public _Fields fieldForId(int fieldId) {
14184
      return _Fields.findByThriftId(fieldId);
14185
    }
14186
 
14187
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14188
      org.apache.thrift.protocol.TField field;
14189
      iprot.readStructBegin();
14190
      while (true)
14191
      {
14192
        field = iprot.readFieldBegin();
14193
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14194
          break;
14195
        }
14196
        switch (field.id) {
14197
          case 0: // SUCCESS
14198
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14199
              this.success = new InventoryItem();
14200
              this.success.read(iprot);
14201
            } else { 
14202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14203
            }
14204
            break;
14205
          case 1: // WE
14206
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14207
              this.we = new WarehouseServiceException();
14208
              this.we.read(iprot);
14209
            } else { 
14210
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14211
            }
14212
            break;
14213
          default:
14214
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14215
        }
14216
        iprot.readFieldEnd();
14217
      }
14218
      iprot.readStructEnd();
14219
      validate();
14220
    }
14221
 
14222
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14223
      oprot.writeStructBegin(STRUCT_DESC);
14224
 
14225
      if (this.isSetSuccess()) {
14226
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14227
        this.success.write(oprot);
14228
        oprot.writeFieldEnd();
14229
      } else if (this.isSetWe()) {
14230
        oprot.writeFieldBegin(WE_FIELD_DESC);
14231
        this.we.write(oprot);
14232
        oprot.writeFieldEnd();
14233
      }
14234
      oprot.writeFieldStop();
14235
      oprot.writeStructEnd();
14236
    }
14237
 
14238
    @Override
14239
    public String toString() {
14240
      StringBuilder sb = new StringBuilder("getInventoryItemFromOrder_result(");
14241
      boolean first = true;
14242
 
14243
      sb.append("success:");
14244
      if (this.success == null) {
14245
        sb.append("null");
14246
      } else {
14247
        sb.append(this.success);
14248
      }
14249
      first = false;
14250
      if (!first) sb.append(", ");
14251
      sb.append("we:");
14252
      if (this.we == null) {
14253
        sb.append("null");
14254
      } else {
14255
        sb.append(this.we);
14256
      }
14257
      first = false;
14258
      sb.append(")");
14259
      return sb.toString();
14260
    }
14261
 
14262
    public void validate() throws org.apache.thrift.TException {
14263
      // check for required fields
14264
    }
14265
 
14266
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14267
      try {
14268
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14269
      } catch (org.apache.thrift.TException te) {
14270
        throw new java.io.IOException(te);
14271
      }
14272
    }
14273
 
14274
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14275
      try {
14276
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14277
      } catch (org.apache.thrift.TException te) {
14278
        throw new java.io.IOException(te);
14279
      }
14280
    }
14281
 
14282
  }
14283
 
5711 mandeep.dh 14284
  public static class getInventoryAge_args implements org.apache.thrift.TBase<getInventoryAge_args, getInventoryAge_args._Fields>, java.io.Serializable, Cloneable   {
14285
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_args");
14286
 
14287
 
14288
 
14289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14291
;
14292
 
14293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14294
 
14295
      static {
14296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14297
          byName.put(field.getFieldName(), field);
14298
        }
14299
      }
14300
 
14301
      /**
14302
       * Find the _Fields constant that matches fieldId, or null if its not found.
14303
       */
14304
      public static _Fields findByThriftId(int fieldId) {
14305
        switch(fieldId) {
14306
          default:
14307
            return null;
14308
        }
14309
      }
14310
 
14311
      /**
14312
       * Find the _Fields constant that matches fieldId, throwing an exception
14313
       * if it is not found.
14314
       */
14315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14316
        _Fields fields = findByThriftId(fieldId);
14317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14318
        return fields;
14319
      }
14320
 
14321
      /**
14322
       * Find the _Fields constant that matches name, or null if its not found.
14323
       */
14324
      public static _Fields findByName(String name) {
14325
        return byName.get(name);
14326
      }
14327
 
14328
      private final short _thriftId;
14329
      private final String _fieldName;
14330
 
14331
      _Fields(short thriftId, String fieldName) {
14332
        _thriftId = thriftId;
14333
        _fieldName = fieldName;
14334
      }
14335
 
14336
      public short getThriftFieldId() {
14337
        return _thriftId;
14338
      }
14339
 
14340
      public String getFieldName() {
14341
        return _fieldName;
14342
      }
14343
    }
14344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14345
    static {
14346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14347
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14348
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_args.class, metaDataMap);
14349
    }
14350
 
14351
    public getInventoryAge_args() {
14352
    }
14353
 
14354
    /**
14355
     * Performs a deep copy on <i>other</i>.
14356
     */
14357
    public getInventoryAge_args(getInventoryAge_args other) {
14358
    }
14359
 
14360
    public getInventoryAge_args deepCopy() {
14361
      return new getInventoryAge_args(this);
14362
    }
14363
 
14364
    @Override
14365
    public void clear() {
14366
    }
14367
 
14368
    public void setFieldValue(_Fields field, Object value) {
14369
      switch (field) {
14370
      }
14371
    }
14372
 
14373
    public Object getFieldValue(_Fields field) {
14374
      switch (field) {
14375
      }
14376
      throw new IllegalStateException();
14377
    }
14378
 
14379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14380
    public boolean isSet(_Fields field) {
14381
      if (field == null) {
14382
        throw new IllegalArgumentException();
14383
      }
14384
 
14385
      switch (field) {
14386
      }
14387
      throw new IllegalStateException();
14388
    }
14389
 
14390
    @Override
14391
    public boolean equals(Object that) {
14392
      if (that == null)
14393
        return false;
14394
      if (that instanceof getInventoryAge_args)
14395
        return this.equals((getInventoryAge_args)that);
14396
      return false;
14397
    }
14398
 
14399
    public boolean equals(getInventoryAge_args that) {
14400
      if (that == null)
14401
        return false;
14402
 
14403
      return true;
14404
    }
14405
 
14406
    @Override
14407
    public int hashCode() {
14408
      return 0;
14409
    }
14410
 
14411
    public int compareTo(getInventoryAge_args other) {
14412
      if (!getClass().equals(other.getClass())) {
14413
        return getClass().getName().compareTo(other.getClass().getName());
14414
      }
14415
 
14416
      int lastComparison = 0;
14417
      getInventoryAge_args typedOther = (getInventoryAge_args)other;
14418
 
14419
      return 0;
14420
    }
14421
 
14422
    public _Fields fieldForId(int fieldId) {
14423
      return _Fields.findByThriftId(fieldId);
14424
    }
14425
 
14426
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14427
      org.apache.thrift.protocol.TField field;
14428
      iprot.readStructBegin();
14429
      while (true)
14430
      {
14431
        field = iprot.readFieldBegin();
14432
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14433
          break;
14434
        }
14435
        switch (field.id) {
14436
          default:
14437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14438
        }
14439
        iprot.readFieldEnd();
14440
      }
14441
      iprot.readStructEnd();
14442
      validate();
14443
    }
14444
 
14445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14446
      validate();
14447
 
14448
      oprot.writeStructBegin(STRUCT_DESC);
14449
      oprot.writeFieldStop();
14450
      oprot.writeStructEnd();
14451
    }
14452
 
14453
    @Override
14454
    public String toString() {
14455
      StringBuilder sb = new StringBuilder("getInventoryAge_args(");
14456
      boolean first = true;
14457
 
14458
      sb.append(")");
14459
      return sb.toString();
14460
    }
14461
 
14462
    public void validate() throws org.apache.thrift.TException {
14463
      // check for required fields
14464
    }
14465
 
14466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14467
      try {
14468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14469
      } catch (org.apache.thrift.TException te) {
14470
        throw new java.io.IOException(te);
14471
      }
14472
    }
14473
 
14474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14475
      try {
14476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14477
      } catch (org.apache.thrift.TException te) {
14478
        throw new java.io.IOException(te);
14479
      }
14480
    }
14481
 
14482
  }
14483
 
14484
  public static class getInventoryAge_result implements org.apache.thrift.TBase<getInventoryAge_result, getInventoryAge_result._Fields>, java.io.Serializable, Cloneable   {
14485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryAge_result");
14486
 
14487
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
14488
 
14489
    private List<InventoryAge> success; // required
14490
 
14491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14493
      SUCCESS((short)0, "success");
14494
 
14495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14496
 
14497
      static {
14498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14499
          byName.put(field.getFieldName(), field);
14500
        }
14501
      }
14502
 
14503
      /**
14504
       * Find the _Fields constant that matches fieldId, or null if its not found.
14505
       */
14506
      public static _Fields findByThriftId(int fieldId) {
14507
        switch(fieldId) {
14508
          case 0: // SUCCESS
14509
            return SUCCESS;
14510
          default:
14511
            return null;
14512
        }
14513
      }
14514
 
14515
      /**
14516
       * Find the _Fields constant that matches fieldId, throwing an exception
14517
       * if it is not found.
14518
       */
14519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14520
        _Fields fields = findByThriftId(fieldId);
14521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14522
        return fields;
14523
      }
14524
 
14525
      /**
14526
       * Find the _Fields constant that matches name, or null if its not found.
14527
       */
14528
      public static _Fields findByName(String name) {
14529
        return byName.get(name);
14530
      }
14531
 
14532
      private final short _thriftId;
14533
      private final String _fieldName;
14534
 
14535
      _Fields(short thriftId, String fieldName) {
14536
        _thriftId = thriftId;
14537
        _fieldName = fieldName;
14538
      }
14539
 
14540
      public short getThriftFieldId() {
14541
        return _thriftId;
14542
      }
14543
 
14544
      public String getFieldName() {
14545
        return _fieldName;
14546
      }
14547
    }
14548
 
14549
    // isset id assignments
14550
 
14551
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14552
    static {
14553
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14554
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14555
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14556
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAge.class))));
14557
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14558
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryAge_result.class, metaDataMap);
14559
    }
14560
 
14561
    public getInventoryAge_result() {
14562
    }
14563
 
14564
    public getInventoryAge_result(
14565
      List<InventoryAge> success)
14566
    {
14567
      this();
14568
      this.success = success;
14569
    }
14570
 
14571
    /**
14572
     * Performs a deep copy on <i>other</i>.
14573
     */
14574
    public getInventoryAge_result(getInventoryAge_result other) {
14575
      if (other.isSetSuccess()) {
14576
        List<InventoryAge> __this__success = new ArrayList<InventoryAge>();
14577
        for (InventoryAge other_element : other.success) {
14578
          __this__success.add(new InventoryAge(other_element));
14579
        }
14580
        this.success = __this__success;
14581
      }
14582
    }
14583
 
14584
    public getInventoryAge_result deepCopy() {
14585
      return new getInventoryAge_result(this);
14586
    }
14587
 
14588
    @Override
14589
    public void clear() {
14590
      this.success = null;
14591
    }
14592
 
14593
    public int getSuccessSize() {
14594
      return (this.success == null) ? 0 : this.success.size();
14595
    }
14596
 
14597
    public java.util.Iterator<InventoryAge> getSuccessIterator() {
14598
      return (this.success == null) ? null : this.success.iterator();
14599
    }
14600
 
14601
    public void addToSuccess(InventoryAge elem) {
14602
      if (this.success == null) {
14603
        this.success = new ArrayList<InventoryAge>();
14604
      }
14605
      this.success.add(elem);
14606
    }
14607
 
14608
    public List<InventoryAge> getSuccess() {
14609
      return this.success;
14610
    }
14611
 
14612
    public void setSuccess(List<InventoryAge> success) {
14613
      this.success = success;
14614
    }
14615
 
14616
    public void unsetSuccess() {
14617
      this.success = null;
14618
    }
14619
 
14620
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14621
    public boolean isSetSuccess() {
14622
      return this.success != null;
14623
    }
14624
 
14625
    public void setSuccessIsSet(boolean value) {
14626
      if (!value) {
14627
        this.success = null;
14628
      }
14629
    }
14630
 
14631
    public void setFieldValue(_Fields field, Object value) {
14632
      switch (field) {
14633
      case SUCCESS:
14634
        if (value == null) {
14635
          unsetSuccess();
14636
        } else {
14637
          setSuccess((List<InventoryAge>)value);
14638
        }
14639
        break;
14640
 
14641
      }
14642
    }
14643
 
14644
    public Object getFieldValue(_Fields field) {
14645
      switch (field) {
14646
      case SUCCESS:
14647
        return getSuccess();
14648
 
14649
      }
14650
      throw new IllegalStateException();
14651
    }
14652
 
14653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14654
    public boolean isSet(_Fields field) {
14655
      if (field == null) {
14656
        throw new IllegalArgumentException();
14657
      }
14658
 
14659
      switch (field) {
14660
      case SUCCESS:
14661
        return isSetSuccess();
14662
      }
14663
      throw new IllegalStateException();
14664
    }
14665
 
14666
    @Override
14667
    public boolean equals(Object that) {
14668
      if (that == null)
14669
        return false;
14670
      if (that instanceof getInventoryAge_result)
14671
        return this.equals((getInventoryAge_result)that);
14672
      return false;
14673
    }
14674
 
14675
    public boolean equals(getInventoryAge_result that) {
14676
      if (that == null)
14677
        return false;
14678
 
14679
      boolean this_present_success = true && this.isSetSuccess();
14680
      boolean that_present_success = true && that.isSetSuccess();
14681
      if (this_present_success || that_present_success) {
14682
        if (!(this_present_success && that_present_success))
14683
          return false;
14684
        if (!this.success.equals(that.success))
14685
          return false;
14686
      }
14687
 
14688
      return true;
14689
    }
14690
 
14691
    @Override
14692
    public int hashCode() {
14693
      return 0;
14694
    }
14695
 
14696
    public int compareTo(getInventoryAge_result other) {
14697
      if (!getClass().equals(other.getClass())) {
14698
        return getClass().getName().compareTo(other.getClass().getName());
14699
      }
14700
 
14701
      int lastComparison = 0;
14702
      getInventoryAge_result typedOther = (getInventoryAge_result)other;
14703
 
14704
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14705
      if (lastComparison != 0) {
14706
        return lastComparison;
14707
      }
14708
      if (isSetSuccess()) {
14709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14710
        if (lastComparison != 0) {
14711
          return lastComparison;
14712
        }
14713
      }
14714
      return 0;
14715
    }
14716
 
14717
    public _Fields fieldForId(int fieldId) {
14718
      return _Fields.findByThriftId(fieldId);
14719
    }
14720
 
14721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14722
      org.apache.thrift.protocol.TField field;
14723
      iprot.readStructBegin();
14724
      while (true)
14725
      {
14726
        field = iprot.readFieldBegin();
14727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14728
          break;
14729
        }
14730
        switch (field.id) {
14731
          case 0: // SUCCESS
14732
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14733
              {
7210 amar.kumar 14734
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
14735
                this.success = new ArrayList<InventoryAge>(_list24.size);
14736
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
5711 mandeep.dh 14737
                {
7210 amar.kumar 14738
                  InventoryAge _elem26; // required
14739
                  _elem26 = new InventoryAge();
14740
                  _elem26.read(iprot);
14741
                  this.success.add(_elem26);
5711 mandeep.dh 14742
                }
14743
                iprot.readListEnd();
14744
              }
14745
            } else { 
14746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14747
            }
14748
            break;
14749
          default:
14750
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14751
        }
14752
        iprot.readFieldEnd();
14753
      }
14754
      iprot.readStructEnd();
14755
      validate();
14756
    }
14757
 
14758
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14759
      oprot.writeStructBegin(STRUCT_DESC);
14760
 
14761
      if (this.isSetSuccess()) {
14762
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14763
        {
14764
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 14765
          for (InventoryAge _iter27 : this.success)
5711 mandeep.dh 14766
          {
7210 amar.kumar 14767
            _iter27.write(oprot);
5711 mandeep.dh 14768
          }
14769
          oprot.writeListEnd();
14770
        }
14771
        oprot.writeFieldEnd();
14772
      }
14773
      oprot.writeFieldStop();
14774
      oprot.writeStructEnd();
14775
    }
14776
 
14777
    @Override
14778
    public String toString() {
14779
      StringBuilder sb = new StringBuilder("getInventoryAge_result(");
14780
      boolean first = true;
14781
 
14782
      sb.append("success:");
14783
      if (this.success == null) {
14784
        sb.append("null");
14785
      } else {
14786
        sb.append(this.success);
14787
      }
14788
      first = false;
14789
      sb.append(")");
14790
      return sb.toString();
14791
    }
14792
 
14793
    public void validate() throws org.apache.thrift.TException {
14794
      // check for required fields
14795
    }
14796
 
14797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14798
      try {
14799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14800
      } catch (org.apache.thrift.TException te) {
14801
        throw new java.io.IOException(te);
14802
      }
14803
    }
14804
 
14805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14806
      try {
14807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14808
      } catch (org.apache.thrift.TException te) {
14809
        throw new java.io.IOException(te);
14810
      }
14811
    }
14812
 
14813
  }
14814
 
6322 amar.kumar 14815
  public static class getInventoryScansForItem_args implements org.apache.thrift.TBase<getInventoryScansForItem_args, getInventoryScansForItem_args._Fields>, java.io.Serializable, Cloneable   {
14816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_args");
14817
 
14818
    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)1);
14819
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)2);
14820
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)3);
14821
 
14822
    private long itemId; // required
14823
    private long fromDate; // required
14824
    private long toDate; // required
14825
 
14826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14828
      ITEM_ID((short)1, "itemId"),
14829
      FROM_DATE((short)2, "fromDate"),
14830
      TO_DATE((short)3, "toDate");
14831
 
14832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14833
 
14834
      static {
14835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14836
          byName.put(field.getFieldName(), field);
14837
        }
14838
      }
14839
 
14840
      /**
14841
       * Find the _Fields constant that matches fieldId, or null if its not found.
14842
       */
14843
      public static _Fields findByThriftId(int fieldId) {
14844
        switch(fieldId) {
14845
          case 1: // ITEM_ID
14846
            return ITEM_ID;
14847
          case 2: // FROM_DATE
14848
            return FROM_DATE;
14849
          case 3: // TO_DATE
14850
            return TO_DATE;
14851
          default:
14852
            return null;
14853
        }
14854
      }
14855
 
14856
      /**
14857
       * Find the _Fields constant that matches fieldId, throwing an exception
14858
       * if it is not found.
14859
       */
14860
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14861
        _Fields fields = findByThriftId(fieldId);
14862
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14863
        return fields;
14864
      }
14865
 
14866
      /**
14867
       * Find the _Fields constant that matches name, or null if its not found.
14868
       */
14869
      public static _Fields findByName(String name) {
14870
        return byName.get(name);
14871
      }
14872
 
14873
      private final short _thriftId;
14874
      private final String _fieldName;
14875
 
14876
      _Fields(short thriftId, String fieldName) {
14877
        _thriftId = thriftId;
14878
        _fieldName = fieldName;
14879
      }
14880
 
14881
      public short getThriftFieldId() {
14882
        return _thriftId;
14883
      }
14884
 
14885
      public String getFieldName() {
14886
        return _fieldName;
14887
      }
14888
    }
14889
 
14890
    // isset id assignments
14891
    private static final int __ITEMID_ISSET_ID = 0;
14892
    private static final int __FROMDATE_ISSET_ID = 1;
14893
    private static final int __TODATE_ISSET_ID = 2;
14894
    private BitSet __isset_bit_vector = new BitSet(3);
14895
 
14896
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14897
    static {
14898
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14899
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14900
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14901
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14902
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14903
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14904
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14905
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14906
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_args.class, metaDataMap);
14907
    }
14908
 
14909
    public getInventoryScansForItem_args() {
14910
    }
14911
 
14912
    public getInventoryScansForItem_args(
14913
      long itemId,
14914
      long fromDate,
14915
      long toDate)
14916
    {
14917
      this();
14918
      this.itemId = itemId;
14919
      setItemIdIsSet(true);
14920
      this.fromDate = fromDate;
14921
      setFromDateIsSet(true);
14922
      this.toDate = toDate;
14923
      setToDateIsSet(true);
14924
    }
14925
 
14926
    /**
14927
     * Performs a deep copy on <i>other</i>.
14928
     */
14929
    public getInventoryScansForItem_args(getInventoryScansForItem_args other) {
14930
      __isset_bit_vector.clear();
14931
      __isset_bit_vector.or(other.__isset_bit_vector);
14932
      this.itemId = other.itemId;
14933
      this.fromDate = other.fromDate;
14934
      this.toDate = other.toDate;
14935
    }
14936
 
14937
    public getInventoryScansForItem_args deepCopy() {
14938
      return new getInventoryScansForItem_args(this);
14939
    }
14940
 
14941
    @Override
14942
    public void clear() {
14943
      setItemIdIsSet(false);
14944
      this.itemId = 0;
14945
      setFromDateIsSet(false);
14946
      this.fromDate = 0;
14947
      setToDateIsSet(false);
14948
      this.toDate = 0;
14949
    }
14950
 
14951
    public long getItemId() {
14952
      return this.itemId;
14953
    }
14954
 
14955
    public void setItemId(long itemId) {
14956
      this.itemId = itemId;
14957
      setItemIdIsSet(true);
14958
    }
14959
 
14960
    public void unsetItemId() {
14961
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
14962
    }
14963
 
14964
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
14965
    public boolean isSetItemId() {
14966
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
14967
    }
14968
 
14969
    public void setItemIdIsSet(boolean value) {
14970
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
14971
    }
14972
 
14973
    public long getFromDate() {
14974
      return this.fromDate;
14975
    }
14976
 
14977
    public void setFromDate(long fromDate) {
14978
      this.fromDate = fromDate;
14979
      setFromDateIsSet(true);
14980
    }
14981
 
14982
    public void unsetFromDate() {
14983
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
14984
    }
14985
 
14986
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
14987
    public boolean isSetFromDate() {
14988
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
14989
    }
14990
 
14991
    public void setFromDateIsSet(boolean value) {
14992
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
14993
    }
14994
 
14995
    public long getToDate() {
14996
      return this.toDate;
14997
    }
14998
 
14999
    public void setToDate(long toDate) {
15000
      this.toDate = toDate;
15001
      setToDateIsSet(true);
15002
    }
15003
 
15004
    public void unsetToDate() {
15005
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
15006
    }
15007
 
15008
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
15009
    public boolean isSetToDate() {
15010
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
15011
    }
15012
 
15013
    public void setToDateIsSet(boolean value) {
15014
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
15015
    }
15016
 
15017
    public void setFieldValue(_Fields field, Object value) {
15018
      switch (field) {
15019
      case ITEM_ID:
15020
        if (value == null) {
15021
          unsetItemId();
15022
        } else {
15023
          setItemId((Long)value);
15024
        }
15025
        break;
15026
 
15027
      case FROM_DATE:
15028
        if (value == null) {
15029
          unsetFromDate();
15030
        } else {
15031
          setFromDate((Long)value);
15032
        }
15033
        break;
15034
 
15035
      case TO_DATE:
15036
        if (value == null) {
15037
          unsetToDate();
15038
        } else {
15039
          setToDate((Long)value);
15040
        }
15041
        break;
15042
 
15043
      }
15044
    }
15045
 
15046
    public Object getFieldValue(_Fields field) {
15047
      switch (field) {
15048
      case ITEM_ID:
15049
        return Long.valueOf(getItemId());
15050
 
15051
      case FROM_DATE:
15052
        return Long.valueOf(getFromDate());
15053
 
15054
      case TO_DATE:
15055
        return Long.valueOf(getToDate());
15056
 
15057
      }
15058
      throw new IllegalStateException();
15059
    }
15060
 
15061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15062
    public boolean isSet(_Fields field) {
15063
      if (field == null) {
15064
        throw new IllegalArgumentException();
15065
      }
15066
 
15067
      switch (field) {
15068
      case ITEM_ID:
15069
        return isSetItemId();
15070
      case FROM_DATE:
15071
        return isSetFromDate();
15072
      case TO_DATE:
15073
        return isSetToDate();
15074
      }
15075
      throw new IllegalStateException();
15076
    }
15077
 
15078
    @Override
15079
    public boolean equals(Object that) {
15080
      if (that == null)
15081
        return false;
15082
      if (that instanceof getInventoryScansForItem_args)
15083
        return this.equals((getInventoryScansForItem_args)that);
15084
      return false;
15085
    }
15086
 
15087
    public boolean equals(getInventoryScansForItem_args that) {
15088
      if (that == null)
15089
        return false;
15090
 
15091
      boolean this_present_itemId = true;
15092
      boolean that_present_itemId = true;
15093
      if (this_present_itemId || that_present_itemId) {
15094
        if (!(this_present_itemId && that_present_itemId))
15095
          return false;
15096
        if (this.itemId != that.itemId)
15097
          return false;
15098
      }
15099
 
15100
      boolean this_present_fromDate = true;
15101
      boolean that_present_fromDate = true;
15102
      if (this_present_fromDate || that_present_fromDate) {
15103
        if (!(this_present_fromDate && that_present_fromDate))
15104
          return false;
15105
        if (this.fromDate != that.fromDate)
15106
          return false;
15107
      }
15108
 
15109
      boolean this_present_toDate = true;
15110
      boolean that_present_toDate = true;
15111
      if (this_present_toDate || that_present_toDate) {
15112
        if (!(this_present_toDate && that_present_toDate))
15113
          return false;
15114
        if (this.toDate != that.toDate)
15115
          return false;
15116
      }
15117
 
15118
      return true;
15119
    }
15120
 
15121
    @Override
15122
    public int hashCode() {
15123
      return 0;
15124
    }
15125
 
15126
    public int compareTo(getInventoryScansForItem_args other) {
15127
      if (!getClass().equals(other.getClass())) {
15128
        return getClass().getName().compareTo(other.getClass().getName());
15129
      }
15130
 
15131
      int lastComparison = 0;
15132
      getInventoryScansForItem_args typedOther = (getInventoryScansForItem_args)other;
15133
 
15134
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
15135
      if (lastComparison != 0) {
15136
        return lastComparison;
15137
      }
15138
      if (isSetItemId()) {
15139
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
15140
        if (lastComparison != 0) {
15141
          return lastComparison;
15142
        }
15143
      }
15144
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
15145
      if (lastComparison != 0) {
15146
        return lastComparison;
15147
      }
15148
      if (isSetFromDate()) {
15149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
15150
        if (lastComparison != 0) {
15151
          return lastComparison;
15152
        }
15153
      }
15154
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
15155
      if (lastComparison != 0) {
15156
        return lastComparison;
15157
      }
15158
      if (isSetToDate()) {
15159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
15160
        if (lastComparison != 0) {
15161
          return lastComparison;
15162
        }
15163
      }
15164
      return 0;
15165
    }
15166
 
15167
    public _Fields fieldForId(int fieldId) {
15168
      return _Fields.findByThriftId(fieldId);
15169
    }
15170
 
15171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15172
      org.apache.thrift.protocol.TField field;
15173
      iprot.readStructBegin();
15174
      while (true)
15175
      {
15176
        field = iprot.readFieldBegin();
15177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15178
          break;
15179
        }
15180
        switch (field.id) {
15181
          case 1: // ITEM_ID
15182
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15183
              this.itemId = iprot.readI64();
15184
              setItemIdIsSet(true);
15185
            } else { 
15186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15187
            }
15188
            break;
15189
          case 2: // FROM_DATE
15190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15191
              this.fromDate = iprot.readI64();
15192
              setFromDateIsSet(true);
15193
            } else { 
15194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15195
            }
15196
            break;
15197
          case 3: // TO_DATE
15198
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15199
              this.toDate = iprot.readI64();
15200
              setToDateIsSet(true);
15201
            } else { 
15202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15203
            }
15204
            break;
15205
          default:
15206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15207
        }
15208
        iprot.readFieldEnd();
15209
      }
15210
      iprot.readStructEnd();
15211
      validate();
15212
    }
15213
 
15214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15215
      validate();
15216
 
15217
      oprot.writeStructBegin(STRUCT_DESC);
15218
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
15219
      oprot.writeI64(this.itemId);
15220
      oprot.writeFieldEnd();
15221
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
15222
      oprot.writeI64(this.fromDate);
15223
      oprot.writeFieldEnd();
15224
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
15225
      oprot.writeI64(this.toDate);
15226
      oprot.writeFieldEnd();
15227
      oprot.writeFieldStop();
15228
      oprot.writeStructEnd();
15229
    }
15230
 
15231
    @Override
15232
    public String toString() {
15233
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_args(");
15234
      boolean first = true;
15235
 
15236
      sb.append("itemId:");
15237
      sb.append(this.itemId);
15238
      first = false;
15239
      if (!first) sb.append(", ");
15240
      sb.append("fromDate:");
15241
      sb.append(this.fromDate);
15242
      first = false;
15243
      if (!first) sb.append(", ");
15244
      sb.append("toDate:");
15245
      sb.append(this.toDate);
15246
      first = false;
15247
      sb.append(")");
15248
      return sb.toString();
15249
    }
15250
 
15251
    public void validate() throws org.apache.thrift.TException {
15252
      // check for required fields
15253
    }
15254
 
15255
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15256
      try {
15257
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15258
      } catch (org.apache.thrift.TException te) {
15259
        throw new java.io.IOException(te);
15260
      }
15261
    }
15262
 
15263
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15264
      try {
15265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15266
      } catch (org.apache.thrift.TException te) {
15267
        throw new java.io.IOException(te);
15268
      }
15269
    }
15270
 
15271
  }
15272
 
15273
  public static class getInventoryScansForItem_result implements org.apache.thrift.TBase<getInventoryScansForItem_result, getInventoryScansForItem_result._Fields>, java.io.Serializable, Cloneable   {
15274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInventoryScansForItem_result");
15275
 
15276
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15277
 
15278
    private List<Scan> success; // required
15279
 
15280
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15281
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15282
      SUCCESS((short)0, "success");
15283
 
15284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15285
 
15286
      static {
15287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15288
          byName.put(field.getFieldName(), field);
15289
        }
15290
      }
15291
 
15292
      /**
15293
       * Find the _Fields constant that matches fieldId, or null if its not found.
15294
       */
15295
      public static _Fields findByThriftId(int fieldId) {
15296
        switch(fieldId) {
15297
          case 0: // SUCCESS
15298
            return SUCCESS;
15299
          default:
15300
            return null;
15301
        }
15302
      }
15303
 
15304
      /**
15305
       * Find the _Fields constant that matches fieldId, throwing an exception
15306
       * if it is not found.
15307
       */
15308
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15309
        _Fields fields = findByThriftId(fieldId);
15310
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15311
        return fields;
15312
      }
15313
 
15314
      /**
15315
       * Find the _Fields constant that matches name, or null if its not found.
15316
       */
15317
      public static _Fields findByName(String name) {
15318
        return byName.get(name);
15319
      }
15320
 
15321
      private final short _thriftId;
15322
      private final String _fieldName;
15323
 
15324
      _Fields(short thriftId, String fieldName) {
15325
        _thriftId = thriftId;
15326
        _fieldName = fieldName;
15327
      }
15328
 
15329
      public short getThriftFieldId() {
15330
        return _thriftId;
15331
      }
15332
 
15333
      public String getFieldName() {
15334
        return _fieldName;
15335
      }
15336
    }
15337
 
15338
    // isset id assignments
15339
 
15340
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15341
    static {
15342
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15343
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15344
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15345
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
15346
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15347
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInventoryScansForItem_result.class, metaDataMap);
15348
    }
15349
 
15350
    public getInventoryScansForItem_result() {
15351
    }
15352
 
15353
    public getInventoryScansForItem_result(
15354
      List<Scan> success)
15355
    {
15356
      this();
15357
      this.success = success;
15358
    }
15359
 
15360
    /**
15361
     * Performs a deep copy on <i>other</i>.
15362
     */
15363
    public getInventoryScansForItem_result(getInventoryScansForItem_result other) {
15364
      if (other.isSetSuccess()) {
15365
        List<Scan> __this__success = new ArrayList<Scan>();
15366
        for (Scan other_element : other.success) {
15367
          __this__success.add(new Scan(other_element));
15368
        }
15369
        this.success = __this__success;
15370
      }
15371
    }
15372
 
15373
    public getInventoryScansForItem_result deepCopy() {
15374
      return new getInventoryScansForItem_result(this);
15375
    }
15376
 
15377
    @Override
15378
    public void clear() {
15379
      this.success = null;
15380
    }
15381
 
15382
    public int getSuccessSize() {
15383
      return (this.success == null) ? 0 : this.success.size();
15384
    }
15385
 
15386
    public java.util.Iterator<Scan> getSuccessIterator() {
15387
      return (this.success == null) ? null : this.success.iterator();
15388
    }
15389
 
15390
    public void addToSuccess(Scan elem) {
15391
      if (this.success == null) {
15392
        this.success = new ArrayList<Scan>();
15393
      }
15394
      this.success.add(elem);
15395
    }
15396
 
15397
    public List<Scan> getSuccess() {
15398
      return this.success;
15399
    }
15400
 
15401
    public void setSuccess(List<Scan> success) {
15402
      this.success = success;
15403
    }
15404
 
15405
    public void unsetSuccess() {
15406
      this.success = null;
15407
    }
15408
 
15409
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15410
    public boolean isSetSuccess() {
15411
      return this.success != null;
15412
    }
15413
 
15414
    public void setSuccessIsSet(boolean value) {
15415
      if (!value) {
15416
        this.success = null;
15417
      }
15418
    }
15419
 
15420
    public void setFieldValue(_Fields field, Object value) {
15421
      switch (field) {
15422
      case SUCCESS:
15423
        if (value == null) {
15424
          unsetSuccess();
15425
        } else {
15426
          setSuccess((List<Scan>)value);
15427
        }
15428
        break;
15429
 
15430
      }
15431
    }
15432
 
15433
    public Object getFieldValue(_Fields field) {
15434
      switch (field) {
15435
      case SUCCESS:
15436
        return getSuccess();
15437
 
15438
      }
15439
      throw new IllegalStateException();
15440
    }
15441
 
15442
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15443
    public boolean isSet(_Fields field) {
15444
      if (field == null) {
15445
        throw new IllegalArgumentException();
15446
      }
15447
 
15448
      switch (field) {
15449
      case SUCCESS:
15450
        return isSetSuccess();
15451
      }
15452
      throw new IllegalStateException();
15453
    }
15454
 
15455
    @Override
15456
    public boolean equals(Object that) {
15457
      if (that == null)
15458
        return false;
15459
      if (that instanceof getInventoryScansForItem_result)
15460
        return this.equals((getInventoryScansForItem_result)that);
15461
      return false;
15462
    }
15463
 
15464
    public boolean equals(getInventoryScansForItem_result that) {
15465
      if (that == null)
15466
        return false;
15467
 
15468
      boolean this_present_success = true && this.isSetSuccess();
15469
      boolean that_present_success = true && that.isSetSuccess();
15470
      if (this_present_success || that_present_success) {
15471
        if (!(this_present_success && that_present_success))
15472
          return false;
15473
        if (!this.success.equals(that.success))
15474
          return false;
15475
      }
15476
 
15477
      return true;
15478
    }
15479
 
15480
    @Override
15481
    public int hashCode() {
15482
      return 0;
15483
    }
15484
 
15485
    public int compareTo(getInventoryScansForItem_result other) {
15486
      if (!getClass().equals(other.getClass())) {
15487
        return getClass().getName().compareTo(other.getClass().getName());
15488
      }
15489
 
15490
      int lastComparison = 0;
15491
      getInventoryScansForItem_result typedOther = (getInventoryScansForItem_result)other;
15492
 
15493
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15494
      if (lastComparison != 0) {
15495
        return lastComparison;
15496
      }
15497
      if (isSetSuccess()) {
15498
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15499
        if (lastComparison != 0) {
15500
          return lastComparison;
15501
        }
15502
      }
15503
      return 0;
15504
    }
15505
 
15506
    public _Fields fieldForId(int fieldId) {
15507
      return _Fields.findByThriftId(fieldId);
15508
    }
15509
 
15510
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15511
      org.apache.thrift.protocol.TField field;
15512
      iprot.readStructBegin();
15513
      while (true)
15514
      {
15515
        field = iprot.readFieldBegin();
15516
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15517
          break;
15518
        }
15519
        switch (field.id) {
15520
          case 0: // SUCCESS
15521
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15522
              {
7210 amar.kumar 15523
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
15524
                this.success = new ArrayList<Scan>(_list28.size);
15525
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
6322 amar.kumar 15526
                {
7210 amar.kumar 15527
                  Scan _elem30; // required
15528
                  _elem30 = new Scan();
15529
                  _elem30.read(iprot);
15530
                  this.success.add(_elem30);
6322 amar.kumar 15531
                }
15532
                iprot.readListEnd();
15533
              }
15534
            } else { 
15535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15536
            }
15537
            break;
15538
          default:
15539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15540
        }
15541
        iprot.readFieldEnd();
15542
      }
15543
      iprot.readStructEnd();
15544
      validate();
15545
    }
15546
 
15547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15548
      oprot.writeStructBegin(STRUCT_DESC);
15549
 
15550
      if (this.isSetSuccess()) {
15551
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15552
        {
15553
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 15554
          for (Scan _iter31 : this.success)
6322 amar.kumar 15555
          {
7210 amar.kumar 15556
            _iter31.write(oprot);
6322 amar.kumar 15557
          }
15558
          oprot.writeListEnd();
15559
        }
15560
        oprot.writeFieldEnd();
15561
      }
15562
      oprot.writeFieldStop();
15563
      oprot.writeStructEnd();
15564
    }
15565
 
15566
    @Override
15567
    public String toString() {
15568
      StringBuilder sb = new StringBuilder("getInventoryScansForItem_result(");
15569
      boolean first = true;
15570
 
15571
      sb.append("success:");
15572
      if (this.success == null) {
15573
        sb.append("null");
15574
      } else {
15575
        sb.append(this.success);
15576
      }
15577
      first = false;
15578
      sb.append(")");
15579
      return sb.toString();
15580
    }
15581
 
15582
    public void validate() throws org.apache.thrift.TException {
15583
      // check for required fields
15584
    }
15585
 
15586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15587
      try {
15588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15589
      } catch (org.apache.thrift.TException te) {
15590
        throw new java.io.IOException(te);
15591
      }
15592
    }
15593
 
15594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15595
      try {
15596
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15597
      } catch (org.apache.thrift.TException te) {
15598
        throw new java.io.IOException(te);
15599
      }
15600
    }
15601
 
15602
  }
15603
 
15604
  public static class getScanRecordsForSerialNumber_args implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_args, getScanRecordsForSerialNumber_args._Fields>, java.io.Serializable, Cloneable   {
15605
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_args");
15606
 
7410 amar.kumar 15607
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
6322 amar.kumar 15608
 
7410 amar.kumar 15609
    private String serialNumber; // required
6322 amar.kumar 15610
 
15611
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15612
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15613
      SERIAL_NUMBER((short)1, "serialNumber");
15614
 
15615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15616
 
15617
      static {
15618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15619
          byName.put(field.getFieldName(), field);
15620
        }
15621
      }
15622
 
15623
      /**
15624
       * Find the _Fields constant that matches fieldId, or null if its not found.
15625
       */
15626
      public static _Fields findByThriftId(int fieldId) {
15627
        switch(fieldId) {
15628
          case 1: // SERIAL_NUMBER
15629
            return SERIAL_NUMBER;
15630
          default:
15631
            return null;
15632
        }
15633
      }
15634
 
15635
      /**
15636
       * Find the _Fields constant that matches fieldId, throwing an exception
15637
       * if it is not found.
15638
       */
15639
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15640
        _Fields fields = findByThriftId(fieldId);
15641
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15642
        return fields;
15643
      }
15644
 
15645
      /**
15646
       * Find the _Fields constant that matches name, or null if its not found.
15647
       */
15648
      public static _Fields findByName(String name) {
15649
        return byName.get(name);
15650
      }
15651
 
15652
      private final short _thriftId;
15653
      private final String _fieldName;
15654
 
15655
      _Fields(short thriftId, String fieldName) {
15656
        _thriftId = thriftId;
15657
        _fieldName = fieldName;
15658
      }
15659
 
15660
      public short getThriftFieldId() {
15661
        return _thriftId;
15662
      }
15663
 
15664
      public String getFieldName() {
15665
        return _fieldName;
15666
      }
15667
    }
15668
 
15669
    // isset id assignments
15670
 
15671
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15672
    static {
15673
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15674
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7410 amar.kumar 15675
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6322 amar.kumar 15676
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15677
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_args.class, metaDataMap);
15678
    }
15679
 
15680
    public getScanRecordsForSerialNumber_args() {
15681
    }
15682
 
15683
    public getScanRecordsForSerialNumber_args(
7410 amar.kumar 15684
      String serialNumber)
6322 amar.kumar 15685
    {
15686
      this();
15687
      this.serialNumber = serialNumber;
15688
    }
15689
 
15690
    /**
15691
     * Performs a deep copy on <i>other</i>.
15692
     */
15693
    public getScanRecordsForSerialNumber_args(getScanRecordsForSerialNumber_args other) {
7410 amar.kumar 15694
      if (other.isSetSerialNumber()) {
15695
        this.serialNumber = other.serialNumber;
15696
      }
6322 amar.kumar 15697
    }
15698
 
15699
    public getScanRecordsForSerialNumber_args deepCopy() {
15700
      return new getScanRecordsForSerialNumber_args(this);
15701
    }
15702
 
15703
    @Override
15704
    public void clear() {
7410 amar.kumar 15705
      this.serialNumber = null;
6322 amar.kumar 15706
    }
15707
 
7410 amar.kumar 15708
    public String getSerialNumber() {
6322 amar.kumar 15709
      return this.serialNumber;
15710
    }
15711
 
7410 amar.kumar 15712
    public void setSerialNumber(String serialNumber) {
6322 amar.kumar 15713
      this.serialNumber = serialNumber;
15714
    }
15715
 
15716
    public void unsetSerialNumber() {
7410 amar.kumar 15717
      this.serialNumber = null;
6322 amar.kumar 15718
    }
15719
 
15720
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
15721
    public boolean isSetSerialNumber() {
7410 amar.kumar 15722
      return this.serialNumber != null;
6322 amar.kumar 15723
    }
15724
 
15725
    public void setSerialNumberIsSet(boolean value) {
7410 amar.kumar 15726
      if (!value) {
15727
        this.serialNumber = null;
15728
      }
6322 amar.kumar 15729
    }
15730
 
15731
    public void setFieldValue(_Fields field, Object value) {
15732
      switch (field) {
15733
      case SERIAL_NUMBER:
15734
        if (value == null) {
15735
          unsetSerialNumber();
15736
        } else {
7410 amar.kumar 15737
          setSerialNumber((String)value);
6322 amar.kumar 15738
        }
15739
        break;
15740
 
15741
      }
15742
    }
15743
 
15744
    public Object getFieldValue(_Fields field) {
15745
      switch (field) {
15746
      case SERIAL_NUMBER:
7410 amar.kumar 15747
        return getSerialNumber();
6322 amar.kumar 15748
 
15749
      }
15750
      throw new IllegalStateException();
15751
    }
15752
 
15753
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15754
    public boolean isSet(_Fields field) {
15755
      if (field == null) {
15756
        throw new IllegalArgumentException();
15757
      }
15758
 
15759
      switch (field) {
15760
      case SERIAL_NUMBER:
15761
        return isSetSerialNumber();
15762
      }
15763
      throw new IllegalStateException();
15764
    }
15765
 
15766
    @Override
15767
    public boolean equals(Object that) {
15768
      if (that == null)
15769
        return false;
15770
      if (that instanceof getScanRecordsForSerialNumber_args)
15771
        return this.equals((getScanRecordsForSerialNumber_args)that);
15772
      return false;
15773
    }
15774
 
15775
    public boolean equals(getScanRecordsForSerialNumber_args that) {
15776
      if (that == null)
15777
        return false;
15778
 
7410 amar.kumar 15779
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
15780
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
6322 amar.kumar 15781
      if (this_present_serialNumber || that_present_serialNumber) {
15782
        if (!(this_present_serialNumber && that_present_serialNumber))
15783
          return false;
7410 amar.kumar 15784
        if (!this.serialNumber.equals(that.serialNumber))
6322 amar.kumar 15785
          return false;
15786
      }
15787
 
15788
      return true;
15789
    }
15790
 
15791
    @Override
15792
    public int hashCode() {
15793
      return 0;
15794
    }
15795
 
15796
    public int compareTo(getScanRecordsForSerialNumber_args other) {
15797
      if (!getClass().equals(other.getClass())) {
15798
        return getClass().getName().compareTo(other.getClass().getName());
15799
      }
15800
 
15801
      int lastComparison = 0;
15802
      getScanRecordsForSerialNumber_args typedOther = (getScanRecordsForSerialNumber_args)other;
15803
 
15804
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
15805
      if (lastComparison != 0) {
15806
        return lastComparison;
15807
      }
15808
      if (isSetSerialNumber()) {
15809
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
15810
        if (lastComparison != 0) {
15811
          return lastComparison;
15812
        }
15813
      }
15814
      return 0;
15815
    }
15816
 
15817
    public _Fields fieldForId(int fieldId) {
15818
      return _Fields.findByThriftId(fieldId);
15819
    }
15820
 
15821
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15822
      org.apache.thrift.protocol.TField field;
15823
      iprot.readStructBegin();
15824
      while (true)
15825
      {
15826
        field = iprot.readFieldBegin();
15827
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15828
          break;
15829
        }
15830
        switch (field.id) {
15831
          case 1: // SERIAL_NUMBER
7410 amar.kumar 15832
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15833
              this.serialNumber = iprot.readString();
6322 amar.kumar 15834
            } else { 
15835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15836
            }
15837
            break;
15838
          default:
15839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15840
        }
15841
        iprot.readFieldEnd();
15842
      }
15843
      iprot.readStructEnd();
15844
      validate();
15845
    }
15846
 
15847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15848
      validate();
15849
 
15850
      oprot.writeStructBegin(STRUCT_DESC);
7410 amar.kumar 15851
      if (this.serialNumber != null) {
15852
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
15853
        oprot.writeString(this.serialNumber);
15854
        oprot.writeFieldEnd();
15855
      }
6322 amar.kumar 15856
      oprot.writeFieldStop();
15857
      oprot.writeStructEnd();
15858
    }
15859
 
15860
    @Override
15861
    public String toString() {
15862
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_args(");
15863
      boolean first = true;
15864
 
15865
      sb.append("serialNumber:");
7410 amar.kumar 15866
      if (this.serialNumber == null) {
15867
        sb.append("null");
15868
      } else {
15869
        sb.append(this.serialNumber);
15870
      }
6322 amar.kumar 15871
      first = false;
15872
      sb.append(")");
15873
      return sb.toString();
15874
    }
15875
 
15876
    public void validate() throws org.apache.thrift.TException {
15877
      // check for required fields
15878
    }
15879
 
15880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15881
      try {
15882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15883
      } catch (org.apache.thrift.TException te) {
15884
        throw new java.io.IOException(te);
15885
      }
15886
    }
15887
 
15888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15889
      try {
15890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15891
      } catch (org.apache.thrift.TException te) {
15892
        throw new java.io.IOException(te);
15893
      }
15894
    }
15895
 
15896
  }
15897
 
15898
  public static class getScanRecordsForSerialNumber_result implements org.apache.thrift.TBase<getScanRecordsForSerialNumber_result, getScanRecordsForSerialNumber_result._Fields>, java.io.Serializable, Cloneable   {
15899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getScanRecordsForSerialNumber_result");
15900
 
15901
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
15902
 
15903
    private List<Scan> success; // required
15904
 
15905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15907
      SUCCESS((short)0, "success");
15908
 
15909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15910
 
15911
      static {
15912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15913
          byName.put(field.getFieldName(), field);
15914
        }
15915
      }
15916
 
15917
      /**
15918
       * Find the _Fields constant that matches fieldId, or null if its not found.
15919
       */
15920
      public static _Fields findByThriftId(int fieldId) {
15921
        switch(fieldId) {
15922
          case 0: // SUCCESS
15923
            return SUCCESS;
15924
          default:
15925
            return null;
15926
        }
15927
      }
15928
 
15929
      /**
15930
       * Find the _Fields constant that matches fieldId, throwing an exception
15931
       * if it is not found.
15932
       */
15933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15934
        _Fields fields = findByThriftId(fieldId);
15935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15936
        return fields;
15937
      }
15938
 
15939
      /**
15940
       * Find the _Fields constant that matches name, or null if its not found.
15941
       */
15942
      public static _Fields findByName(String name) {
15943
        return byName.get(name);
15944
      }
15945
 
15946
      private final short _thriftId;
15947
      private final String _fieldName;
15948
 
15949
      _Fields(short thriftId, String fieldName) {
15950
        _thriftId = thriftId;
15951
        _fieldName = fieldName;
15952
      }
15953
 
15954
      public short getThriftFieldId() {
15955
        return _thriftId;
15956
      }
15957
 
15958
      public String getFieldName() {
15959
        return _fieldName;
15960
      }
15961
    }
15962
 
15963
    // isset id assignments
15964
 
15965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15966
    static {
15967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15968
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15969
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15970
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Scan.class))));
15971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getScanRecordsForSerialNumber_result.class, metaDataMap);
15973
    }
15974
 
15975
    public getScanRecordsForSerialNumber_result() {
15976
    }
15977
 
15978
    public getScanRecordsForSerialNumber_result(
15979
      List<Scan> success)
15980
    {
15981
      this();
15982
      this.success = success;
15983
    }
15984
 
15985
    /**
15986
     * Performs a deep copy on <i>other</i>.
15987
     */
15988
    public getScanRecordsForSerialNumber_result(getScanRecordsForSerialNumber_result other) {
15989
      if (other.isSetSuccess()) {
15990
        List<Scan> __this__success = new ArrayList<Scan>();
15991
        for (Scan other_element : other.success) {
15992
          __this__success.add(new Scan(other_element));
15993
        }
15994
        this.success = __this__success;
15995
      }
15996
    }
15997
 
15998
    public getScanRecordsForSerialNumber_result deepCopy() {
15999
      return new getScanRecordsForSerialNumber_result(this);
16000
    }
16001
 
16002
    @Override
16003
    public void clear() {
16004
      this.success = null;
16005
    }
16006
 
16007
    public int getSuccessSize() {
16008
      return (this.success == null) ? 0 : this.success.size();
16009
    }
16010
 
16011
    public java.util.Iterator<Scan> getSuccessIterator() {
16012
      return (this.success == null) ? null : this.success.iterator();
16013
    }
16014
 
16015
    public void addToSuccess(Scan elem) {
16016
      if (this.success == null) {
16017
        this.success = new ArrayList<Scan>();
16018
      }
16019
      this.success.add(elem);
16020
    }
16021
 
16022
    public List<Scan> getSuccess() {
16023
      return this.success;
16024
    }
16025
 
16026
    public void setSuccess(List<Scan> success) {
16027
      this.success = success;
16028
    }
16029
 
16030
    public void unsetSuccess() {
16031
      this.success = null;
16032
    }
16033
 
16034
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16035
    public boolean isSetSuccess() {
16036
      return this.success != null;
16037
    }
16038
 
16039
    public void setSuccessIsSet(boolean value) {
16040
      if (!value) {
16041
        this.success = null;
16042
      }
16043
    }
16044
 
16045
    public void setFieldValue(_Fields field, Object value) {
16046
      switch (field) {
16047
      case SUCCESS:
16048
        if (value == null) {
16049
          unsetSuccess();
16050
        } else {
16051
          setSuccess((List<Scan>)value);
16052
        }
16053
        break;
16054
 
16055
      }
16056
    }
16057
 
16058
    public Object getFieldValue(_Fields field) {
16059
      switch (field) {
16060
      case SUCCESS:
16061
        return getSuccess();
16062
 
16063
      }
16064
      throw new IllegalStateException();
16065
    }
16066
 
16067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16068
    public boolean isSet(_Fields field) {
16069
      if (field == null) {
16070
        throw new IllegalArgumentException();
16071
      }
16072
 
16073
      switch (field) {
16074
      case SUCCESS:
16075
        return isSetSuccess();
16076
      }
16077
      throw new IllegalStateException();
16078
    }
16079
 
16080
    @Override
16081
    public boolean equals(Object that) {
16082
      if (that == null)
16083
        return false;
16084
      if (that instanceof getScanRecordsForSerialNumber_result)
16085
        return this.equals((getScanRecordsForSerialNumber_result)that);
16086
      return false;
16087
    }
16088
 
16089
    public boolean equals(getScanRecordsForSerialNumber_result that) {
16090
      if (that == null)
16091
        return false;
16092
 
16093
      boolean this_present_success = true && this.isSetSuccess();
16094
      boolean that_present_success = true && that.isSetSuccess();
16095
      if (this_present_success || that_present_success) {
16096
        if (!(this_present_success && that_present_success))
16097
          return false;
16098
        if (!this.success.equals(that.success))
16099
          return false;
16100
      }
16101
 
16102
      return true;
16103
    }
16104
 
16105
    @Override
16106
    public int hashCode() {
16107
      return 0;
16108
    }
16109
 
16110
    public int compareTo(getScanRecordsForSerialNumber_result other) {
16111
      if (!getClass().equals(other.getClass())) {
16112
        return getClass().getName().compareTo(other.getClass().getName());
16113
      }
16114
 
16115
      int lastComparison = 0;
16116
      getScanRecordsForSerialNumber_result typedOther = (getScanRecordsForSerialNumber_result)other;
16117
 
16118
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16119
      if (lastComparison != 0) {
16120
        return lastComparison;
16121
      }
16122
      if (isSetSuccess()) {
16123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16124
        if (lastComparison != 0) {
16125
          return lastComparison;
16126
        }
16127
      }
16128
      return 0;
16129
    }
16130
 
16131
    public _Fields fieldForId(int fieldId) {
16132
      return _Fields.findByThriftId(fieldId);
16133
    }
16134
 
16135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16136
      org.apache.thrift.protocol.TField field;
16137
      iprot.readStructBegin();
16138
      while (true)
16139
      {
16140
        field = iprot.readFieldBegin();
16141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16142
          break;
16143
        }
16144
        switch (field.id) {
16145
          case 0: // SUCCESS
16146
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16147
              {
7210 amar.kumar 16148
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
16149
                this.success = new ArrayList<Scan>(_list32.size);
16150
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
6322 amar.kumar 16151
                {
7210 amar.kumar 16152
                  Scan _elem34; // required
16153
                  _elem34 = new Scan();
16154
                  _elem34.read(iprot);
16155
                  this.success.add(_elem34);
6322 amar.kumar 16156
                }
16157
                iprot.readListEnd();
16158
              }
16159
            } else { 
16160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16161
            }
16162
            break;
16163
          default:
16164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16165
        }
16166
        iprot.readFieldEnd();
16167
      }
16168
      iprot.readStructEnd();
16169
      validate();
16170
    }
16171
 
16172
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16173
      oprot.writeStructBegin(STRUCT_DESC);
16174
 
16175
      if (this.isSetSuccess()) {
16176
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16177
        {
16178
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 16179
          for (Scan _iter35 : this.success)
6322 amar.kumar 16180
          {
7210 amar.kumar 16181
            _iter35.write(oprot);
6322 amar.kumar 16182
          }
16183
          oprot.writeListEnd();
16184
        }
16185
        oprot.writeFieldEnd();
16186
      }
16187
      oprot.writeFieldStop();
16188
      oprot.writeStructEnd();
16189
    }
16190
 
16191
    @Override
16192
    public String toString() {
16193
      StringBuilder sb = new StringBuilder("getScanRecordsForSerialNumber_result(");
16194
      boolean first = true;
16195
 
16196
      sb.append("success:");
16197
      if (this.success == null) {
16198
        sb.append("null");
16199
      } else {
16200
        sb.append(this.success);
16201
      }
16202
      first = false;
16203
      sb.append(")");
16204
      return sb.toString();
16205
    }
16206
 
16207
    public void validate() throws org.apache.thrift.TException {
16208
      // check for required fields
16209
    }
16210
 
16211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16212
      try {
16213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16214
      } catch (org.apache.thrift.TException te) {
16215
        throw new java.io.IOException(te);
16216
      }
16217
    }
16218
 
16219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16220
      try {
16221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16222
      } catch (org.apache.thrift.TException te) {
16223
        throw new java.io.IOException(te);
16224
      }
16225
    }
16226
 
16227
  }
16228
 
6467 amar.kumar 16229
  public static class scanForPurchaseReturn_args implements org.apache.thrift.TBase<scanForPurchaseReturn_args, scanForPurchaseReturn_args._Fields>, java.io.Serializable, Cloneable   {
16230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_args");
16231
 
16232
    private static final org.apache.thrift.protocol.TField SALE_RETURN_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("saleReturnItems", org.apache.thrift.protocol.TType.LIST, (short)1);
16233
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
16234
 
16235
    private List<InventoryItem> saleReturnItems; // required
16236
    private long vendorId; // required
16237
 
16238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16240
      SALE_RETURN_ITEMS((short)1, "saleReturnItems"),
16241
      VENDOR_ID((short)2, "vendorId");
16242
 
16243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16244
 
16245
      static {
16246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16247
          byName.put(field.getFieldName(), field);
16248
        }
16249
      }
16250
 
16251
      /**
16252
       * Find the _Fields constant that matches fieldId, or null if its not found.
16253
       */
16254
      public static _Fields findByThriftId(int fieldId) {
16255
        switch(fieldId) {
16256
          case 1: // SALE_RETURN_ITEMS
16257
            return SALE_RETURN_ITEMS;
16258
          case 2: // VENDOR_ID
16259
            return VENDOR_ID;
16260
          default:
16261
            return null;
16262
        }
16263
      }
16264
 
16265
      /**
16266
       * Find the _Fields constant that matches fieldId, throwing an exception
16267
       * if it is not found.
16268
       */
16269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16270
        _Fields fields = findByThriftId(fieldId);
16271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16272
        return fields;
16273
      }
16274
 
16275
      /**
16276
       * Find the _Fields constant that matches name, or null if its not found.
16277
       */
16278
      public static _Fields findByName(String name) {
16279
        return byName.get(name);
16280
      }
16281
 
16282
      private final short _thriftId;
16283
      private final String _fieldName;
16284
 
16285
      _Fields(short thriftId, String fieldName) {
16286
        _thriftId = thriftId;
16287
        _fieldName = fieldName;
16288
      }
16289
 
16290
      public short getThriftFieldId() {
16291
        return _thriftId;
16292
      }
16293
 
16294
      public String getFieldName() {
16295
        return _fieldName;
16296
      }
16297
    }
16298
 
16299
    // isset id assignments
16300
    private static final int __VENDORID_ISSET_ID = 0;
16301
    private BitSet __isset_bit_vector = new BitSet(1);
16302
 
16303
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16304
    static {
16305
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16306
      tmpMap.put(_Fields.SALE_RETURN_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("saleReturnItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16307
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16308
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
16309
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_args.class, metaDataMap);
16313
    }
16314
 
16315
    public scanForPurchaseReturn_args() {
16316
    }
16317
 
16318
    public scanForPurchaseReturn_args(
16319
      List<InventoryItem> saleReturnItems,
16320
      long vendorId)
16321
    {
16322
      this();
16323
      this.saleReturnItems = saleReturnItems;
16324
      this.vendorId = vendorId;
16325
      setVendorIdIsSet(true);
16326
    }
16327
 
16328
    /**
16329
     * Performs a deep copy on <i>other</i>.
16330
     */
16331
    public scanForPurchaseReturn_args(scanForPurchaseReturn_args other) {
16332
      __isset_bit_vector.clear();
16333
      __isset_bit_vector.or(other.__isset_bit_vector);
16334
      if (other.isSetSaleReturnItems()) {
16335
        List<InventoryItem> __this__saleReturnItems = new ArrayList<InventoryItem>();
16336
        for (InventoryItem other_element : other.saleReturnItems) {
16337
          __this__saleReturnItems.add(new InventoryItem(other_element));
16338
        }
16339
        this.saleReturnItems = __this__saleReturnItems;
16340
      }
16341
      this.vendorId = other.vendorId;
16342
    }
16343
 
16344
    public scanForPurchaseReturn_args deepCopy() {
16345
      return new scanForPurchaseReturn_args(this);
16346
    }
16347
 
16348
    @Override
16349
    public void clear() {
16350
      this.saleReturnItems = null;
16351
      setVendorIdIsSet(false);
16352
      this.vendorId = 0;
16353
    }
16354
 
16355
    public int getSaleReturnItemsSize() {
16356
      return (this.saleReturnItems == null) ? 0 : this.saleReturnItems.size();
16357
    }
16358
 
16359
    public java.util.Iterator<InventoryItem> getSaleReturnItemsIterator() {
16360
      return (this.saleReturnItems == null) ? null : this.saleReturnItems.iterator();
16361
    }
16362
 
16363
    public void addToSaleReturnItems(InventoryItem elem) {
16364
      if (this.saleReturnItems == null) {
16365
        this.saleReturnItems = new ArrayList<InventoryItem>();
16366
      }
16367
      this.saleReturnItems.add(elem);
16368
    }
16369
 
16370
    public List<InventoryItem> getSaleReturnItems() {
16371
      return this.saleReturnItems;
16372
    }
16373
 
16374
    public void setSaleReturnItems(List<InventoryItem> saleReturnItems) {
16375
      this.saleReturnItems = saleReturnItems;
16376
    }
16377
 
16378
    public void unsetSaleReturnItems() {
16379
      this.saleReturnItems = null;
16380
    }
16381
 
16382
    /** Returns true if field saleReturnItems is set (has been assigned a value) and false otherwise */
16383
    public boolean isSetSaleReturnItems() {
16384
      return this.saleReturnItems != null;
16385
    }
16386
 
16387
    public void setSaleReturnItemsIsSet(boolean value) {
16388
      if (!value) {
16389
        this.saleReturnItems = null;
16390
      }
16391
    }
16392
 
16393
    public long getVendorId() {
16394
      return this.vendorId;
16395
    }
16396
 
16397
    public void setVendorId(long vendorId) {
16398
      this.vendorId = vendorId;
16399
      setVendorIdIsSet(true);
16400
    }
16401
 
16402
    public void unsetVendorId() {
16403
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
16404
    }
16405
 
16406
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
16407
    public boolean isSetVendorId() {
16408
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
16409
    }
16410
 
16411
    public void setVendorIdIsSet(boolean value) {
16412
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
16413
    }
16414
 
16415
    public void setFieldValue(_Fields field, Object value) {
16416
      switch (field) {
16417
      case SALE_RETURN_ITEMS:
16418
        if (value == null) {
16419
          unsetSaleReturnItems();
16420
        } else {
16421
          setSaleReturnItems((List<InventoryItem>)value);
16422
        }
16423
        break;
16424
 
16425
      case VENDOR_ID:
16426
        if (value == null) {
16427
          unsetVendorId();
16428
        } else {
16429
          setVendorId((Long)value);
16430
        }
16431
        break;
16432
 
16433
      }
16434
    }
16435
 
16436
    public Object getFieldValue(_Fields field) {
16437
      switch (field) {
16438
      case SALE_RETURN_ITEMS:
16439
        return getSaleReturnItems();
16440
 
16441
      case VENDOR_ID:
16442
        return Long.valueOf(getVendorId());
16443
 
16444
      }
16445
      throw new IllegalStateException();
16446
    }
16447
 
16448
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16449
    public boolean isSet(_Fields field) {
16450
      if (field == null) {
16451
        throw new IllegalArgumentException();
16452
      }
16453
 
16454
      switch (field) {
16455
      case SALE_RETURN_ITEMS:
16456
        return isSetSaleReturnItems();
16457
      case VENDOR_ID:
16458
        return isSetVendorId();
16459
      }
16460
      throw new IllegalStateException();
16461
    }
16462
 
16463
    @Override
16464
    public boolean equals(Object that) {
16465
      if (that == null)
16466
        return false;
16467
      if (that instanceof scanForPurchaseReturn_args)
16468
        return this.equals((scanForPurchaseReturn_args)that);
16469
      return false;
16470
    }
16471
 
16472
    public boolean equals(scanForPurchaseReturn_args that) {
16473
      if (that == null)
16474
        return false;
16475
 
16476
      boolean this_present_saleReturnItems = true && this.isSetSaleReturnItems();
16477
      boolean that_present_saleReturnItems = true && that.isSetSaleReturnItems();
16478
      if (this_present_saleReturnItems || that_present_saleReturnItems) {
16479
        if (!(this_present_saleReturnItems && that_present_saleReturnItems))
16480
          return false;
16481
        if (!this.saleReturnItems.equals(that.saleReturnItems))
16482
          return false;
16483
      }
16484
 
16485
      boolean this_present_vendorId = true;
16486
      boolean that_present_vendorId = true;
16487
      if (this_present_vendorId || that_present_vendorId) {
16488
        if (!(this_present_vendorId && that_present_vendorId))
16489
          return false;
16490
        if (this.vendorId != that.vendorId)
16491
          return false;
16492
      }
16493
 
16494
      return true;
16495
    }
16496
 
16497
    @Override
16498
    public int hashCode() {
16499
      return 0;
16500
    }
16501
 
16502
    public int compareTo(scanForPurchaseReturn_args other) {
16503
      if (!getClass().equals(other.getClass())) {
16504
        return getClass().getName().compareTo(other.getClass().getName());
16505
      }
16506
 
16507
      int lastComparison = 0;
16508
      scanForPurchaseReturn_args typedOther = (scanForPurchaseReturn_args)other;
16509
 
16510
      lastComparison = Boolean.valueOf(isSetSaleReturnItems()).compareTo(typedOther.isSetSaleReturnItems());
16511
      if (lastComparison != 0) {
16512
        return lastComparison;
16513
      }
16514
      if (isSetSaleReturnItems()) {
16515
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.saleReturnItems, typedOther.saleReturnItems);
16516
        if (lastComparison != 0) {
16517
          return lastComparison;
16518
        }
16519
      }
16520
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
16521
      if (lastComparison != 0) {
16522
        return lastComparison;
16523
      }
16524
      if (isSetVendorId()) {
16525
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
16526
        if (lastComparison != 0) {
16527
          return lastComparison;
16528
        }
16529
      }
16530
      return 0;
16531
    }
16532
 
16533
    public _Fields fieldForId(int fieldId) {
16534
      return _Fields.findByThriftId(fieldId);
16535
    }
16536
 
16537
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16538
      org.apache.thrift.protocol.TField field;
16539
      iprot.readStructBegin();
16540
      while (true)
16541
      {
16542
        field = iprot.readFieldBegin();
16543
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16544
          break;
16545
        }
16546
        switch (field.id) {
16547
          case 1: // SALE_RETURN_ITEMS
16548
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16549
              {
7210 amar.kumar 16550
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
16551
                this.saleReturnItems = new ArrayList<InventoryItem>(_list36.size);
16552
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
6467 amar.kumar 16553
                {
7210 amar.kumar 16554
                  InventoryItem _elem38; // required
16555
                  _elem38 = new InventoryItem();
16556
                  _elem38.read(iprot);
16557
                  this.saleReturnItems.add(_elem38);
6467 amar.kumar 16558
                }
16559
                iprot.readListEnd();
16560
              }
16561
            } else { 
16562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16563
            }
16564
            break;
16565
          case 2: // VENDOR_ID
16566
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16567
              this.vendorId = iprot.readI64();
16568
              setVendorIdIsSet(true);
16569
            } else { 
16570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16571
            }
16572
            break;
16573
          default:
16574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16575
        }
16576
        iprot.readFieldEnd();
16577
      }
16578
      iprot.readStructEnd();
16579
      validate();
16580
    }
16581
 
16582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16583
      validate();
16584
 
16585
      oprot.writeStructBegin(STRUCT_DESC);
16586
      if (this.saleReturnItems != null) {
16587
        oprot.writeFieldBegin(SALE_RETURN_ITEMS_FIELD_DESC);
16588
        {
16589
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.saleReturnItems.size()));
7210 amar.kumar 16590
          for (InventoryItem _iter39 : this.saleReturnItems)
6467 amar.kumar 16591
          {
7210 amar.kumar 16592
            _iter39.write(oprot);
6467 amar.kumar 16593
          }
16594
          oprot.writeListEnd();
16595
        }
16596
        oprot.writeFieldEnd();
16597
      }
16598
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
16599
      oprot.writeI64(this.vendorId);
16600
      oprot.writeFieldEnd();
16601
      oprot.writeFieldStop();
16602
      oprot.writeStructEnd();
16603
    }
16604
 
16605
    @Override
16606
    public String toString() {
16607
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_args(");
16608
      boolean first = true;
16609
 
16610
      sb.append("saleReturnItems:");
16611
      if (this.saleReturnItems == null) {
16612
        sb.append("null");
16613
      } else {
16614
        sb.append(this.saleReturnItems);
16615
      }
16616
      first = false;
16617
      if (!first) sb.append(", ");
16618
      sb.append("vendorId:");
16619
      sb.append(this.vendorId);
16620
      first = false;
16621
      sb.append(")");
16622
      return sb.toString();
16623
    }
16624
 
16625
    public void validate() throws org.apache.thrift.TException {
16626
      // check for required fields
16627
    }
16628
 
16629
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16630
      try {
16631
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16632
      } catch (org.apache.thrift.TException te) {
16633
        throw new java.io.IOException(te);
16634
      }
16635
    }
16636
 
16637
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16638
      try {
16639
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16640
      } catch (org.apache.thrift.TException te) {
16641
        throw new java.io.IOException(te);
16642
      }
16643
    }
16644
 
16645
  }
16646
 
16647
  public static class scanForPurchaseReturn_result implements org.apache.thrift.TBase<scanForPurchaseReturn_result, scanForPurchaseReturn_result._Fields>, java.io.Serializable, Cloneable   {
16648
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForPurchaseReturn_result");
16649
 
16650
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
16651
 
16652
    private WarehouseServiceException ex; // required
16653
 
16654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16656
      EX((short)1, "ex");
16657
 
16658
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16659
 
16660
      static {
16661
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16662
          byName.put(field.getFieldName(), field);
16663
        }
16664
      }
16665
 
16666
      /**
16667
       * Find the _Fields constant that matches fieldId, or null if its not found.
16668
       */
16669
      public static _Fields findByThriftId(int fieldId) {
16670
        switch(fieldId) {
16671
          case 1: // EX
16672
            return EX;
16673
          default:
16674
            return null;
16675
        }
16676
      }
16677
 
16678
      /**
16679
       * Find the _Fields constant that matches fieldId, throwing an exception
16680
       * if it is not found.
16681
       */
16682
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16683
        _Fields fields = findByThriftId(fieldId);
16684
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16685
        return fields;
16686
      }
16687
 
16688
      /**
16689
       * Find the _Fields constant that matches name, or null if its not found.
16690
       */
16691
      public static _Fields findByName(String name) {
16692
        return byName.get(name);
16693
      }
16694
 
16695
      private final short _thriftId;
16696
      private final String _fieldName;
16697
 
16698
      _Fields(short thriftId, String fieldName) {
16699
        _thriftId = thriftId;
16700
        _fieldName = fieldName;
16701
      }
16702
 
16703
      public short getThriftFieldId() {
16704
        return _thriftId;
16705
      }
16706
 
16707
      public String getFieldName() {
16708
        return _fieldName;
16709
      }
16710
    }
16711
 
16712
    // isset id assignments
16713
 
16714
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16715
    static {
16716
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16717
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForPurchaseReturn_result.class, metaDataMap);
16721
    }
16722
 
16723
    public scanForPurchaseReturn_result() {
16724
    }
16725
 
16726
    public scanForPurchaseReturn_result(
16727
      WarehouseServiceException ex)
16728
    {
16729
      this();
16730
      this.ex = ex;
16731
    }
16732
 
16733
    /**
16734
     * Performs a deep copy on <i>other</i>.
16735
     */
16736
    public scanForPurchaseReturn_result(scanForPurchaseReturn_result other) {
16737
      if (other.isSetEx()) {
16738
        this.ex = new WarehouseServiceException(other.ex);
16739
      }
16740
    }
16741
 
16742
    public scanForPurchaseReturn_result deepCopy() {
16743
      return new scanForPurchaseReturn_result(this);
16744
    }
16745
 
16746
    @Override
16747
    public void clear() {
16748
      this.ex = null;
16749
    }
16750
 
16751
    public WarehouseServiceException getEx() {
16752
      return this.ex;
16753
    }
16754
 
16755
    public void setEx(WarehouseServiceException ex) {
16756
      this.ex = ex;
16757
    }
16758
 
16759
    public void unsetEx() {
16760
      this.ex = null;
16761
    }
16762
 
16763
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
16764
    public boolean isSetEx() {
16765
      return this.ex != null;
16766
    }
16767
 
16768
    public void setExIsSet(boolean value) {
16769
      if (!value) {
16770
        this.ex = null;
16771
      }
16772
    }
16773
 
16774
    public void setFieldValue(_Fields field, Object value) {
16775
      switch (field) {
16776
      case EX:
16777
        if (value == null) {
16778
          unsetEx();
16779
        } else {
16780
          setEx((WarehouseServiceException)value);
16781
        }
16782
        break;
16783
 
16784
      }
16785
    }
16786
 
16787
    public Object getFieldValue(_Fields field) {
16788
      switch (field) {
16789
      case EX:
16790
        return getEx();
16791
 
16792
      }
16793
      throw new IllegalStateException();
16794
    }
16795
 
16796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16797
    public boolean isSet(_Fields field) {
16798
      if (field == null) {
16799
        throw new IllegalArgumentException();
16800
      }
16801
 
16802
      switch (field) {
16803
      case EX:
16804
        return isSetEx();
16805
      }
16806
      throw new IllegalStateException();
16807
    }
16808
 
16809
    @Override
16810
    public boolean equals(Object that) {
16811
      if (that == null)
16812
        return false;
16813
      if (that instanceof scanForPurchaseReturn_result)
16814
        return this.equals((scanForPurchaseReturn_result)that);
16815
      return false;
16816
    }
16817
 
16818
    public boolean equals(scanForPurchaseReturn_result that) {
16819
      if (that == null)
16820
        return false;
16821
 
16822
      boolean this_present_ex = true && this.isSetEx();
16823
      boolean that_present_ex = true && that.isSetEx();
16824
      if (this_present_ex || that_present_ex) {
16825
        if (!(this_present_ex && that_present_ex))
16826
          return false;
16827
        if (!this.ex.equals(that.ex))
16828
          return false;
16829
      }
16830
 
16831
      return true;
16832
    }
16833
 
16834
    @Override
16835
    public int hashCode() {
16836
      return 0;
16837
    }
16838
 
16839
    public int compareTo(scanForPurchaseReturn_result other) {
16840
      if (!getClass().equals(other.getClass())) {
16841
        return getClass().getName().compareTo(other.getClass().getName());
16842
      }
16843
 
16844
      int lastComparison = 0;
16845
      scanForPurchaseReturn_result typedOther = (scanForPurchaseReturn_result)other;
16846
 
16847
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
16848
      if (lastComparison != 0) {
16849
        return lastComparison;
16850
      }
16851
      if (isSetEx()) {
16852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
16853
        if (lastComparison != 0) {
16854
          return lastComparison;
16855
        }
16856
      }
16857
      return 0;
16858
    }
16859
 
16860
    public _Fields fieldForId(int fieldId) {
16861
      return _Fields.findByThriftId(fieldId);
16862
    }
16863
 
16864
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16865
      org.apache.thrift.protocol.TField field;
16866
      iprot.readStructBegin();
16867
      while (true)
16868
      {
16869
        field = iprot.readFieldBegin();
16870
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16871
          break;
16872
        }
16873
        switch (field.id) {
16874
          case 1: // EX
16875
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16876
              this.ex = new WarehouseServiceException();
16877
              this.ex.read(iprot);
16878
            } else { 
16879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16880
            }
16881
            break;
16882
          default:
16883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16884
        }
16885
        iprot.readFieldEnd();
16886
      }
16887
      iprot.readStructEnd();
16888
      validate();
16889
    }
16890
 
16891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16892
      oprot.writeStructBegin(STRUCT_DESC);
16893
 
16894
      if (this.isSetEx()) {
16895
        oprot.writeFieldBegin(EX_FIELD_DESC);
16896
        this.ex.write(oprot);
16897
        oprot.writeFieldEnd();
16898
      }
16899
      oprot.writeFieldStop();
16900
      oprot.writeStructEnd();
16901
    }
16902
 
16903
    @Override
16904
    public String toString() {
16905
      StringBuilder sb = new StringBuilder("scanForPurchaseReturn_result(");
16906
      boolean first = true;
16907
 
16908
      sb.append("ex:");
16909
      if (this.ex == null) {
16910
        sb.append("null");
16911
      } else {
16912
        sb.append(this.ex);
16913
      }
16914
      first = false;
16915
      sb.append(")");
16916
      return sb.toString();
16917
    }
16918
 
16919
    public void validate() throws org.apache.thrift.TException {
16920
      // check for required fields
16921
    }
16922
 
16923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16924
      try {
16925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16926
      } catch (org.apache.thrift.TException te) {
16927
        throw new java.io.IOException(te);
16928
      }
16929
    }
16930
 
16931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16932
      try {
16933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16934
      } catch (org.apache.thrift.TException te) {
16935
        throw new java.io.IOException(te);
16936
      }
16937
    }
16938
 
16939
  }
16940
 
6548 amar.kumar 16941
  public static class scanForLostItem_args implements org.apache.thrift.TBase<scanForLostItem_args, scanForLostItem_args._Fields>, java.io.Serializable, Cloneable   {
16942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_args");
16943
 
16944
    private static final org.apache.thrift.protocol.TField LOST_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lostItems", org.apache.thrift.protocol.TType.LIST, (short)1);
16945
    private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)2);
16946
 
16947
    private List<InventoryItem> lostItems; // required
16948
    private long vendorId; // required
16949
 
16950
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16951
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16952
      LOST_ITEMS((short)1, "lostItems"),
16953
      VENDOR_ID((short)2, "vendorId");
16954
 
16955
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16956
 
16957
      static {
16958
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16959
          byName.put(field.getFieldName(), field);
16960
        }
16961
      }
16962
 
16963
      /**
16964
       * Find the _Fields constant that matches fieldId, or null if its not found.
16965
       */
16966
      public static _Fields findByThriftId(int fieldId) {
16967
        switch(fieldId) {
16968
          case 1: // LOST_ITEMS
16969
            return LOST_ITEMS;
16970
          case 2: // VENDOR_ID
16971
            return VENDOR_ID;
16972
          default:
16973
            return null;
16974
        }
16975
      }
16976
 
16977
      /**
16978
       * Find the _Fields constant that matches fieldId, throwing an exception
16979
       * if it is not found.
16980
       */
16981
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16982
        _Fields fields = findByThriftId(fieldId);
16983
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16984
        return fields;
16985
      }
16986
 
16987
      /**
16988
       * Find the _Fields constant that matches name, or null if its not found.
16989
       */
16990
      public static _Fields findByName(String name) {
16991
        return byName.get(name);
16992
      }
16993
 
16994
      private final short _thriftId;
16995
      private final String _fieldName;
16996
 
16997
      _Fields(short thriftId, String fieldName) {
16998
        _thriftId = thriftId;
16999
        _fieldName = fieldName;
17000
      }
17001
 
17002
      public short getThriftFieldId() {
17003
        return _thriftId;
17004
      }
17005
 
17006
      public String getFieldName() {
17007
        return _fieldName;
17008
      }
17009
    }
17010
 
17011
    // isset id assignments
17012
    private static final int __VENDORID_ISSET_ID = 0;
17013
    private BitSet __isset_bit_vector = new BitSet(1);
17014
 
17015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17016
    static {
17017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17018
      tmpMap.put(_Fields.LOST_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("lostItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17019
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17020
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
17021
      tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_args.class, metaDataMap);
17025
    }
17026
 
17027
    public scanForLostItem_args() {
17028
    }
17029
 
17030
    public scanForLostItem_args(
17031
      List<InventoryItem> lostItems,
17032
      long vendorId)
17033
    {
17034
      this();
17035
      this.lostItems = lostItems;
17036
      this.vendorId = vendorId;
17037
      setVendorIdIsSet(true);
17038
    }
17039
 
17040
    /**
17041
     * Performs a deep copy on <i>other</i>.
17042
     */
17043
    public scanForLostItem_args(scanForLostItem_args other) {
17044
      __isset_bit_vector.clear();
17045
      __isset_bit_vector.or(other.__isset_bit_vector);
17046
      if (other.isSetLostItems()) {
17047
        List<InventoryItem> __this__lostItems = new ArrayList<InventoryItem>();
17048
        for (InventoryItem other_element : other.lostItems) {
17049
          __this__lostItems.add(new InventoryItem(other_element));
17050
        }
17051
        this.lostItems = __this__lostItems;
17052
      }
17053
      this.vendorId = other.vendorId;
17054
    }
17055
 
17056
    public scanForLostItem_args deepCopy() {
17057
      return new scanForLostItem_args(this);
17058
    }
17059
 
17060
    @Override
17061
    public void clear() {
17062
      this.lostItems = null;
17063
      setVendorIdIsSet(false);
17064
      this.vendorId = 0;
17065
    }
17066
 
17067
    public int getLostItemsSize() {
17068
      return (this.lostItems == null) ? 0 : this.lostItems.size();
17069
    }
17070
 
17071
    public java.util.Iterator<InventoryItem> getLostItemsIterator() {
17072
      return (this.lostItems == null) ? null : this.lostItems.iterator();
17073
    }
17074
 
17075
    public void addToLostItems(InventoryItem elem) {
17076
      if (this.lostItems == null) {
17077
        this.lostItems = new ArrayList<InventoryItem>();
17078
      }
17079
      this.lostItems.add(elem);
17080
    }
17081
 
17082
    public List<InventoryItem> getLostItems() {
17083
      return this.lostItems;
17084
    }
17085
 
17086
    public void setLostItems(List<InventoryItem> lostItems) {
17087
      this.lostItems = lostItems;
17088
    }
17089
 
17090
    public void unsetLostItems() {
17091
      this.lostItems = null;
17092
    }
17093
 
17094
    /** Returns true if field lostItems is set (has been assigned a value) and false otherwise */
17095
    public boolean isSetLostItems() {
17096
      return this.lostItems != null;
17097
    }
17098
 
17099
    public void setLostItemsIsSet(boolean value) {
17100
      if (!value) {
17101
        this.lostItems = null;
17102
      }
17103
    }
17104
 
17105
    public long getVendorId() {
17106
      return this.vendorId;
17107
    }
17108
 
17109
    public void setVendorId(long vendorId) {
17110
      this.vendorId = vendorId;
17111
      setVendorIdIsSet(true);
17112
    }
17113
 
17114
    public void unsetVendorId() {
17115
      __isset_bit_vector.clear(__VENDORID_ISSET_ID);
17116
    }
17117
 
17118
    /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
17119
    public boolean isSetVendorId() {
17120
      return __isset_bit_vector.get(__VENDORID_ISSET_ID);
17121
    }
17122
 
17123
    public void setVendorIdIsSet(boolean value) {
17124
      __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
17125
    }
17126
 
17127
    public void setFieldValue(_Fields field, Object value) {
17128
      switch (field) {
17129
      case LOST_ITEMS:
17130
        if (value == null) {
17131
          unsetLostItems();
17132
        } else {
17133
          setLostItems((List<InventoryItem>)value);
17134
        }
17135
        break;
17136
 
17137
      case VENDOR_ID:
17138
        if (value == null) {
17139
          unsetVendorId();
17140
        } else {
17141
          setVendorId((Long)value);
17142
        }
17143
        break;
17144
 
17145
      }
17146
    }
17147
 
17148
    public Object getFieldValue(_Fields field) {
17149
      switch (field) {
17150
      case LOST_ITEMS:
17151
        return getLostItems();
17152
 
17153
      case VENDOR_ID:
17154
        return Long.valueOf(getVendorId());
17155
 
17156
      }
17157
      throw new IllegalStateException();
17158
    }
17159
 
17160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17161
    public boolean isSet(_Fields field) {
17162
      if (field == null) {
17163
        throw new IllegalArgumentException();
17164
      }
17165
 
17166
      switch (field) {
17167
      case LOST_ITEMS:
17168
        return isSetLostItems();
17169
      case VENDOR_ID:
17170
        return isSetVendorId();
17171
      }
17172
      throw new IllegalStateException();
17173
    }
17174
 
17175
    @Override
17176
    public boolean equals(Object that) {
17177
      if (that == null)
17178
        return false;
17179
      if (that instanceof scanForLostItem_args)
17180
        return this.equals((scanForLostItem_args)that);
17181
      return false;
17182
    }
17183
 
17184
    public boolean equals(scanForLostItem_args that) {
17185
      if (that == null)
17186
        return false;
17187
 
17188
      boolean this_present_lostItems = true && this.isSetLostItems();
17189
      boolean that_present_lostItems = true && that.isSetLostItems();
17190
      if (this_present_lostItems || that_present_lostItems) {
17191
        if (!(this_present_lostItems && that_present_lostItems))
17192
          return false;
17193
        if (!this.lostItems.equals(that.lostItems))
17194
          return false;
17195
      }
17196
 
17197
      boolean this_present_vendorId = true;
17198
      boolean that_present_vendorId = true;
17199
      if (this_present_vendorId || that_present_vendorId) {
17200
        if (!(this_present_vendorId && that_present_vendorId))
17201
          return false;
17202
        if (this.vendorId != that.vendorId)
17203
          return false;
17204
      }
17205
 
17206
      return true;
17207
    }
17208
 
17209
    @Override
17210
    public int hashCode() {
17211
      return 0;
17212
    }
17213
 
17214
    public int compareTo(scanForLostItem_args other) {
17215
      if (!getClass().equals(other.getClass())) {
17216
        return getClass().getName().compareTo(other.getClass().getName());
17217
      }
17218
 
17219
      int lastComparison = 0;
17220
      scanForLostItem_args typedOther = (scanForLostItem_args)other;
17221
 
17222
      lastComparison = Boolean.valueOf(isSetLostItems()).compareTo(typedOther.isSetLostItems());
17223
      if (lastComparison != 0) {
17224
        return lastComparison;
17225
      }
17226
      if (isSetLostItems()) {
17227
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lostItems, typedOther.lostItems);
17228
        if (lastComparison != 0) {
17229
          return lastComparison;
17230
        }
17231
      }
17232
      lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
17233
      if (lastComparison != 0) {
17234
        return lastComparison;
17235
      }
17236
      if (isSetVendorId()) {
17237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
17238
        if (lastComparison != 0) {
17239
          return lastComparison;
17240
        }
17241
      }
17242
      return 0;
17243
    }
17244
 
17245
    public _Fields fieldForId(int fieldId) {
17246
      return _Fields.findByThriftId(fieldId);
17247
    }
17248
 
17249
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17250
      org.apache.thrift.protocol.TField field;
17251
      iprot.readStructBegin();
17252
      while (true)
17253
      {
17254
        field = iprot.readFieldBegin();
17255
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17256
          break;
17257
        }
17258
        switch (field.id) {
17259
          case 1: // LOST_ITEMS
17260
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17261
              {
7210 amar.kumar 17262
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
17263
                this.lostItems = new ArrayList<InventoryItem>(_list40.size);
17264
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
6548 amar.kumar 17265
                {
7210 amar.kumar 17266
                  InventoryItem _elem42; // required
17267
                  _elem42 = new InventoryItem();
17268
                  _elem42.read(iprot);
17269
                  this.lostItems.add(_elem42);
6548 amar.kumar 17270
                }
17271
                iprot.readListEnd();
17272
              }
17273
            } else { 
17274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17275
            }
17276
            break;
17277
          case 2: // VENDOR_ID
17278
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17279
              this.vendorId = iprot.readI64();
17280
              setVendorIdIsSet(true);
17281
            } else { 
17282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17283
            }
17284
            break;
17285
          default:
17286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17287
        }
17288
        iprot.readFieldEnd();
17289
      }
17290
      iprot.readStructEnd();
17291
      validate();
17292
    }
17293
 
17294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17295
      validate();
17296
 
17297
      oprot.writeStructBegin(STRUCT_DESC);
17298
      if (this.lostItems != null) {
17299
        oprot.writeFieldBegin(LOST_ITEMS_FIELD_DESC);
17300
        {
17301
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lostItems.size()));
7210 amar.kumar 17302
          for (InventoryItem _iter43 : this.lostItems)
6548 amar.kumar 17303
          {
7210 amar.kumar 17304
            _iter43.write(oprot);
6548 amar.kumar 17305
          }
17306
          oprot.writeListEnd();
17307
        }
17308
        oprot.writeFieldEnd();
17309
      }
17310
      oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
17311
      oprot.writeI64(this.vendorId);
17312
      oprot.writeFieldEnd();
17313
      oprot.writeFieldStop();
17314
      oprot.writeStructEnd();
17315
    }
17316
 
17317
    @Override
17318
    public String toString() {
17319
      StringBuilder sb = new StringBuilder("scanForLostItem_args(");
17320
      boolean first = true;
17321
 
17322
      sb.append("lostItems:");
17323
      if (this.lostItems == null) {
17324
        sb.append("null");
17325
      } else {
17326
        sb.append(this.lostItems);
17327
      }
17328
      first = false;
17329
      if (!first) sb.append(", ");
17330
      sb.append("vendorId:");
17331
      sb.append(this.vendorId);
17332
      first = false;
17333
      sb.append(")");
17334
      return sb.toString();
17335
    }
17336
 
17337
    public void validate() throws org.apache.thrift.TException {
17338
      // check for required fields
17339
    }
17340
 
17341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17342
      try {
17343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17344
      } catch (org.apache.thrift.TException te) {
17345
        throw new java.io.IOException(te);
17346
      }
17347
    }
17348
 
17349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17350
      try {
17351
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17352
      } catch (org.apache.thrift.TException te) {
17353
        throw new java.io.IOException(te);
17354
      }
17355
    }
17356
 
17357
  }
17358
 
17359
  public static class scanForLostItem_result implements org.apache.thrift.TBase<scanForLostItem_result, scanForLostItem_result._Fields>, java.io.Serializable, Cloneable   {
17360
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForLostItem_result");
17361
 
17362
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
17363
 
17364
    private WarehouseServiceException ex; // required
17365
 
17366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17368
      EX((short)1, "ex");
17369
 
17370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17371
 
17372
      static {
17373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17374
          byName.put(field.getFieldName(), field);
17375
        }
17376
      }
17377
 
17378
      /**
17379
       * Find the _Fields constant that matches fieldId, or null if its not found.
17380
       */
17381
      public static _Fields findByThriftId(int fieldId) {
17382
        switch(fieldId) {
17383
          case 1: // EX
17384
            return EX;
17385
          default:
17386
            return null;
17387
        }
17388
      }
17389
 
17390
      /**
17391
       * Find the _Fields constant that matches fieldId, throwing an exception
17392
       * if it is not found.
17393
       */
17394
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17395
        _Fields fields = findByThriftId(fieldId);
17396
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17397
        return fields;
17398
      }
17399
 
17400
      /**
17401
       * Find the _Fields constant that matches name, or null if its not found.
17402
       */
17403
      public static _Fields findByName(String name) {
17404
        return byName.get(name);
17405
      }
17406
 
17407
      private final short _thriftId;
17408
      private final String _fieldName;
17409
 
17410
      _Fields(short thriftId, String fieldName) {
17411
        _thriftId = thriftId;
17412
        _fieldName = fieldName;
17413
      }
17414
 
17415
      public short getThriftFieldId() {
17416
        return _thriftId;
17417
      }
17418
 
17419
      public String getFieldName() {
17420
        return _fieldName;
17421
      }
17422
    }
17423
 
17424
    // isset id assignments
17425
 
17426
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17427
    static {
17428
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17429
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17431
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17432
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForLostItem_result.class, metaDataMap);
17433
    }
17434
 
17435
    public scanForLostItem_result() {
17436
    }
17437
 
17438
    public scanForLostItem_result(
17439
      WarehouseServiceException ex)
17440
    {
17441
      this();
17442
      this.ex = ex;
17443
    }
17444
 
17445
    /**
17446
     * Performs a deep copy on <i>other</i>.
17447
     */
17448
    public scanForLostItem_result(scanForLostItem_result other) {
17449
      if (other.isSetEx()) {
17450
        this.ex = new WarehouseServiceException(other.ex);
17451
      }
17452
    }
17453
 
17454
    public scanForLostItem_result deepCopy() {
17455
      return new scanForLostItem_result(this);
17456
    }
17457
 
17458
    @Override
17459
    public void clear() {
17460
      this.ex = null;
17461
    }
17462
 
17463
    public WarehouseServiceException getEx() {
17464
      return this.ex;
17465
    }
17466
 
17467
    public void setEx(WarehouseServiceException ex) {
17468
      this.ex = ex;
17469
    }
17470
 
17471
    public void unsetEx() {
17472
      this.ex = null;
17473
    }
17474
 
17475
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
17476
    public boolean isSetEx() {
17477
      return this.ex != null;
17478
    }
17479
 
17480
    public void setExIsSet(boolean value) {
17481
      if (!value) {
17482
        this.ex = null;
17483
      }
17484
    }
17485
 
17486
    public void setFieldValue(_Fields field, Object value) {
17487
      switch (field) {
17488
      case EX:
17489
        if (value == null) {
17490
          unsetEx();
17491
        } else {
17492
          setEx((WarehouseServiceException)value);
17493
        }
17494
        break;
17495
 
17496
      }
17497
    }
17498
 
17499
    public Object getFieldValue(_Fields field) {
17500
      switch (field) {
17501
      case EX:
17502
        return getEx();
17503
 
17504
      }
17505
      throw new IllegalStateException();
17506
    }
17507
 
17508
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17509
    public boolean isSet(_Fields field) {
17510
      if (field == null) {
17511
        throw new IllegalArgumentException();
17512
      }
17513
 
17514
      switch (field) {
17515
      case EX:
17516
        return isSetEx();
17517
      }
17518
      throw new IllegalStateException();
17519
    }
17520
 
17521
    @Override
17522
    public boolean equals(Object that) {
17523
      if (that == null)
17524
        return false;
17525
      if (that instanceof scanForLostItem_result)
17526
        return this.equals((scanForLostItem_result)that);
17527
      return false;
17528
    }
17529
 
17530
    public boolean equals(scanForLostItem_result that) {
17531
      if (that == null)
17532
        return false;
17533
 
17534
      boolean this_present_ex = true && this.isSetEx();
17535
      boolean that_present_ex = true && that.isSetEx();
17536
      if (this_present_ex || that_present_ex) {
17537
        if (!(this_present_ex && that_present_ex))
17538
          return false;
17539
        if (!this.ex.equals(that.ex))
17540
          return false;
17541
      }
17542
 
17543
      return true;
17544
    }
17545
 
17546
    @Override
17547
    public int hashCode() {
17548
      return 0;
17549
    }
17550
 
17551
    public int compareTo(scanForLostItem_result other) {
17552
      if (!getClass().equals(other.getClass())) {
17553
        return getClass().getName().compareTo(other.getClass().getName());
17554
      }
17555
 
17556
      int lastComparison = 0;
17557
      scanForLostItem_result typedOther = (scanForLostItem_result)other;
17558
 
17559
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
17560
      if (lastComparison != 0) {
17561
        return lastComparison;
17562
      }
17563
      if (isSetEx()) {
17564
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
17565
        if (lastComparison != 0) {
17566
          return lastComparison;
17567
        }
17568
      }
17569
      return 0;
17570
    }
17571
 
17572
    public _Fields fieldForId(int fieldId) {
17573
      return _Fields.findByThriftId(fieldId);
17574
    }
17575
 
17576
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17577
      org.apache.thrift.protocol.TField field;
17578
      iprot.readStructBegin();
17579
      while (true)
17580
      {
17581
        field = iprot.readFieldBegin();
17582
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17583
          break;
17584
        }
17585
        switch (field.id) {
17586
          case 1: // EX
17587
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17588
              this.ex = new WarehouseServiceException();
17589
              this.ex.read(iprot);
17590
            } else { 
17591
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17592
            }
17593
            break;
17594
          default:
17595
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17596
        }
17597
        iprot.readFieldEnd();
17598
      }
17599
      iprot.readStructEnd();
17600
      validate();
17601
    }
17602
 
17603
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17604
      oprot.writeStructBegin(STRUCT_DESC);
17605
 
17606
      if (this.isSetEx()) {
17607
        oprot.writeFieldBegin(EX_FIELD_DESC);
17608
        this.ex.write(oprot);
17609
        oprot.writeFieldEnd();
17610
      }
17611
      oprot.writeFieldStop();
17612
      oprot.writeStructEnd();
17613
    }
17614
 
17615
    @Override
17616
    public String toString() {
17617
      StringBuilder sb = new StringBuilder("scanForLostItem_result(");
17618
      boolean first = true;
17619
 
17620
      sb.append("ex:");
17621
      if (this.ex == null) {
17622
        sb.append("null");
17623
      } else {
17624
        sb.append(this.ex);
17625
      }
17626
      first = false;
17627
      sb.append(")");
17628
      return sb.toString();
17629
    }
17630
 
17631
    public void validate() throws org.apache.thrift.TException {
17632
      // check for required fields
17633
    }
17634
 
17635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17636
      try {
17637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17638
      } catch (org.apache.thrift.TException te) {
17639
        throw new java.io.IOException(te);
17640
      }
17641
    }
17642
 
17643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17644
      try {
17645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17646
      } catch (org.apache.thrift.TException te) {
17647
        throw new java.io.IOException(te);
17648
      }
17649
    }
17650
 
17651
  }
17652
 
17653
  public static class getCurrentSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_args, getCurrentSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
17654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_args");
17655
 
17656
 
17657
 
17658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17660
;
17661
 
17662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17663
 
17664
      static {
17665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17666
          byName.put(field.getFieldName(), field);
17667
        }
17668
      }
17669
 
17670
      /**
17671
       * Find the _Fields constant that matches fieldId, or null if its not found.
17672
       */
17673
      public static _Fields findByThriftId(int fieldId) {
17674
        switch(fieldId) {
17675
          default:
17676
            return null;
17677
        }
17678
      }
17679
 
17680
      /**
17681
       * Find the _Fields constant that matches fieldId, throwing an exception
17682
       * if it is not found.
17683
       */
17684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17685
        _Fields fields = findByThriftId(fieldId);
17686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17687
        return fields;
17688
      }
17689
 
17690
      /**
17691
       * Find the _Fields constant that matches name, or null if its not found.
17692
       */
17693
      public static _Fields findByName(String name) {
17694
        return byName.get(name);
17695
      }
17696
 
17697
      private final short _thriftId;
17698
      private final String _fieldName;
17699
 
17700
      _Fields(short thriftId, String fieldName) {
17701
        _thriftId = thriftId;
17702
        _fieldName = fieldName;
17703
      }
17704
 
17705
      public short getThriftFieldId() {
17706
        return _thriftId;
17707
      }
17708
 
17709
      public String getFieldName() {
17710
        return _fieldName;
17711
      }
17712
    }
17713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17714
    static {
17715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_args.class, metaDataMap);
17718
    }
17719
 
17720
    public getCurrentSerializedInventoryByScans_args() {
17721
    }
17722
 
17723
    /**
17724
     * Performs a deep copy on <i>other</i>.
17725
     */
17726
    public getCurrentSerializedInventoryByScans_args(getCurrentSerializedInventoryByScans_args other) {
17727
    }
17728
 
17729
    public getCurrentSerializedInventoryByScans_args deepCopy() {
17730
      return new getCurrentSerializedInventoryByScans_args(this);
17731
    }
17732
 
17733
    @Override
17734
    public void clear() {
17735
    }
17736
 
17737
    public void setFieldValue(_Fields field, Object value) {
17738
      switch (field) {
17739
      }
17740
    }
17741
 
17742
    public Object getFieldValue(_Fields field) {
17743
      switch (field) {
17744
      }
17745
      throw new IllegalStateException();
17746
    }
17747
 
17748
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17749
    public boolean isSet(_Fields field) {
17750
      if (field == null) {
17751
        throw new IllegalArgumentException();
17752
      }
17753
 
17754
      switch (field) {
17755
      }
17756
      throw new IllegalStateException();
17757
    }
17758
 
17759
    @Override
17760
    public boolean equals(Object that) {
17761
      if (that == null)
17762
        return false;
17763
      if (that instanceof getCurrentSerializedInventoryByScans_args)
17764
        return this.equals((getCurrentSerializedInventoryByScans_args)that);
17765
      return false;
17766
    }
17767
 
17768
    public boolean equals(getCurrentSerializedInventoryByScans_args that) {
17769
      if (that == null)
17770
        return false;
17771
 
17772
      return true;
17773
    }
17774
 
17775
    @Override
17776
    public int hashCode() {
17777
      return 0;
17778
    }
17779
 
17780
    public int compareTo(getCurrentSerializedInventoryByScans_args other) {
17781
      if (!getClass().equals(other.getClass())) {
17782
        return getClass().getName().compareTo(other.getClass().getName());
17783
      }
17784
 
17785
      int lastComparison = 0;
17786
      getCurrentSerializedInventoryByScans_args typedOther = (getCurrentSerializedInventoryByScans_args)other;
17787
 
17788
      return 0;
17789
    }
17790
 
17791
    public _Fields fieldForId(int fieldId) {
17792
      return _Fields.findByThriftId(fieldId);
17793
    }
17794
 
17795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17796
      org.apache.thrift.protocol.TField field;
17797
      iprot.readStructBegin();
17798
      while (true)
17799
      {
17800
        field = iprot.readFieldBegin();
17801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17802
          break;
17803
        }
17804
        switch (field.id) {
17805
          default:
17806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17807
        }
17808
        iprot.readFieldEnd();
17809
      }
17810
      iprot.readStructEnd();
17811
      validate();
17812
    }
17813
 
17814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17815
      validate();
17816
 
17817
      oprot.writeStructBegin(STRUCT_DESC);
17818
      oprot.writeFieldStop();
17819
      oprot.writeStructEnd();
17820
    }
17821
 
17822
    @Override
17823
    public String toString() {
17824
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_args(");
17825
      boolean first = true;
17826
 
17827
      sb.append(")");
17828
      return sb.toString();
17829
    }
17830
 
17831
    public void validate() throws org.apache.thrift.TException {
17832
      // check for required fields
17833
    }
17834
 
17835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17836
      try {
17837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17838
      } catch (org.apache.thrift.TException te) {
17839
        throw new java.io.IOException(te);
17840
      }
17841
    }
17842
 
17843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17844
      try {
17845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17846
      } catch (org.apache.thrift.TException te) {
17847
        throw new java.io.IOException(te);
17848
      }
17849
    }
17850
 
17851
  }
17852
 
17853
  public static class getCurrentSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentSerializedInventoryByScans_result, getCurrentSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
17854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentSerializedInventoryByScans_result");
17855
 
17856
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
17857
 
17858
    private List<InventoryAvailability> success; // required
17859
 
17860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17862
      SUCCESS((short)0, "success");
17863
 
17864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17865
 
17866
      static {
17867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17868
          byName.put(field.getFieldName(), field);
17869
        }
17870
      }
17871
 
17872
      /**
17873
       * Find the _Fields constant that matches fieldId, or null if its not found.
17874
       */
17875
      public static _Fields findByThriftId(int fieldId) {
17876
        switch(fieldId) {
17877
          case 0: // SUCCESS
17878
            return SUCCESS;
17879
          default:
17880
            return null;
17881
        }
17882
      }
17883
 
17884
      /**
17885
       * Find the _Fields constant that matches fieldId, throwing an exception
17886
       * if it is not found.
17887
       */
17888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17889
        _Fields fields = findByThriftId(fieldId);
17890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17891
        return fields;
17892
      }
17893
 
17894
      /**
17895
       * Find the _Fields constant that matches name, or null if its not found.
17896
       */
17897
      public static _Fields findByName(String name) {
17898
        return byName.get(name);
17899
      }
17900
 
17901
      private final short _thriftId;
17902
      private final String _fieldName;
17903
 
17904
      _Fields(short thriftId, String fieldName) {
17905
        _thriftId = thriftId;
17906
        _fieldName = fieldName;
17907
      }
17908
 
17909
      public short getThriftFieldId() {
17910
        return _thriftId;
17911
      }
17912
 
17913
      public String getFieldName() {
17914
        return _fieldName;
17915
      }
17916
    }
17917
 
17918
    // isset id assignments
17919
 
17920
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17921
    static {
17922
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17923
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17924
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17925
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
17926
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17927
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentSerializedInventoryByScans_result.class, metaDataMap);
17928
    }
17929
 
17930
    public getCurrentSerializedInventoryByScans_result() {
17931
    }
17932
 
17933
    public getCurrentSerializedInventoryByScans_result(
17934
      List<InventoryAvailability> success)
17935
    {
17936
      this();
17937
      this.success = success;
17938
    }
17939
 
17940
    /**
17941
     * Performs a deep copy on <i>other</i>.
17942
     */
17943
    public getCurrentSerializedInventoryByScans_result(getCurrentSerializedInventoryByScans_result other) {
17944
      if (other.isSetSuccess()) {
17945
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
17946
        for (InventoryAvailability other_element : other.success) {
17947
          __this__success.add(new InventoryAvailability(other_element));
17948
        }
17949
        this.success = __this__success;
17950
      }
17951
    }
17952
 
17953
    public getCurrentSerializedInventoryByScans_result deepCopy() {
17954
      return new getCurrentSerializedInventoryByScans_result(this);
17955
    }
17956
 
17957
    @Override
17958
    public void clear() {
17959
      this.success = null;
17960
    }
17961
 
17962
    public int getSuccessSize() {
17963
      return (this.success == null) ? 0 : this.success.size();
17964
    }
17965
 
17966
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
17967
      return (this.success == null) ? null : this.success.iterator();
17968
    }
17969
 
17970
    public void addToSuccess(InventoryAvailability elem) {
17971
      if (this.success == null) {
17972
        this.success = new ArrayList<InventoryAvailability>();
17973
      }
17974
      this.success.add(elem);
17975
    }
17976
 
17977
    public List<InventoryAvailability> getSuccess() {
17978
      return this.success;
17979
    }
17980
 
17981
    public void setSuccess(List<InventoryAvailability> success) {
17982
      this.success = success;
17983
    }
17984
 
17985
    public void unsetSuccess() {
17986
      this.success = null;
17987
    }
17988
 
17989
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17990
    public boolean isSetSuccess() {
17991
      return this.success != null;
17992
    }
17993
 
17994
    public void setSuccessIsSet(boolean value) {
17995
      if (!value) {
17996
        this.success = null;
17997
      }
17998
    }
17999
 
18000
    public void setFieldValue(_Fields field, Object value) {
18001
      switch (field) {
18002
      case SUCCESS:
18003
        if (value == null) {
18004
          unsetSuccess();
18005
        } else {
18006
          setSuccess((List<InventoryAvailability>)value);
18007
        }
18008
        break;
18009
 
18010
      }
18011
    }
18012
 
18013
    public Object getFieldValue(_Fields field) {
18014
      switch (field) {
18015
      case SUCCESS:
18016
        return getSuccess();
18017
 
18018
      }
18019
      throw new IllegalStateException();
18020
    }
18021
 
18022
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18023
    public boolean isSet(_Fields field) {
18024
      if (field == null) {
18025
        throw new IllegalArgumentException();
18026
      }
18027
 
18028
      switch (field) {
18029
      case SUCCESS:
18030
        return isSetSuccess();
18031
      }
18032
      throw new IllegalStateException();
18033
    }
18034
 
18035
    @Override
18036
    public boolean equals(Object that) {
18037
      if (that == null)
18038
        return false;
18039
      if (that instanceof getCurrentSerializedInventoryByScans_result)
18040
        return this.equals((getCurrentSerializedInventoryByScans_result)that);
18041
      return false;
18042
    }
18043
 
18044
    public boolean equals(getCurrentSerializedInventoryByScans_result that) {
18045
      if (that == null)
18046
        return false;
18047
 
18048
      boolean this_present_success = true && this.isSetSuccess();
18049
      boolean that_present_success = true && that.isSetSuccess();
18050
      if (this_present_success || that_present_success) {
18051
        if (!(this_present_success && that_present_success))
18052
          return false;
18053
        if (!this.success.equals(that.success))
18054
          return false;
18055
      }
18056
 
18057
      return true;
18058
    }
18059
 
18060
    @Override
18061
    public int hashCode() {
18062
      return 0;
18063
    }
18064
 
18065
    public int compareTo(getCurrentSerializedInventoryByScans_result other) {
18066
      if (!getClass().equals(other.getClass())) {
18067
        return getClass().getName().compareTo(other.getClass().getName());
18068
      }
18069
 
18070
      int lastComparison = 0;
18071
      getCurrentSerializedInventoryByScans_result typedOther = (getCurrentSerializedInventoryByScans_result)other;
18072
 
18073
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18074
      if (lastComparison != 0) {
18075
        return lastComparison;
18076
      }
18077
      if (isSetSuccess()) {
18078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18079
        if (lastComparison != 0) {
18080
          return lastComparison;
18081
        }
18082
      }
18083
      return 0;
18084
    }
18085
 
18086
    public _Fields fieldForId(int fieldId) {
18087
      return _Fields.findByThriftId(fieldId);
18088
    }
18089
 
18090
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18091
      org.apache.thrift.protocol.TField field;
18092
      iprot.readStructBegin();
18093
      while (true)
18094
      {
18095
        field = iprot.readFieldBegin();
18096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18097
          break;
18098
        }
18099
        switch (field.id) {
18100
          case 0: // SUCCESS
18101
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18102
              {
7210 amar.kumar 18103
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
18104
                this.success = new ArrayList<InventoryAvailability>(_list44.size);
18105
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
6548 amar.kumar 18106
                {
7210 amar.kumar 18107
                  InventoryAvailability _elem46; // required
18108
                  _elem46 = new InventoryAvailability();
18109
                  _elem46.read(iprot);
18110
                  this.success.add(_elem46);
6548 amar.kumar 18111
                }
18112
                iprot.readListEnd();
18113
              }
18114
            } else { 
18115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18116
            }
18117
            break;
18118
          default:
18119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18120
        }
18121
        iprot.readFieldEnd();
18122
      }
18123
      iprot.readStructEnd();
18124
      validate();
18125
    }
18126
 
18127
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18128
      oprot.writeStructBegin(STRUCT_DESC);
18129
 
18130
      if (this.isSetSuccess()) {
18131
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18132
        {
18133
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18134
          for (InventoryAvailability _iter47 : this.success)
6548 amar.kumar 18135
          {
7210 amar.kumar 18136
            _iter47.write(oprot);
6548 amar.kumar 18137
          }
18138
          oprot.writeListEnd();
18139
        }
18140
        oprot.writeFieldEnd();
18141
      }
18142
      oprot.writeFieldStop();
18143
      oprot.writeStructEnd();
18144
    }
18145
 
18146
    @Override
18147
    public String toString() {
18148
      StringBuilder sb = new StringBuilder("getCurrentSerializedInventoryByScans_result(");
18149
      boolean first = true;
18150
 
18151
      sb.append("success:");
18152
      if (this.success == null) {
18153
        sb.append("null");
18154
      } else {
18155
        sb.append(this.success);
18156
      }
18157
      first = false;
18158
      sb.append(")");
18159
      return sb.toString();
18160
    }
18161
 
18162
    public void validate() throws org.apache.thrift.TException {
18163
      // check for required fields
18164
    }
18165
 
18166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18167
      try {
18168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18169
      } catch (org.apache.thrift.TException te) {
18170
        throw new java.io.IOException(te);
18171
      }
18172
    }
18173
 
18174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18175
      try {
18176
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18177
      } catch (org.apache.thrift.TException te) {
18178
        throw new java.io.IOException(te);
18179
      }
18180
    }
18181
 
18182
  }
18183
 
6630 amar.kumar 18184
  public static class getCurrentNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_args, getCurrentNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18185
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_args");
18186
 
18187
 
18188
 
18189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18191
;
18192
 
18193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18194
 
18195
      static {
18196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18197
          byName.put(field.getFieldName(), field);
18198
        }
18199
      }
18200
 
18201
      /**
18202
       * Find the _Fields constant that matches fieldId, or null if its not found.
18203
       */
18204
      public static _Fields findByThriftId(int fieldId) {
18205
        switch(fieldId) {
18206
          default:
18207
            return null;
18208
        }
18209
      }
18210
 
18211
      /**
18212
       * Find the _Fields constant that matches fieldId, throwing an exception
18213
       * if it is not found.
18214
       */
18215
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18216
        _Fields fields = findByThriftId(fieldId);
18217
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18218
        return fields;
18219
      }
18220
 
18221
      /**
18222
       * Find the _Fields constant that matches name, or null if its not found.
18223
       */
18224
      public static _Fields findByName(String name) {
18225
        return byName.get(name);
18226
      }
18227
 
18228
      private final short _thriftId;
18229
      private final String _fieldName;
18230
 
18231
      _Fields(short thriftId, String fieldName) {
18232
        _thriftId = thriftId;
18233
        _fieldName = fieldName;
18234
      }
18235
 
18236
      public short getThriftFieldId() {
18237
        return _thriftId;
18238
      }
18239
 
18240
      public String getFieldName() {
18241
        return _fieldName;
18242
      }
18243
    }
18244
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18245
    static {
18246
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18247
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18248
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_args.class, metaDataMap);
18249
    }
18250
 
18251
    public getCurrentNonSerializedInventoryByScans_args() {
18252
    }
18253
 
18254
    /**
18255
     * Performs a deep copy on <i>other</i>.
18256
     */
18257
    public getCurrentNonSerializedInventoryByScans_args(getCurrentNonSerializedInventoryByScans_args other) {
18258
    }
18259
 
18260
    public getCurrentNonSerializedInventoryByScans_args deepCopy() {
18261
      return new getCurrentNonSerializedInventoryByScans_args(this);
18262
    }
18263
 
18264
    @Override
18265
    public void clear() {
18266
    }
18267
 
18268
    public void setFieldValue(_Fields field, Object value) {
18269
      switch (field) {
18270
      }
18271
    }
18272
 
18273
    public Object getFieldValue(_Fields field) {
18274
      switch (field) {
18275
      }
18276
      throw new IllegalStateException();
18277
    }
18278
 
18279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18280
    public boolean isSet(_Fields field) {
18281
      if (field == null) {
18282
        throw new IllegalArgumentException();
18283
      }
18284
 
18285
      switch (field) {
18286
      }
18287
      throw new IllegalStateException();
18288
    }
18289
 
18290
    @Override
18291
    public boolean equals(Object that) {
18292
      if (that == null)
18293
        return false;
18294
      if (that instanceof getCurrentNonSerializedInventoryByScans_args)
18295
        return this.equals((getCurrentNonSerializedInventoryByScans_args)that);
18296
      return false;
18297
    }
18298
 
18299
    public boolean equals(getCurrentNonSerializedInventoryByScans_args that) {
18300
      if (that == null)
18301
        return false;
18302
 
18303
      return true;
18304
    }
18305
 
18306
    @Override
18307
    public int hashCode() {
18308
      return 0;
18309
    }
18310
 
18311
    public int compareTo(getCurrentNonSerializedInventoryByScans_args other) {
18312
      if (!getClass().equals(other.getClass())) {
18313
        return getClass().getName().compareTo(other.getClass().getName());
18314
      }
18315
 
18316
      int lastComparison = 0;
18317
      getCurrentNonSerializedInventoryByScans_args typedOther = (getCurrentNonSerializedInventoryByScans_args)other;
18318
 
18319
      return 0;
18320
    }
18321
 
18322
    public _Fields fieldForId(int fieldId) {
18323
      return _Fields.findByThriftId(fieldId);
18324
    }
18325
 
18326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18327
      org.apache.thrift.protocol.TField field;
18328
      iprot.readStructBegin();
18329
      while (true)
18330
      {
18331
        field = iprot.readFieldBegin();
18332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18333
          break;
18334
        }
18335
        switch (field.id) {
18336
          default:
18337
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18338
        }
18339
        iprot.readFieldEnd();
18340
      }
18341
      iprot.readStructEnd();
18342
      validate();
18343
    }
18344
 
18345
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18346
      validate();
18347
 
18348
      oprot.writeStructBegin(STRUCT_DESC);
18349
      oprot.writeFieldStop();
18350
      oprot.writeStructEnd();
18351
    }
18352
 
18353
    @Override
18354
    public String toString() {
18355
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_args(");
18356
      boolean first = true;
18357
 
18358
      sb.append(")");
18359
      return sb.toString();
18360
    }
18361
 
18362
    public void validate() throws org.apache.thrift.TException {
18363
      // check for required fields
18364
    }
18365
 
18366
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18367
      try {
18368
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18369
      } catch (org.apache.thrift.TException te) {
18370
        throw new java.io.IOException(te);
18371
      }
18372
    }
18373
 
18374
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18375
      try {
18376
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18377
      } catch (org.apache.thrift.TException te) {
18378
        throw new java.io.IOException(te);
18379
      }
18380
    }
18381
 
18382
  }
18383
 
18384
  public static class getCurrentNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCurrentNonSerializedInventoryByScans_result, getCurrentNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
18385
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCurrentNonSerializedInventoryByScans_result");
18386
 
18387
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
18388
 
18389
    private List<InventoryAvailability> success; // required
18390
 
18391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18393
      SUCCESS((short)0, "success");
18394
 
18395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18396
 
18397
      static {
18398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18399
          byName.put(field.getFieldName(), field);
18400
        }
18401
      }
18402
 
18403
      /**
18404
       * Find the _Fields constant that matches fieldId, or null if its not found.
18405
       */
18406
      public static _Fields findByThriftId(int fieldId) {
18407
        switch(fieldId) {
18408
          case 0: // SUCCESS
18409
            return SUCCESS;
18410
          default:
18411
            return null;
18412
        }
18413
      }
18414
 
18415
      /**
18416
       * Find the _Fields constant that matches fieldId, throwing an exception
18417
       * if it is not found.
18418
       */
18419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18420
        _Fields fields = findByThriftId(fieldId);
18421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18422
        return fields;
18423
      }
18424
 
18425
      /**
18426
       * Find the _Fields constant that matches name, or null if its not found.
18427
       */
18428
      public static _Fields findByName(String name) {
18429
        return byName.get(name);
18430
      }
18431
 
18432
      private final short _thriftId;
18433
      private final String _fieldName;
18434
 
18435
      _Fields(short thriftId, String fieldName) {
18436
        _thriftId = thriftId;
18437
        _fieldName = fieldName;
18438
      }
18439
 
18440
      public short getThriftFieldId() {
18441
        return _thriftId;
18442
      }
18443
 
18444
      public String getFieldName() {
18445
        return _fieldName;
18446
      }
18447
    }
18448
 
18449
    // isset id assignments
18450
 
18451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18452
    static {
18453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18454
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18455
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18456
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
18457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCurrentNonSerializedInventoryByScans_result.class, metaDataMap);
18459
    }
18460
 
18461
    public getCurrentNonSerializedInventoryByScans_result() {
18462
    }
18463
 
18464
    public getCurrentNonSerializedInventoryByScans_result(
18465
      List<InventoryAvailability> success)
18466
    {
18467
      this();
18468
      this.success = success;
18469
    }
18470
 
18471
    /**
18472
     * Performs a deep copy on <i>other</i>.
18473
     */
18474
    public getCurrentNonSerializedInventoryByScans_result(getCurrentNonSerializedInventoryByScans_result other) {
18475
      if (other.isSetSuccess()) {
18476
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
18477
        for (InventoryAvailability other_element : other.success) {
18478
          __this__success.add(new InventoryAvailability(other_element));
18479
        }
18480
        this.success = __this__success;
18481
      }
18482
    }
18483
 
18484
    public getCurrentNonSerializedInventoryByScans_result deepCopy() {
18485
      return new getCurrentNonSerializedInventoryByScans_result(this);
18486
    }
18487
 
18488
    @Override
18489
    public void clear() {
18490
      this.success = null;
18491
    }
18492
 
18493
    public int getSuccessSize() {
18494
      return (this.success == null) ? 0 : this.success.size();
18495
    }
18496
 
18497
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
18498
      return (this.success == null) ? null : this.success.iterator();
18499
    }
18500
 
18501
    public void addToSuccess(InventoryAvailability elem) {
18502
      if (this.success == null) {
18503
        this.success = new ArrayList<InventoryAvailability>();
18504
      }
18505
      this.success.add(elem);
18506
    }
18507
 
18508
    public List<InventoryAvailability> getSuccess() {
18509
      return this.success;
18510
    }
18511
 
18512
    public void setSuccess(List<InventoryAvailability> success) {
18513
      this.success = success;
18514
    }
18515
 
18516
    public void unsetSuccess() {
18517
      this.success = null;
18518
    }
18519
 
18520
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18521
    public boolean isSetSuccess() {
18522
      return this.success != null;
18523
    }
18524
 
18525
    public void setSuccessIsSet(boolean value) {
18526
      if (!value) {
18527
        this.success = null;
18528
      }
18529
    }
18530
 
18531
    public void setFieldValue(_Fields field, Object value) {
18532
      switch (field) {
18533
      case SUCCESS:
18534
        if (value == null) {
18535
          unsetSuccess();
18536
        } else {
18537
          setSuccess((List<InventoryAvailability>)value);
18538
        }
18539
        break;
18540
 
18541
      }
18542
    }
18543
 
18544
    public Object getFieldValue(_Fields field) {
18545
      switch (field) {
18546
      case SUCCESS:
18547
        return getSuccess();
18548
 
18549
      }
18550
      throw new IllegalStateException();
18551
    }
18552
 
18553
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18554
    public boolean isSet(_Fields field) {
18555
      if (field == null) {
18556
        throw new IllegalArgumentException();
18557
      }
18558
 
18559
      switch (field) {
18560
      case SUCCESS:
18561
        return isSetSuccess();
18562
      }
18563
      throw new IllegalStateException();
18564
    }
18565
 
18566
    @Override
18567
    public boolean equals(Object that) {
18568
      if (that == null)
18569
        return false;
18570
      if (that instanceof getCurrentNonSerializedInventoryByScans_result)
18571
        return this.equals((getCurrentNonSerializedInventoryByScans_result)that);
18572
      return false;
18573
    }
18574
 
18575
    public boolean equals(getCurrentNonSerializedInventoryByScans_result that) {
18576
      if (that == null)
18577
        return false;
18578
 
18579
      boolean this_present_success = true && this.isSetSuccess();
18580
      boolean that_present_success = true && that.isSetSuccess();
18581
      if (this_present_success || that_present_success) {
18582
        if (!(this_present_success && that_present_success))
18583
          return false;
18584
        if (!this.success.equals(that.success))
18585
          return false;
18586
      }
18587
 
18588
      return true;
18589
    }
18590
 
18591
    @Override
18592
    public int hashCode() {
18593
      return 0;
18594
    }
18595
 
18596
    public int compareTo(getCurrentNonSerializedInventoryByScans_result other) {
18597
      if (!getClass().equals(other.getClass())) {
18598
        return getClass().getName().compareTo(other.getClass().getName());
18599
      }
18600
 
18601
      int lastComparison = 0;
18602
      getCurrentNonSerializedInventoryByScans_result typedOther = (getCurrentNonSerializedInventoryByScans_result)other;
18603
 
18604
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18605
      if (lastComparison != 0) {
18606
        return lastComparison;
18607
      }
18608
      if (isSetSuccess()) {
18609
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18610
        if (lastComparison != 0) {
18611
          return lastComparison;
18612
        }
18613
      }
18614
      return 0;
18615
    }
18616
 
18617
    public _Fields fieldForId(int fieldId) {
18618
      return _Fields.findByThriftId(fieldId);
18619
    }
18620
 
18621
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18622
      org.apache.thrift.protocol.TField field;
18623
      iprot.readStructBegin();
18624
      while (true)
18625
      {
18626
        field = iprot.readFieldBegin();
18627
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18628
          break;
18629
        }
18630
        switch (field.id) {
18631
          case 0: // SUCCESS
18632
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18633
              {
7210 amar.kumar 18634
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
18635
                this.success = new ArrayList<InventoryAvailability>(_list48.size);
18636
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
6630 amar.kumar 18637
                {
7210 amar.kumar 18638
                  InventoryAvailability _elem50; // required
18639
                  _elem50 = new InventoryAvailability();
18640
                  _elem50.read(iprot);
18641
                  this.success.add(_elem50);
6630 amar.kumar 18642
                }
18643
                iprot.readListEnd();
18644
              }
18645
            } else { 
18646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18647
            }
18648
            break;
18649
          default:
18650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18651
        }
18652
        iprot.readFieldEnd();
18653
      }
18654
      iprot.readStructEnd();
18655
      validate();
18656
    }
18657
 
18658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18659
      oprot.writeStructBegin(STRUCT_DESC);
18660
 
18661
      if (this.isSetSuccess()) {
18662
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18663
        {
18664
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 18665
          for (InventoryAvailability _iter51 : this.success)
6630 amar.kumar 18666
          {
7210 amar.kumar 18667
            _iter51.write(oprot);
6630 amar.kumar 18668
          }
18669
          oprot.writeListEnd();
18670
        }
18671
        oprot.writeFieldEnd();
18672
      }
18673
      oprot.writeFieldStop();
18674
      oprot.writeStructEnd();
18675
    }
18676
 
18677
    @Override
18678
    public String toString() {
18679
      StringBuilder sb = new StringBuilder("getCurrentNonSerializedInventoryByScans_result(");
18680
      boolean first = true;
18681
 
18682
      sb.append("success:");
18683
      if (this.success == null) {
18684
        sb.append("null");
18685
      } else {
18686
        sb.append(this.success);
18687
      }
18688
      first = false;
18689
      sb.append(")");
18690
      return sb.toString();
18691
    }
18692
 
18693
    public void validate() throws org.apache.thrift.TException {
18694
      // check for required fields
18695
    }
18696
 
18697
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18698
      try {
18699
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18700
      } catch (org.apache.thrift.TException te) {
18701
        throw new java.io.IOException(te);
18702
      }
18703
    }
18704
 
18705
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18706
      try {
18707
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18708
      } catch (org.apache.thrift.TException te) {
18709
        throw new java.io.IOException(te);
18710
      }
18711
    }
18712
 
18713
  }
18714
 
6762 amar.kumar 18715
  public static class getHistoricSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_args, getHistoricSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
18716
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_args");
18717
 
18718
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
18719
 
18720
    private long date; // required
18721
 
18722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18724
      DATE((short)1, "date");
18725
 
18726
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18727
 
18728
      static {
18729
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18730
          byName.put(field.getFieldName(), field);
18731
        }
18732
      }
18733
 
18734
      /**
18735
       * Find the _Fields constant that matches fieldId, or null if its not found.
18736
       */
18737
      public static _Fields findByThriftId(int fieldId) {
18738
        switch(fieldId) {
18739
          case 1: // DATE
18740
            return DATE;
18741
          default:
18742
            return null;
18743
        }
18744
      }
18745
 
18746
      /**
18747
       * Find the _Fields constant that matches fieldId, throwing an exception
18748
       * if it is not found.
18749
       */
18750
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18751
        _Fields fields = findByThriftId(fieldId);
18752
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18753
        return fields;
18754
      }
18755
 
18756
      /**
18757
       * Find the _Fields constant that matches name, or null if its not found.
18758
       */
18759
      public static _Fields findByName(String name) {
18760
        return byName.get(name);
18761
      }
18762
 
18763
      private final short _thriftId;
18764
      private final String _fieldName;
18765
 
18766
      _Fields(short thriftId, String fieldName) {
18767
        _thriftId = thriftId;
18768
        _fieldName = fieldName;
18769
      }
18770
 
18771
      public short getThriftFieldId() {
18772
        return _thriftId;
18773
      }
18774
 
18775
      public String getFieldName() {
18776
        return _fieldName;
18777
      }
18778
    }
18779
 
18780
    // isset id assignments
18781
    private static final int __DATE_ISSET_ID = 0;
18782
    private BitSet __isset_bit_vector = new BitSet(1);
18783
 
18784
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18785
    static {
18786
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18787
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_args.class, metaDataMap);
18791
    }
18792
 
18793
    public getHistoricSerializedInventoryByScans_args() {
18794
    }
18795
 
18796
    public getHistoricSerializedInventoryByScans_args(
18797
      long date)
18798
    {
18799
      this();
18800
      this.date = date;
18801
      setDateIsSet(true);
18802
    }
18803
 
18804
    /**
18805
     * Performs a deep copy on <i>other</i>.
18806
     */
18807
    public getHistoricSerializedInventoryByScans_args(getHistoricSerializedInventoryByScans_args other) {
18808
      __isset_bit_vector.clear();
18809
      __isset_bit_vector.or(other.__isset_bit_vector);
18810
      this.date = other.date;
18811
    }
18812
 
18813
    public getHistoricSerializedInventoryByScans_args deepCopy() {
18814
      return new getHistoricSerializedInventoryByScans_args(this);
18815
    }
18816
 
18817
    @Override
18818
    public void clear() {
18819
      setDateIsSet(false);
18820
      this.date = 0;
18821
    }
18822
 
18823
    public long getDate() {
18824
      return this.date;
18825
    }
18826
 
18827
    public void setDate(long date) {
18828
      this.date = date;
18829
      setDateIsSet(true);
18830
    }
18831
 
18832
    public void unsetDate() {
18833
      __isset_bit_vector.clear(__DATE_ISSET_ID);
18834
    }
18835
 
18836
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
18837
    public boolean isSetDate() {
18838
      return __isset_bit_vector.get(__DATE_ISSET_ID);
18839
    }
18840
 
18841
    public void setDateIsSet(boolean value) {
18842
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
18843
    }
18844
 
18845
    public void setFieldValue(_Fields field, Object value) {
18846
      switch (field) {
18847
      case DATE:
18848
        if (value == null) {
18849
          unsetDate();
18850
        } else {
18851
          setDate((Long)value);
18852
        }
18853
        break;
18854
 
18855
      }
18856
    }
18857
 
18858
    public Object getFieldValue(_Fields field) {
18859
      switch (field) {
18860
      case DATE:
18861
        return Long.valueOf(getDate());
18862
 
18863
      }
18864
      throw new IllegalStateException();
18865
    }
18866
 
18867
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18868
    public boolean isSet(_Fields field) {
18869
      if (field == null) {
18870
        throw new IllegalArgumentException();
18871
      }
18872
 
18873
      switch (field) {
18874
      case DATE:
18875
        return isSetDate();
18876
      }
18877
      throw new IllegalStateException();
18878
    }
18879
 
18880
    @Override
18881
    public boolean equals(Object that) {
18882
      if (that == null)
18883
        return false;
18884
      if (that instanceof getHistoricSerializedInventoryByScans_args)
18885
        return this.equals((getHistoricSerializedInventoryByScans_args)that);
18886
      return false;
18887
    }
18888
 
18889
    public boolean equals(getHistoricSerializedInventoryByScans_args that) {
18890
      if (that == null)
18891
        return false;
18892
 
18893
      boolean this_present_date = true;
18894
      boolean that_present_date = true;
18895
      if (this_present_date || that_present_date) {
18896
        if (!(this_present_date && that_present_date))
18897
          return false;
18898
        if (this.date != that.date)
18899
          return false;
18900
      }
18901
 
18902
      return true;
18903
    }
18904
 
18905
    @Override
18906
    public int hashCode() {
18907
      return 0;
18908
    }
18909
 
18910
    public int compareTo(getHistoricSerializedInventoryByScans_args other) {
18911
      if (!getClass().equals(other.getClass())) {
18912
        return getClass().getName().compareTo(other.getClass().getName());
18913
      }
18914
 
18915
      int lastComparison = 0;
18916
      getHistoricSerializedInventoryByScans_args typedOther = (getHistoricSerializedInventoryByScans_args)other;
18917
 
18918
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
18919
      if (lastComparison != 0) {
18920
        return lastComparison;
18921
      }
18922
      if (isSetDate()) {
18923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
18924
        if (lastComparison != 0) {
18925
          return lastComparison;
18926
        }
18927
      }
18928
      return 0;
18929
    }
18930
 
18931
    public _Fields fieldForId(int fieldId) {
18932
      return _Fields.findByThriftId(fieldId);
18933
    }
18934
 
18935
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18936
      org.apache.thrift.protocol.TField field;
18937
      iprot.readStructBegin();
18938
      while (true)
18939
      {
18940
        field = iprot.readFieldBegin();
18941
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18942
          break;
18943
        }
18944
        switch (field.id) {
18945
          case 1: // DATE
18946
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18947
              this.date = iprot.readI64();
18948
              setDateIsSet(true);
18949
            } else { 
18950
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18951
            }
18952
            break;
18953
          default:
18954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18955
        }
18956
        iprot.readFieldEnd();
18957
      }
18958
      iprot.readStructEnd();
18959
      validate();
18960
    }
18961
 
18962
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18963
      validate();
18964
 
18965
      oprot.writeStructBegin(STRUCT_DESC);
18966
      oprot.writeFieldBegin(DATE_FIELD_DESC);
18967
      oprot.writeI64(this.date);
18968
      oprot.writeFieldEnd();
18969
      oprot.writeFieldStop();
18970
      oprot.writeStructEnd();
18971
    }
18972
 
18973
    @Override
18974
    public String toString() {
18975
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_args(");
18976
      boolean first = true;
18977
 
18978
      sb.append("date:");
18979
      sb.append(this.date);
18980
      first = false;
18981
      sb.append(")");
18982
      return sb.toString();
18983
    }
18984
 
18985
    public void validate() throws org.apache.thrift.TException {
18986
      // check for required fields
18987
    }
18988
 
18989
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18990
      try {
18991
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18992
      } catch (org.apache.thrift.TException te) {
18993
        throw new java.io.IOException(te);
18994
      }
18995
    }
18996
 
18997
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18998
      try {
18999
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19000
      } catch (org.apache.thrift.TException te) {
19001
        throw new java.io.IOException(te);
19002
      }
19003
    }
19004
 
19005
  }
19006
 
19007
  public static class getHistoricSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricSerializedInventoryByScans_result, getHistoricSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19008
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricSerializedInventoryByScans_result");
19009
 
19010
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19011
 
19012
    private List<InventoryAvailability> success; // required
19013
 
19014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19016
      SUCCESS((short)0, "success");
19017
 
19018
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19019
 
19020
      static {
19021
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19022
          byName.put(field.getFieldName(), field);
19023
        }
19024
      }
19025
 
19026
      /**
19027
       * Find the _Fields constant that matches fieldId, or null if its not found.
19028
       */
19029
      public static _Fields findByThriftId(int fieldId) {
19030
        switch(fieldId) {
19031
          case 0: // SUCCESS
19032
            return SUCCESS;
19033
          default:
19034
            return null;
19035
        }
19036
      }
19037
 
19038
      /**
19039
       * Find the _Fields constant that matches fieldId, throwing an exception
19040
       * if it is not found.
19041
       */
19042
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19043
        _Fields fields = findByThriftId(fieldId);
19044
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19045
        return fields;
19046
      }
19047
 
19048
      /**
19049
       * Find the _Fields constant that matches name, or null if its not found.
19050
       */
19051
      public static _Fields findByName(String name) {
19052
        return byName.get(name);
19053
      }
19054
 
19055
      private final short _thriftId;
19056
      private final String _fieldName;
19057
 
19058
      _Fields(short thriftId, String fieldName) {
19059
        _thriftId = thriftId;
19060
        _fieldName = fieldName;
19061
      }
19062
 
19063
      public short getThriftFieldId() {
19064
        return _thriftId;
19065
      }
19066
 
19067
      public String getFieldName() {
19068
        return _fieldName;
19069
      }
19070
    }
19071
 
19072
    // isset id assignments
19073
 
19074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19075
    static {
19076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19077
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19078
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19079
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19080
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19081
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricSerializedInventoryByScans_result.class, metaDataMap);
19082
    }
19083
 
19084
    public getHistoricSerializedInventoryByScans_result() {
19085
    }
19086
 
19087
    public getHistoricSerializedInventoryByScans_result(
19088
      List<InventoryAvailability> success)
19089
    {
19090
      this();
19091
      this.success = success;
19092
    }
19093
 
19094
    /**
19095
     * Performs a deep copy on <i>other</i>.
19096
     */
19097
    public getHistoricSerializedInventoryByScans_result(getHistoricSerializedInventoryByScans_result other) {
19098
      if (other.isSetSuccess()) {
19099
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19100
        for (InventoryAvailability other_element : other.success) {
19101
          __this__success.add(new InventoryAvailability(other_element));
19102
        }
19103
        this.success = __this__success;
19104
      }
19105
    }
19106
 
19107
    public getHistoricSerializedInventoryByScans_result deepCopy() {
19108
      return new getHistoricSerializedInventoryByScans_result(this);
19109
    }
19110
 
19111
    @Override
19112
    public void clear() {
19113
      this.success = null;
19114
    }
19115
 
19116
    public int getSuccessSize() {
19117
      return (this.success == null) ? 0 : this.success.size();
19118
    }
19119
 
19120
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19121
      return (this.success == null) ? null : this.success.iterator();
19122
    }
19123
 
19124
    public void addToSuccess(InventoryAvailability elem) {
19125
      if (this.success == null) {
19126
        this.success = new ArrayList<InventoryAvailability>();
19127
      }
19128
      this.success.add(elem);
19129
    }
19130
 
19131
    public List<InventoryAvailability> getSuccess() {
19132
      return this.success;
19133
    }
19134
 
19135
    public void setSuccess(List<InventoryAvailability> success) {
19136
      this.success = success;
19137
    }
19138
 
19139
    public void unsetSuccess() {
19140
      this.success = null;
19141
    }
19142
 
19143
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19144
    public boolean isSetSuccess() {
19145
      return this.success != null;
19146
    }
19147
 
19148
    public void setSuccessIsSet(boolean value) {
19149
      if (!value) {
19150
        this.success = null;
19151
      }
19152
    }
19153
 
19154
    public void setFieldValue(_Fields field, Object value) {
19155
      switch (field) {
19156
      case SUCCESS:
19157
        if (value == null) {
19158
          unsetSuccess();
19159
        } else {
19160
          setSuccess((List<InventoryAvailability>)value);
19161
        }
19162
        break;
19163
 
19164
      }
19165
    }
19166
 
19167
    public Object getFieldValue(_Fields field) {
19168
      switch (field) {
19169
      case SUCCESS:
19170
        return getSuccess();
19171
 
19172
      }
19173
      throw new IllegalStateException();
19174
    }
19175
 
19176
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19177
    public boolean isSet(_Fields field) {
19178
      if (field == null) {
19179
        throw new IllegalArgumentException();
19180
      }
19181
 
19182
      switch (field) {
19183
      case SUCCESS:
19184
        return isSetSuccess();
19185
      }
19186
      throw new IllegalStateException();
19187
    }
19188
 
19189
    @Override
19190
    public boolean equals(Object that) {
19191
      if (that == null)
19192
        return false;
19193
      if (that instanceof getHistoricSerializedInventoryByScans_result)
19194
        return this.equals((getHistoricSerializedInventoryByScans_result)that);
19195
      return false;
19196
    }
19197
 
19198
    public boolean equals(getHistoricSerializedInventoryByScans_result that) {
19199
      if (that == null)
19200
        return false;
19201
 
19202
      boolean this_present_success = true && this.isSetSuccess();
19203
      boolean that_present_success = true && that.isSetSuccess();
19204
      if (this_present_success || that_present_success) {
19205
        if (!(this_present_success && that_present_success))
19206
          return false;
19207
        if (!this.success.equals(that.success))
19208
          return false;
19209
      }
19210
 
19211
      return true;
19212
    }
19213
 
19214
    @Override
19215
    public int hashCode() {
19216
      return 0;
19217
    }
19218
 
19219
    public int compareTo(getHistoricSerializedInventoryByScans_result other) {
19220
      if (!getClass().equals(other.getClass())) {
19221
        return getClass().getName().compareTo(other.getClass().getName());
19222
      }
19223
 
19224
      int lastComparison = 0;
19225
      getHistoricSerializedInventoryByScans_result typedOther = (getHistoricSerializedInventoryByScans_result)other;
19226
 
19227
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19228
      if (lastComparison != 0) {
19229
        return lastComparison;
19230
      }
19231
      if (isSetSuccess()) {
19232
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19233
        if (lastComparison != 0) {
19234
          return lastComparison;
19235
        }
19236
      }
19237
      return 0;
19238
    }
19239
 
19240
    public _Fields fieldForId(int fieldId) {
19241
      return _Fields.findByThriftId(fieldId);
19242
    }
19243
 
19244
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19245
      org.apache.thrift.protocol.TField field;
19246
      iprot.readStructBegin();
19247
      while (true)
19248
      {
19249
        field = iprot.readFieldBegin();
19250
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19251
          break;
19252
        }
19253
        switch (field.id) {
19254
          case 0: // SUCCESS
19255
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19256
              {
7210 amar.kumar 19257
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
19258
                this.success = new ArrayList<InventoryAvailability>(_list52.size);
19259
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
6762 amar.kumar 19260
                {
7210 amar.kumar 19261
                  InventoryAvailability _elem54; // required
19262
                  _elem54 = new InventoryAvailability();
19263
                  _elem54.read(iprot);
19264
                  this.success.add(_elem54);
6762 amar.kumar 19265
                }
19266
                iprot.readListEnd();
19267
              }
19268
            } else { 
19269
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19270
            }
19271
            break;
19272
          default:
19273
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19274
        }
19275
        iprot.readFieldEnd();
19276
      }
19277
      iprot.readStructEnd();
19278
      validate();
19279
    }
19280
 
19281
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19282
      oprot.writeStructBegin(STRUCT_DESC);
19283
 
19284
      if (this.isSetSuccess()) {
19285
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19286
        {
19287
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19288
          for (InventoryAvailability _iter55 : this.success)
6762 amar.kumar 19289
          {
7210 amar.kumar 19290
            _iter55.write(oprot);
6762 amar.kumar 19291
          }
19292
          oprot.writeListEnd();
19293
        }
19294
        oprot.writeFieldEnd();
19295
      }
19296
      oprot.writeFieldStop();
19297
      oprot.writeStructEnd();
19298
    }
19299
 
19300
    @Override
19301
    public String toString() {
19302
      StringBuilder sb = new StringBuilder("getHistoricSerializedInventoryByScans_result(");
19303
      boolean first = true;
19304
 
19305
      sb.append("success:");
19306
      if (this.success == null) {
19307
        sb.append("null");
19308
      } else {
19309
        sb.append(this.success);
19310
      }
19311
      first = false;
19312
      sb.append(")");
19313
      return sb.toString();
19314
    }
19315
 
19316
    public void validate() throws org.apache.thrift.TException {
19317
      // check for required fields
19318
    }
19319
 
19320
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19321
      try {
19322
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19323
      } catch (org.apache.thrift.TException te) {
19324
        throw new java.io.IOException(te);
19325
      }
19326
    }
19327
 
19328
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19329
      try {
19330
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19331
      } catch (org.apache.thrift.TException te) {
19332
        throw new java.io.IOException(te);
19333
      }
19334
    }
19335
 
19336
  }
19337
 
19338
  public static class getHistoricNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_args, getHistoricNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
19339
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_args");
19340
 
19341
    private static final org.apache.thrift.protocol.TField DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("date", org.apache.thrift.protocol.TType.I64, (short)1);
19342
 
19343
    private long date; // required
19344
 
19345
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19346
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19347
      DATE((short)1, "date");
19348
 
19349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19350
 
19351
      static {
19352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19353
          byName.put(field.getFieldName(), field);
19354
        }
19355
      }
19356
 
19357
      /**
19358
       * Find the _Fields constant that matches fieldId, or null if its not found.
19359
       */
19360
      public static _Fields findByThriftId(int fieldId) {
19361
        switch(fieldId) {
19362
          case 1: // DATE
19363
            return DATE;
19364
          default:
19365
            return null;
19366
        }
19367
      }
19368
 
19369
      /**
19370
       * Find the _Fields constant that matches fieldId, throwing an exception
19371
       * if it is not found.
19372
       */
19373
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19374
        _Fields fields = findByThriftId(fieldId);
19375
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19376
        return fields;
19377
      }
19378
 
19379
      /**
19380
       * Find the _Fields constant that matches name, or null if its not found.
19381
       */
19382
      public static _Fields findByName(String name) {
19383
        return byName.get(name);
19384
      }
19385
 
19386
      private final short _thriftId;
19387
      private final String _fieldName;
19388
 
19389
      _Fields(short thriftId, String fieldName) {
19390
        _thriftId = thriftId;
19391
        _fieldName = fieldName;
19392
      }
19393
 
19394
      public short getThriftFieldId() {
19395
        return _thriftId;
19396
      }
19397
 
19398
      public String getFieldName() {
19399
        return _fieldName;
19400
      }
19401
    }
19402
 
19403
    // isset id assignments
19404
    private static final int __DATE_ISSET_ID = 0;
19405
    private BitSet __isset_bit_vector = new BitSet(1);
19406
 
19407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19408
    static {
19409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19410
      tmpMap.put(_Fields.DATE, new org.apache.thrift.meta_data.FieldMetaData("date", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19411
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_args.class, metaDataMap);
19414
    }
19415
 
19416
    public getHistoricNonSerializedInventoryByScans_args() {
19417
    }
19418
 
19419
    public getHistoricNonSerializedInventoryByScans_args(
19420
      long date)
19421
    {
19422
      this();
19423
      this.date = date;
19424
      setDateIsSet(true);
19425
    }
19426
 
19427
    /**
19428
     * Performs a deep copy on <i>other</i>.
19429
     */
19430
    public getHistoricNonSerializedInventoryByScans_args(getHistoricNonSerializedInventoryByScans_args other) {
19431
      __isset_bit_vector.clear();
19432
      __isset_bit_vector.or(other.__isset_bit_vector);
19433
      this.date = other.date;
19434
    }
19435
 
19436
    public getHistoricNonSerializedInventoryByScans_args deepCopy() {
19437
      return new getHistoricNonSerializedInventoryByScans_args(this);
19438
    }
19439
 
19440
    @Override
19441
    public void clear() {
19442
      setDateIsSet(false);
19443
      this.date = 0;
19444
    }
19445
 
19446
    public long getDate() {
19447
      return this.date;
19448
    }
19449
 
19450
    public void setDate(long date) {
19451
      this.date = date;
19452
      setDateIsSet(true);
19453
    }
19454
 
19455
    public void unsetDate() {
19456
      __isset_bit_vector.clear(__DATE_ISSET_ID);
19457
    }
19458
 
19459
    /** Returns true if field date is set (has been assigned a value) and false otherwise */
19460
    public boolean isSetDate() {
19461
      return __isset_bit_vector.get(__DATE_ISSET_ID);
19462
    }
19463
 
19464
    public void setDateIsSet(boolean value) {
19465
      __isset_bit_vector.set(__DATE_ISSET_ID, value);
19466
    }
19467
 
19468
    public void setFieldValue(_Fields field, Object value) {
19469
      switch (field) {
19470
      case DATE:
19471
        if (value == null) {
19472
          unsetDate();
19473
        } else {
19474
          setDate((Long)value);
19475
        }
19476
        break;
19477
 
19478
      }
19479
    }
19480
 
19481
    public Object getFieldValue(_Fields field) {
19482
      switch (field) {
19483
      case DATE:
19484
        return Long.valueOf(getDate());
19485
 
19486
      }
19487
      throw new IllegalStateException();
19488
    }
19489
 
19490
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19491
    public boolean isSet(_Fields field) {
19492
      if (field == null) {
19493
        throw new IllegalArgumentException();
19494
      }
19495
 
19496
      switch (field) {
19497
      case DATE:
19498
        return isSetDate();
19499
      }
19500
      throw new IllegalStateException();
19501
    }
19502
 
19503
    @Override
19504
    public boolean equals(Object that) {
19505
      if (that == null)
19506
        return false;
19507
      if (that instanceof getHistoricNonSerializedInventoryByScans_args)
19508
        return this.equals((getHistoricNonSerializedInventoryByScans_args)that);
19509
      return false;
19510
    }
19511
 
19512
    public boolean equals(getHistoricNonSerializedInventoryByScans_args that) {
19513
      if (that == null)
19514
        return false;
19515
 
19516
      boolean this_present_date = true;
19517
      boolean that_present_date = true;
19518
      if (this_present_date || that_present_date) {
19519
        if (!(this_present_date && that_present_date))
19520
          return false;
19521
        if (this.date != that.date)
19522
          return false;
19523
      }
19524
 
19525
      return true;
19526
    }
19527
 
19528
    @Override
19529
    public int hashCode() {
19530
      return 0;
19531
    }
19532
 
19533
    public int compareTo(getHistoricNonSerializedInventoryByScans_args other) {
19534
      if (!getClass().equals(other.getClass())) {
19535
        return getClass().getName().compareTo(other.getClass().getName());
19536
      }
19537
 
19538
      int lastComparison = 0;
19539
      getHistoricNonSerializedInventoryByScans_args typedOther = (getHistoricNonSerializedInventoryByScans_args)other;
19540
 
19541
      lastComparison = Boolean.valueOf(isSetDate()).compareTo(typedOther.isSetDate());
19542
      if (lastComparison != 0) {
19543
        return lastComparison;
19544
      }
19545
      if (isSetDate()) {
19546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.date, typedOther.date);
19547
        if (lastComparison != 0) {
19548
          return lastComparison;
19549
        }
19550
      }
19551
      return 0;
19552
    }
19553
 
19554
    public _Fields fieldForId(int fieldId) {
19555
      return _Fields.findByThriftId(fieldId);
19556
    }
19557
 
19558
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19559
      org.apache.thrift.protocol.TField field;
19560
      iprot.readStructBegin();
19561
      while (true)
19562
      {
19563
        field = iprot.readFieldBegin();
19564
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19565
          break;
19566
        }
19567
        switch (field.id) {
19568
          case 1: // DATE
19569
            if (field.type == org.apache.thrift.protocol.TType.I64) {
19570
              this.date = iprot.readI64();
19571
              setDateIsSet(true);
19572
            } else { 
19573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19574
            }
19575
            break;
19576
          default:
19577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19578
        }
19579
        iprot.readFieldEnd();
19580
      }
19581
      iprot.readStructEnd();
19582
      validate();
19583
    }
19584
 
19585
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19586
      validate();
19587
 
19588
      oprot.writeStructBegin(STRUCT_DESC);
19589
      oprot.writeFieldBegin(DATE_FIELD_DESC);
19590
      oprot.writeI64(this.date);
19591
      oprot.writeFieldEnd();
19592
      oprot.writeFieldStop();
19593
      oprot.writeStructEnd();
19594
    }
19595
 
19596
    @Override
19597
    public String toString() {
19598
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_args(");
19599
      boolean first = true;
19600
 
19601
      sb.append("date:");
19602
      sb.append(this.date);
19603
      first = false;
19604
      sb.append(")");
19605
      return sb.toString();
19606
    }
19607
 
19608
    public void validate() throws org.apache.thrift.TException {
19609
      // check for required fields
19610
    }
19611
 
19612
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19613
      try {
19614
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19615
      } catch (org.apache.thrift.TException te) {
19616
        throw new java.io.IOException(te);
19617
      }
19618
    }
19619
 
19620
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19621
      try {
19622
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
19623
        __isset_bit_vector = new BitSet(1);
19624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19625
      } catch (org.apache.thrift.TException te) {
19626
        throw new java.io.IOException(te);
19627
      }
19628
    }
19629
 
19630
  }
19631
 
19632
  public static class getHistoricNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getHistoricNonSerializedInventoryByScans_result, getHistoricNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
19633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHistoricNonSerializedInventoryByScans_result");
19634
 
19635
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
19636
 
19637
    private List<InventoryAvailability> success; // required
19638
 
19639
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19640
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19641
      SUCCESS((short)0, "success");
19642
 
19643
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19644
 
19645
      static {
19646
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19647
          byName.put(field.getFieldName(), field);
19648
        }
19649
      }
19650
 
19651
      /**
19652
       * Find the _Fields constant that matches fieldId, or null if its not found.
19653
       */
19654
      public static _Fields findByThriftId(int fieldId) {
19655
        switch(fieldId) {
19656
          case 0: // SUCCESS
19657
            return SUCCESS;
19658
          default:
19659
            return null;
19660
        }
19661
      }
19662
 
19663
      /**
19664
       * Find the _Fields constant that matches fieldId, throwing an exception
19665
       * if it is not found.
19666
       */
19667
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19668
        _Fields fields = findByThriftId(fieldId);
19669
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19670
        return fields;
19671
      }
19672
 
19673
      /**
19674
       * Find the _Fields constant that matches name, or null if its not found.
19675
       */
19676
      public static _Fields findByName(String name) {
19677
        return byName.get(name);
19678
      }
19679
 
19680
      private final short _thriftId;
19681
      private final String _fieldName;
19682
 
19683
      _Fields(short thriftId, String fieldName) {
19684
        _thriftId = thriftId;
19685
        _fieldName = fieldName;
19686
      }
19687
 
19688
      public short getThriftFieldId() {
19689
        return _thriftId;
19690
      }
19691
 
19692
      public String getFieldName() {
19693
        return _fieldName;
19694
      }
19695
    }
19696
 
19697
    // isset id assignments
19698
 
19699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19700
    static {
19701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19702
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19703
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19704
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryAvailability.class))));
19705
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19706
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHistoricNonSerializedInventoryByScans_result.class, metaDataMap);
19707
    }
19708
 
19709
    public getHistoricNonSerializedInventoryByScans_result() {
19710
    }
19711
 
19712
    public getHistoricNonSerializedInventoryByScans_result(
19713
      List<InventoryAvailability> success)
19714
    {
19715
      this();
19716
      this.success = success;
19717
    }
19718
 
19719
    /**
19720
     * Performs a deep copy on <i>other</i>.
19721
     */
19722
    public getHistoricNonSerializedInventoryByScans_result(getHistoricNonSerializedInventoryByScans_result other) {
19723
      if (other.isSetSuccess()) {
19724
        List<InventoryAvailability> __this__success = new ArrayList<InventoryAvailability>();
19725
        for (InventoryAvailability other_element : other.success) {
19726
          __this__success.add(new InventoryAvailability(other_element));
19727
        }
19728
        this.success = __this__success;
19729
      }
19730
    }
19731
 
19732
    public getHistoricNonSerializedInventoryByScans_result deepCopy() {
19733
      return new getHistoricNonSerializedInventoryByScans_result(this);
19734
    }
19735
 
19736
    @Override
19737
    public void clear() {
19738
      this.success = null;
19739
    }
19740
 
19741
    public int getSuccessSize() {
19742
      return (this.success == null) ? 0 : this.success.size();
19743
    }
19744
 
19745
    public java.util.Iterator<InventoryAvailability> getSuccessIterator() {
19746
      return (this.success == null) ? null : this.success.iterator();
19747
    }
19748
 
19749
    public void addToSuccess(InventoryAvailability elem) {
19750
      if (this.success == null) {
19751
        this.success = new ArrayList<InventoryAvailability>();
19752
      }
19753
      this.success.add(elem);
19754
    }
19755
 
19756
    public List<InventoryAvailability> getSuccess() {
19757
      return this.success;
19758
    }
19759
 
19760
    public void setSuccess(List<InventoryAvailability> success) {
19761
      this.success = success;
19762
    }
19763
 
19764
    public void unsetSuccess() {
19765
      this.success = null;
19766
    }
19767
 
19768
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19769
    public boolean isSetSuccess() {
19770
      return this.success != null;
19771
    }
19772
 
19773
    public void setSuccessIsSet(boolean value) {
19774
      if (!value) {
19775
        this.success = null;
19776
      }
19777
    }
19778
 
19779
    public void setFieldValue(_Fields field, Object value) {
19780
      switch (field) {
19781
      case SUCCESS:
19782
        if (value == null) {
19783
          unsetSuccess();
19784
        } else {
19785
          setSuccess((List<InventoryAvailability>)value);
19786
        }
19787
        break;
19788
 
19789
      }
19790
    }
19791
 
19792
    public Object getFieldValue(_Fields field) {
19793
      switch (field) {
19794
      case SUCCESS:
19795
        return getSuccess();
19796
 
19797
      }
19798
      throw new IllegalStateException();
19799
    }
19800
 
19801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19802
    public boolean isSet(_Fields field) {
19803
      if (field == null) {
19804
        throw new IllegalArgumentException();
19805
      }
19806
 
19807
      switch (field) {
19808
      case SUCCESS:
19809
        return isSetSuccess();
19810
      }
19811
      throw new IllegalStateException();
19812
    }
19813
 
19814
    @Override
19815
    public boolean equals(Object that) {
19816
      if (that == null)
19817
        return false;
19818
      if (that instanceof getHistoricNonSerializedInventoryByScans_result)
19819
        return this.equals((getHistoricNonSerializedInventoryByScans_result)that);
19820
      return false;
19821
    }
19822
 
19823
    public boolean equals(getHistoricNonSerializedInventoryByScans_result that) {
19824
      if (that == null)
19825
        return false;
19826
 
19827
      boolean this_present_success = true && this.isSetSuccess();
19828
      boolean that_present_success = true && that.isSetSuccess();
19829
      if (this_present_success || that_present_success) {
19830
        if (!(this_present_success && that_present_success))
19831
          return false;
19832
        if (!this.success.equals(that.success))
19833
          return false;
19834
      }
19835
 
19836
      return true;
19837
    }
19838
 
19839
    @Override
19840
    public int hashCode() {
19841
      return 0;
19842
    }
19843
 
19844
    public int compareTo(getHistoricNonSerializedInventoryByScans_result other) {
19845
      if (!getClass().equals(other.getClass())) {
19846
        return getClass().getName().compareTo(other.getClass().getName());
19847
      }
19848
 
19849
      int lastComparison = 0;
19850
      getHistoricNonSerializedInventoryByScans_result typedOther = (getHistoricNonSerializedInventoryByScans_result)other;
19851
 
19852
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19853
      if (lastComparison != 0) {
19854
        return lastComparison;
19855
      }
19856
      if (isSetSuccess()) {
19857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19858
        if (lastComparison != 0) {
19859
          return lastComparison;
19860
        }
19861
      }
19862
      return 0;
19863
    }
19864
 
19865
    public _Fields fieldForId(int fieldId) {
19866
      return _Fields.findByThriftId(fieldId);
19867
    }
19868
 
19869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19870
      org.apache.thrift.protocol.TField field;
19871
      iprot.readStructBegin();
19872
      while (true)
19873
      {
19874
        field = iprot.readFieldBegin();
19875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19876
          break;
19877
        }
19878
        switch (field.id) {
19879
          case 0: // SUCCESS
19880
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19881
              {
7210 amar.kumar 19882
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
19883
                this.success = new ArrayList<InventoryAvailability>(_list56.size);
19884
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
6762 amar.kumar 19885
                {
7210 amar.kumar 19886
                  InventoryAvailability _elem58; // required
19887
                  _elem58 = new InventoryAvailability();
19888
                  _elem58.read(iprot);
19889
                  this.success.add(_elem58);
6762 amar.kumar 19890
                }
19891
                iprot.readListEnd();
19892
              }
19893
            } else { 
19894
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19895
            }
19896
            break;
19897
          default:
19898
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19899
        }
19900
        iprot.readFieldEnd();
19901
      }
19902
      iprot.readStructEnd();
19903
      validate();
19904
    }
19905
 
19906
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19907
      oprot.writeStructBegin(STRUCT_DESC);
19908
 
19909
      if (this.isSetSuccess()) {
19910
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19911
        {
19912
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 19913
          for (InventoryAvailability _iter59 : this.success)
6762 amar.kumar 19914
          {
7210 amar.kumar 19915
            _iter59.write(oprot);
6762 amar.kumar 19916
          }
19917
          oprot.writeListEnd();
19918
        }
19919
        oprot.writeFieldEnd();
19920
      }
19921
      oprot.writeFieldStop();
19922
      oprot.writeStructEnd();
19923
    }
19924
 
19925
    @Override
19926
    public String toString() {
19927
      StringBuilder sb = new StringBuilder("getHistoricNonSerializedInventoryByScans_result(");
19928
      boolean first = true;
19929
 
19930
      sb.append("success:");
19931
      if (this.success == null) {
19932
        sb.append("null");
19933
      } else {
19934
        sb.append(this.success);
19935
      }
19936
      first = false;
19937
      sb.append(")");
19938
      return sb.toString();
19939
    }
19940
 
19941
    public void validate() throws org.apache.thrift.TException {
19942
      // check for required fields
19943
    }
19944
 
19945
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19946
      try {
19947
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19948
      } catch (org.apache.thrift.TException te) {
19949
        throw new java.io.IOException(te);
19950
      }
19951
    }
19952
 
19953
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19954
      try {
19955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19956
      } catch (org.apache.thrift.TException te) {
19957
        throw new java.io.IOException(te);
19958
      }
19959
    }
19960
 
19961
  }
19962
 
19963
  public static class scanForOursExternalSale_args implements org.apache.thrift.TBase<scanForOursExternalSale_args, scanForOursExternalSale_args._Fields>, java.io.Serializable, Cloneable   {
19964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_args");
19965
 
19966
    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)1);
19967
    private static final org.apache.thrift.protocol.TField SERIAL_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
19968
    private static final org.apache.thrift.protocol.TField ITEM_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("itemNumber", org.apache.thrift.protocol.TType.STRING, (short)3);
19969
    private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoiceNumber", org.apache.thrift.protocol.TType.STRING, (short)4);
19970
    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)5);
19971
    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)6);
19972
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)7);
19973
 
19974
    private long itemId; // required
19975
    private String serialNumber; // required
19976
    private String itemNumber; // required
19977
    private String invoiceNumber; // required
19978
    private long warehouseId; // required
19979
    private double unitPrice; // required
19980
    private long orderId; // required
19981
 
19982
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19983
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19984
      ITEM_ID((short)1, "itemId"),
19985
      SERIAL_NUMBER((short)2, "serialNumber"),
19986
      ITEM_NUMBER((short)3, "itemNumber"),
19987
      INVOICE_NUMBER((short)4, "invoiceNumber"),
19988
      WAREHOUSE_ID((short)5, "warehouseId"),
19989
      UNIT_PRICE((short)6, "unitPrice"),
19990
      ORDER_ID((short)7, "orderId");
19991
 
19992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19993
 
19994
      static {
19995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19996
          byName.put(field.getFieldName(), field);
19997
        }
19998
      }
19999
 
20000
      /**
20001
       * Find the _Fields constant that matches fieldId, or null if its not found.
20002
       */
20003
      public static _Fields findByThriftId(int fieldId) {
20004
        switch(fieldId) {
20005
          case 1: // ITEM_ID
20006
            return ITEM_ID;
20007
          case 2: // SERIAL_NUMBER
20008
            return SERIAL_NUMBER;
20009
          case 3: // ITEM_NUMBER
20010
            return ITEM_NUMBER;
20011
          case 4: // INVOICE_NUMBER
20012
            return INVOICE_NUMBER;
20013
          case 5: // WAREHOUSE_ID
20014
            return WAREHOUSE_ID;
20015
          case 6: // UNIT_PRICE
20016
            return UNIT_PRICE;
20017
          case 7: // ORDER_ID
20018
            return ORDER_ID;
20019
          default:
20020
            return null;
20021
        }
20022
      }
20023
 
20024
      /**
20025
       * Find the _Fields constant that matches fieldId, throwing an exception
20026
       * if it is not found.
20027
       */
20028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20029
        _Fields fields = findByThriftId(fieldId);
20030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20031
        return fields;
20032
      }
20033
 
20034
      /**
20035
       * Find the _Fields constant that matches name, or null if its not found.
20036
       */
20037
      public static _Fields findByName(String name) {
20038
        return byName.get(name);
20039
      }
20040
 
20041
      private final short _thriftId;
20042
      private final String _fieldName;
20043
 
20044
      _Fields(short thriftId, String fieldName) {
20045
        _thriftId = thriftId;
20046
        _fieldName = fieldName;
20047
      }
20048
 
20049
      public short getThriftFieldId() {
20050
        return _thriftId;
20051
      }
20052
 
20053
      public String getFieldName() {
20054
        return _fieldName;
20055
      }
20056
    }
20057
 
20058
    // isset id assignments
20059
    private static final int __ITEMID_ISSET_ID = 0;
20060
    private static final int __WAREHOUSEID_ISSET_ID = 1;
20061
    private static final int __UNITPRICE_ISSET_ID = 2;
20062
    private static final int __ORDERID_ISSET_ID = 3;
20063
    private BitSet __isset_bit_vector = new BitSet(4);
20064
 
20065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20066
    static {
20067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20068
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20069
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20070
      tmpMap.put(_Fields.SERIAL_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("serialNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20072
      tmpMap.put(_Fields.ITEM_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("itemNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20073
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20074
      tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoiceNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20075
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20076
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20078
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
20080
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_args.class, metaDataMap);
20084
    }
20085
 
20086
    public scanForOursExternalSale_args() {
20087
    }
20088
 
20089
    public scanForOursExternalSale_args(
20090
      long itemId,
20091
      String serialNumber,
20092
      String itemNumber,
20093
      String invoiceNumber,
20094
      long warehouseId,
20095
      double unitPrice,
20096
      long orderId)
20097
    {
20098
      this();
20099
      this.itemId = itemId;
20100
      setItemIdIsSet(true);
20101
      this.serialNumber = serialNumber;
20102
      this.itemNumber = itemNumber;
20103
      this.invoiceNumber = invoiceNumber;
20104
      this.warehouseId = warehouseId;
20105
      setWarehouseIdIsSet(true);
20106
      this.unitPrice = unitPrice;
20107
      setUnitPriceIsSet(true);
20108
      this.orderId = orderId;
20109
      setOrderIdIsSet(true);
20110
    }
20111
 
20112
    /**
20113
     * Performs a deep copy on <i>other</i>.
20114
     */
20115
    public scanForOursExternalSale_args(scanForOursExternalSale_args other) {
20116
      __isset_bit_vector.clear();
20117
      __isset_bit_vector.or(other.__isset_bit_vector);
20118
      this.itemId = other.itemId;
20119
      if (other.isSetSerialNumber()) {
20120
        this.serialNumber = other.serialNumber;
20121
      }
20122
      if (other.isSetItemNumber()) {
20123
        this.itemNumber = other.itemNumber;
20124
      }
20125
      if (other.isSetInvoiceNumber()) {
20126
        this.invoiceNumber = other.invoiceNumber;
20127
      }
20128
      this.warehouseId = other.warehouseId;
20129
      this.unitPrice = other.unitPrice;
20130
      this.orderId = other.orderId;
20131
    }
20132
 
20133
    public scanForOursExternalSale_args deepCopy() {
20134
      return new scanForOursExternalSale_args(this);
20135
    }
20136
 
20137
    @Override
20138
    public void clear() {
20139
      setItemIdIsSet(false);
20140
      this.itemId = 0;
20141
      this.serialNumber = null;
20142
      this.itemNumber = null;
20143
      this.invoiceNumber = null;
20144
      setWarehouseIdIsSet(false);
20145
      this.warehouseId = 0;
20146
      setUnitPriceIsSet(false);
20147
      this.unitPrice = 0.0;
20148
      setOrderIdIsSet(false);
20149
      this.orderId = 0;
20150
    }
20151
 
20152
    public long getItemId() {
20153
      return this.itemId;
20154
    }
20155
 
20156
    public void setItemId(long itemId) {
20157
      this.itemId = itemId;
20158
      setItemIdIsSet(true);
20159
    }
20160
 
20161
    public void unsetItemId() {
20162
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
20163
    }
20164
 
20165
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
20166
    public boolean isSetItemId() {
20167
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
20168
    }
20169
 
20170
    public void setItemIdIsSet(boolean value) {
20171
      __isset_bit_vector.set(__ITEMID_ISSET_ID, value);
20172
    }
20173
 
20174
    public String getSerialNumber() {
20175
      return this.serialNumber;
20176
    }
20177
 
20178
    public void setSerialNumber(String serialNumber) {
20179
      this.serialNumber = serialNumber;
20180
    }
20181
 
20182
    public void unsetSerialNumber() {
20183
      this.serialNumber = null;
20184
    }
20185
 
20186
    /** Returns true if field serialNumber is set (has been assigned a value) and false otherwise */
20187
    public boolean isSetSerialNumber() {
20188
      return this.serialNumber != null;
20189
    }
20190
 
20191
    public void setSerialNumberIsSet(boolean value) {
20192
      if (!value) {
20193
        this.serialNumber = null;
20194
      }
20195
    }
20196
 
20197
    public String getItemNumber() {
20198
      return this.itemNumber;
20199
    }
20200
 
20201
    public void setItemNumber(String itemNumber) {
20202
      this.itemNumber = itemNumber;
20203
    }
20204
 
20205
    public void unsetItemNumber() {
20206
      this.itemNumber = null;
20207
    }
20208
 
20209
    /** Returns true if field itemNumber is set (has been assigned a value) and false otherwise */
20210
    public boolean isSetItemNumber() {
20211
      return this.itemNumber != null;
20212
    }
20213
 
20214
    public void setItemNumberIsSet(boolean value) {
20215
      if (!value) {
20216
        this.itemNumber = null;
20217
      }
20218
    }
20219
 
20220
    public String getInvoiceNumber() {
20221
      return this.invoiceNumber;
20222
    }
20223
 
20224
    public void setInvoiceNumber(String invoiceNumber) {
20225
      this.invoiceNumber = invoiceNumber;
20226
    }
20227
 
20228
    public void unsetInvoiceNumber() {
20229
      this.invoiceNumber = null;
20230
    }
20231
 
20232
    /** Returns true if field invoiceNumber is set (has been assigned a value) and false otherwise */
20233
    public boolean isSetInvoiceNumber() {
20234
      return this.invoiceNumber != null;
20235
    }
20236
 
20237
    public void setInvoiceNumberIsSet(boolean value) {
20238
      if (!value) {
20239
        this.invoiceNumber = null;
20240
      }
20241
    }
20242
 
20243
    public long getWarehouseId() {
20244
      return this.warehouseId;
20245
    }
20246
 
20247
    public void setWarehouseId(long warehouseId) {
20248
      this.warehouseId = warehouseId;
20249
      setWarehouseIdIsSet(true);
20250
    }
20251
 
20252
    public void unsetWarehouseId() {
20253
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
20254
    }
20255
 
20256
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
20257
    public boolean isSetWarehouseId() {
20258
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
20259
    }
20260
 
20261
    public void setWarehouseIdIsSet(boolean value) {
20262
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
20263
    }
20264
 
20265
    public double getUnitPrice() {
20266
      return this.unitPrice;
20267
    }
20268
 
20269
    public void setUnitPrice(double unitPrice) {
20270
      this.unitPrice = unitPrice;
20271
      setUnitPriceIsSet(true);
20272
    }
20273
 
20274
    public void unsetUnitPrice() {
20275
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
20276
    }
20277
 
20278
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
20279
    public boolean isSetUnitPrice() {
20280
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
20281
    }
20282
 
20283
    public void setUnitPriceIsSet(boolean value) {
20284
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
20285
    }
20286
 
20287
    public long getOrderId() {
20288
      return this.orderId;
20289
    }
20290
 
20291
    public void setOrderId(long orderId) {
20292
      this.orderId = orderId;
20293
      setOrderIdIsSet(true);
20294
    }
20295
 
20296
    public void unsetOrderId() {
20297
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
20298
    }
20299
 
20300
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
20301
    public boolean isSetOrderId() {
20302
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
20303
    }
20304
 
20305
    public void setOrderIdIsSet(boolean value) {
20306
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
20307
    }
20308
 
20309
    public void setFieldValue(_Fields field, Object value) {
20310
      switch (field) {
20311
      case ITEM_ID:
20312
        if (value == null) {
20313
          unsetItemId();
20314
        } else {
20315
          setItemId((Long)value);
20316
        }
20317
        break;
20318
 
20319
      case SERIAL_NUMBER:
20320
        if (value == null) {
20321
          unsetSerialNumber();
20322
        } else {
20323
          setSerialNumber((String)value);
20324
        }
20325
        break;
20326
 
20327
      case ITEM_NUMBER:
20328
        if (value == null) {
20329
          unsetItemNumber();
20330
        } else {
20331
          setItemNumber((String)value);
20332
        }
20333
        break;
20334
 
20335
      case INVOICE_NUMBER:
20336
        if (value == null) {
20337
          unsetInvoiceNumber();
20338
        } else {
20339
          setInvoiceNumber((String)value);
20340
        }
20341
        break;
20342
 
20343
      case WAREHOUSE_ID:
20344
        if (value == null) {
20345
          unsetWarehouseId();
20346
        } else {
20347
          setWarehouseId((Long)value);
20348
        }
20349
        break;
20350
 
20351
      case UNIT_PRICE:
20352
        if (value == null) {
20353
          unsetUnitPrice();
20354
        } else {
20355
          setUnitPrice((Double)value);
20356
        }
20357
        break;
20358
 
20359
      case ORDER_ID:
20360
        if (value == null) {
20361
          unsetOrderId();
20362
        } else {
20363
          setOrderId((Long)value);
20364
        }
20365
        break;
20366
 
20367
      }
20368
    }
20369
 
20370
    public Object getFieldValue(_Fields field) {
20371
      switch (field) {
20372
      case ITEM_ID:
20373
        return Long.valueOf(getItemId());
20374
 
20375
      case SERIAL_NUMBER:
20376
        return getSerialNumber();
20377
 
20378
      case ITEM_NUMBER:
20379
        return getItemNumber();
20380
 
20381
      case INVOICE_NUMBER:
20382
        return getInvoiceNumber();
20383
 
20384
      case WAREHOUSE_ID:
20385
        return Long.valueOf(getWarehouseId());
20386
 
20387
      case UNIT_PRICE:
20388
        return Double.valueOf(getUnitPrice());
20389
 
20390
      case ORDER_ID:
20391
        return Long.valueOf(getOrderId());
20392
 
20393
      }
20394
      throw new IllegalStateException();
20395
    }
20396
 
20397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20398
    public boolean isSet(_Fields field) {
20399
      if (field == null) {
20400
        throw new IllegalArgumentException();
20401
      }
20402
 
20403
      switch (field) {
20404
      case ITEM_ID:
20405
        return isSetItemId();
20406
      case SERIAL_NUMBER:
20407
        return isSetSerialNumber();
20408
      case ITEM_NUMBER:
20409
        return isSetItemNumber();
20410
      case INVOICE_NUMBER:
20411
        return isSetInvoiceNumber();
20412
      case WAREHOUSE_ID:
20413
        return isSetWarehouseId();
20414
      case UNIT_PRICE:
20415
        return isSetUnitPrice();
20416
      case ORDER_ID:
20417
        return isSetOrderId();
20418
      }
20419
      throw new IllegalStateException();
20420
    }
20421
 
20422
    @Override
20423
    public boolean equals(Object that) {
20424
      if (that == null)
20425
        return false;
20426
      if (that instanceof scanForOursExternalSale_args)
20427
        return this.equals((scanForOursExternalSale_args)that);
20428
      return false;
20429
    }
20430
 
20431
    public boolean equals(scanForOursExternalSale_args that) {
20432
      if (that == null)
20433
        return false;
20434
 
20435
      boolean this_present_itemId = true;
20436
      boolean that_present_itemId = true;
20437
      if (this_present_itemId || that_present_itemId) {
20438
        if (!(this_present_itemId && that_present_itemId))
20439
          return false;
20440
        if (this.itemId != that.itemId)
20441
          return false;
20442
      }
20443
 
20444
      boolean this_present_serialNumber = true && this.isSetSerialNumber();
20445
      boolean that_present_serialNumber = true && that.isSetSerialNumber();
20446
      if (this_present_serialNumber || that_present_serialNumber) {
20447
        if (!(this_present_serialNumber && that_present_serialNumber))
20448
          return false;
20449
        if (!this.serialNumber.equals(that.serialNumber))
20450
          return false;
20451
      }
20452
 
20453
      boolean this_present_itemNumber = true && this.isSetItemNumber();
20454
      boolean that_present_itemNumber = true && that.isSetItemNumber();
20455
      if (this_present_itemNumber || that_present_itemNumber) {
20456
        if (!(this_present_itemNumber && that_present_itemNumber))
20457
          return false;
20458
        if (!this.itemNumber.equals(that.itemNumber))
20459
          return false;
20460
      }
20461
 
20462
      boolean this_present_invoiceNumber = true && this.isSetInvoiceNumber();
20463
      boolean that_present_invoiceNumber = true && that.isSetInvoiceNumber();
20464
      if (this_present_invoiceNumber || that_present_invoiceNumber) {
20465
        if (!(this_present_invoiceNumber && that_present_invoiceNumber))
20466
          return false;
20467
        if (!this.invoiceNumber.equals(that.invoiceNumber))
20468
          return false;
20469
      }
20470
 
20471
      boolean this_present_warehouseId = true;
20472
      boolean that_present_warehouseId = true;
20473
      if (this_present_warehouseId || that_present_warehouseId) {
20474
        if (!(this_present_warehouseId && that_present_warehouseId))
20475
          return false;
20476
        if (this.warehouseId != that.warehouseId)
20477
          return false;
20478
      }
20479
 
20480
      boolean this_present_unitPrice = true;
20481
      boolean that_present_unitPrice = true;
20482
      if (this_present_unitPrice || that_present_unitPrice) {
20483
        if (!(this_present_unitPrice && that_present_unitPrice))
20484
          return false;
20485
        if (this.unitPrice != that.unitPrice)
20486
          return false;
20487
      }
20488
 
20489
      boolean this_present_orderId = true;
20490
      boolean that_present_orderId = true;
20491
      if (this_present_orderId || that_present_orderId) {
20492
        if (!(this_present_orderId && that_present_orderId))
20493
          return false;
20494
        if (this.orderId != that.orderId)
20495
          return false;
20496
      }
20497
 
20498
      return true;
20499
    }
20500
 
20501
    @Override
20502
    public int hashCode() {
20503
      return 0;
20504
    }
20505
 
20506
    public int compareTo(scanForOursExternalSale_args other) {
20507
      if (!getClass().equals(other.getClass())) {
20508
        return getClass().getName().compareTo(other.getClass().getName());
20509
      }
20510
 
20511
      int lastComparison = 0;
20512
      scanForOursExternalSale_args typedOther = (scanForOursExternalSale_args)other;
20513
 
20514
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
20515
      if (lastComparison != 0) {
20516
        return lastComparison;
20517
      }
20518
      if (isSetItemId()) {
20519
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
20520
        if (lastComparison != 0) {
20521
          return lastComparison;
20522
        }
20523
      }
20524
      lastComparison = Boolean.valueOf(isSetSerialNumber()).compareTo(typedOther.isSetSerialNumber());
20525
      if (lastComparison != 0) {
20526
        return lastComparison;
20527
      }
20528
      if (isSetSerialNumber()) {
20529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNumber, typedOther.serialNumber);
20530
        if (lastComparison != 0) {
20531
          return lastComparison;
20532
        }
20533
      }
20534
      lastComparison = Boolean.valueOf(isSetItemNumber()).compareTo(typedOther.isSetItemNumber());
20535
      if (lastComparison != 0) {
20536
        return lastComparison;
20537
      }
20538
      if (isSetItemNumber()) {
20539
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemNumber, typedOther.itemNumber);
20540
        if (lastComparison != 0) {
20541
          return lastComparison;
20542
        }
20543
      }
20544
      lastComparison = Boolean.valueOf(isSetInvoiceNumber()).compareTo(typedOther.isSetInvoiceNumber());
20545
      if (lastComparison != 0) {
20546
        return lastComparison;
20547
      }
20548
      if (isSetInvoiceNumber()) {
20549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoiceNumber, typedOther.invoiceNumber);
20550
        if (lastComparison != 0) {
20551
          return lastComparison;
20552
        }
20553
      }
20554
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
20555
      if (lastComparison != 0) {
20556
        return lastComparison;
20557
      }
20558
      if (isSetWarehouseId()) {
20559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
20560
        if (lastComparison != 0) {
20561
          return lastComparison;
20562
        }
20563
      }
20564
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
20565
      if (lastComparison != 0) {
20566
        return lastComparison;
20567
      }
20568
      if (isSetUnitPrice()) {
20569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
20570
        if (lastComparison != 0) {
20571
          return lastComparison;
20572
        }
20573
      }
20574
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
20575
      if (lastComparison != 0) {
20576
        return lastComparison;
20577
      }
20578
      if (isSetOrderId()) {
20579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
20580
        if (lastComparison != 0) {
20581
          return lastComparison;
20582
        }
20583
      }
20584
      return 0;
20585
    }
20586
 
20587
    public _Fields fieldForId(int fieldId) {
20588
      return _Fields.findByThriftId(fieldId);
20589
    }
20590
 
20591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20592
      org.apache.thrift.protocol.TField field;
20593
      iprot.readStructBegin();
20594
      while (true)
20595
      {
20596
        field = iprot.readFieldBegin();
20597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20598
          break;
20599
        }
20600
        switch (field.id) {
20601
          case 1: // ITEM_ID
20602
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20603
              this.itemId = iprot.readI64();
20604
              setItemIdIsSet(true);
20605
            } else { 
20606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20607
            }
20608
            break;
20609
          case 2: // SERIAL_NUMBER
20610
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20611
              this.serialNumber = iprot.readString();
20612
            } else { 
20613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20614
            }
20615
            break;
20616
          case 3: // ITEM_NUMBER
20617
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20618
              this.itemNumber = iprot.readString();
20619
            } else { 
20620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20621
            }
20622
            break;
20623
          case 4: // INVOICE_NUMBER
20624
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20625
              this.invoiceNumber = iprot.readString();
20626
            } else { 
20627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20628
            }
20629
            break;
20630
          case 5: // WAREHOUSE_ID
20631
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20632
              this.warehouseId = iprot.readI64();
20633
              setWarehouseIdIsSet(true);
20634
            } else { 
20635
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20636
            }
20637
            break;
20638
          case 6: // UNIT_PRICE
20639
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
20640
              this.unitPrice = iprot.readDouble();
20641
              setUnitPriceIsSet(true);
20642
            } else { 
20643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20644
            }
20645
            break;
20646
          case 7: // ORDER_ID
20647
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20648
              this.orderId = iprot.readI64();
20649
              setOrderIdIsSet(true);
20650
            } else { 
20651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20652
            }
20653
            break;
20654
          default:
20655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20656
        }
20657
        iprot.readFieldEnd();
20658
      }
20659
      iprot.readStructEnd();
20660
      validate();
20661
    }
20662
 
20663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20664
      validate();
20665
 
20666
      oprot.writeStructBegin(STRUCT_DESC);
20667
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
20668
      oprot.writeI64(this.itemId);
20669
      oprot.writeFieldEnd();
20670
      if (this.serialNumber != null) {
20671
        oprot.writeFieldBegin(SERIAL_NUMBER_FIELD_DESC);
20672
        oprot.writeString(this.serialNumber);
20673
        oprot.writeFieldEnd();
20674
      }
20675
      if (this.itemNumber != null) {
20676
        oprot.writeFieldBegin(ITEM_NUMBER_FIELD_DESC);
20677
        oprot.writeString(this.itemNumber);
20678
        oprot.writeFieldEnd();
20679
      }
20680
      if (this.invoiceNumber != null) {
20681
        oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
20682
        oprot.writeString(this.invoiceNumber);
20683
        oprot.writeFieldEnd();
20684
      }
20685
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
20686
      oprot.writeI64(this.warehouseId);
20687
      oprot.writeFieldEnd();
20688
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
20689
      oprot.writeDouble(this.unitPrice);
20690
      oprot.writeFieldEnd();
20691
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
20692
      oprot.writeI64(this.orderId);
20693
      oprot.writeFieldEnd();
20694
      oprot.writeFieldStop();
20695
      oprot.writeStructEnd();
20696
    }
20697
 
20698
    @Override
20699
    public String toString() {
20700
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_args(");
20701
      boolean first = true;
20702
 
20703
      sb.append("itemId:");
20704
      sb.append(this.itemId);
20705
      first = false;
20706
      if (!first) sb.append(", ");
20707
      sb.append("serialNumber:");
20708
      if (this.serialNumber == null) {
20709
        sb.append("null");
20710
      } else {
20711
        sb.append(this.serialNumber);
20712
      }
20713
      first = false;
20714
      if (!first) sb.append(", ");
20715
      sb.append("itemNumber:");
20716
      if (this.itemNumber == null) {
20717
        sb.append("null");
20718
      } else {
20719
        sb.append(this.itemNumber);
20720
      }
20721
      first = false;
20722
      if (!first) sb.append(", ");
20723
      sb.append("invoiceNumber:");
20724
      if (this.invoiceNumber == null) {
20725
        sb.append("null");
20726
      } else {
20727
        sb.append(this.invoiceNumber);
20728
      }
20729
      first = false;
20730
      if (!first) sb.append(", ");
20731
      sb.append("warehouseId:");
20732
      sb.append(this.warehouseId);
20733
      first = false;
20734
      if (!first) sb.append(", ");
20735
      sb.append("unitPrice:");
20736
      sb.append(this.unitPrice);
20737
      first = false;
20738
      if (!first) sb.append(", ");
20739
      sb.append("orderId:");
20740
      sb.append(this.orderId);
20741
      first = false;
20742
      sb.append(")");
20743
      return sb.toString();
20744
    }
20745
 
20746
    public void validate() throws org.apache.thrift.TException {
20747
      // check for required fields
20748
    }
20749
 
20750
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20751
      try {
20752
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20753
      } catch (org.apache.thrift.TException te) {
20754
        throw new java.io.IOException(te);
20755
      }
20756
    }
20757
 
20758
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20759
      try {
20760
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20761
        __isset_bit_vector = new BitSet(1);
20762
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20763
      } catch (org.apache.thrift.TException te) {
20764
        throw new java.io.IOException(te);
20765
      }
20766
    }
20767
 
20768
  }
20769
 
20770
  public static class scanForOursExternalSale_result implements org.apache.thrift.TBase<scanForOursExternalSale_result, scanForOursExternalSale_result._Fields>, java.io.Serializable, Cloneable   {
20771
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSale_result");
20772
 
20773
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
20774
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
20775
 
20776
    private InventoryItem success; // required
20777
    private WarehouseServiceException ex; // required
20778
 
20779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20781
      SUCCESS((short)0, "success"),
20782
      EX((short)1, "ex");
20783
 
20784
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20785
 
20786
      static {
20787
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20788
          byName.put(field.getFieldName(), field);
20789
        }
20790
      }
20791
 
20792
      /**
20793
       * Find the _Fields constant that matches fieldId, or null if its not found.
20794
       */
20795
      public static _Fields findByThriftId(int fieldId) {
20796
        switch(fieldId) {
20797
          case 0: // SUCCESS
20798
            return SUCCESS;
20799
          case 1: // EX
20800
            return EX;
20801
          default:
20802
            return null;
20803
        }
20804
      }
20805
 
20806
      /**
20807
       * Find the _Fields constant that matches fieldId, throwing an exception
20808
       * if it is not found.
20809
       */
20810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20811
        _Fields fields = findByThriftId(fieldId);
20812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20813
        return fields;
20814
      }
20815
 
20816
      /**
20817
       * Find the _Fields constant that matches name, or null if its not found.
20818
       */
20819
      public static _Fields findByName(String name) {
20820
        return byName.get(name);
20821
      }
20822
 
20823
      private final short _thriftId;
20824
      private final String _fieldName;
20825
 
20826
      _Fields(short thriftId, String fieldName) {
20827
        _thriftId = thriftId;
20828
        _fieldName = fieldName;
20829
      }
20830
 
20831
      public short getThriftFieldId() {
20832
        return _thriftId;
20833
      }
20834
 
20835
      public String getFieldName() {
20836
        return _fieldName;
20837
      }
20838
    }
20839
 
20840
    // isset id assignments
20841
 
20842
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20843
    static {
20844
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20845
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20846
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
20847
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20849
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20850
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSale_result.class, metaDataMap);
20851
    }
20852
 
20853
    public scanForOursExternalSale_result() {
20854
    }
20855
 
20856
    public scanForOursExternalSale_result(
20857
      InventoryItem success,
20858
      WarehouseServiceException ex)
20859
    {
20860
      this();
20861
      this.success = success;
20862
      this.ex = ex;
20863
    }
20864
 
20865
    /**
20866
     * Performs a deep copy on <i>other</i>.
20867
     */
20868
    public scanForOursExternalSale_result(scanForOursExternalSale_result other) {
20869
      if (other.isSetSuccess()) {
20870
        this.success = new InventoryItem(other.success);
20871
      }
20872
      if (other.isSetEx()) {
20873
        this.ex = new WarehouseServiceException(other.ex);
20874
      }
20875
    }
20876
 
20877
    public scanForOursExternalSale_result deepCopy() {
20878
      return new scanForOursExternalSale_result(this);
20879
    }
20880
 
20881
    @Override
20882
    public void clear() {
20883
      this.success = null;
20884
      this.ex = null;
20885
    }
20886
 
20887
    public InventoryItem getSuccess() {
20888
      return this.success;
20889
    }
20890
 
20891
    public void setSuccess(InventoryItem success) {
20892
      this.success = success;
20893
    }
20894
 
20895
    public void unsetSuccess() {
20896
      this.success = null;
20897
    }
20898
 
20899
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20900
    public boolean isSetSuccess() {
20901
      return this.success != null;
20902
    }
20903
 
20904
    public void setSuccessIsSet(boolean value) {
20905
      if (!value) {
20906
        this.success = null;
20907
      }
20908
    }
20909
 
20910
    public WarehouseServiceException getEx() {
20911
      return this.ex;
20912
    }
20913
 
20914
    public void setEx(WarehouseServiceException ex) {
20915
      this.ex = ex;
20916
    }
20917
 
20918
    public void unsetEx() {
20919
      this.ex = null;
20920
    }
20921
 
20922
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
20923
    public boolean isSetEx() {
20924
      return this.ex != null;
20925
    }
20926
 
20927
    public void setExIsSet(boolean value) {
20928
      if (!value) {
20929
        this.ex = null;
20930
      }
20931
    }
20932
 
20933
    public void setFieldValue(_Fields field, Object value) {
20934
      switch (field) {
20935
      case SUCCESS:
20936
        if (value == null) {
20937
          unsetSuccess();
20938
        } else {
20939
          setSuccess((InventoryItem)value);
20940
        }
20941
        break;
20942
 
20943
      case EX:
20944
        if (value == null) {
20945
          unsetEx();
20946
        } else {
20947
          setEx((WarehouseServiceException)value);
20948
        }
20949
        break;
20950
 
20951
      }
20952
    }
20953
 
20954
    public Object getFieldValue(_Fields field) {
20955
      switch (field) {
20956
      case SUCCESS:
20957
        return getSuccess();
20958
 
20959
      case EX:
20960
        return getEx();
20961
 
20962
      }
20963
      throw new IllegalStateException();
20964
    }
20965
 
20966
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20967
    public boolean isSet(_Fields field) {
20968
      if (field == null) {
20969
        throw new IllegalArgumentException();
20970
      }
20971
 
20972
      switch (field) {
20973
      case SUCCESS:
20974
        return isSetSuccess();
20975
      case EX:
20976
        return isSetEx();
20977
      }
20978
      throw new IllegalStateException();
20979
    }
20980
 
20981
    @Override
20982
    public boolean equals(Object that) {
20983
      if (that == null)
20984
        return false;
20985
      if (that instanceof scanForOursExternalSale_result)
20986
        return this.equals((scanForOursExternalSale_result)that);
20987
      return false;
20988
    }
20989
 
20990
    public boolean equals(scanForOursExternalSale_result that) {
20991
      if (that == null)
20992
        return false;
20993
 
20994
      boolean this_present_success = true && this.isSetSuccess();
20995
      boolean that_present_success = true && that.isSetSuccess();
20996
      if (this_present_success || that_present_success) {
20997
        if (!(this_present_success && that_present_success))
20998
          return false;
20999
        if (!this.success.equals(that.success))
21000
          return false;
21001
      }
21002
 
21003
      boolean this_present_ex = true && this.isSetEx();
21004
      boolean that_present_ex = true && that.isSetEx();
21005
      if (this_present_ex || that_present_ex) {
21006
        if (!(this_present_ex && that_present_ex))
21007
          return false;
21008
        if (!this.ex.equals(that.ex))
21009
          return false;
21010
      }
21011
 
21012
      return true;
21013
    }
21014
 
21015
    @Override
21016
    public int hashCode() {
21017
      return 0;
21018
    }
21019
 
21020
    public int compareTo(scanForOursExternalSale_result other) {
21021
      if (!getClass().equals(other.getClass())) {
21022
        return getClass().getName().compareTo(other.getClass().getName());
21023
      }
21024
 
21025
      int lastComparison = 0;
21026
      scanForOursExternalSale_result typedOther = (scanForOursExternalSale_result)other;
21027
 
21028
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21029
      if (lastComparison != 0) {
21030
        return lastComparison;
21031
      }
21032
      if (isSetSuccess()) {
21033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21034
        if (lastComparison != 0) {
21035
          return lastComparison;
21036
        }
21037
      }
21038
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21039
      if (lastComparison != 0) {
21040
        return lastComparison;
21041
      }
21042
      if (isSetEx()) {
21043
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21044
        if (lastComparison != 0) {
21045
          return lastComparison;
21046
        }
21047
      }
21048
      return 0;
21049
    }
21050
 
21051
    public _Fields fieldForId(int fieldId) {
21052
      return _Fields.findByThriftId(fieldId);
21053
    }
21054
 
21055
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21056
      org.apache.thrift.protocol.TField field;
21057
      iprot.readStructBegin();
21058
      while (true)
21059
      {
21060
        field = iprot.readFieldBegin();
21061
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21062
          break;
21063
        }
21064
        switch (field.id) {
21065
          case 0: // SUCCESS
21066
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21067
              this.success = new InventoryItem();
21068
              this.success.read(iprot);
21069
            } else { 
21070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21071
            }
21072
            break;
21073
          case 1: // EX
21074
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21075
              this.ex = new WarehouseServiceException();
21076
              this.ex.read(iprot);
21077
            } else { 
21078
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21079
            }
21080
            break;
21081
          default:
21082
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21083
        }
21084
        iprot.readFieldEnd();
21085
      }
21086
      iprot.readStructEnd();
21087
      validate();
21088
    }
21089
 
21090
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21091
      oprot.writeStructBegin(STRUCT_DESC);
21092
 
21093
      if (this.isSetSuccess()) {
21094
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21095
        this.success.write(oprot);
21096
        oprot.writeFieldEnd();
21097
      } else if (this.isSetEx()) {
21098
        oprot.writeFieldBegin(EX_FIELD_DESC);
21099
        this.ex.write(oprot);
21100
        oprot.writeFieldEnd();
21101
      }
21102
      oprot.writeFieldStop();
21103
      oprot.writeStructEnd();
21104
    }
21105
 
21106
    @Override
21107
    public String toString() {
21108
      StringBuilder sb = new StringBuilder("scanForOursExternalSale_result(");
21109
      boolean first = true;
21110
 
21111
      sb.append("success:");
21112
      if (this.success == null) {
21113
        sb.append("null");
21114
      } else {
21115
        sb.append(this.success);
21116
      }
21117
      first = false;
21118
      if (!first) sb.append(", ");
21119
      sb.append("ex:");
21120
      if (this.ex == null) {
21121
        sb.append("null");
21122
      } else {
21123
        sb.append(this.ex);
21124
      }
21125
      first = false;
21126
      sb.append(")");
21127
      return sb.toString();
21128
    }
21129
 
21130
    public void validate() throws org.apache.thrift.TException {
21131
      // check for required fields
21132
    }
21133
 
21134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21135
      try {
21136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21137
      } catch (org.apache.thrift.TException te) {
21138
        throw new java.io.IOException(te);
21139
      }
21140
    }
21141
 
21142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21143
      try {
21144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21145
      } catch (org.apache.thrift.TException te) {
21146
        throw new java.io.IOException(te);
21147
      }
21148
    }
21149
 
21150
  }
21151
 
21152
  public static class scanForOursExternalSaleReturn_args implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_args, scanForOursExternalSaleReturn_args._Fields>, java.io.Serializable, Cloneable   {
21153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_args");
21154
 
21155
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
21156
    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)2);
21157
 
21158
    private long orderId; // required
21159
    private double unitPrice; // required
21160
 
21161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21163
      ORDER_ID((short)1, "orderId"),
21164
      UNIT_PRICE((short)2, "unitPrice");
21165
 
21166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21167
 
21168
      static {
21169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21170
          byName.put(field.getFieldName(), field);
21171
        }
21172
      }
21173
 
21174
      /**
21175
       * Find the _Fields constant that matches fieldId, or null if its not found.
21176
       */
21177
      public static _Fields findByThriftId(int fieldId) {
21178
        switch(fieldId) {
21179
          case 1: // ORDER_ID
21180
            return ORDER_ID;
21181
          case 2: // UNIT_PRICE
21182
            return UNIT_PRICE;
21183
          default:
21184
            return null;
21185
        }
21186
      }
21187
 
21188
      /**
21189
       * Find the _Fields constant that matches fieldId, throwing an exception
21190
       * if it is not found.
21191
       */
21192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21193
        _Fields fields = findByThriftId(fieldId);
21194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21195
        return fields;
21196
      }
21197
 
21198
      /**
21199
       * Find the _Fields constant that matches name, or null if its not found.
21200
       */
21201
      public static _Fields findByName(String name) {
21202
        return byName.get(name);
21203
      }
21204
 
21205
      private final short _thriftId;
21206
      private final String _fieldName;
21207
 
21208
      _Fields(short thriftId, String fieldName) {
21209
        _thriftId = thriftId;
21210
        _fieldName = fieldName;
21211
      }
21212
 
21213
      public short getThriftFieldId() {
21214
        return _thriftId;
21215
      }
21216
 
21217
      public String getFieldName() {
21218
        return _fieldName;
21219
      }
21220
    }
21221
 
21222
    // isset id assignments
21223
    private static final int __ORDERID_ISSET_ID = 0;
21224
    private static final int __UNITPRICE_ISSET_ID = 1;
21225
    private BitSet __isset_bit_vector = new BitSet(2);
21226
 
21227
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21228
    static {
21229
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21230
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21232
      tmpMap.put(_Fields.UNIT_PRICE, new org.apache.thrift.meta_data.FieldMetaData("unitPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21233
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
21234
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21235
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_args.class, metaDataMap);
21236
    }
21237
 
21238
    public scanForOursExternalSaleReturn_args() {
21239
    }
21240
 
21241
    public scanForOursExternalSaleReturn_args(
21242
      long orderId,
21243
      double unitPrice)
21244
    {
21245
      this();
21246
      this.orderId = orderId;
21247
      setOrderIdIsSet(true);
21248
      this.unitPrice = unitPrice;
21249
      setUnitPriceIsSet(true);
21250
    }
21251
 
21252
    /**
21253
     * Performs a deep copy on <i>other</i>.
21254
     */
21255
    public scanForOursExternalSaleReturn_args(scanForOursExternalSaleReturn_args other) {
21256
      __isset_bit_vector.clear();
21257
      __isset_bit_vector.or(other.__isset_bit_vector);
21258
      this.orderId = other.orderId;
21259
      this.unitPrice = other.unitPrice;
21260
    }
21261
 
21262
    public scanForOursExternalSaleReturn_args deepCopy() {
21263
      return new scanForOursExternalSaleReturn_args(this);
21264
    }
21265
 
21266
    @Override
21267
    public void clear() {
21268
      setOrderIdIsSet(false);
21269
      this.orderId = 0;
21270
      setUnitPriceIsSet(false);
21271
      this.unitPrice = 0.0;
21272
    }
21273
 
21274
    public long getOrderId() {
21275
      return this.orderId;
21276
    }
21277
 
21278
    public void setOrderId(long orderId) {
21279
      this.orderId = orderId;
21280
      setOrderIdIsSet(true);
21281
    }
21282
 
21283
    public void unsetOrderId() {
21284
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
21285
    }
21286
 
21287
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
21288
    public boolean isSetOrderId() {
21289
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
21290
    }
21291
 
21292
    public void setOrderIdIsSet(boolean value) {
21293
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
21294
    }
21295
 
21296
    public double getUnitPrice() {
21297
      return this.unitPrice;
21298
    }
21299
 
21300
    public void setUnitPrice(double unitPrice) {
21301
      this.unitPrice = unitPrice;
21302
      setUnitPriceIsSet(true);
21303
    }
21304
 
21305
    public void unsetUnitPrice() {
21306
      __isset_bit_vector.clear(__UNITPRICE_ISSET_ID);
21307
    }
21308
 
21309
    /** Returns true if field unitPrice is set (has been assigned a value) and false otherwise */
21310
    public boolean isSetUnitPrice() {
21311
      return __isset_bit_vector.get(__UNITPRICE_ISSET_ID);
21312
    }
21313
 
21314
    public void setUnitPriceIsSet(boolean value) {
21315
      __isset_bit_vector.set(__UNITPRICE_ISSET_ID, value);
21316
    }
21317
 
21318
    public void setFieldValue(_Fields field, Object value) {
21319
      switch (field) {
21320
      case ORDER_ID:
21321
        if (value == null) {
21322
          unsetOrderId();
21323
        } else {
21324
          setOrderId((Long)value);
21325
        }
21326
        break;
21327
 
21328
      case UNIT_PRICE:
21329
        if (value == null) {
21330
          unsetUnitPrice();
21331
        } else {
21332
          setUnitPrice((Double)value);
21333
        }
21334
        break;
21335
 
21336
      }
21337
    }
21338
 
21339
    public Object getFieldValue(_Fields field) {
21340
      switch (field) {
21341
      case ORDER_ID:
21342
        return Long.valueOf(getOrderId());
21343
 
21344
      case UNIT_PRICE:
21345
        return Double.valueOf(getUnitPrice());
21346
 
21347
      }
21348
      throw new IllegalStateException();
21349
    }
21350
 
21351
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21352
    public boolean isSet(_Fields field) {
21353
      if (field == null) {
21354
        throw new IllegalArgumentException();
21355
      }
21356
 
21357
      switch (field) {
21358
      case ORDER_ID:
21359
        return isSetOrderId();
21360
      case UNIT_PRICE:
21361
        return isSetUnitPrice();
21362
      }
21363
      throw new IllegalStateException();
21364
    }
21365
 
21366
    @Override
21367
    public boolean equals(Object that) {
21368
      if (that == null)
21369
        return false;
21370
      if (that instanceof scanForOursExternalSaleReturn_args)
21371
        return this.equals((scanForOursExternalSaleReturn_args)that);
21372
      return false;
21373
    }
21374
 
21375
    public boolean equals(scanForOursExternalSaleReturn_args that) {
21376
      if (that == null)
21377
        return false;
21378
 
21379
      boolean this_present_orderId = true;
21380
      boolean that_present_orderId = true;
21381
      if (this_present_orderId || that_present_orderId) {
21382
        if (!(this_present_orderId && that_present_orderId))
21383
          return false;
21384
        if (this.orderId != that.orderId)
21385
          return false;
21386
      }
21387
 
21388
      boolean this_present_unitPrice = true;
21389
      boolean that_present_unitPrice = true;
21390
      if (this_present_unitPrice || that_present_unitPrice) {
21391
        if (!(this_present_unitPrice && that_present_unitPrice))
21392
          return false;
21393
        if (this.unitPrice != that.unitPrice)
21394
          return false;
21395
      }
21396
 
21397
      return true;
21398
    }
21399
 
21400
    @Override
21401
    public int hashCode() {
21402
      return 0;
21403
    }
21404
 
21405
    public int compareTo(scanForOursExternalSaleReturn_args other) {
21406
      if (!getClass().equals(other.getClass())) {
21407
        return getClass().getName().compareTo(other.getClass().getName());
21408
      }
21409
 
21410
      int lastComparison = 0;
21411
      scanForOursExternalSaleReturn_args typedOther = (scanForOursExternalSaleReturn_args)other;
21412
 
21413
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
21414
      if (lastComparison != 0) {
21415
        return lastComparison;
21416
      }
21417
      if (isSetOrderId()) {
21418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
21419
        if (lastComparison != 0) {
21420
          return lastComparison;
21421
        }
21422
      }
21423
      lastComparison = Boolean.valueOf(isSetUnitPrice()).compareTo(typedOther.isSetUnitPrice());
21424
      if (lastComparison != 0) {
21425
        return lastComparison;
21426
      }
21427
      if (isSetUnitPrice()) {
21428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.unitPrice, typedOther.unitPrice);
21429
        if (lastComparison != 0) {
21430
          return lastComparison;
21431
        }
21432
      }
21433
      return 0;
21434
    }
21435
 
21436
    public _Fields fieldForId(int fieldId) {
21437
      return _Fields.findByThriftId(fieldId);
21438
    }
21439
 
21440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21441
      org.apache.thrift.protocol.TField field;
21442
      iprot.readStructBegin();
21443
      while (true)
21444
      {
21445
        field = iprot.readFieldBegin();
21446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21447
          break;
21448
        }
21449
        switch (field.id) {
21450
          case 1: // ORDER_ID
21451
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21452
              this.orderId = iprot.readI64();
21453
              setOrderIdIsSet(true);
21454
            } else { 
21455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21456
            }
21457
            break;
21458
          case 2: // UNIT_PRICE
21459
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
21460
              this.unitPrice = iprot.readDouble();
21461
              setUnitPriceIsSet(true);
21462
            } else { 
21463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21464
            }
21465
            break;
21466
          default:
21467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21468
        }
21469
        iprot.readFieldEnd();
21470
      }
21471
      iprot.readStructEnd();
21472
      validate();
21473
    }
21474
 
21475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21476
      validate();
21477
 
21478
      oprot.writeStructBegin(STRUCT_DESC);
21479
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
21480
      oprot.writeI64(this.orderId);
21481
      oprot.writeFieldEnd();
21482
      oprot.writeFieldBegin(UNIT_PRICE_FIELD_DESC);
21483
      oprot.writeDouble(this.unitPrice);
21484
      oprot.writeFieldEnd();
21485
      oprot.writeFieldStop();
21486
      oprot.writeStructEnd();
21487
    }
21488
 
21489
    @Override
21490
    public String toString() {
21491
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_args(");
21492
      boolean first = true;
21493
 
21494
      sb.append("orderId:");
21495
      sb.append(this.orderId);
21496
      first = false;
21497
      if (!first) sb.append(", ");
21498
      sb.append("unitPrice:");
21499
      sb.append(this.unitPrice);
21500
      first = false;
21501
      sb.append(")");
21502
      return sb.toString();
21503
    }
21504
 
21505
    public void validate() throws org.apache.thrift.TException {
21506
      // check for required fields
21507
    }
21508
 
21509
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21510
      try {
21511
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21512
      } catch (org.apache.thrift.TException te) {
21513
        throw new java.io.IOException(te);
21514
      }
21515
    }
21516
 
21517
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21518
      try {
21519
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21520
      } catch (org.apache.thrift.TException te) {
21521
        throw new java.io.IOException(te);
21522
      }
21523
    }
21524
 
21525
  }
21526
 
21527
  public static class scanForOursExternalSaleReturn_result implements org.apache.thrift.TBase<scanForOursExternalSaleReturn_result, scanForOursExternalSaleReturn_result._Fields>, java.io.Serializable, Cloneable   {
21528
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForOursExternalSaleReturn_result");
21529
 
7410 amar.kumar 21530
    private static final org.apache.thrift.protocol.TField EX_FIELD_DESC = new org.apache.thrift.protocol.TField("ex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
6762 amar.kumar 21531
 
7410 amar.kumar 21532
    private WarehouseServiceException ex; // required
6762 amar.kumar 21533
 
21534
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21535
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7410 amar.kumar 21536
      EX((short)1, "ex");
6762 amar.kumar 21537
 
21538
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21539
 
21540
      static {
21541
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21542
          byName.put(field.getFieldName(), field);
21543
        }
21544
      }
21545
 
21546
      /**
21547
       * Find the _Fields constant that matches fieldId, or null if its not found.
21548
       */
21549
      public static _Fields findByThriftId(int fieldId) {
21550
        switch(fieldId) {
7410 amar.kumar 21551
          case 1: // EX
21552
            return EX;
6762 amar.kumar 21553
          default:
21554
            return null;
21555
        }
21556
      }
21557
 
21558
      /**
21559
       * Find the _Fields constant that matches fieldId, throwing an exception
21560
       * if it is not found.
21561
       */
21562
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21563
        _Fields fields = findByThriftId(fieldId);
21564
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21565
        return fields;
21566
      }
21567
 
21568
      /**
21569
       * Find the _Fields constant that matches name, or null if its not found.
21570
       */
21571
      public static _Fields findByName(String name) {
21572
        return byName.get(name);
21573
      }
21574
 
21575
      private final short _thriftId;
21576
      private final String _fieldName;
21577
 
21578
      _Fields(short thriftId, String fieldName) {
21579
        _thriftId = thriftId;
21580
        _fieldName = fieldName;
21581
      }
21582
 
21583
      public short getThriftFieldId() {
21584
        return _thriftId;
21585
      }
21586
 
21587
      public String getFieldName() {
21588
        return _fieldName;
21589
      }
21590
    }
7410 amar.kumar 21591
 
21592
    // isset id assignments
21593
 
6762 amar.kumar 21594
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21595
    static {
21596
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7410 amar.kumar 21597
      tmpMap.put(_Fields.EX, new org.apache.thrift.meta_data.FieldMetaData("ex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6762 amar.kumar 21599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForOursExternalSaleReturn_result.class, metaDataMap);
21601
    }
21602
 
21603
    public scanForOursExternalSaleReturn_result() {
21604
    }
21605
 
7410 amar.kumar 21606
    public scanForOursExternalSaleReturn_result(
21607
      WarehouseServiceException ex)
21608
    {
21609
      this();
21610
      this.ex = ex;
21611
    }
21612
 
6762 amar.kumar 21613
    /**
21614
     * Performs a deep copy on <i>other</i>.
21615
     */
21616
    public scanForOursExternalSaleReturn_result(scanForOursExternalSaleReturn_result other) {
7410 amar.kumar 21617
      if (other.isSetEx()) {
21618
        this.ex = new WarehouseServiceException(other.ex);
21619
      }
6762 amar.kumar 21620
    }
21621
 
21622
    public scanForOursExternalSaleReturn_result deepCopy() {
21623
      return new scanForOursExternalSaleReturn_result(this);
21624
    }
21625
 
21626
    @Override
21627
    public void clear() {
7410 amar.kumar 21628
      this.ex = null;
6762 amar.kumar 21629
    }
21630
 
7410 amar.kumar 21631
    public WarehouseServiceException getEx() {
21632
      return this.ex;
21633
    }
21634
 
21635
    public void setEx(WarehouseServiceException ex) {
21636
      this.ex = ex;
21637
    }
21638
 
21639
    public void unsetEx() {
21640
      this.ex = null;
21641
    }
21642
 
21643
    /** Returns true if field ex is set (has been assigned a value) and false otherwise */
21644
    public boolean isSetEx() {
21645
      return this.ex != null;
21646
    }
21647
 
21648
    public void setExIsSet(boolean value) {
21649
      if (!value) {
21650
        this.ex = null;
21651
      }
21652
    }
21653
 
6762 amar.kumar 21654
    public void setFieldValue(_Fields field, Object value) {
21655
      switch (field) {
7410 amar.kumar 21656
      case EX:
21657
        if (value == null) {
21658
          unsetEx();
21659
        } else {
21660
          setEx((WarehouseServiceException)value);
21661
        }
21662
        break;
21663
 
6762 amar.kumar 21664
      }
21665
    }
21666
 
21667
    public Object getFieldValue(_Fields field) {
21668
      switch (field) {
7410 amar.kumar 21669
      case EX:
21670
        return getEx();
21671
 
6762 amar.kumar 21672
      }
21673
      throw new IllegalStateException();
21674
    }
21675
 
21676
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21677
    public boolean isSet(_Fields field) {
21678
      if (field == null) {
21679
        throw new IllegalArgumentException();
21680
      }
21681
 
21682
      switch (field) {
7410 amar.kumar 21683
      case EX:
21684
        return isSetEx();
6762 amar.kumar 21685
      }
21686
      throw new IllegalStateException();
21687
    }
21688
 
21689
    @Override
21690
    public boolean equals(Object that) {
21691
      if (that == null)
21692
        return false;
21693
      if (that instanceof scanForOursExternalSaleReturn_result)
21694
        return this.equals((scanForOursExternalSaleReturn_result)that);
21695
      return false;
21696
    }
21697
 
21698
    public boolean equals(scanForOursExternalSaleReturn_result that) {
21699
      if (that == null)
21700
        return false;
21701
 
7410 amar.kumar 21702
      boolean this_present_ex = true && this.isSetEx();
21703
      boolean that_present_ex = true && that.isSetEx();
21704
      if (this_present_ex || that_present_ex) {
21705
        if (!(this_present_ex && that_present_ex))
21706
          return false;
21707
        if (!this.ex.equals(that.ex))
21708
          return false;
21709
      }
21710
 
6762 amar.kumar 21711
      return true;
21712
    }
21713
 
21714
    @Override
21715
    public int hashCode() {
21716
      return 0;
21717
    }
21718
 
21719
    public int compareTo(scanForOursExternalSaleReturn_result other) {
21720
      if (!getClass().equals(other.getClass())) {
21721
        return getClass().getName().compareTo(other.getClass().getName());
21722
      }
21723
 
21724
      int lastComparison = 0;
21725
      scanForOursExternalSaleReturn_result typedOther = (scanForOursExternalSaleReturn_result)other;
21726
 
7410 amar.kumar 21727
      lastComparison = Boolean.valueOf(isSetEx()).compareTo(typedOther.isSetEx());
21728
      if (lastComparison != 0) {
21729
        return lastComparison;
21730
      }
21731
      if (isSetEx()) {
21732
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ex, typedOther.ex);
21733
        if (lastComparison != 0) {
21734
          return lastComparison;
21735
        }
21736
      }
6762 amar.kumar 21737
      return 0;
21738
    }
21739
 
21740
    public _Fields fieldForId(int fieldId) {
21741
      return _Fields.findByThriftId(fieldId);
21742
    }
21743
 
21744
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21745
      org.apache.thrift.protocol.TField field;
21746
      iprot.readStructBegin();
21747
      while (true)
21748
      {
21749
        field = iprot.readFieldBegin();
21750
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21751
          break;
21752
        }
21753
        switch (field.id) {
7410 amar.kumar 21754
          case 1: // EX
21755
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21756
              this.ex = new WarehouseServiceException();
21757
              this.ex.read(iprot);
21758
            } else { 
21759
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21760
            }
21761
            break;
6762 amar.kumar 21762
          default:
21763
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21764
        }
21765
        iprot.readFieldEnd();
21766
      }
21767
      iprot.readStructEnd();
21768
      validate();
21769
    }
21770
 
21771
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21772
      oprot.writeStructBegin(STRUCT_DESC);
21773
 
7410 amar.kumar 21774
      if (this.isSetEx()) {
21775
        oprot.writeFieldBegin(EX_FIELD_DESC);
21776
        this.ex.write(oprot);
21777
        oprot.writeFieldEnd();
21778
      }
6762 amar.kumar 21779
      oprot.writeFieldStop();
21780
      oprot.writeStructEnd();
21781
    }
21782
 
21783
    @Override
21784
    public String toString() {
21785
      StringBuilder sb = new StringBuilder("scanForOursExternalSaleReturn_result(");
21786
      boolean first = true;
21787
 
7410 amar.kumar 21788
      sb.append("ex:");
21789
      if (this.ex == null) {
21790
        sb.append("null");
21791
      } else {
21792
        sb.append(this.ex);
21793
      }
21794
      first = false;
6762 amar.kumar 21795
      sb.append(")");
21796
      return sb.toString();
21797
    }
21798
 
21799
    public void validate() throws org.apache.thrift.TException {
21800
      // check for required fields
21801
    }
21802
 
21803
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21804
      try {
21805
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21806
      } catch (org.apache.thrift.TException te) {
21807
        throw new java.io.IOException(te);
21808
      }
21809
    }
21810
 
21811
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21812
      try {
21813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21814
      } catch (org.apache.thrift.TException te) {
21815
        throw new java.io.IOException(te);
21816
      }
21817
    }
21818
 
21819
  }
21820
 
6880 amar.kumar 21821
  public static class getMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_args, getMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
21822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_args");
21823
 
21824
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
21825
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
21826
 
21827
    private long startDate; // required
21828
    private long endDate; // required
21829
 
21830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21832
      START_DATE((short)1, "startDate"),
21833
      END_DATE((short)2, "endDate");
21834
 
21835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21836
 
21837
      static {
21838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21839
          byName.put(field.getFieldName(), field);
21840
        }
21841
      }
21842
 
21843
      /**
21844
       * Find the _Fields constant that matches fieldId, or null if its not found.
21845
       */
21846
      public static _Fields findByThriftId(int fieldId) {
21847
        switch(fieldId) {
21848
          case 1: // START_DATE
21849
            return START_DATE;
21850
          case 2: // END_DATE
21851
            return END_DATE;
21852
          default:
21853
            return null;
21854
        }
21855
      }
21856
 
21857
      /**
21858
       * Find the _Fields constant that matches fieldId, throwing an exception
21859
       * if it is not found.
21860
       */
21861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21862
        _Fields fields = findByThriftId(fieldId);
21863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21864
        return fields;
21865
      }
21866
 
21867
      /**
21868
       * Find the _Fields constant that matches name, or null if its not found.
21869
       */
21870
      public static _Fields findByName(String name) {
21871
        return byName.get(name);
21872
      }
21873
 
21874
      private final short _thriftId;
21875
      private final String _fieldName;
21876
 
21877
      _Fields(short thriftId, String fieldName) {
21878
        _thriftId = thriftId;
21879
        _fieldName = fieldName;
21880
      }
21881
 
21882
      public short getThriftFieldId() {
21883
        return _thriftId;
21884
      }
21885
 
21886
      public String getFieldName() {
21887
        return _fieldName;
21888
      }
21889
    }
21890
 
21891
    // isset id assignments
21892
    private static final int __STARTDATE_ISSET_ID = 0;
21893
    private static final int __ENDDATE_ISSET_ID = 1;
21894
    private BitSet __isset_bit_vector = new BitSet(2);
21895
 
21896
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21897
    static {
21898
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21899
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21900
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21901
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21902
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21903
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21904
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_args.class, metaDataMap);
21905
    }
21906
 
21907
    public getMovementNonSerializedInventoryByScans_args() {
21908
    }
21909
 
21910
    public getMovementNonSerializedInventoryByScans_args(
21911
      long startDate,
21912
      long endDate)
21913
    {
21914
      this();
21915
      this.startDate = startDate;
21916
      setStartDateIsSet(true);
21917
      this.endDate = endDate;
21918
      setEndDateIsSet(true);
21919
    }
21920
 
21921
    /**
21922
     * Performs a deep copy on <i>other</i>.
21923
     */
21924
    public getMovementNonSerializedInventoryByScans_args(getMovementNonSerializedInventoryByScans_args other) {
21925
      __isset_bit_vector.clear();
21926
      __isset_bit_vector.or(other.__isset_bit_vector);
21927
      this.startDate = other.startDate;
21928
      this.endDate = other.endDate;
21929
    }
21930
 
21931
    public getMovementNonSerializedInventoryByScans_args deepCopy() {
21932
      return new getMovementNonSerializedInventoryByScans_args(this);
21933
    }
21934
 
21935
    @Override
21936
    public void clear() {
21937
      setStartDateIsSet(false);
21938
      this.startDate = 0;
21939
      setEndDateIsSet(false);
21940
      this.endDate = 0;
21941
    }
21942
 
21943
    public long getStartDate() {
21944
      return this.startDate;
21945
    }
21946
 
21947
    public void setStartDate(long startDate) {
21948
      this.startDate = startDate;
21949
      setStartDateIsSet(true);
21950
    }
21951
 
21952
    public void unsetStartDate() {
21953
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
21954
    }
21955
 
21956
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
21957
    public boolean isSetStartDate() {
21958
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
21959
    }
21960
 
21961
    public void setStartDateIsSet(boolean value) {
21962
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
21963
    }
21964
 
21965
    public long getEndDate() {
21966
      return this.endDate;
21967
    }
21968
 
21969
    public void setEndDate(long endDate) {
21970
      this.endDate = endDate;
21971
      setEndDateIsSet(true);
21972
    }
21973
 
21974
    public void unsetEndDate() {
21975
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
21976
    }
21977
 
21978
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
21979
    public boolean isSetEndDate() {
21980
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
21981
    }
21982
 
21983
    public void setEndDateIsSet(boolean value) {
21984
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
21985
    }
21986
 
21987
    public void setFieldValue(_Fields field, Object value) {
21988
      switch (field) {
21989
      case START_DATE:
21990
        if (value == null) {
21991
          unsetStartDate();
21992
        } else {
21993
          setStartDate((Long)value);
21994
        }
21995
        break;
21996
 
21997
      case END_DATE:
21998
        if (value == null) {
21999
          unsetEndDate();
22000
        } else {
22001
          setEndDate((Long)value);
22002
        }
22003
        break;
22004
 
22005
      }
22006
    }
22007
 
22008
    public Object getFieldValue(_Fields field) {
22009
      switch (field) {
22010
      case START_DATE:
22011
        return Long.valueOf(getStartDate());
22012
 
22013
      case END_DATE:
22014
        return Long.valueOf(getEndDate());
22015
 
22016
      }
22017
      throw new IllegalStateException();
22018
    }
22019
 
22020
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22021
    public boolean isSet(_Fields field) {
22022
      if (field == null) {
22023
        throw new IllegalArgumentException();
22024
      }
22025
 
22026
      switch (field) {
22027
      case START_DATE:
22028
        return isSetStartDate();
22029
      case END_DATE:
22030
        return isSetEndDate();
22031
      }
22032
      throw new IllegalStateException();
22033
    }
22034
 
22035
    @Override
22036
    public boolean equals(Object that) {
22037
      if (that == null)
22038
        return false;
22039
      if (that instanceof getMovementNonSerializedInventoryByScans_args)
22040
        return this.equals((getMovementNonSerializedInventoryByScans_args)that);
22041
      return false;
22042
    }
22043
 
22044
    public boolean equals(getMovementNonSerializedInventoryByScans_args that) {
22045
      if (that == null)
22046
        return false;
22047
 
22048
      boolean this_present_startDate = true;
22049
      boolean that_present_startDate = true;
22050
      if (this_present_startDate || that_present_startDate) {
22051
        if (!(this_present_startDate && that_present_startDate))
22052
          return false;
22053
        if (this.startDate != that.startDate)
22054
          return false;
22055
      }
22056
 
22057
      boolean this_present_endDate = true;
22058
      boolean that_present_endDate = true;
22059
      if (this_present_endDate || that_present_endDate) {
22060
        if (!(this_present_endDate && that_present_endDate))
22061
          return false;
22062
        if (this.endDate != that.endDate)
22063
          return false;
22064
      }
22065
 
22066
      return true;
22067
    }
22068
 
22069
    @Override
22070
    public int hashCode() {
22071
      return 0;
22072
    }
22073
 
22074
    public int compareTo(getMovementNonSerializedInventoryByScans_args other) {
22075
      if (!getClass().equals(other.getClass())) {
22076
        return getClass().getName().compareTo(other.getClass().getName());
22077
      }
22078
 
22079
      int lastComparison = 0;
22080
      getMovementNonSerializedInventoryByScans_args typedOther = (getMovementNonSerializedInventoryByScans_args)other;
22081
 
22082
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22083
      if (lastComparison != 0) {
22084
        return lastComparison;
22085
      }
22086
      if (isSetStartDate()) {
22087
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22088
        if (lastComparison != 0) {
22089
          return lastComparison;
22090
        }
22091
      }
22092
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22093
      if (lastComparison != 0) {
22094
        return lastComparison;
22095
      }
22096
      if (isSetEndDate()) {
22097
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22098
        if (lastComparison != 0) {
22099
          return lastComparison;
22100
        }
22101
      }
22102
      return 0;
22103
    }
22104
 
22105
    public _Fields fieldForId(int fieldId) {
22106
      return _Fields.findByThriftId(fieldId);
22107
    }
22108
 
22109
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22110
      org.apache.thrift.protocol.TField field;
22111
      iprot.readStructBegin();
22112
      while (true)
22113
      {
22114
        field = iprot.readFieldBegin();
22115
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22116
          break;
22117
        }
22118
        switch (field.id) {
22119
          case 1: // START_DATE
22120
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22121
              this.startDate = iprot.readI64();
22122
              setStartDateIsSet(true);
22123
            } else { 
22124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22125
            }
22126
            break;
22127
          case 2: // END_DATE
22128
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22129
              this.endDate = iprot.readI64();
22130
              setEndDateIsSet(true);
22131
            } else { 
22132
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22133
            }
22134
            break;
22135
          default:
22136
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22137
        }
22138
        iprot.readFieldEnd();
22139
      }
22140
      iprot.readStructEnd();
22141
      validate();
22142
    }
22143
 
22144
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22145
      validate();
22146
 
22147
      oprot.writeStructBegin(STRUCT_DESC);
22148
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
22149
      oprot.writeI64(this.startDate);
22150
      oprot.writeFieldEnd();
22151
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
22152
      oprot.writeI64(this.endDate);
22153
      oprot.writeFieldEnd();
22154
      oprot.writeFieldStop();
22155
      oprot.writeStructEnd();
22156
    }
22157
 
22158
    @Override
22159
    public String toString() {
22160
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_args(");
22161
      boolean first = true;
22162
 
22163
      sb.append("startDate:");
22164
      sb.append(this.startDate);
22165
      first = false;
22166
      if (!first) sb.append(", ");
22167
      sb.append("endDate:");
22168
      sb.append(this.endDate);
22169
      first = false;
22170
      sb.append(")");
22171
      return sb.toString();
22172
    }
22173
 
22174
    public void validate() throws org.apache.thrift.TException {
22175
      // check for required fields
22176
    }
22177
 
22178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22179
      try {
22180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22181
      } catch (org.apache.thrift.TException te) {
22182
        throw new java.io.IOException(te);
22183
      }
22184
    }
22185
 
22186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22187
      try {
22188
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22189
        __isset_bit_vector = new BitSet(1);
22190
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22191
      } catch (org.apache.thrift.TException te) {
22192
        throw new java.io.IOException(te);
22193
      }
22194
    }
22195
 
22196
  }
22197
 
22198
  public static class getMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementNonSerializedInventoryByScans_result, getMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
22199
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementNonSerializedInventoryByScans_result");
22200
 
22201
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
22202
 
22203
    private List<InventoryMovement> success; // required
22204
 
22205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22207
      SUCCESS((short)0, "success");
22208
 
22209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22210
 
22211
      static {
22212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22213
          byName.put(field.getFieldName(), field);
22214
        }
22215
      }
22216
 
22217
      /**
22218
       * Find the _Fields constant that matches fieldId, or null if its not found.
22219
       */
22220
      public static _Fields findByThriftId(int fieldId) {
22221
        switch(fieldId) {
22222
          case 0: // SUCCESS
22223
            return SUCCESS;
22224
          default:
22225
            return null;
22226
        }
22227
      }
22228
 
22229
      /**
22230
       * Find the _Fields constant that matches fieldId, throwing an exception
22231
       * if it is not found.
22232
       */
22233
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22234
        _Fields fields = findByThriftId(fieldId);
22235
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22236
        return fields;
22237
      }
22238
 
22239
      /**
22240
       * Find the _Fields constant that matches name, or null if its not found.
22241
       */
22242
      public static _Fields findByName(String name) {
22243
        return byName.get(name);
22244
      }
22245
 
22246
      private final short _thriftId;
22247
      private final String _fieldName;
22248
 
22249
      _Fields(short thriftId, String fieldName) {
22250
        _thriftId = thriftId;
22251
        _fieldName = fieldName;
22252
      }
22253
 
22254
      public short getThriftFieldId() {
22255
        return _thriftId;
22256
      }
22257
 
22258
      public String getFieldName() {
22259
        return _fieldName;
22260
      }
22261
    }
22262
 
22263
    // isset id assignments
22264
 
22265
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22266
    static {
22267
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22268
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22269
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22270
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
22271
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22272
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementNonSerializedInventoryByScans_result.class, metaDataMap);
22273
    }
22274
 
22275
    public getMovementNonSerializedInventoryByScans_result() {
22276
    }
22277
 
22278
    public getMovementNonSerializedInventoryByScans_result(
22279
      List<InventoryMovement> success)
22280
    {
22281
      this();
22282
      this.success = success;
22283
    }
22284
 
22285
    /**
22286
     * Performs a deep copy on <i>other</i>.
22287
     */
22288
    public getMovementNonSerializedInventoryByScans_result(getMovementNonSerializedInventoryByScans_result other) {
22289
      if (other.isSetSuccess()) {
22290
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
22291
        for (InventoryMovement other_element : other.success) {
22292
          __this__success.add(new InventoryMovement(other_element));
22293
        }
22294
        this.success = __this__success;
22295
      }
22296
    }
22297
 
22298
    public getMovementNonSerializedInventoryByScans_result deepCopy() {
22299
      return new getMovementNonSerializedInventoryByScans_result(this);
22300
    }
22301
 
22302
    @Override
22303
    public void clear() {
22304
      this.success = null;
22305
    }
22306
 
22307
    public int getSuccessSize() {
22308
      return (this.success == null) ? 0 : this.success.size();
22309
    }
22310
 
22311
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
22312
      return (this.success == null) ? null : this.success.iterator();
22313
    }
22314
 
22315
    public void addToSuccess(InventoryMovement elem) {
22316
      if (this.success == null) {
22317
        this.success = new ArrayList<InventoryMovement>();
22318
      }
22319
      this.success.add(elem);
22320
    }
22321
 
22322
    public List<InventoryMovement> getSuccess() {
22323
      return this.success;
22324
    }
22325
 
22326
    public void setSuccess(List<InventoryMovement> success) {
22327
      this.success = success;
22328
    }
22329
 
22330
    public void unsetSuccess() {
22331
      this.success = null;
22332
    }
22333
 
22334
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22335
    public boolean isSetSuccess() {
22336
      return this.success != null;
22337
    }
22338
 
22339
    public void setSuccessIsSet(boolean value) {
22340
      if (!value) {
22341
        this.success = null;
22342
      }
22343
    }
22344
 
22345
    public void setFieldValue(_Fields field, Object value) {
22346
      switch (field) {
22347
      case SUCCESS:
22348
        if (value == null) {
22349
          unsetSuccess();
22350
        } else {
22351
          setSuccess((List<InventoryMovement>)value);
22352
        }
22353
        break;
22354
 
22355
      }
22356
    }
22357
 
22358
    public Object getFieldValue(_Fields field) {
22359
      switch (field) {
22360
      case SUCCESS:
22361
        return getSuccess();
22362
 
22363
      }
22364
      throw new IllegalStateException();
22365
    }
22366
 
22367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22368
    public boolean isSet(_Fields field) {
22369
      if (field == null) {
22370
        throw new IllegalArgumentException();
22371
      }
22372
 
22373
      switch (field) {
22374
      case SUCCESS:
22375
        return isSetSuccess();
22376
      }
22377
      throw new IllegalStateException();
22378
    }
22379
 
22380
    @Override
22381
    public boolean equals(Object that) {
22382
      if (that == null)
22383
        return false;
22384
      if (that instanceof getMovementNonSerializedInventoryByScans_result)
22385
        return this.equals((getMovementNonSerializedInventoryByScans_result)that);
22386
      return false;
22387
    }
22388
 
22389
    public boolean equals(getMovementNonSerializedInventoryByScans_result that) {
22390
      if (that == null)
22391
        return false;
22392
 
22393
      boolean this_present_success = true && this.isSetSuccess();
22394
      boolean that_present_success = true && that.isSetSuccess();
22395
      if (this_present_success || that_present_success) {
22396
        if (!(this_present_success && that_present_success))
22397
          return false;
22398
        if (!this.success.equals(that.success))
22399
          return false;
22400
      }
22401
 
22402
      return true;
22403
    }
22404
 
22405
    @Override
22406
    public int hashCode() {
22407
      return 0;
22408
    }
22409
 
22410
    public int compareTo(getMovementNonSerializedInventoryByScans_result other) {
22411
      if (!getClass().equals(other.getClass())) {
22412
        return getClass().getName().compareTo(other.getClass().getName());
22413
      }
22414
 
22415
      int lastComparison = 0;
22416
      getMovementNonSerializedInventoryByScans_result typedOther = (getMovementNonSerializedInventoryByScans_result)other;
22417
 
22418
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22419
      if (lastComparison != 0) {
22420
        return lastComparison;
22421
      }
22422
      if (isSetSuccess()) {
22423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22424
        if (lastComparison != 0) {
22425
          return lastComparison;
22426
        }
22427
      }
22428
      return 0;
22429
    }
22430
 
22431
    public _Fields fieldForId(int fieldId) {
22432
      return _Fields.findByThriftId(fieldId);
22433
    }
22434
 
22435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22436
      org.apache.thrift.protocol.TField field;
22437
      iprot.readStructBegin();
22438
      while (true)
22439
      {
22440
        field = iprot.readFieldBegin();
22441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22442
          break;
22443
        }
22444
        switch (field.id) {
22445
          case 0: // SUCCESS
22446
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22447
              {
7210 amar.kumar 22448
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
22449
                this.success = new ArrayList<InventoryMovement>(_list60.size);
22450
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
6880 amar.kumar 22451
                {
7210 amar.kumar 22452
                  InventoryMovement _elem62; // required
22453
                  _elem62 = new InventoryMovement();
22454
                  _elem62.read(iprot);
22455
                  this.success.add(_elem62);
6880 amar.kumar 22456
                }
22457
                iprot.readListEnd();
22458
              }
22459
            } else { 
22460
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22461
            }
22462
            break;
22463
          default:
22464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22465
        }
22466
        iprot.readFieldEnd();
22467
      }
22468
      iprot.readStructEnd();
22469
      validate();
22470
    }
22471
 
22472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22473
      oprot.writeStructBegin(STRUCT_DESC);
22474
 
22475
      if (this.isSetSuccess()) {
22476
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22477
        {
22478
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 22479
          for (InventoryMovement _iter63 : this.success)
6880 amar.kumar 22480
          {
7210 amar.kumar 22481
            _iter63.write(oprot);
6880 amar.kumar 22482
          }
22483
          oprot.writeListEnd();
22484
        }
22485
        oprot.writeFieldEnd();
22486
      }
22487
      oprot.writeFieldStop();
22488
      oprot.writeStructEnd();
22489
    }
22490
 
22491
    @Override
22492
    public String toString() {
22493
      StringBuilder sb = new StringBuilder("getMovementNonSerializedInventoryByScans_result(");
22494
      boolean first = true;
22495
 
22496
      sb.append("success:");
22497
      if (this.success == null) {
22498
        sb.append("null");
22499
      } else {
22500
        sb.append(this.success);
22501
      }
22502
      first = false;
22503
      sb.append(")");
22504
      return sb.toString();
22505
    }
22506
 
22507
    public void validate() throws org.apache.thrift.TException {
22508
      // check for required fields
22509
    }
22510
 
22511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22512
      try {
22513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22514
      } catch (org.apache.thrift.TException te) {
22515
        throw new java.io.IOException(te);
22516
      }
22517
    }
22518
 
22519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22520
      try {
22521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22522
      } catch (org.apache.thrift.TException te) {
22523
        throw new java.io.IOException(te);
22524
      }
22525
    }
22526
 
22527
  }
22528
 
22529
  public static class getMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_args, getMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
22530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_args");
22531
 
22532
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
22533
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
22534
 
22535
    private long startDate; // required
22536
    private long endDate; // required
22537
 
22538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22540
      START_DATE((short)1, "startDate"),
22541
      END_DATE((short)2, "endDate");
22542
 
22543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22544
 
22545
      static {
22546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22547
          byName.put(field.getFieldName(), field);
22548
        }
22549
      }
22550
 
22551
      /**
22552
       * Find the _Fields constant that matches fieldId, or null if its not found.
22553
       */
22554
      public static _Fields findByThriftId(int fieldId) {
22555
        switch(fieldId) {
22556
          case 1: // START_DATE
22557
            return START_DATE;
22558
          case 2: // END_DATE
22559
            return END_DATE;
22560
          default:
22561
            return null;
22562
        }
22563
      }
22564
 
22565
      /**
22566
       * Find the _Fields constant that matches fieldId, throwing an exception
22567
       * if it is not found.
22568
       */
22569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22570
        _Fields fields = findByThriftId(fieldId);
22571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22572
        return fields;
22573
      }
22574
 
22575
      /**
22576
       * Find the _Fields constant that matches name, or null if its not found.
22577
       */
22578
      public static _Fields findByName(String name) {
22579
        return byName.get(name);
22580
      }
22581
 
22582
      private final short _thriftId;
22583
      private final String _fieldName;
22584
 
22585
      _Fields(short thriftId, String fieldName) {
22586
        _thriftId = thriftId;
22587
        _fieldName = fieldName;
22588
      }
22589
 
22590
      public short getThriftFieldId() {
22591
        return _thriftId;
22592
      }
22593
 
22594
      public String getFieldName() {
22595
        return _fieldName;
22596
      }
22597
    }
22598
 
22599
    // isset id assignments
22600
    private static final int __STARTDATE_ISSET_ID = 0;
22601
    private static final int __ENDDATE_ISSET_ID = 1;
22602
    private BitSet __isset_bit_vector = new BitSet(2);
22603
 
22604
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22605
    static {
22606
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22607
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22609
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22610
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22611
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22612
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_args.class, metaDataMap);
22613
    }
22614
 
22615
    public getMovementSerializedInventoryByScans_args() {
22616
    }
22617
 
22618
    public getMovementSerializedInventoryByScans_args(
22619
      long startDate,
22620
      long endDate)
22621
    {
22622
      this();
22623
      this.startDate = startDate;
22624
      setStartDateIsSet(true);
22625
      this.endDate = endDate;
22626
      setEndDateIsSet(true);
22627
    }
22628
 
22629
    /**
22630
     * Performs a deep copy on <i>other</i>.
22631
     */
22632
    public getMovementSerializedInventoryByScans_args(getMovementSerializedInventoryByScans_args other) {
22633
      __isset_bit_vector.clear();
22634
      __isset_bit_vector.or(other.__isset_bit_vector);
22635
      this.startDate = other.startDate;
22636
      this.endDate = other.endDate;
22637
    }
22638
 
22639
    public getMovementSerializedInventoryByScans_args deepCopy() {
22640
      return new getMovementSerializedInventoryByScans_args(this);
22641
    }
22642
 
22643
    @Override
22644
    public void clear() {
22645
      setStartDateIsSet(false);
22646
      this.startDate = 0;
22647
      setEndDateIsSet(false);
22648
      this.endDate = 0;
22649
    }
22650
 
22651
    public long getStartDate() {
22652
      return this.startDate;
22653
    }
22654
 
22655
    public void setStartDate(long startDate) {
22656
      this.startDate = startDate;
22657
      setStartDateIsSet(true);
22658
    }
22659
 
22660
    public void unsetStartDate() {
22661
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
22662
    }
22663
 
22664
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
22665
    public boolean isSetStartDate() {
22666
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
22667
    }
22668
 
22669
    public void setStartDateIsSet(boolean value) {
22670
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
22671
    }
22672
 
22673
    public long getEndDate() {
22674
      return this.endDate;
22675
    }
22676
 
22677
    public void setEndDate(long endDate) {
22678
      this.endDate = endDate;
22679
      setEndDateIsSet(true);
22680
    }
22681
 
22682
    public void unsetEndDate() {
22683
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
22684
    }
22685
 
22686
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
22687
    public boolean isSetEndDate() {
22688
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
22689
    }
22690
 
22691
    public void setEndDateIsSet(boolean value) {
22692
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
22693
    }
22694
 
22695
    public void setFieldValue(_Fields field, Object value) {
22696
      switch (field) {
22697
      case START_DATE:
22698
        if (value == null) {
22699
          unsetStartDate();
22700
        } else {
22701
          setStartDate((Long)value);
22702
        }
22703
        break;
22704
 
22705
      case END_DATE:
22706
        if (value == null) {
22707
          unsetEndDate();
22708
        } else {
22709
          setEndDate((Long)value);
22710
        }
22711
        break;
22712
 
22713
      }
22714
    }
22715
 
22716
    public Object getFieldValue(_Fields field) {
22717
      switch (field) {
22718
      case START_DATE:
22719
        return Long.valueOf(getStartDate());
22720
 
22721
      case END_DATE:
22722
        return Long.valueOf(getEndDate());
22723
 
22724
      }
22725
      throw new IllegalStateException();
22726
    }
22727
 
22728
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22729
    public boolean isSet(_Fields field) {
22730
      if (field == null) {
22731
        throw new IllegalArgumentException();
22732
      }
22733
 
22734
      switch (field) {
22735
      case START_DATE:
22736
        return isSetStartDate();
22737
      case END_DATE:
22738
        return isSetEndDate();
22739
      }
22740
      throw new IllegalStateException();
22741
    }
22742
 
22743
    @Override
22744
    public boolean equals(Object that) {
22745
      if (that == null)
22746
        return false;
22747
      if (that instanceof getMovementSerializedInventoryByScans_args)
22748
        return this.equals((getMovementSerializedInventoryByScans_args)that);
22749
      return false;
22750
    }
22751
 
22752
    public boolean equals(getMovementSerializedInventoryByScans_args that) {
22753
      if (that == null)
22754
        return false;
22755
 
22756
      boolean this_present_startDate = true;
22757
      boolean that_present_startDate = true;
22758
      if (this_present_startDate || that_present_startDate) {
22759
        if (!(this_present_startDate && that_present_startDate))
22760
          return false;
22761
        if (this.startDate != that.startDate)
22762
          return false;
22763
      }
22764
 
22765
      boolean this_present_endDate = true;
22766
      boolean that_present_endDate = true;
22767
      if (this_present_endDate || that_present_endDate) {
22768
        if (!(this_present_endDate && that_present_endDate))
22769
          return false;
22770
        if (this.endDate != that.endDate)
22771
          return false;
22772
      }
22773
 
22774
      return true;
22775
    }
22776
 
22777
    @Override
22778
    public int hashCode() {
22779
      return 0;
22780
    }
22781
 
22782
    public int compareTo(getMovementSerializedInventoryByScans_args other) {
22783
      if (!getClass().equals(other.getClass())) {
22784
        return getClass().getName().compareTo(other.getClass().getName());
22785
      }
22786
 
22787
      int lastComparison = 0;
22788
      getMovementSerializedInventoryByScans_args typedOther = (getMovementSerializedInventoryByScans_args)other;
22789
 
22790
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
22791
      if (lastComparison != 0) {
22792
        return lastComparison;
22793
      }
22794
      if (isSetStartDate()) {
22795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
22796
        if (lastComparison != 0) {
22797
          return lastComparison;
22798
        }
22799
      }
22800
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
22801
      if (lastComparison != 0) {
22802
        return lastComparison;
22803
      }
22804
      if (isSetEndDate()) {
22805
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
22806
        if (lastComparison != 0) {
22807
          return lastComparison;
22808
        }
22809
      }
22810
      return 0;
22811
    }
22812
 
22813
    public _Fields fieldForId(int fieldId) {
22814
      return _Fields.findByThriftId(fieldId);
22815
    }
22816
 
22817
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22818
      org.apache.thrift.protocol.TField field;
22819
      iprot.readStructBegin();
22820
      while (true)
22821
      {
22822
        field = iprot.readFieldBegin();
22823
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22824
          break;
22825
        }
22826
        switch (field.id) {
22827
          case 1: // START_DATE
22828
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22829
              this.startDate = iprot.readI64();
22830
              setStartDateIsSet(true);
22831
            } else { 
22832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22833
            }
22834
            break;
22835
          case 2: // END_DATE
22836
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22837
              this.endDate = iprot.readI64();
22838
              setEndDateIsSet(true);
22839
            } else { 
22840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22841
            }
22842
            break;
22843
          default:
22844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22845
        }
22846
        iprot.readFieldEnd();
22847
      }
22848
      iprot.readStructEnd();
22849
      validate();
22850
    }
22851
 
22852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22853
      validate();
22854
 
22855
      oprot.writeStructBegin(STRUCT_DESC);
22856
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
22857
      oprot.writeI64(this.startDate);
22858
      oprot.writeFieldEnd();
22859
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
22860
      oprot.writeI64(this.endDate);
22861
      oprot.writeFieldEnd();
22862
      oprot.writeFieldStop();
22863
      oprot.writeStructEnd();
22864
    }
22865
 
22866
    @Override
22867
    public String toString() {
22868
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_args(");
22869
      boolean first = true;
22870
 
22871
      sb.append("startDate:");
22872
      sb.append(this.startDate);
22873
      first = false;
22874
      if (!first) sb.append(", ");
22875
      sb.append("endDate:");
22876
      sb.append(this.endDate);
22877
      first = false;
22878
      sb.append(")");
22879
      return sb.toString();
22880
    }
22881
 
22882
    public void validate() throws org.apache.thrift.TException {
22883
      // check for required fields
22884
    }
22885
 
22886
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22887
      try {
22888
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22889
      } catch (org.apache.thrift.TException te) {
22890
        throw new java.io.IOException(te);
22891
      }
22892
    }
22893
 
22894
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22895
      try {
22896
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22897
        __isset_bit_vector = new BitSet(1);
22898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22899
      } catch (org.apache.thrift.TException te) {
22900
        throw new java.io.IOException(te);
22901
      }
22902
    }
22903
 
22904
  }
22905
 
22906
  public static class getMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getMovementSerializedInventoryByScans_result, getMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
22907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMovementSerializedInventoryByScans_result");
22908
 
22909
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
22910
 
22911
    private List<InventoryMovement> success; // required
22912
 
22913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22915
      SUCCESS((short)0, "success");
22916
 
22917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22918
 
22919
      static {
22920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22921
          byName.put(field.getFieldName(), field);
22922
        }
22923
      }
22924
 
22925
      /**
22926
       * Find the _Fields constant that matches fieldId, or null if its not found.
22927
       */
22928
      public static _Fields findByThriftId(int fieldId) {
22929
        switch(fieldId) {
22930
          case 0: // SUCCESS
22931
            return SUCCESS;
22932
          default:
22933
            return null;
22934
        }
22935
      }
22936
 
22937
      /**
22938
       * Find the _Fields constant that matches fieldId, throwing an exception
22939
       * if it is not found.
22940
       */
22941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22942
        _Fields fields = findByThriftId(fieldId);
22943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22944
        return fields;
22945
      }
22946
 
22947
      /**
22948
       * Find the _Fields constant that matches name, or null if its not found.
22949
       */
22950
      public static _Fields findByName(String name) {
22951
        return byName.get(name);
22952
      }
22953
 
22954
      private final short _thriftId;
22955
      private final String _fieldName;
22956
 
22957
      _Fields(short thriftId, String fieldName) {
22958
        _thriftId = thriftId;
22959
        _fieldName = fieldName;
22960
      }
22961
 
22962
      public short getThriftFieldId() {
22963
        return _thriftId;
22964
      }
22965
 
22966
      public String getFieldName() {
22967
        return _fieldName;
22968
      }
22969
    }
22970
 
22971
    // isset id assignments
22972
 
22973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22974
    static {
22975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22977
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22978
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
22979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMovementSerializedInventoryByScans_result.class, metaDataMap);
22981
    }
22982
 
22983
    public getMovementSerializedInventoryByScans_result() {
22984
    }
22985
 
22986
    public getMovementSerializedInventoryByScans_result(
22987
      List<InventoryMovement> success)
22988
    {
22989
      this();
22990
      this.success = success;
22991
    }
22992
 
22993
    /**
22994
     * Performs a deep copy on <i>other</i>.
22995
     */
22996
    public getMovementSerializedInventoryByScans_result(getMovementSerializedInventoryByScans_result other) {
22997
      if (other.isSetSuccess()) {
22998
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
22999
        for (InventoryMovement other_element : other.success) {
23000
          __this__success.add(new InventoryMovement(other_element));
23001
        }
23002
        this.success = __this__success;
23003
      }
23004
    }
23005
 
23006
    public getMovementSerializedInventoryByScans_result deepCopy() {
23007
      return new getMovementSerializedInventoryByScans_result(this);
23008
    }
23009
 
23010
    @Override
23011
    public void clear() {
23012
      this.success = null;
23013
    }
23014
 
23015
    public int getSuccessSize() {
23016
      return (this.success == null) ? 0 : this.success.size();
23017
    }
23018
 
23019
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23020
      return (this.success == null) ? null : this.success.iterator();
23021
    }
23022
 
23023
    public void addToSuccess(InventoryMovement elem) {
23024
      if (this.success == null) {
23025
        this.success = new ArrayList<InventoryMovement>();
23026
      }
23027
      this.success.add(elem);
23028
    }
23029
 
23030
    public List<InventoryMovement> getSuccess() {
23031
      return this.success;
23032
    }
23033
 
23034
    public void setSuccess(List<InventoryMovement> success) {
23035
      this.success = success;
23036
    }
23037
 
23038
    public void unsetSuccess() {
23039
      this.success = null;
23040
    }
23041
 
23042
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23043
    public boolean isSetSuccess() {
23044
      return this.success != null;
23045
    }
23046
 
23047
    public void setSuccessIsSet(boolean value) {
23048
      if (!value) {
23049
        this.success = null;
23050
      }
23051
    }
23052
 
23053
    public void setFieldValue(_Fields field, Object value) {
23054
      switch (field) {
23055
      case SUCCESS:
23056
        if (value == null) {
23057
          unsetSuccess();
23058
        } else {
23059
          setSuccess((List<InventoryMovement>)value);
23060
        }
23061
        break;
23062
 
23063
      }
23064
    }
23065
 
23066
    public Object getFieldValue(_Fields field) {
23067
      switch (field) {
23068
      case SUCCESS:
23069
        return getSuccess();
23070
 
23071
      }
23072
      throw new IllegalStateException();
23073
    }
23074
 
23075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23076
    public boolean isSet(_Fields field) {
23077
      if (field == null) {
23078
        throw new IllegalArgumentException();
23079
      }
23080
 
23081
      switch (field) {
23082
      case SUCCESS:
23083
        return isSetSuccess();
23084
      }
23085
      throw new IllegalStateException();
23086
    }
23087
 
23088
    @Override
23089
    public boolean equals(Object that) {
23090
      if (that == null)
23091
        return false;
23092
      if (that instanceof getMovementSerializedInventoryByScans_result)
23093
        return this.equals((getMovementSerializedInventoryByScans_result)that);
23094
      return false;
23095
    }
23096
 
23097
    public boolean equals(getMovementSerializedInventoryByScans_result that) {
23098
      if (that == null)
23099
        return false;
23100
 
23101
      boolean this_present_success = true && this.isSetSuccess();
23102
      boolean that_present_success = true && that.isSetSuccess();
23103
      if (this_present_success || that_present_success) {
23104
        if (!(this_present_success && that_present_success))
23105
          return false;
23106
        if (!this.success.equals(that.success))
23107
          return false;
23108
      }
23109
 
23110
      return true;
23111
    }
23112
 
23113
    @Override
23114
    public int hashCode() {
23115
      return 0;
23116
    }
23117
 
23118
    public int compareTo(getMovementSerializedInventoryByScans_result other) {
23119
      if (!getClass().equals(other.getClass())) {
23120
        return getClass().getName().compareTo(other.getClass().getName());
23121
      }
23122
 
23123
      int lastComparison = 0;
23124
      getMovementSerializedInventoryByScans_result typedOther = (getMovementSerializedInventoryByScans_result)other;
23125
 
23126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23127
      if (lastComparison != 0) {
23128
        return lastComparison;
23129
      }
23130
      if (isSetSuccess()) {
23131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23132
        if (lastComparison != 0) {
23133
          return lastComparison;
23134
        }
23135
      }
23136
      return 0;
23137
    }
23138
 
23139
    public _Fields fieldForId(int fieldId) {
23140
      return _Fields.findByThriftId(fieldId);
23141
    }
23142
 
23143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23144
      org.apache.thrift.protocol.TField field;
23145
      iprot.readStructBegin();
23146
      while (true)
23147
      {
23148
        field = iprot.readFieldBegin();
23149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23150
          break;
23151
        }
23152
        switch (field.id) {
23153
          case 0: // SUCCESS
23154
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23155
              {
7210 amar.kumar 23156
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
23157
                this.success = new ArrayList<InventoryMovement>(_list64.size);
23158
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
6880 amar.kumar 23159
                {
7210 amar.kumar 23160
                  InventoryMovement _elem66; // required
23161
                  _elem66 = new InventoryMovement();
23162
                  _elem66.read(iprot);
23163
                  this.success.add(_elem66);
6880 amar.kumar 23164
                }
23165
                iprot.readListEnd();
23166
              }
23167
            } else { 
23168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23169
            }
23170
            break;
23171
          default:
23172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23173
        }
23174
        iprot.readFieldEnd();
23175
      }
23176
      iprot.readStructEnd();
23177
      validate();
23178
    }
23179
 
23180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23181
      oprot.writeStructBegin(STRUCT_DESC);
23182
 
23183
      if (this.isSetSuccess()) {
23184
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23185
        {
23186
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7210 amar.kumar 23187
          for (InventoryMovement _iter67 : this.success)
6880 amar.kumar 23188
          {
7210 amar.kumar 23189
            _iter67.write(oprot);
6880 amar.kumar 23190
          }
23191
          oprot.writeListEnd();
23192
        }
23193
        oprot.writeFieldEnd();
23194
      }
23195
      oprot.writeFieldStop();
23196
      oprot.writeStructEnd();
23197
    }
23198
 
23199
    @Override
23200
    public String toString() {
23201
      StringBuilder sb = new StringBuilder("getMovementSerializedInventoryByScans_result(");
23202
      boolean first = true;
23203
 
23204
      sb.append("success:");
23205
      if (this.success == null) {
23206
        sb.append("null");
23207
      } else {
23208
        sb.append(this.success);
23209
      }
23210
      first = false;
23211
      sb.append(")");
23212
      return sb.toString();
23213
    }
23214
 
23215
    public void validate() throws org.apache.thrift.TException {
23216
      // check for required fields
23217
    }
23218
 
23219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23220
      try {
23221
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23222
      } catch (org.apache.thrift.TException te) {
23223
        throw new java.io.IOException(te);
23224
      }
23225
    }
23226
 
23227
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23228
      try {
23229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23230
      } catch (org.apache.thrift.TException te) {
23231
        throw new java.io.IOException(te);
23232
      }
23233
    }
23234
 
23235
  }
23236
 
7216 amar.kumar 23237
  public static class getCompleteMovementSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_args, getCompleteMovementSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
23238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_args");
23239
 
23240
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
23241
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
23242
 
23243
    private long startDate; // required
23244
    private long endDate; // required
23245
 
23246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23248
      START_DATE((short)1, "startDate"),
23249
      END_DATE((short)2, "endDate");
23250
 
23251
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23252
 
23253
      static {
23254
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23255
          byName.put(field.getFieldName(), field);
23256
        }
23257
      }
23258
 
23259
      /**
23260
       * Find the _Fields constant that matches fieldId, or null if its not found.
23261
       */
23262
      public static _Fields findByThriftId(int fieldId) {
23263
        switch(fieldId) {
23264
          case 1: // START_DATE
23265
            return START_DATE;
23266
          case 2: // END_DATE
23267
            return END_DATE;
23268
          default:
23269
            return null;
23270
        }
23271
      }
23272
 
23273
      /**
23274
       * Find the _Fields constant that matches fieldId, throwing an exception
23275
       * if it is not found.
23276
       */
23277
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23278
        _Fields fields = findByThriftId(fieldId);
23279
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23280
        return fields;
23281
      }
23282
 
23283
      /**
23284
       * Find the _Fields constant that matches name, or null if its not found.
23285
       */
23286
      public static _Fields findByName(String name) {
23287
        return byName.get(name);
23288
      }
23289
 
23290
      private final short _thriftId;
23291
      private final String _fieldName;
23292
 
23293
      _Fields(short thriftId, String fieldName) {
23294
        _thriftId = thriftId;
23295
        _fieldName = fieldName;
23296
      }
23297
 
23298
      public short getThriftFieldId() {
23299
        return _thriftId;
23300
      }
23301
 
23302
      public String getFieldName() {
23303
        return _fieldName;
23304
      }
23305
    }
23306
 
23307
    // isset id assignments
23308
    private static final int __STARTDATE_ISSET_ID = 0;
23309
    private static final int __ENDDATE_ISSET_ID = 1;
23310
    private BitSet __isset_bit_vector = new BitSet(2);
23311
 
23312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23313
    static {
23314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23315
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23317
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23319
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23320
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_args.class, metaDataMap);
23321
    }
23322
 
23323
    public getCompleteMovementSerializedInventoryByScans_args() {
23324
    }
23325
 
23326
    public getCompleteMovementSerializedInventoryByScans_args(
23327
      long startDate,
23328
      long endDate)
23329
    {
23330
      this();
23331
      this.startDate = startDate;
23332
      setStartDateIsSet(true);
23333
      this.endDate = endDate;
23334
      setEndDateIsSet(true);
23335
    }
23336
 
23337
    /**
23338
     * Performs a deep copy on <i>other</i>.
23339
     */
23340
    public getCompleteMovementSerializedInventoryByScans_args(getCompleteMovementSerializedInventoryByScans_args other) {
23341
      __isset_bit_vector.clear();
23342
      __isset_bit_vector.or(other.__isset_bit_vector);
23343
      this.startDate = other.startDate;
23344
      this.endDate = other.endDate;
23345
    }
23346
 
23347
    public getCompleteMovementSerializedInventoryByScans_args deepCopy() {
23348
      return new getCompleteMovementSerializedInventoryByScans_args(this);
23349
    }
23350
 
23351
    @Override
23352
    public void clear() {
23353
      setStartDateIsSet(false);
23354
      this.startDate = 0;
23355
      setEndDateIsSet(false);
23356
      this.endDate = 0;
23357
    }
23358
 
23359
    public long getStartDate() {
23360
      return this.startDate;
23361
    }
23362
 
23363
    public void setStartDate(long startDate) {
23364
      this.startDate = startDate;
23365
      setStartDateIsSet(true);
23366
    }
23367
 
23368
    public void unsetStartDate() {
23369
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
23370
    }
23371
 
23372
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
23373
    public boolean isSetStartDate() {
23374
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
23375
    }
23376
 
23377
    public void setStartDateIsSet(boolean value) {
23378
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
23379
    }
23380
 
23381
    public long getEndDate() {
23382
      return this.endDate;
23383
    }
23384
 
23385
    public void setEndDate(long endDate) {
23386
      this.endDate = endDate;
23387
      setEndDateIsSet(true);
23388
    }
23389
 
23390
    public void unsetEndDate() {
23391
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
23392
    }
23393
 
23394
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
23395
    public boolean isSetEndDate() {
23396
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
23397
    }
23398
 
23399
    public void setEndDateIsSet(boolean value) {
23400
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
23401
    }
23402
 
23403
    public void setFieldValue(_Fields field, Object value) {
23404
      switch (field) {
23405
      case START_DATE:
23406
        if (value == null) {
23407
          unsetStartDate();
23408
        } else {
23409
          setStartDate((Long)value);
23410
        }
23411
        break;
23412
 
23413
      case END_DATE:
23414
        if (value == null) {
23415
          unsetEndDate();
23416
        } else {
23417
          setEndDate((Long)value);
23418
        }
23419
        break;
23420
 
23421
      }
23422
    }
23423
 
23424
    public Object getFieldValue(_Fields field) {
23425
      switch (field) {
23426
      case START_DATE:
23427
        return Long.valueOf(getStartDate());
23428
 
23429
      case END_DATE:
23430
        return Long.valueOf(getEndDate());
23431
 
23432
      }
23433
      throw new IllegalStateException();
23434
    }
23435
 
23436
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23437
    public boolean isSet(_Fields field) {
23438
      if (field == null) {
23439
        throw new IllegalArgumentException();
23440
      }
23441
 
23442
      switch (field) {
23443
      case START_DATE:
23444
        return isSetStartDate();
23445
      case END_DATE:
23446
        return isSetEndDate();
23447
      }
23448
      throw new IllegalStateException();
23449
    }
23450
 
23451
    @Override
23452
    public boolean equals(Object that) {
23453
      if (that == null)
23454
        return false;
23455
      if (that instanceof getCompleteMovementSerializedInventoryByScans_args)
23456
        return this.equals((getCompleteMovementSerializedInventoryByScans_args)that);
23457
      return false;
23458
    }
23459
 
23460
    public boolean equals(getCompleteMovementSerializedInventoryByScans_args that) {
23461
      if (that == null)
23462
        return false;
23463
 
23464
      boolean this_present_startDate = true;
23465
      boolean that_present_startDate = true;
23466
      if (this_present_startDate || that_present_startDate) {
23467
        if (!(this_present_startDate && that_present_startDate))
23468
          return false;
23469
        if (this.startDate != that.startDate)
23470
          return false;
23471
      }
23472
 
23473
      boolean this_present_endDate = true;
23474
      boolean that_present_endDate = true;
23475
      if (this_present_endDate || that_present_endDate) {
23476
        if (!(this_present_endDate && that_present_endDate))
23477
          return false;
23478
        if (this.endDate != that.endDate)
23479
          return false;
23480
      }
23481
 
23482
      return true;
23483
    }
23484
 
23485
    @Override
23486
    public int hashCode() {
23487
      return 0;
23488
    }
23489
 
23490
    public int compareTo(getCompleteMovementSerializedInventoryByScans_args other) {
23491
      if (!getClass().equals(other.getClass())) {
23492
        return getClass().getName().compareTo(other.getClass().getName());
23493
      }
23494
 
23495
      int lastComparison = 0;
23496
      getCompleteMovementSerializedInventoryByScans_args typedOther = (getCompleteMovementSerializedInventoryByScans_args)other;
23497
 
23498
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
23499
      if (lastComparison != 0) {
23500
        return lastComparison;
23501
      }
23502
      if (isSetStartDate()) {
23503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
23504
        if (lastComparison != 0) {
23505
          return lastComparison;
23506
        }
23507
      }
23508
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
23509
      if (lastComparison != 0) {
23510
        return lastComparison;
23511
      }
23512
      if (isSetEndDate()) {
23513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
23514
        if (lastComparison != 0) {
23515
          return lastComparison;
23516
        }
23517
      }
23518
      return 0;
23519
    }
23520
 
23521
    public _Fields fieldForId(int fieldId) {
23522
      return _Fields.findByThriftId(fieldId);
23523
    }
23524
 
23525
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23526
      org.apache.thrift.protocol.TField field;
23527
      iprot.readStructBegin();
23528
      while (true)
23529
      {
23530
        field = iprot.readFieldBegin();
23531
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23532
          break;
23533
        }
23534
        switch (field.id) {
23535
          case 1: // START_DATE
23536
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23537
              this.startDate = iprot.readI64();
23538
              setStartDateIsSet(true);
23539
            } else { 
23540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23541
            }
23542
            break;
23543
          case 2: // END_DATE
23544
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23545
              this.endDate = iprot.readI64();
23546
              setEndDateIsSet(true);
23547
            } else { 
23548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23549
            }
23550
            break;
23551
          default:
23552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23553
        }
23554
        iprot.readFieldEnd();
23555
      }
23556
      iprot.readStructEnd();
23557
      validate();
23558
    }
23559
 
23560
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23561
      validate();
23562
 
23563
      oprot.writeStructBegin(STRUCT_DESC);
23564
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
23565
      oprot.writeI64(this.startDate);
23566
      oprot.writeFieldEnd();
23567
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
23568
      oprot.writeI64(this.endDate);
23569
      oprot.writeFieldEnd();
23570
      oprot.writeFieldStop();
23571
      oprot.writeStructEnd();
23572
    }
23573
 
23574
    @Override
23575
    public String toString() {
23576
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_args(");
23577
      boolean first = true;
23578
 
23579
      sb.append("startDate:");
23580
      sb.append(this.startDate);
23581
      first = false;
23582
      if (!first) sb.append(", ");
23583
      sb.append("endDate:");
23584
      sb.append(this.endDate);
23585
      first = false;
23586
      sb.append(")");
23587
      return sb.toString();
23588
    }
23589
 
23590
    public void validate() throws org.apache.thrift.TException {
23591
      // check for required fields
23592
    }
23593
 
23594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23595
      try {
23596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23597
      } catch (org.apache.thrift.TException te) {
23598
        throw new java.io.IOException(te);
23599
      }
23600
    }
23601
 
23602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23603
      try {
23604
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23605
        __isset_bit_vector = new BitSet(1);
23606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23607
      } catch (org.apache.thrift.TException te) {
23608
        throw new java.io.IOException(te);
23609
      }
23610
    }
23611
 
23612
  }
23613
 
23614
  public static class getCompleteMovementSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementSerializedInventoryByScans_result, getCompleteMovementSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
23615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementSerializedInventoryByScans_result");
23616
 
23617
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
23618
 
23619
    private List<InventoryMovement> success; // required
23620
 
23621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23623
      SUCCESS((short)0, "success");
23624
 
23625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23626
 
23627
      static {
23628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23629
          byName.put(field.getFieldName(), field);
23630
        }
23631
      }
23632
 
23633
      /**
23634
       * Find the _Fields constant that matches fieldId, or null if its not found.
23635
       */
23636
      public static _Fields findByThriftId(int fieldId) {
23637
        switch(fieldId) {
23638
          case 0: // SUCCESS
23639
            return SUCCESS;
23640
          default:
23641
            return null;
23642
        }
23643
      }
23644
 
23645
      /**
23646
       * Find the _Fields constant that matches fieldId, throwing an exception
23647
       * if it is not found.
23648
       */
23649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23650
        _Fields fields = findByThriftId(fieldId);
23651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23652
        return fields;
23653
      }
23654
 
23655
      /**
23656
       * Find the _Fields constant that matches name, or null if its not found.
23657
       */
23658
      public static _Fields findByName(String name) {
23659
        return byName.get(name);
23660
      }
23661
 
23662
      private final short _thriftId;
23663
      private final String _fieldName;
23664
 
23665
      _Fields(short thriftId, String fieldName) {
23666
        _thriftId = thriftId;
23667
        _fieldName = fieldName;
23668
      }
23669
 
23670
      public short getThriftFieldId() {
23671
        return _thriftId;
23672
      }
23673
 
23674
      public String getFieldName() {
23675
        return _fieldName;
23676
      }
23677
    }
23678
 
23679
    // isset id assignments
23680
 
23681
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23682
    static {
23683
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23684
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23685
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23686
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
23687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementSerializedInventoryByScans_result.class, metaDataMap);
23689
    }
23690
 
23691
    public getCompleteMovementSerializedInventoryByScans_result() {
23692
    }
23693
 
23694
    public getCompleteMovementSerializedInventoryByScans_result(
23695
      List<InventoryMovement> success)
23696
    {
23697
      this();
23698
      this.success = success;
23699
    }
23700
 
23701
    /**
23702
     * Performs a deep copy on <i>other</i>.
23703
     */
23704
    public getCompleteMovementSerializedInventoryByScans_result(getCompleteMovementSerializedInventoryByScans_result other) {
23705
      if (other.isSetSuccess()) {
23706
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
23707
        for (InventoryMovement other_element : other.success) {
23708
          __this__success.add(new InventoryMovement(other_element));
23709
        }
23710
        this.success = __this__success;
23711
      }
23712
    }
23713
 
23714
    public getCompleteMovementSerializedInventoryByScans_result deepCopy() {
23715
      return new getCompleteMovementSerializedInventoryByScans_result(this);
23716
    }
23717
 
23718
    @Override
23719
    public void clear() {
23720
      this.success = null;
23721
    }
23722
 
23723
    public int getSuccessSize() {
23724
      return (this.success == null) ? 0 : this.success.size();
23725
    }
23726
 
23727
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
23728
      return (this.success == null) ? null : this.success.iterator();
23729
    }
23730
 
23731
    public void addToSuccess(InventoryMovement elem) {
23732
      if (this.success == null) {
23733
        this.success = new ArrayList<InventoryMovement>();
23734
      }
23735
      this.success.add(elem);
23736
    }
23737
 
23738
    public List<InventoryMovement> getSuccess() {
23739
      return this.success;
23740
    }
23741
 
23742
    public void setSuccess(List<InventoryMovement> success) {
23743
      this.success = success;
23744
    }
23745
 
23746
    public void unsetSuccess() {
23747
      this.success = null;
23748
    }
23749
 
23750
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23751
    public boolean isSetSuccess() {
23752
      return this.success != null;
23753
    }
23754
 
23755
    public void setSuccessIsSet(boolean value) {
23756
      if (!value) {
23757
        this.success = null;
23758
      }
23759
    }
23760
 
23761
    public void setFieldValue(_Fields field, Object value) {
23762
      switch (field) {
23763
      case SUCCESS:
23764
        if (value == null) {
23765
          unsetSuccess();
23766
        } else {
23767
          setSuccess((List<InventoryMovement>)value);
23768
        }
23769
        break;
23770
 
23771
      }
23772
    }
23773
 
23774
    public Object getFieldValue(_Fields field) {
23775
      switch (field) {
23776
      case SUCCESS:
23777
        return getSuccess();
23778
 
23779
      }
23780
      throw new IllegalStateException();
23781
    }
23782
 
23783
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23784
    public boolean isSet(_Fields field) {
23785
      if (field == null) {
23786
        throw new IllegalArgumentException();
23787
      }
23788
 
23789
      switch (field) {
23790
      case SUCCESS:
23791
        return isSetSuccess();
23792
      }
23793
      throw new IllegalStateException();
23794
    }
23795
 
23796
    @Override
23797
    public boolean equals(Object that) {
23798
      if (that == null)
23799
        return false;
23800
      if (that instanceof getCompleteMovementSerializedInventoryByScans_result)
23801
        return this.equals((getCompleteMovementSerializedInventoryByScans_result)that);
23802
      return false;
23803
    }
23804
 
23805
    public boolean equals(getCompleteMovementSerializedInventoryByScans_result that) {
23806
      if (that == null)
23807
        return false;
23808
 
23809
      boolean this_present_success = true && this.isSetSuccess();
23810
      boolean that_present_success = true && that.isSetSuccess();
23811
      if (this_present_success || that_present_success) {
23812
        if (!(this_present_success && that_present_success))
23813
          return false;
23814
        if (!this.success.equals(that.success))
23815
          return false;
23816
      }
23817
 
23818
      return true;
23819
    }
23820
 
23821
    @Override
23822
    public int hashCode() {
23823
      return 0;
23824
    }
23825
 
23826
    public int compareTo(getCompleteMovementSerializedInventoryByScans_result other) {
23827
      if (!getClass().equals(other.getClass())) {
23828
        return getClass().getName().compareTo(other.getClass().getName());
23829
      }
23830
 
23831
      int lastComparison = 0;
23832
      getCompleteMovementSerializedInventoryByScans_result typedOther = (getCompleteMovementSerializedInventoryByScans_result)other;
23833
 
23834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23835
      if (lastComparison != 0) {
23836
        return lastComparison;
23837
      }
23838
      if (isSetSuccess()) {
23839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23840
        if (lastComparison != 0) {
23841
          return lastComparison;
23842
        }
23843
      }
23844
      return 0;
23845
    }
23846
 
23847
    public _Fields fieldForId(int fieldId) {
23848
      return _Fields.findByThriftId(fieldId);
23849
    }
23850
 
23851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23852
      org.apache.thrift.protocol.TField field;
23853
      iprot.readStructBegin();
23854
      while (true)
23855
      {
23856
        field = iprot.readFieldBegin();
23857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23858
          break;
23859
        }
23860
        switch (field.id) {
23861
          case 0: // SUCCESS
23862
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23863
              {
23864
                org.apache.thrift.protocol.TList _list68 = iprot.readListBegin();
23865
                this.success = new ArrayList<InventoryMovement>(_list68.size);
23866
                for (int _i69 = 0; _i69 < _list68.size; ++_i69)
23867
                {
23868
                  InventoryMovement _elem70; // required
23869
                  _elem70 = new InventoryMovement();
23870
                  _elem70.read(iprot);
23871
                  this.success.add(_elem70);
23872
                }
23873
                iprot.readListEnd();
23874
              }
23875
            } else { 
23876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23877
            }
23878
            break;
23879
          default:
23880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23881
        }
23882
        iprot.readFieldEnd();
23883
      }
23884
      iprot.readStructEnd();
23885
      validate();
23886
    }
23887
 
23888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23889
      oprot.writeStructBegin(STRUCT_DESC);
23890
 
23891
      if (this.isSetSuccess()) {
23892
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23893
        {
23894
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
23895
          for (InventoryMovement _iter71 : this.success)
23896
          {
23897
            _iter71.write(oprot);
23898
          }
23899
          oprot.writeListEnd();
23900
        }
23901
        oprot.writeFieldEnd();
23902
      }
23903
      oprot.writeFieldStop();
23904
      oprot.writeStructEnd();
23905
    }
23906
 
23907
    @Override
23908
    public String toString() {
23909
      StringBuilder sb = new StringBuilder("getCompleteMovementSerializedInventoryByScans_result(");
23910
      boolean first = true;
23911
 
23912
      sb.append("success:");
23913
      if (this.success == null) {
23914
        sb.append("null");
23915
      } else {
23916
        sb.append(this.success);
23917
      }
23918
      first = false;
23919
      sb.append(")");
23920
      return sb.toString();
23921
    }
23922
 
23923
    public void validate() throws org.apache.thrift.TException {
23924
      // check for required fields
23925
    }
23926
 
23927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23928
      try {
23929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23930
      } catch (org.apache.thrift.TException te) {
23931
        throw new java.io.IOException(te);
23932
      }
23933
    }
23934
 
23935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23936
      try {
23937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23938
      } catch (org.apache.thrift.TException te) {
23939
        throw new java.io.IOException(te);
23940
      }
23941
    }
23942
 
23943
  }
23944
 
23945
  public static class getCompleteMovementNonSerializedInventoryByScans_args implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_args, getCompleteMovementNonSerializedInventoryByScans_args._Fields>, java.io.Serializable, Cloneable   {
23946
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_args");
23947
 
23948
    private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
23949
    private static final org.apache.thrift.protocol.TField END_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("endDate", org.apache.thrift.protocol.TType.I64, (short)2);
23950
 
23951
    private long startDate; // required
23952
    private long endDate; // required
23953
 
23954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23956
      START_DATE((short)1, "startDate"),
23957
      END_DATE((short)2, "endDate");
23958
 
23959
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23960
 
23961
      static {
23962
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23963
          byName.put(field.getFieldName(), field);
23964
        }
23965
      }
23966
 
23967
      /**
23968
       * Find the _Fields constant that matches fieldId, or null if its not found.
23969
       */
23970
      public static _Fields findByThriftId(int fieldId) {
23971
        switch(fieldId) {
23972
          case 1: // START_DATE
23973
            return START_DATE;
23974
          case 2: // END_DATE
23975
            return END_DATE;
23976
          default:
23977
            return null;
23978
        }
23979
      }
23980
 
23981
      /**
23982
       * Find the _Fields constant that matches fieldId, throwing an exception
23983
       * if it is not found.
23984
       */
23985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23986
        _Fields fields = findByThriftId(fieldId);
23987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23988
        return fields;
23989
      }
23990
 
23991
      /**
23992
       * Find the _Fields constant that matches name, or null if its not found.
23993
       */
23994
      public static _Fields findByName(String name) {
23995
        return byName.get(name);
23996
      }
23997
 
23998
      private final short _thriftId;
23999
      private final String _fieldName;
24000
 
24001
      _Fields(short thriftId, String fieldName) {
24002
        _thriftId = thriftId;
24003
        _fieldName = fieldName;
24004
      }
24005
 
24006
      public short getThriftFieldId() {
24007
        return _thriftId;
24008
      }
24009
 
24010
      public String getFieldName() {
24011
        return _fieldName;
24012
      }
24013
    }
24014
 
24015
    // isset id assignments
24016
    private static final int __STARTDATE_ISSET_ID = 0;
24017
    private static final int __ENDDATE_ISSET_ID = 1;
24018
    private BitSet __isset_bit_vector = new BitSet(2);
24019
 
24020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24021
    static {
24022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24023
      tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24025
      tmpMap.put(_Fields.END_DATE, new org.apache.thrift.meta_data.FieldMetaData("endDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24027
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24028
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_args.class, metaDataMap);
24029
    }
24030
 
24031
    public getCompleteMovementNonSerializedInventoryByScans_args() {
24032
    }
24033
 
24034
    public getCompleteMovementNonSerializedInventoryByScans_args(
24035
      long startDate,
24036
      long endDate)
24037
    {
24038
      this();
24039
      this.startDate = startDate;
24040
      setStartDateIsSet(true);
24041
      this.endDate = endDate;
24042
      setEndDateIsSet(true);
24043
    }
24044
 
24045
    /**
24046
     * Performs a deep copy on <i>other</i>.
24047
     */
24048
    public getCompleteMovementNonSerializedInventoryByScans_args(getCompleteMovementNonSerializedInventoryByScans_args other) {
24049
      __isset_bit_vector.clear();
24050
      __isset_bit_vector.or(other.__isset_bit_vector);
24051
      this.startDate = other.startDate;
24052
      this.endDate = other.endDate;
24053
    }
24054
 
24055
    public getCompleteMovementNonSerializedInventoryByScans_args deepCopy() {
24056
      return new getCompleteMovementNonSerializedInventoryByScans_args(this);
24057
    }
24058
 
24059
    @Override
24060
    public void clear() {
24061
      setStartDateIsSet(false);
24062
      this.startDate = 0;
24063
      setEndDateIsSet(false);
24064
      this.endDate = 0;
24065
    }
24066
 
24067
    public long getStartDate() {
24068
      return this.startDate;
24069
    }
24070
 
24071
    public void setStartDate(long startDate) {
24072
      this.startDate = startDate;
24073
      setStartDateIsSet(true);
24074
    }
24075
 
24076
    public void unsetStartDate() {
24077
      __isset_bit_vector.clear(__STARTDATE_ISSET_ID);
24078
    }
24079
 
24080
    /** Returns true if field startDate is set (has been assigned a value) and false otherwise */
24081
    public boolean isSetStartDate() {
24082
      return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
24083
    }
24084
 
24085
    public void setStartDateIsSet(boolean value) {
24086
      __isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
24087
    }
24088
 
24089
    public long getEndDate() {
24090
      return this.endDate;
24091
    }
24092
 
24093
    public void setEndDate(long endDate) {
24094
      this.endDate = endDate;
24095
      setEndDateIsSet(true);
24096
    }
24097
 
24098
    public void unsetEndDate() {
24099
      __isset_bit_vector.clear(__ENDDATE_ISSET_ID);
24100
    }
24101
 
24102
    /** Returns true if field endDate is set (has been assigned a value) and false otherwise */
24103
    public boolean isSetEndDate() {
24104
      return __isset_bit_vector.get(__ENDDATE_ISSET_ID);
24105
    }
24106
 
24107
    public void setEndDateIsSet(boolean value) {
24108
      __isset_bit_vector.set(__ENDDATE_ISSET_ID, value);
24109
    }
24110
 
24111
    public void setFieldValue(_Fields field, Object value) {
24112
      switch (field) {
24113
      case START_DATE:
24114
        if (value == null) {
24115
          unsetStartDate();
24116
        } else {
24117
          setStartDate((Long)value);
24118
        }
24119
        break;
24120
 
24121
      case END_DATE:
24122
        if (value == null) {
24123
          unsetEndDate();
24124
        } else {
24125
          setEndDate((Long)value);
24126
        }
24127
        break;
24128
 
24129
      }
24130
    }
24131
 
24132
    public Object getFieldValue(_Fields field) {
24133
      switch (field) {
24134
      case START_DATE:
24135
        return Long.valueOf(getStartDate());
24136
 
24137
      case END_DATE:
24138
        return Long.valueOf(getEndDate());
24139
 
24140
      }
24141
      throw new IllegalStateException();
24142
    }
24143
 
24144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24145
    public boolean isSet(_Fields field) {
24146
      if (field == null) {
24147
        throw new IllegalArgumentException();
24148
      }
24149
 
24150
      switch (field) {
24151
      case START_DATE:
24152
        return isSetStartDate();
24153
      case END_DATE:
24154
        return isSetEndDate();
24155
      }
24156
      throw new IllegalStateException();
24157
    }
24158
 
24159
    @Override
24160
    public boolean equals(Object that) {
24161
      if (that == null)
24162
        return false;
24163
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_args)
24164
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_args)that);
24165
      return false;
24166
    }
24167
 
24168
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_args that) {
24169
      if (that == null)
24170
        return false;
24171
 
24172
      boolean this_present_startDate = true;
24173
      boolean that_present_startDate = true;
24174
      if (this_present_startDate || that_present_startDate) {
24175
        if (!(this_present_startDate && that_present_startDate))
24176
          return false;
24177
        if (this.startDate != that.startDate)
24178
          return false;
24179
      }
24180
 
24181
      boolean this_present_endDate = true;
24182
      boolean that_present_endDate = true;
24183
      if (this_present_endDate || that_present_endDate) {
24184
        if (!(this_present_endDate && that_present_endDate))
24185
          return false;
24186
        if (this.endDate != that.endDate)
24187
          return false;
24188
      }
24189
 
24190
      return true;
24191
    }
24192
 
24193
    @Override
24194
    public int hashCode() {
24195
      return 0;
24196
    }
24197
 
24198
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_args other) {
24199
      if (!getClass().equals(other.getClass())) {
24200
        return getClass().getName().compareTo(other.getClass().getName());
24201
      }
24202
 
24203
      int lastComparison = 0;
24204
      getCompleteMovementNonSerializedInventoryByScans_args typedOther = (getCompleteMovementNonSerializedInventoryByScans_args)other;
24205
 
24206
      lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
24207
      if (lastComparison != 0) {
24208
        return lastComparison;
24209
      }
24210
      if (isSetStartDate()) {
24211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
24212
        if (lastComparison != 0) {
24213
          return lastComparison;
24214
        }
24215
      }
24216
      lastComparison = Boolean.valueOf(isSetEndDate()).compareTo(typedOther.isSetEndDate());
24217
      if (lastComparison != 0) {
24218
        return lastComparison;
24219
      }
24220
      if (isSetEndDate()) {
24221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDate, typedOther.endDate);
24222
        if (lastComparison != 0) {
24223
          return lastComparison;
24224
        }
24225
      }
24226
      return 0;
24227
    }
24228
 
24229
    public _Fields fieldForId(int fieldId) {
24230
      return _Fields.findByThriftId(fieldId);
24231
    }
24232
 
24233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24234
      org.apache.thrift.protocol.TField field;
24235
      iprot.readStructBegin();
24236
      while (true)
24237
      {
24238
        field = iprot.readFieldBegin();
24239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24240
          break;
24241
        }
24242
        switch (field.id) {
24243
          case 1: // START_DATE
24244
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24245
              this.startDate = iprot.readI64();
24246
              setStartDateIsSet(true);
24247
            } else { 
24248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24249
            }
24250
            break;
24251
          case 2: // END_DATE
24252
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24253
              this.endDate = iprot.readI64();
24254
              setEndDateIsSet(true);
24255
            } else { 
24256
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24257
            }
24258
            break;
24259
          default:
24260
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24261
        }
24262
        iprot.readFieldEnd();
24263
      }
24264
      iprot.readStructEnd();
24265
      validate();
24266
    }
24267
 
24268
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24269
      validate();
24270
 
24271
      oprot.writeStructBegin(STRUCT_DESC);
24272
      oprot.writeFieldBegin(START_DATE_FIELD_DESC);
24273
      oprot.writeI64(this.startDate);
24274
      oprot.writeFieldEnd();
24275
      oprot.writeFieldBegin(END_DATE_FIELD_DESC);
24276
      oprot.writeI64(this.endDate);
24277
      oprot.writeFieldEnd();
24278
      oprot.writeFieldStop();
24279
      oprot.writeStructEnd();
24280
    }
24281
 
24282
    @Override
24283
    public String toString() {
24284
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_args(");
24285
      boolean first = true;
24286
 
24287
      sb.append("startDate:");
24288
      sb.append(this.startDate);
24289
      first = false;
24290
      if (!first) sb.append(", ");
24291
      sb.append("endDate:");
24292
      sb.append(this.endDate);
24293
      first = false;
24294
      sb.append(")");
24295
      return sb.toString();
24296
    }
24297
 
24298
    public void validate() throws org.apache.thrift.TException {
24299
      // check for required fields
24300
    }
24301
 
24302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24303
      try {
24304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24305
      } catch (org.apache.thrift.TException te) {
24306
        throw new java.io.IOException(te);
24307
      }
24308
    }
24309
 
24310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24311
      try {
24312
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24313
        __isset_bit_vector = new BitSet(1);
24314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24315
      } catch (org.apache.thrift.TException te) {
24316
        throw new java.io.IOException(te);
24317
      }
24318
    }
24319
 
24320
  }
24321
 
24322
  public static class getCompleteMovementNonSerializedInventoryByScans_result implements org.apache.thrift.TBase<getCompleteMovementNonSerializedInventoryByScans_result, getCompleteMovementNonSerializedInventoryByScans_result._Fields>, java.io.Serializable, Cloneable   {
24323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCompleteMovementNonSerializedInventoryByScans_result");
24324
 
24325
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
24326
 
24327
    private List<InventoryMovement> success; // required
24328
 
24329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24331
      SUCCESS((short)0, "success");
24332
 
24333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24334
 
24335
      static {
24336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24337
          byName.put(field.getFieldName(), field);
24338
        }
24339
      }
24340
 
24341
      /**
24342
       * Find the _Fields constant that matches fieldId, or null if its not found.
24343
       */
24344
      public static _Fields findByThriftId(int fieldId) {
24345
        switch(fieldId) {
24346
          case 0: // SUCCESS
24347
            return SUCCESS;
24348
          default:
24349
            return null;
24350
        }
24351
      }
24352
 
24353
      /**
24354
       * Find the _Fields constant that matches fieldId, throwing an exception
24355
       * if it is not found.
24356
       */
24357
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24358
        _Fields fields = findByThriftId(fieldId);
24359
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24360
        return fields;
24361
      }
24362
 
24363
      /**
24364
       * Find the _Fields constant that matches name, or null if its not found.
24365
       */
24366
      public static _Fields findByName(String name) {
24367
        return byName.get(name);
24368
      }
24369
 
24370
      private final short _thriftId;
24371
      private final String _fieldName;
24372
 
24373
      _Fields(short thriftId, String fieldName) {
24374
        _thriftId = thriftId;
24375
        _fieldName = fieldName;
24376
      }
24377
 
24378
      public short getThriftFieldId() {
24379
        return _thriftId;
24380
      }
24381
 
24382
      public String getFieldName() {
24383
        return _fieldName;
24384
      }
24385
    }
24386
 
24387
    // isset id assignments
24388
 
24389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24390
    static {
24391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24392
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24393
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24394
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryMovement.class))));
24395
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24396
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCompleteMovementNonSerializedInventoryByScans_result.class, metaDataMap);
24397
    }
24398
 
24399
    public getCompleteMovementNonSerializedInventoryByScans_result() {
24400
    }
24401
 
24402
    public getCompleteMovementNonSerializedInventoryByScans_result(
24403
      List<InventoryMovement> success)
24404
    {
24405
      this();
24406
      this.success = success;
24407
    }
24408
 
24409
    /**
24410
     * Performs a deep copy on <i>other</i>.
24411
     */
24412
    public getCompleteMovementNonSerializedInventoryByScans_result(getCompleteMovementNonSerializedInventoryByScans_result other) {
24413
      if (other.isSetSuccess()) {
24414
        List<InventoryMovement> __this__success = new ArrayList<InventoryMovement>();
24415
        for (InventoryMovement other_element : other.success) {
24416
          __this__success.add(new InventoryMovement(other_element));
24417
        }
24418
        this.success = __this__success;
24419
      }
24420
    }
24421
 
24422
    public getCompleteMovementNonSerializedInventoryByScans_result deepCopy() {
24423
      return new getCompleteMovementNonSerializedInventoryByScans_result(this);
24424
    }
24425
 
24426
    @Override
24427
    public void clear() {
24428
      this.success = null;
24429
    }
24430
 
24431
    public int getSuccessSize() {
24432
      return (this.success == null) ? 0 : this.success.size();
24433
    }
24434
 
24435
    public java.util.Iterator<InventoryMovement> getSuccessIterator() {
24436
      return (this.success == null) ? null : this.success.iterator();
24437
    }
24438
 
24439
    public void addToSuccess(InventoryMovement elem) {
24440
      if (this.success == null) {
24441
        this.success = new ArrayList<InventoryMovement>();
24442
      }
24443
      this.success.add(elem);
24444
    }
24445
 
24446
    public List<InventoryMovement> getSuccess() {
24447
      return this.success;
24448
    }
24449
 
24450
    public void setSuccess(List<InventoryMovement> success) {
24451
      this.success = success;
24452
    }
24453
 
24454
    public void unsetSuccess() {
24455
      this.success = null;
24456
    }
24457
 
24458
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24459
    public boolean isSetSuccess() {
24460
      return this.success != null;
24461
    }
24462
 
24463
    public void setSuccessIsSet(boolean value) {
24464
      if (!value) {
24465
        this.success = null;
24466
      }
24467
    }
24468
 
24469
    public void setFieldValue(_Fields field, Object value) {
24470
      switch (field) {
24471
      case SUCCESS:
24472
        if (value == null) {
24473
          unsetSuccess();
24474
        } else {
24475
          setSuccess((List<InventoryMovement>)value);
24476
        }
24477
        break;
24478
 
24479
      }
24480
    }
24481
 
24482
    public Object getFieldValue(_Fields field) {
24483
      switch (field) {
24484
      case SUCCESS:
24485
        return getSuccess();
24486
 
24487
      }
24488
      throw new IllegalStateException();
24489
    }
24490
 
24491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24492
    public boolean isSet(_Fields field) {
24493
      if (field == null) {
24494
        throw new IllegalArgumentException();
24495
      }
24496
 
24497
      switch (field) {
24498
      case SUCCESS:
24499
        return isSetSuccess();
24500
      }
24501
      throw new IllegalStateException();
24502
    }
24503
 
24504
    @Override
24505
    public boolean equals(Object that) {
24506
      if (that == null)
24507
        return false;
24508
      if (that instanceof getCompleteMovementNonSerializedInventoryByScans_result)
24509
        return this.equals((getCompleteMovementNonSerializedInventoryByScans_result)that);
24510
      return false;
24511
    }
24512
 
24513
    public boolean equals(getCompleteMovementNonSerializedInventoryByScans_result that) {
24514
      if (that == null)
24515
        return false;
24516
 
24517
      boolean this_present_success = true && this.isSetSuccess();
24518
      boolean that_present_success = true && that.isSetSuccess();
24519
      if (this_present_success || that_present_success) {
24520
        if (!(this_present_success && that_present_success))
24521
          return false;
24522
        if (!this.success.equals(that.success))
24523
          return false;
24524
      }
24525
 
24526
      return true;
24527
    }
24528
 
24529
    @Override
24530
    public int hashCode() {
24531
      return 0;
24532
    }
24533
 
24534
    public int compareTo(getCompleteMovementNonSerializedInventoryByScans_result other) {
24535
      if (!getClass().equals(other.getClass())) {
24536
        return getClass().getName().compareTo(other.getClass().getName());
24537
      }
24538
 
24539
      int lastComparison = 0;
24540
      getCompleteMovementNonSerializedInventoryByScans_result typedOther = (getCompleteMovementNonSerializedInventoryByScans_result)other;
24541
 
24542
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24543
      if (lastComparison != 0) {
24544
        return lastComparison;
24545
      }
24546
      if (isSetSuccess()) {
24547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24548
        if (lastComparison != 0) {
24549
          return lastComparison;
24550
        }
24551
      }
24552
      return 0;
24553
    }
24554
 
24555
    public _Fields fieldForId(int fieldId) {
24556
      return _Fields.findByThriftId(fieldId);
24557
    }
24558
 
24559
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24560
      org.apache.thrift.protocol.TField field;
24561
      iprot.readStructBegin();
24562
      while (true)
24563
      {
24564
        field = iprot.readFieldBegin();
24565
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24566
          break;
24567
        }
24568
        switch (field.id) {
24569
          case 0: // SUCCESS
24570
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24571
              {
24572
                org.apache.thrift.protocol.TList _list72 = iprot.readListBegin();
24573
                this.success = new ArrayList<InventoryMovement>(_list72.size);
24574
                for (int _i73 = 0; _i73 < _list72.size; ++_i73)
24575
                {
24576
                  InventoryMovement _elem74; // required
24577
                  _elem74 = new InventoryMovement();
24578
                  _elem74.read(iprot);
24579
                  this.success.add(_elem74);
24580
                }
24581
                iprot.readListEnd();
24582
              }
24583
            } else { 
24584
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24585
            }
24586
            break;
24587
          default:
24588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24589
        }
24590
        iprot.readFieldEnd();
24591
      }
24592
      iprot.readStructEnd();
24593
      validate();
24594
    }
24595
 
24596
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24597
      oprot.writeStructBegin(STRUCT_DESC);
24598
 
24599
      if (this.isSetSuccess()) {
24600
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24601
        {
24602
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
24603
          for (InventoryMovement _iter75 : this.success)
24604
          {
24605
            _iter75.write(oprot);
24606
          }
24607
          oprot.writeListEnd();
24608
        }
24609
        oprot.writeFieldEnd();
24610
      }
24611
      oprot.writeFieldStop();
24612
      oprot.writeStructEnd();
24613
    }
24614
 
24615
    @Override
24616
    public String toString() {
24617
      StringBuilder sb = new StringBuilder("getCompleteMovementNonSerializedInventoryByScans_result(");
24618
      boolean first = true;
24619
 
24620
      sb.append("success:");
24621
      if (this.success == null) {
24622
        sb.append("null");
24623
      } else {
24624
        sb.append(this.success);
24625
      }
24626
      first = false;
24627
      sb.append(")");
24628
      return sb.toString();
24629
    }
24630
 
24631
    public void validate() throws org.apache.thrift.TException {
24632
      // check for required fields
24633
    }
24634
 
24635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24636
      try {
24637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24638
      } catch (org.apache.thrift.TException te) {
24639
        throw new java.io.IOException(te);
24640
      }
24641
    }
24642
 
24643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24644
      try {
24645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24646
      } catch (org.apache.thrift.TException te) {
24647
        throw new java.io.IOException(te);
24648
      }
24649
    }
24650
 
24651
  }
24652
 
7190 amar.kumar 24653
  public static class scanfreebie_args implements org.apache.thrift.TBase<scanfreebie_args, scanfreebie_args._Fields>, java.io.Serializable, Cloneable   {
24654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_args");
24655
 
24656
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
24657
    private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)2);
24658
    private static final org.apache.thrift.protocol.TField FREEBIE_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieWarehouseId", org.apache.thrift.protocol.TType.I64, (short)3);
24659
    private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)4);
24660
 
24661
    private long orderId; // required
24662
    private long freebieItemId; // required
24663
    private long freebieWarehouseId; // required
24664
    private ScanType scanType; // required
24665
 
24666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24668
      ORDER_ID((short)1, "orderId"),
24669
      FREEBIE_ITEM_ID((short)2, "freebieItemId"),
24670
      FREEBIE_WAREHOUSE_ID((short)3, "freebieWarehouseId"),
24671
      /**
24672
       * 
24673
       * @see ScanType
24674
       */
24675
      SCAN_TYPE((short)4, "scanType");
24676
 
24677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24678
 
24679
      static {
24680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24681
          byName.put(field.getFieldName(), field);
24682
        }
24683
      }
24684
 
24685
      /**
24686
       * Find the _Fields constant that matches fieldId, or null if its not found.
24687
       */
24688
      public static _Fields findByThriftId(int fieldId) {
24689
        switch(fieldId) {
24690
          case 1: // ORDER_ID
24691
            return ORDER_ID;
24692
          case 2: // FREEBIE_ITEM_ID
24693
            return FREEBIE_ITEM_ID;
24694
          case 3: // FREEBIE_WAREHOUSE_ID
24695
            return FREEBIE_WAREHOUSE_ID;
24696
          case 4: // SCAN_TYPE
24697
            return SCAN_TYPE;
24698
          default:
24699
            return null;
24700
        }
24701
      }
24702
 
24703
      /**
24704
       * Find the _Fields constant that matches fieldId, throwing an exception
24705
       * if it is not found.
24706
       */
24707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24708
        _Fields fields = findByThriftId(fieldId);
24709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24710
        return fields;
24711
      }
24712
 
24713
      /**
24714
       * Find the _Fields constant that matches name, or null if its not found.
24715
       */
24716
      public static _Fields findByName(String name) {
24717
        return byName.get(name);
24718
      }
24719
 
24720
      private final short _thriftId;
24721
      private final String _fieldName;
24722
 
24723
      _Fields(short thriftId, String fieldName) {
24724
        _thriftId = thriftId;
24725
        _fieldName = fieldName;
24726
      }
24727
 
24728
      public short getThriftFieldId() {
24729
        return _thriftId;
24730
      }
24731
 
24732
      public String getFieldName() {
24733
        return _fieldName;
24734
      }
24735
    }
24736
 
24737
    // isset id assignments
24738
    private static final int __ORDERID_ISSET_ID = 0;
24739
    private static final int __FREEBIEITEMID_ISSET_ID = 1;
24740
    private static final int __FREEBIEWAREHOUSEID_ISSET_ID = 2;
24741
    private BitSet __isset_bit_vector = new BitSet(3);
24742
 
24743
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24744
    static {
24745
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24746
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24748
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24749
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24750
      tmpMap.put(_Fields.FREEBIE_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24752
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24753
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
24754
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24755
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_args.class, metaDataMap);
24756
    }
24757
 
24758
    public scanfreebie_args() {
24759
    }
24760
 
24761
    public scanfreebie_args(
24762
      long orderId,
24763
      long freebieItemId,
24764
      long freebieWarehouseId,
24765
      ScanType scanType)
24766
    {
24767
      this();
24768
      this.orderId = orderId;
24769
      setOrderIdIsSet(true);
24770
      this.freebieItemId = freebieItemId;
24771
      setFreebieItemIdIsSet(true);
24772
      this.freebieWarehouseId = freebieWarehouseId;
24773
      setFreebieWarehouseIdIsSet(true);
24774
      this.scanType = scanType;
24775
    }
24776
 
24777
    /**
24778
     * Performs a deep copy on <i>other</i>.
24779
     */
24780
    public scanfreebie_args(scanfreebie_args other) {
24781
      __isset_bit_vector.clear();
24782
      __isset_bit_vector.or(other.__isset_bit_vector);
24783
      this.orderId = other.orderId;
24784
      this.freebieItemId = other.freebieItemId;
24785
      this.freebieWarehouseId = other.freebieWarehouseId;
24786
      if (other.isSetScanType()) {
24787
        this.scanType = other.scanType;
24788
      }
24789
    }
24790
 
24791
    public scanfreebie_args deepCopy() {
24792
      return new scanfreebie_args(this);
24793
    }
24794
 
24795
    @Override
24796
    public void clear() {
24797
      setOrderIdIsSet(false);
24798
      this.orderId = 0;
24799
      setFreebieItemIdIsSet(false);
24800
      this.freebieItemId = 0;
24801
      setFreebieWarehouseIdIsSet(false);
24802
      this.freebieWarehouseId = 0;
24803
      this.scanType = null;
24804
    }
24805
 
24806
    public long getOrderId() {
24807
      return this.orderId;
24808
    }
24809
 
24810
    public void setOrderId(long orderId) {
24811
      this.orderId = orderId;
24812
      setOrderIdIsSet(true);
24813
    }
24814
 
24815
    public void unsetOrderId() {
24816
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24817
    }
24818
 
24819
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
24820
    public boolean isSetOrderId() {
24821
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24822
    }
24823
 
24824
    public void setOrderIdIsSet(boolean value) {
24825
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24826
    }
24827
 
24828
    public long getFreebieItemId() {
24829
      return this.freebieItemId;
24830
    }
24831
 
24832
    public void setFreebieItemId(long freebieItemId) {
24833
      this.freebieItemId = freebieItemId;
24834
      setFreebieItemIdIsSet(true);
24835
    }
24836
 
24837
    public void unsetFreebieItemId() {
24838
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
24839
    }
24840
 
24841
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
24842
    public boolean isSetFreebieItemId() {
24843
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
24844
    }
24845
 
24846
    public void setFreebieItemIdIsSet(boolean value) {
24847
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
24848
    }
24849
 
24850
    public long getFreebieWarehouseId() {
24851
      return this.freebieWarehouseId;
24852
    }
24853
 
24854
    public void setFreebieWarehouseId(long freebieWarehouseId) {
24855
      this.freebieWarehouseId = freebieWarehouseId;
24856
      setFreebieWarehouseIdIsSet(true);
24857
    }
24858
 
24859
    public void unsetFreebieWarehouseId() {
24860
      __isset_bit_vector.clear(__FREEBIEWAREHOUSEID_ISSET_ID);
24861
    }
24862
 
24863
    /** Returns true if field freebieWarehouseId is set (has been assigned a value) and false otherwise */
24864
    public boolean isSetFreebieWarehouseId() {
24865
      return __isset_bit_vector.get(__FREEBIEWAREHOUSEID_ISSET_ID);
24866
    }
24867
 
24868
    public void setFreebieWarehouseIdIsSet(boolean value) {
24869
      __isset_bit_vector.set(__FREEBIEWAREHOUSEID_ISSET_ID, value);
24870
    }
24871
 
24872
    /**
24873
     * 
24874
     * @see ScanType
24875
     */
24876
    public ScanType getScanType() {
24877
      return this.scanType;
24878
    }
24879
 
24880
    /**
24881
     * 
24882
     * @see ScanType
24883
     */
24884
    public void setScanType(ScanType scanType) {
24885
      this.scanType = scanType;
24886
    }
24887
 
24888
    public void unsetScanType() {
24889
      this.scanType = null;
24890
    }
24891
 
24892
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
24893
    public boolean isSetScanType() {
24894
      return this.scanType != null;
24895
    }
24896
 
24897
    public void setScanTypeIsSet(boolean value) {
24898
      if (!value) {
24899
        this.scanType = null;
24900
      }
24901
    }
24902
 
24903
    public void setFieldValue(_Fields field, Object value) {
24904
      switch (field) {
24905
      case ORDER_ID:
24906
        if (value == null) {
24907
          unsetOrderId();
24908
        } else {
24909
          setOrderId((Long)value);
24910
        }
24911
        break;
24912
 
24913
      case FREEBIE_ITEM_ID:
24914
        if (value == null) {
24915
          unsetFreebieItemId();
24916
        } else {
24917
          setFreebieItemId((Long)value);
24918
        }
24919
        break;
24920
 
24921
      case FREEBIE_WAREHOUSE_ID:
24922
        if (value == null) {
24923
          unsetFreebieWarehouseId();
24924
        } else {
24925
          setFreebieWarehouseId((Long)value);
24926
        }
24927
        break;
24928
 
24929
      case SCAN_TYPE:
24930
        if (value == null) {
24931
          unsetScanType();
24932
        } else {
24933
          setScanType((ScanType)value);
24934
        }
24935
        break;
24936
 
24937
      }
24938
    }
24939
 
24940
    public Object getFieldValue(_Fields field) {
24941
      switch (field) {
24942
      case ORDER_ID:
24943
        return Long.valueOf(getOrderId());
24944
 
24945
      case FREEBIE_ITEM_ID:
24946
        return Long.valueOf(getFreebieItemId());
24947
 
24948
      case FREEBIE_WAREHOUSE_ID:
24949
        return Long.valueOf(getFreebieWarehouseId());
24950
 
24951
      case SCAN_TYPE:
24952
        return getScanType();
24953
 
24954
      }
24955
      throw new IllegalStateException();
24956
    }
24957
 
24958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24959
    public boolean isSet(_Fields field) {
24960
      if (field == null) {
24961
        throw new IllegalArgumentException();
24962
      }
24963
 
24964
      switch (field) {
24965
      case ORDER_ID:
24966
        return isSetOrderId();
24967
      case FREEBIE_ITEM_ID:
24968
        return isSetFreebieItemId();
24969
      case FREEBIE_WAREHOUSE_ID:
24970
        return isSetFreebieWarehouseId();
24971
      case SCAN_TYPE:
24972
        return isSetScanType();
24973
      }
24974
      throw new IllegalStateException();
24975
    }
24976
 
24977
    @Override
24978
    public boolean equals(Object that) {
24979
      if (that == null)
24980
        return false;
24981
      if (that instanceof scanfreebie_args)
24982
        return this.equals((scanfreebie_args)that);
24983
      return false;
24984
    }
24985
 
24986
    public boolean equals(scanfreebie_args that) {
24987
      if (that == null)
24988
        return false;
24989
 
24990
      boolean this_present_orderId = true;
24991
      boolean that_present_orderId = true;
24992
      if (this_present_orderId || that_present_orderId) {
24993
        if (!(this_present_orderId && that_present_orderId))
24994
          return false;
24995
        if (this.orderId != that.orderId)
24996
          return false;
24997
      }
24998
 
24999
      boolean this_present_freebieItemId = true;
25000
      boolean that_present_freebieItemId = true;
25001
      if (this_present_freebieItemId || that_present_freebieItemId) {
25002
        if (!(this_present_freebieItemId && that_present_freebieItemId))
25003
          return false;
25004
        if (this.freebieItemId != that.freebieItemId)
25005
          return false;
25006
      }
25007
 
25008
      boolean this_present_freebieWarehouseId = true;
25009
      boolean that_present_freebieWarehouseId = true;
25010
      if (this_present_freebieWarehouseId || that_present_freebieWarehouseId) {
25011
        if (!(this_present_freebieWarehouseId && that_present_freebieWarehouseId))
25012
          return false;
25013
        if (this.freebieWarehouseId != that.freebieWarehouseId)
25014
          return false;
25015
      }
25016
 
25017
      boolean this_present_scanType = true && this.isSetScanType();
25018
      boolean that_present_scanType = true && that.isSetScanType();
25019
      if (this_present_scanType || that_present_scanType) {
25020
        if (!(this_present_scanType && that_present_scanType))
25021
          return false;
25022
        if (!this.scanType.equals(that.scanType))
25023
          return false;
25024
      }
25025
 
25026
      return true;
25027
    }
25028
 
25029
    @Override
25030
    public int hashCode() {
25031
      return 0;
25032
    }
25033
 
25034
    public int compareTo(scanfreebie_args other) {
25035
      if (!getClass().equals(other.getClass())) {
25036
        return getClass().getName().compareTo(other.getClass().getName());
25037
      }
25038
 
25039
      int lastComparison = 0;
25040
      scanfreebie_args typedOther = (scanfreebie_args)other;
25041
 
25042
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
25043
      if (lastComparison != 0) {
25044
        return lastComparison;
25045
      }
25046
      if (isSetOrderId()) {
25047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
25048
        if (lastComparison != 0) {
25049
          return lastComparison;
25050
        }
25051
      }
25052
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
25053
      if (lastComparison != 0) {
25054
        return lastComparison;
25055
      }
25056
      if (isSetFreebieItemId()) {
25057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
25058
        if (lastComparison != 0) {
25059
          return lastComparison;
25060
        }
25061
      }
25062
      lastComparison = Boolean.valueOf(isSetFreebieWarehouseId()).compareTo(typedOther.isSetFreebieWarehouseId());
25063
      if (lastComparison != 0) {
25064
        return lastComparison;
25065
      }
25066
      if (isSetFreebieWarehouseId()) {
25067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieWarehouseId, typedOther.freebieWarehouseId);
25068
        if (lastComparison != 0) {
25069
          return lastComparison;
25070
        }
25071
      }
25072
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
25073
      if (lastComparison != 0) {
25074
        return lastComparison;
25075
      }
25076
      if (isSetScanType()) {
25077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
25078
        if (lastComparison != 0) {
25079
          return lastComparison;
25080
        }
25081
      }
25082
      return 0;
25083
    }
25084
 
25085
    public _Fields fieldForId(int fieldId) {
25086
      return _Fields.findByThriftId(fieldId);
25087
    }
25088
 
25089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25090
      org.apache.thrift.protocol.TField field;
25091
      iprot.readStructBegin();
25092
      while (true)
25093
      {
25094
        field = iprot.readFieldBegin();
25095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25096
          break;
25097
        }
25098
        switch (field.id) {
25099
          case 1: // ORDER_ID
25100
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25101
              this.orderId = iprot.readI64();
25102
              setOrderIdIsSet(true);
25103
            } else { 
25104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25105
            }
25106
            break;
25107
          case 2: // FREEBIE_ITEM_ID
25108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25109
              this.freebieItemId = iprot.readI64();
25110
              setFreebieItemIdIsSet(true);
25111
            } else { 
25112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25113
            }
25114
            break;
25115
          case 3: // FREEBIE_WAREHOUSE_ID
25116
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25117
              this.freebieWarehouseId = iprot.readI64();
25118
              setFreebieWarehouseIdIsSet(true);
25119
            } else { 
25120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25121
            }
25122
            break;
25123
          case 4: // SCAN_TYPE
25124
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25125
              this.scanType = ScanType.findByValue(iprot.readI32());
25126
            } else { 
25127
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25128
            }
25129
            break;
25130
          default:
25131
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25132
        }
25133
        iprot.readFieldEnd();
25134
      }
25135
      iprot.readStructEnd();
25136
      validate();
25137
    }
25138
 
25139
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25140
      validate();
25141
 
25142
      oprot.writeStructBegin(STRUCT_DESC);
25143
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
25144
      oprot.writeI64(this.orderId);
25145
      oprot.writeFieldEnd();
25146
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
25147
      oprot.writeI64(this.freebieItemId);
25148
      oprot.writeFieldEnd();
25149
      oprot.writeFieldBegin(FREEBIE_WAREHOUSE_ID_FIELD_DESC);
25150
      oprot.writeI64(this.freebieWarehouseId);
25151
      oprot.writeFieldEnd();
25152
      if (this.scanType != null) {
25153
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
25154
        oprot.writeI32(this.scanType.getValue());
25155
        oprot.writeFieldEnd();
25156
      }
25157
      oprot.writeFieldStop();
25158
      oprot.writeStructEnd();
25159
    }
25160
 
25161
    @Override
25162
    public String toString() {
25163
      StringBuilder sb = new StringBuilder("scanfreebie_args(");
25164
      boolean first = true;
25165
 
25166
      sb.append("orderId:");
25167
      sb.append(this.orderId);
25168
      first = false;
25169
      if (!first) sb.append(", ");
25170
      sb.append("freebieItemId:");
25171
      sb.append(this.freebieItemId);
25172
      first = false;
25173
      if (!first) sb.append(", ");
25174
      sb.append("freebieWarehouseId:");
25175
      sb.append(this.freebieWarehouseId);
25176
      first = false;
25177
      if (!first) sb.append(", ");
25178
      sb.append("scanType:");
25179
      if (this.scanType == null) {
25180
        sb.append("null");
25181
      } else {
25182
        sb.append(this.scanType);
25183
      }
25184
      first = false;
25185
      sb.append(")");
25186
      return sb.toString();
25187
    }
25188
 
25189
    public void validate() throws org.apache.thrift.TException {
25190
      // check for required fields
25191
    }
25192
 
25193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25194
      try {
25195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25196
      } catch (org.apache.thrift.TException te) {
25197
        throw new java.io.IOException(te);
25198
      }
25199
    }
25200
 
25201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25202
      try {
25203
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25204
        __isset_bit_vector = new BitSet(1);
25205
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25206
      } catch (org.apache.thrift.TException te) {
25207
        throw new java.io.IOException(te);
25208
      }
25209
    }
25210
 
25211
  }
25212
 
25213
  public static class scanfreebie_result implements org.apache.thrift.TBase<scanfreebie_result, scanfreebie_result._Fields>, java.io.Serializable, Cloneable   {
25214
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanfreebie_result");
25215
 
25216
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
25217
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
25218
 
25219
    private InventoryItem success; // required
25220
    private WarehouseServiceException wex; // required
25221
 
25222
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25223
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25224
      SUCCESS((short)0, "success"),
25225
      WEX((short)1, "wex");
25226
 
25227
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25228
 
25229
      static {
25230
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25231
          byName.put(field.getFieldName(), field);
25232
        }
25233
      }
25234
 
25235
      /**
25236
       * Find the _Fields constant that matches fieldId, or null if its not found.
25237
       */
25238
      public static _Fields findByThriftId(int fieldId) {
25239
        switch(fieldId) {
25240
          case 0: // SUCCESS
25241
            return SUCCESS;
25242
          case 1: // WEX
25243
            return WEX;
25244
          default:
25245
            return null;
25246
        }
25247
      }
25248
 
25249
      /**
25250
       * Find the _Fields constant that matches fieldId, throwing an exception
25251
       * if it is not found.
25252
       */
25253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25254
        _Fields fields = findByThriftId(fieldId);
25255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25256
        return fields;
25257
      }
25258
 
25259
      /**
25260
       * Find the _Fields constant that matches name, or null if its not found.
25261
       */
25262
      public static _Fields findByName(String name) {
25263
        return byName.get(name);
25264
      }
25265
 
25266
      private final short _thriftId;
25267
      private final String _fieldName;
25268
 
25269
      _Fields(short thriftId, String fieldName) {
25270
        _thriftId = thriftId;
25271
        _fieldName = fieldName;
25272
      }
25273
 
25274
      public short getThriftFieldId() {
25275
        return _thriftId;
25276
      }
25277
 
25278
      public String getFieldName() {
25279
        return _fieldName;
25280
      }
25281
    }
25282
 
25283
    // isset id assignments
25284
 
25285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25286
    static {
25287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25288
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25289
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class)));
25290
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
25292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanfreebie_result.class, metaDataMap);
25294
    }
25295
 
25296
    public scanfreebie_result() {
25297
    }
25298
 
25299
    public scanfreebie_result(
25300
      InventoryItem success,
25301
      WarehouseServiceException wex)
25302
    {
25303
      this();
25304
      this.success = success;
25305
      this.wex = wex;
25306
    }
25307
 
25308
    /**
25309
     * Performs a deep copy on <i>other</i>.
25310
     */
25311
    public scanfreebie_result(scanfreebie_result other) {
25312
      if (other.isSetSuccess()) {
25313
        this.success = new InventoryItem(other.success);
25314
      }
25315
      if (other.isSetWex()) {
25316
        this.wex = new WarehouseServiceException(other.wex);
25317
      }
25318
    }
25319
 
25320
    public scanfreebie_result deepCopy() {
25321
      return new scanfreebie_result(this);
25322
    }
25323
 
25324
    @Override
25325
    public void clear() {
25326
      this.success = null;
25327
      this.wex = null;
25328
    }
25329
 
25330
    public InventoryItem getSuccess() {
25331
      return this.success;
25332
    }
25333
 
25334
    public void setSuccess(InventoryItem success) {
25335
      this.success = success;
25336
    }
25337
 
25338
    public void unsetSuccess() {
25339
      this.success = null;
25340
    }
25341
 
25342
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25343
    public boolean isSetSuccess() {
25344
      return this.success != null;
25345
    }
25346
 
25347
    public void setSuccessIsSet(boolean value) {
25348
      if (!value) {
25349
        this.success = null;
25350
      }
25351
    }
25352
 
25353
    public WarehouseServiceException getWex() {
25354
      return this.wex;
25355
    }
25356
 
25357
    public void setWex(WarehouseServiceException wex) {
25358
      this.wex = wex;
25359
    }
25360
 
25361
    public void unsetWex() {
25362
      this.wex = null;
25363
    }
25364
 
25365
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
25366
    public boolean isSetWex() {
25367
      return this.wex != null;
25368
    }
25369
 
25370
    public void setWexIsSet(boolean value) {
25371
      if (!value) {
25372
        this.wex = null;
25373
      }
25374
    }
25375
 
25376
    public void setFieldValue(_Fields field, Object value) {
25377
      switch (field) {
25378
      case SUCCESS:
25379
        if (value == null) {
25380
          unsetSuccess();
25381
        } else {
25382
          setSuccess((InventoryItem)value);
25383
        }
25384
        break;
25385
 
25386
      case WEX:
25387
        if (value == null) {
25388
          unsetWex();
25389
        } else {
25390
          setWex((WarehouseServiceException)value);
25391
        }
25392
        break;
25393
 
25394
      }
25395
    }
25396
 
25397
    public Object getFieldValue(_Fields field) {
25398
      switch (field) {
25399
      case SUCCESS:
25400
        return getSuccess();
25401
 
25402
      case WEX:
25403
        return getWex();
25404
 
25405
      }
25406
      throw new IllegalStateException();
25407
    }
25408
 
25409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25410
    public boolean isSet(_Fields field) {
25411
      if (field == null) {
25412
        throw new IllegalArgumentException();
25413
      }
25414
 
25415
      switch (field) {
25416
      case SUCCESS:
25417
        return isSetSuccess();
25418
      case WEX:
25419
        return isSetWex();
25420
      }
25421
      throw new IllegalStateException();
25422
    }
25423
 
25424
    @Override
25425
    public boolean equals(Object that) {
25426
      if (that == null)
25427
        return false;
25428
      if (that instanceof scanfreebie_result)
25429
        return this.equals((scanfreebie_result)that);
25430
      return false;
25431
    }
25432
 
25433
    public boolean equals(scanfreebie_result that) {
25434
      if (that == null)
25435
        return false;
25436
 
25437
      boolean this_present_success = true && this.isSetSuccess();
25438
      boolean that_present_success = true && that.isSetSuccess();
25439
      if (this_present_success || that_present_success) {
25440
        if (!(this_present_success && that_present_success))
25441
          return false;
25442
        if (!this.success.equals(that.success))
25443
          return false;
25444
      }
25445
 
25446
      boolean this_present_wex = true && this.isSetWex();
25447
      boolean that_present_wex = true && that.isSetWex();
25448
      if (this_present_wex || that_present_wex) {
25449
        if (!(this_present_wex && that_present_wex))
25450
          return false;
25451
        if (!this.wex.equals(that.wex))
25452
          return false;
25453
      }
25454
 
25455
      return true;
25456
    }
25457
 
25458
    @Override
25459
    public int hashCode() {
25460
      return 0;
25461
    }
25462
 
25463
    public int compareTo(scanfreebie_result other) {
25464
      if (!getClass().equals(other.getClass())) {
25465
        return getClass().getName().compareTo(other.getClass().getName());
25466
      }
25467
 
25468
      int lastComparison = 0;
25469
      scanfreebie_result typedOther = (scanfreebie_result)other;
25470
 
25471
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25472
      if (lastComparison != 0) {
25473
        return lastComparison;
25474
      }
25475
      if (isSetSuccess()) {
25476
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25477
        if (lastComparison != 0) {
25478
          return lastComparison;
25479
        }
25480
      }
25481
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
25482
      if (lastComparison != 0) {
25483
        return lastComparison;
25484
      }
25485
      if (isSetWex()) {
25486
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
25487
        if (lastComparison != 0) {
25488
          return lastComparison;
25489
        }
25490
      }
25491
      return 0;
25492
    }
25493
 
25494
    public _Fields fieldForId(int fieldId) {
25495
      return _Fields.findByThriftId(fieldId);
25496
    }
25497
 
25498
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25499
      org.apache.thrift.protocol.TField field;
25500
      iprot.readStructBegin();
25501
      while (true)
25502
      {
25503
        field = iprot.readFieldBegin();
25504
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25505
          break;
25506
        }
25507
        switch (field.id) {
25508
          case 0: // SUCCESS
25509
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25510
              this.success = new InventoryItem();
25511
              this.success.read(iprot);
25512
            } else { 
25513
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25514
            }
25515
            break;
25516
          case 1: // WEX
25517
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
25518
              this.wex = new WarehouseServiceException();
25519
              this.wex.read(iprot);
25520
            } else { 
25521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25522
            }
25523
            break;
25524
          default:
25525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25526
        }
25527
        iprot.readFieldEnd();
25528
      }
25529
      iprot.readStructEnd();
25530
      validate();
25531
    }
25532
 
25533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25534
      oprot.writeStructBegin(STRUCT_DESC);
25535
 
25536
      if (this.isSetSuccess()) {
25537
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25538
        this.success.write(oprot);
25539
        oprot.writeFieldEnd();
25540
      } else if (this.isSetWex()) {
25541
        oprot.writeFieldBegin(WEX_FIELD_DESC);
25542
        this.wex.write(oprot);
25543
        oprot.writeFieldEnd();
25544
      }
25545
      oprot.writeFieldStop();
25546
      oprot.writeStructEnd();
25547
    }
25548
 
25549
    @Override
25550
    public String toString() {
25551
      StringBuilder sb = new StringBuilder("scanfreebie_result(");
25552
      boolean first = true;
25553
 
25554
      sb.append("success:");
25555
      if (this.success == null) {
25556
        sb.append("null");
25557
      } else {
25558
        sb.append(this.success);
25559
      }
25560
      first = false;
25561
      if (!first) sb.append(", ");
25562
      sb.append("wex:");
25563
      if (this.wex == null) {
25564
        sb.append("null");
25565
      } else {
25566
        sb.append(this.wex);
25567
      }
25568
      first = false;
25569
      sb.append(")");
25570
      return sb.toString();
25571
    }
25572
 
25573
    public void validate() throws org.apache.thrift.TException {
25574
      // check for required fields
25575
    }
25576
 
25577
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25578
      try {
25579
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25580
      } catch (org.apache.thrift.TException te) {
25581
        throw new java.io.IOException(te);
25582
      }
25583
    }
25584
 
25585
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25586
      try {
25587
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25588
      } catch (org.apache.thrift.TException te) {
25589
        throw new java.io.IOException(te);
25590
      }
25591
    }
25592
 
25593
  }
25594
 
7199 amar.kumar 25595
  public static class reshipfreebie_args implements org.apache.thrift.TBase<reshipfreebie_args, reshipfreebie_args._Fields>, java.io.Serializable, Cloneable   {
25596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_args");
25597
 
25598
    private static final org.apache.thrift.protocol.TField OLD_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("oldOrderId", org.apache.thrift.protocol.TType.I64, (short)1);
25599
    private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("newOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
25600
    private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)3);
25601
    private static final org.apache.thrift.protocol.TField SCAN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("scanType", org.apache.thrift.protocol.TType.I32, (short)4);
25602
 
25603
    private long oldOrderId; // required
25604
    private long newOrderId; // required
25605
    private long freebieItemId; // required
25606
    private ScanType scanType; // required
25607
 
25608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25610
      OLD_ORDER_ID((short)1, "oldOrderId"),
25611
      NEW_ORDER_ID((short)2, "newOrderId"),
25612
      FREEBIE_ITEM_ID((short)3, "freebieItemId"),
25613
      /**
25614
       * 
25615
       * @see ScanType
25616
       */
25617
      SCAN_TYPE((short)4, "scanType");
25618
 
25619
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25620
 
25621
      static {
25622
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25623
          byName.put(field.getFieldName(), field);
25624
        }
25625
      }
25626
 
25627
      /**
25628
       * Find the _Fields constant that matches fieldId, or null if its not found.
25629
       */
25630
      public static _Fields findByThriftId(int fieldId) {
25631
        switch(fieldId) {
25632
          case 1: // OLD_ORDER_ID
25633
            return OLD_ORDER_ID;
25634
          case 2: // NEW_ORDER_ID
25635
            return NEW_ORDER_ID;
25636
          case 3: // FREEBIE_ITEM_ID
25637
            return FREEBIE_ITEM_ID;
25638
          case 4: // SCAN_TYPE
25639
            return SCAN_TYPE;
25640
          default:
25641
            return null;
25642
        }
25643
      }
25644
 
25645
      /**
25646
       * Find the _Fields constant that matches fieldId, throwing an exception
25647
       * if it is not found.
25648
       */
25649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25650
        _Fields fields = findByThriftId(fieldId);
25651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25652
        return fields;
25653
      }
25654
 
25655
      /**
25656
       * Find the _Fields constant that matches name, or null if its not found.
25657
       */
25658
      public static _Fields findByName(String name) {
25659
        return byName.get(name);
25660
      }
25661
 
25662
      private final short _thriftId;
25663
      private final String _fieldName;
25664
 
25665
      _Fields(short thriftId, String fieldName) {
25666
        _thriftId = thriftId;
25667
        _fieldName = fieldName;
25668
      }
25669
 
25670
      public short getThriftFieldId() {
25671
        return _thriftId;
25672
      }
25673
 
25674
      public String getFieldName() {
25675
        return _fieldName;
25676
      }
25677
    }
25678
 
25679
    // isset id assignments
25680
    private static final int __OLDORDERID_ISSET_ID = 0;
25681
    private static final int __NEWORDERID_ISSET_ID = 1;
25682
    private static final int __FREEBIEITEMID_ISSET_ID = 2;
25683
    private BitSet __isset_bit_vector = new BitSet(3);
25684
 
25685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25686
    static {
25687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25688
      tmpMap.put(_Fields.OLD_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("oldOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25690
      tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("newOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25692
      tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25694
      tmpMap.put(_Fields.SCAN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("scanType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25695
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
25696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_args.class, metaDataMap);
25698
    }
25699
 
25700
    public reshipfreebie_args() {
25701
    }
25702
 
25703
    public reshipfreebie_args(
25704
      long oldOrderId,
25705
      long newOrderId,
25706
      long freebieItemId,
25707
      ScanType scanType)
25708
    {
25709
      this();
25710
      this.oldOrderId = oldOrderId;
25711
      setOldOrderIdIsSet(true);
25712
      this.newOrderId = newOrderId;
25713
      setNewOrderIdIsSet(true);
25714
      this.freebieItemId = freebieItemId;
25715
      setFreebieItemIdIsSet(true);
25716
      this.scanType = scanType;
25717
    }
25718
 
25719
    /**
25720
     * Performs a deep copy on <i>other</i>.
25721
     */
25722
    public reshipfreebie_args(reshipfreebie_args other) {
25723
      __isset_bit_vector.clear();
25724
      __isset_bit_vector.or(other.__isset_bit_vector);
25725
      this.oldOrderId = other.oldOrderId;
25726
      this.newOrderId = other.newOrderId;
25727
      this.freebieItemId = other.freebieItemId;
25728
      if (other.isSetScanType()) {
25729
        this.scanType = other.scanType;
25730
      }
25731
    }
25732
 
25733
    public reshipfreebie_args deepCopy() {
25734
      return new reshipfreebie_args(this);
25735
    }
25736
 
25737
    @Override
25738
    public void clear() {
25739
      setOldOrderIdIsSet(false);
25740
      this.oldOrderId = 0;
25741
      setNewOrderIdIsSet(false);
25742
      this.newOrderId = 0;
25743
      setFreebieItemIdIsSet(false);
25744
      this.freebieItemId = 0;
25745
      this.scanType = null;
25746
    }
25747
 
25748
    public long getOldOrderId() {
25749
      return this.oldOrderId;
25750
    }
25751
 
25752
    public void setOldOrderId(long oldOrderId) {
25753
      this.oldOrderId = oldOrderId;
25754
      setOldOrderIdIsSet(true);
25755
    }
25756
 
25757
    public void unsetOldOrderId() {
25758
      __isset_bit_vector.clear(__OLDORDERID_ISSET_ID);
25759
    }
25760
 
25761
    /** Returns true if field oldOrderId is set (has been assigned a value) and false otherwise */
25762
    public boolean isSetOldOrderId() {
25763
      return __isset_bit_vector.get(__OLDORDERID_ISSET_ID);
25764
    }
25765
 
25766
    public void setOldOrderIdIsSet(boolean value) {
25767
      __isset_bit_vector.set(__OLDORDERID_ISSET_ID, value);
25768
    }
25769
 
25770
    public long getNewOrderId() {
25771
      return this.newOrderId;
25772
    }
25773
 
25774
    public void setNewOrderId(long newOrderId) {
25775
      this.newOrderId = newOrderId;
25776
      setNewOrderIdIsSet(true);
25777
    }
25778
 
25779
    public void unsetNewOrderId() {
25780
      __isset_bit_vector.clear(__NEWORDERID_ISSET_ID);
25781
    }
25782
 
25783
    /** Returns true if field newOrderId is set (has been assigned a value) and false otherwise */
25784
    public boolean isSetNewOrderId() {
25785
      return __isset_bit_vector.get(__NEWORDERID_ISSET_ID);
25786
    }
25787
 
25788
    public void setNewOrderIdIsSet(boolean value) {
25789
      __isset_bit_vector.set(__NEWORDERID_ISSET_ID, value);
25790
    }
25791
 
25792
    public long getFreebieItemId() {
25793
      return this.freebieItemId;
25794
    }
25795
 
25796
    public void setFreebieItemId(long freebieItemId) {
25797
      this.freebieItemId = freebieItemId;
25798
      setFreebieItemIdIsSet(true);
25799
    }
25800
 
25801
    public void unsetFreebieItemId() {
25802
      __isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);
25803
    }
25804
 
25805
    /** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */
25806
    public boolean isSetFreebieItemId() {
25807
      return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);
25808
    }
25809
 
25810
    public void setFreebieItemIdIsSet(boolean value) {
25811
      __isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);
25812
    }
25813
 
25814
    /**
25815
     * 
25816
     * @see ScanType
25817
     */
25818
    public ScanType getScanType() {
25819
      return this.scanType;
25820
    }
25821
 
25822
    /**
25823
     * 
25824
     * @see ScanType
25825
     */
25826
    public void setScanType(ScanType scanType) {
25827
      this.scanType = scanType;
25828
    }
25829
 
25830
    public void unsetScanType() {
25831
      this.scanType = null;
25832
    }
25833
 
25834
    /** Returns true if field scanType is set (has been assigned a value) and false otherwise */
25835
    public boolean isSetScanType() {
25836
      return this.scanType != null;
25837
    }
25838
 
25839
    public void setScanTypeIsSet(boolean value) {
25840
      if (!value) {
25841
        this.scanType = null;
25842
      }
25843
    }
25844
 
25845
    public void setFieldValue(_Fields field, Object value) {
25846
      switch (field) {
25847
      case OLD_ORDER_ID:
25848
        if (value == null) {
25849
          unsetOldOrderId();
25850
        } else {
25851
          setOldOrderId((Long)value);
25852
        }
25853
        break;
25854
 
25855
      case NEW_ORDER_ID:
25856
        if (value == null) {
25857
          unsetNewOrderId();
25858
        } else {
25859
          setNewOrderId((Long)value);
25860
        }
25861
        break;
25862
 
25863
      case FREEBIE_ITEM_ID:
25864
        if (value == null) {
25865
          unsetFreebieItemId();
25866
        } else {
25867
          setFreebieItemId((Long)value);
25868
        }
25869
        break;
25870
 
25871
      case SCAN_TYPE:
25872
        if (value == null) {
25873
          unsetScanType();
25874
        } else {
25875
          setScanType((ScanType)value);
25876
        }
25877
        break;
25878
 
25879
      }
25880
    }
25881
 
25882
    public Object getFieldValue(_Fields field) {
25883
      switch (field) {
25884
      case OLD_ORDER_ID:
25885
        return Long.valueOf(getOldOrderId());
25886
 
25887
      case NEW_ORDER_ID:
25888
        return Long.valueOf(getNewOrderId());
25889
 
25890
      case FREEBIE_ITEM_ID:
25891
        return Long.valueOf(getFreebieItemId());
25892
 
25893
      case SCAN_TYPE:
25894
        return getScanType();
25895
 
25896
      }
25897
      throw new IllegalStateException();
25898
    }
25899
 
25900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25901
    public boolean isSet(_Fields field) {
25902
      if (field == null) {
25903
        throw new IllegalArgumentException();
25904
      }
25905
 
25906
      switch (field) {
25907
      case OLD_ORDER_ID:
25908
        return isSetOldOrderId();
25909
      case NEW_ORDER_ID:
25910
        return isSetNewOrderId();
25911
      case FREEBIE_ITEM_ID:
25912
        return isSetFreebieItemId();
25913
      case SCAN_TYPE:
25914
        return isSetScanType();
25915
      }
25916
      throw new IllegalStateException();
25917
    }
25918
 
25919
    @Override
25920
    public boolean equals(Object that) {
25921
      if (that == null)
25922
        return false;
25923
      if (that instanceof reshipfreebie_args)
25924
        return this.equals((reshipfreebie_args)that);
25925
      return false;
25926
    }
25927
 
25928
    public boolean equals(reshipfreebie_args that) {
25929
      if (that == null)
25930
        return false;
25931
 
25932
      boolean this_present_oldOrderId = true;
25933
      boolean that_present_oldOrderId = true;
25934
      if (this_present_oldOrderId || that_present_oldOrderId) {
25935
        if (!(this_present_oldOrderId && that_present_oldOrderId))
25936
          return false;
25937
        if (this.oldOrderId != that.oldOrderId)
25938
          return false;
25939
      }
25940
 
25941
      boolean this_present_newOrderId = true;
25942
      boolean that_present_newOrderId = true;
25943
      if (this_present_newOrderId || that_present_newOrderId) {
25944
        if (!(this_present_newOrderId && that_present_newOrderId))
25945
          return false;
25946
        if (this.newOrderId != that.newOrderId)
25947
          return false;
25948
      }
25949
 
25950
      boolean this_present_freebieItemId = true;
25951
      boolean that_present_freebieItemId = true;
25952
      if (this_present_freebieItemId || that_present_freebieItemId) {
25953
        if (!(this_present_freebieItemId && that_present_freebieItemId))
25954
          return false;
25955
        if (this.freebieItemId != that.freebieItemId)
25956
          return false;
25957
      }
25958
 
25959
      boolean this_present_scanType = true && this.isSetScanType();
25960
      boolean that_present_scanType = true && that.isSetScanType();
25961
      if (this_present_scanType || that_present_scanType) {
25962
        if (!(this_present_scanType && that_present_scanType))
25963
          return false;
25964
        if (!this.scanType.equals(that.scanType))
25965
          return false;
25966
      }
25967
 
25968
      return true;
25969
    }
25970
 
25971
    @Override
25972
    public int hashCode() {
25973
      return 0;
25974
    }
25975
 
25976
    public int compareTo(reshipfreebie_args other) {
25977
      if (!getClass().equals(other.getClass())) {
25978
        return getClass().getName().compareTo(other.getClass().getName());
25979
      }
25980
 
25981
      int lastComparison = 0;
25982
      reshipfreebie_args typedOther = (reshipfreebie_args)other;
25983
 
25984
      lastComparison = Boolean.valueOf(isSetOldOrderId()).compareTo(typedOther.isSetOldOrderId());
25985
      if (lastComparison != 0) {
25986
        return lastComparison;
25987
      }
25988
      if (isSetOldOrderId()) {
25989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldOrderId, typedOther.oldOrderId);
25990
        if (lastComparison != 0) {
25991
          return lastComparison;
25992
        }
25993
      }
25994
      lastComparison = Boolean.valueOf(isSetNewOrderId()).compareTo(typedOther.isSetNewOrderId());
25995
      if (lastComparison != 0) {
25996
        return lastComparison;
25997
      }
25998
      if (isSetNewOrderId()) {
25999
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newOrderId, typedOther.newOrderId);
26000
        if (lastComparison != 0) {
26001
          return lastComparison;
26002
        }
26003
      }
26004
      lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());
26005
      if (lastComparison != 0) {
26006
        return lastComparison;
26007
      }
26008
      if (isSetFreebieItemId()) {
26009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);
26010
        if (lastComparison != 0) {
26011
          return lastComparison;
26012
        }
26013
      }
26014
      lastComparison = Boolean.valueOf(isSetScanType()).compareTo(typedOther.isSetScanType());
26015
      if (lastComparison != 0) {
26016
        return lastComparison;
26017
      }
26018
      if (isSetScanType()) {
26019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.scanType, typedOther.scanType);
26020
        if (lastComparison != 0) {
26021
          return lastComparison;
26022
        }
26023
      }
26024
      return 0;
26025
    }
26026
 
26027
    public _Fields fieldForId(int fieldId) {
26028
      return _Fields.findByThriftId(fieldId);
26029
    }
26030
 
26031
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26032
      org.apache.thrift.protocol.TField field;
26033
      iprot.readStructBegin();
26034
      while (true)
26035
      {
26036
        field = iprot.readFieldBegin();
26037
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26038
          break;
26039
        }
26040
        switch (field.id) {
26041
          case 1: // OLD_ORDER_ID
26042
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26043
              this.oldOrderId = iprot.readI64();
26044
              setOldOrderIdIsSet(true);
26045
            } else { 
26046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26047
            }
26048
            break;
26049
          case 2: // NEW_ORDER_ID
26050
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26051
              this.newOrderId = iprot.readI64();
26052
              setNewOrderIdIsSet(true);
26053
            } else { 
26054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26055
            }
26056
            break;
26057
          case 3: // FREEBIE_ITEM_ID
26058
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26059
              this.freebieItemId = iprot.readI64();
26060
              setFreebieItemIdIsSet(true);
26061
            } else { 
26062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26063
            }
26064
            break;
26065
          case 4: // SCAN_TYPE
26066
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26067
              this.scanType = ScanType.findByValue(iprot.readI32());
26068
            } else { 
26069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26070
            }
26071
            break;
26072
          default:
26073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26074
        }
26075
        iprot.readFieldEnd();
26076
      }
26077
      iprot.readStructEnd();
26078
      validate();
26079
    }
26080
 
26081
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26082
      validate();
26083
 
26084
      oprot.writeStructBegin(STRUCT_DESC);
26085
      oprot.writeFieldBegin(OLD_ORDER_ID_FIELD_DESC);
26086
      oprot.writeI64(this.oldOrderId);
26087
      oprot.writeFieldEnd();
26088
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
26089
      oprot.writeI64(this.newOrderId);
26090
      oprot.writeFieldEnd();
26091
      oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
26092
      oprot.writeI64(this.freebieItemId);
26093
      oprot.writeFieldEnd();
26094
      if (this.scanType != null) {
26095
        oprot.writeFieldBegin(SCAN_TYPE_FIELD_DESC);
26096
        oprot.writeI32(this.scanType.getValue());
26097
        oprot.writeFieldEnd();
26098
      }
26099
      oprot.writeFieldStop();
26100
      oprot.writeStructEnd();
26101
    }
26102
 
26103
    @Override
26104
    public String toString() {
26105
      StringBuilder sb = new StringBuilder("reshipfreebie_args(");
26106
      boolean first = true;
26107
 
26108
      sb.append("oldOrderId:");
26109
      sb.append(this.oldOrderId);
26110
      first = false;
26111
      if (!first) sb.append(", ");
26112
      sb.append("newOrderId:");
26113
      sb.append(this.newOrderId);
26114
      first = false;
26115
      if (!first) sb.append(", ");
26116
      sb.append("freebieItemId:");
26117
      sb.append(this.freebieItemId);
26118
      first = false;
26119
      if (!first) sb.append(", ");
26120
      sb.append("scanType:");
26121
      if (this.scanType == null) {
26122
        sb.append("null");
26123
      } else {
26124
        sb.append(this.scanType);
26125
      }
26126
      first = false;
26127
      sb.append(")");
26128
      return sb.toString();
26129
    }
26130
 
26131
    public void validate() throws org.apache.thrift.TException {
26132
      // check for required fields
26133
    }
26134
 
26135
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26136
      try {
26137
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26138
      } catch (org.apache.thrift.TException te) {
26139
        throw new java.io.IOException(te);
26140
      }
26141
    }
26142
 
26143
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26144
      try {
26145
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26146
        __isset_bit_vector = new BitSet(1);
26147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26148
      } catch (org.apache.thrift.TException te) {
26149
        throw new java.io.IOException(te);
26150
      }
26151
    }
26152
 
26153
  }
26154
 
26155
  public static class reshipfreebie_result implements org.apache.thrift.TBase<reshipfreebie_result, reshipfreebie_result._Fields>, java.io.Serializable, Cloneable   {
26156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reshipfreebie_result");
26157
 
26158
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
26159
 
26160
    private WarehouseServiceException wex; // required
26161
 
26162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26164
      WEX((short)1, "wex");
26165
 
26166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26167
 
26168
      static {
26169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26170
          byName.put(field.getFieldName(), field);
26171
        }
26172
      }
26173
 
26174
      /**
26175
       * Find the _Fields constant that matches fieldId, or null if its not found.
26176
       */
26177
      public static _Fields findByThriftId(int fieldId) {
26178
        switch(fieldId) {
26179
          case 1: // WEX
26180
            return WEX;
26181
          default:
26182
            return null;
26183
        }
26184
      }
26185
 
26186
      /**
26187
       * Find the _Fields constant that matches fieldId, throwing an exception
26188
       * if it is not found.
26189
       */
26190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26191
        _Fields fields = findByThriftId(fieldId);
26192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26193
        return fields;
26194
      }
26195
 
26196
      /**
26197
       * Find the _Fields constant that matches name, or null if its not found.
26198
       */
26199
      public static _Fields findByName(String name) {
26200
        return byName.get(name);
26201
      }
26202
 
26203
      private final short _thriftId;
26204
      private final String _fieldName;
26205
 
26206
      _Fields(short thriftId, String fieldName) {
26207
        _thriftId = thriftId;
26208
        _fieldName = fieldName;
26209
      }
26210
 
26211
      public short getThriftFieldId() {
26212
        return _thriftId;
26213
      }
26214
 
26215
      public String getFieldName() {
26216
        return _fieldName;
26217
      }
26218
    }
26219
 
26220
    // isset id assignments
26221
 
26222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26223
    static {
26224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26225
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reshipfreebie_result.class, metaDataMap);
26229
    }
26230
 
26231
    public reshipfreebie_result() {
26232
    }
26233
 
26234
    public reshipfreebie_result(
26235
      WarehouseServiceException wex)
26236
    {
26237
      this();
26238
      this.wex = wex;
26239
    }
26240
 
26241
    /**
26242
     * Performs a deep copy on <i>other</i>.
26243
     */
26244
    public reshipfreebie_result(reshipfreebie_result other) {
26245
      if (other.isSetWex()) {
26246
        this.wex = new WarehouseServiceException(other.wex);
26247
      }
26248
    }
26249
 
26250
    public reshipfreebie_result deepCopy() {
26251
      return new reshipfreebie_result(this);
26252
    }
26253
 
26254
    @Override
26255
    public void clear() {
26256
      this.wex = null;
26257
    }
26258
 
26259
    public WarehouseServiceException getWex() {
26260
      return this.wex;
26261
    }
26262
 
26263
    public void setWex(WarehouseServiceException wex) {
26264
      this.wex = wex;
26265
    }
26266
 
26267
    public void unsetWex() {
26268
      this.wex = null;
26269
    }
26270
 
26271
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
26272
    public boolean isSetWex() {
26273
      return this.wex != null;
26274
    }
26275
 
26276
    public void setWexIsSet(boolean value) {
26277
      if (!value) {
26278
        this.wex = null;
26279
      }
26280
    }
26281
 
26282
    public void setFieldValue(_Fields field, Object value) {
26283
      switch (field) {
26284
      case WEX:
26285
        if (value == null) {
26286
          unsetWex();
26287
        } else {
26288
          setWex((WarehouseServiceException)value);
26289
        }
26290
        break;
26291
 
26292
      }
26293
    }
26294
 
26295
    public Object getFieldValue(_Fields field) {
26296
      switch (field) {
26297
      case WEX:
26298
        return getWex();
26299
 
26300
      }
26301
      throw new IllegalStateException();
26302
    }
26303
 
26304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26305
    public boolean isSet(_Fields field) {
26306
      if (field == null) {
26307
        throw new IllegalArgumentException();
26308
      }
26309
 
26310
      switch (field) {
26311
      case WEX:
26312
        return isSetWex();
26313
      }
26314
      throw new IllegalStateException();
26315
    }
26316
 
26317
    @Override
26318
    public boolean equals(Object that) {
26319
      if (that == null)
26320
        return false;
26321
      if (that instanceof reshipfreebie_result)
26322
        return this.equals((reshipfreebie_result)that);
26323
      return false;
26324
    }
26325
 
26326
    public boolean equals(reshipfreebie_result that) {
26327
      if (that == null)
26328
        return false;
26329
 
26330
      boolean this_present_wex = true && this.isSetWex();
26331
      boolean that_present_wex = true && that.isSetWex();
26332
      if (this_present_wex || that_present_wex) {
26333
        if (!(this_present_wex && that_present_wex))
26334
          return false;
26335
        if (!this.wex.equals(that.wex))
26336
          return false;
26337
      }
26338
 
26339
      return true;
26340
    }
26341
 
26342
    @Override
26343
    public int hashCode() {
26344
      return 0;
26345
    }
26346
 
26347
    public int compareTo(reshipfreebie_result other) {
26348
      if (!getClass().equals(other.getClass())) {
26349
        return getClass().getName().compareTo(other.getClass().getName());
26350
      }
26351
 
26352
      int lastComparison = 0;
26353
      reshipfreebie_result typedOther = (reshipfreebie_result)other;
26354
 
26355
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
26356
      if (lastComparison != 0) {
26357
        return lastComparison;
26358
      }
26359
      if (isSetWex()) {
26360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
26361
        if (lastComparison != 0) {
26362
          return lastComparison;
26363
        }
26364
      }
26365
      return 0;
26366
    }
26367
 
26368
    public _Fields fieldForId(int fieldId) {
26369
      return _Fields.findByThriftId(fieldId);
26370
    }
26371
 
26372
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26373
      org.apache.thrift.protocol.TField field;
26374
      iprot.readStructBegin();
26375
      while (true)
26376
      {
26377
        field = iprot.readFieldBegin();
26378
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26379
          break;
26380
        }
26381
        switch (field.id) {
26382
          case 1: // WEX
26383
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26384
              this.wex = new WarehouseServiceException();
26385
              this.wex.read(iprot);
26386
            } else { 
26387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26388
            }
26389
            break;
26390
          default:
26391
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26392
        }
26393
        iprot.readFieldEnd();
26394
      }
26395
      iprot.readStructEnd();
26396
      validate();
26397
    }
26398
 
26399
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26400
      oprot.writeStructBegin(STRUCT_DESC);
26401
 
26402
      if (this.isSetWex()) {
26403
        oprot.writeFieldBegin(WEX_FIELD_DESC);
26404
        this.wex.write(oprot);
26405
        oprot.writeFieldEnd();
26406
      }
26407
      oprot.writeFieldStop();
26408
      oprot.writeStructEnd();
26409
    }
26410
 
26411
    @Override
26412
    public String toString() {
26413
      StringBuilder sb = new StringBuilder("reshipfreebie_result(");
26414
      boolean first = true;
26415
 
26416
      sb.append("wex:");
26417
      if (this.wex == null) {
26418
        sb.append("null");
26419
      } else {
26420
        sb.append(this.wex);
26421
      }
26422
      first = false;
26423
      sb.append(")");
26424
      return sb.toString();
26425
    }
26426
 
26427
    public void validate() throws org.apache.thrift.TException {
26428
      // check for required fields
26429
    }
26430
 
26431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26432
      try {
26433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26434
      } catch (org.apache.thrift.TException te) {
26435
        throw new java.io.IOException(te);
26436
      }
26437
    }
26438
 
26439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26440
      try {
26441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26442
      } catch (org.apache.thrift.TException te) {
26443
        throw new java.io.IOException(te);
26444
      }
26445
    }
26446
 
26447
  }
26448
 
7410 amar.kumar 26449
  public static class isItemTransferAllowed_args implements org.apache.thrift.TBase<isItemTransferAllowed_args, isItemTransferAllowed_args._Fields>, java.io.Serializable, Cloneable   {
26450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_args");
26451
 
26452
    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)1);
26453
    private static final org.apache.thrift.protocol.TField TRANSFER_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
26454
 
26455
    private long warehouseId; // required
26456
    private long transferWarehouseId; // required
26457
 
26458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26460
      WAREHOUSE_ID((short)1, "warehouseId"),
26461
      TRANSFER_WAREHOUSE_ID((short)2, "transferWarehouseId");
26462
 
26463
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26464
 
26465
      static {
26466
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26467
          byName.put(field.getFieldName(), field);
26468
        }
26469
      }
26470
 
26471
      /**
26472
       * Find the _Fields constant that matches fieldId, or null if its not found.
26473
       */
26474
      public static _Fields findByThriftId(int fieldId) {
26475
        switch(fieldId) {
26476
          case 1: // WAREHOUSE_ID
26477
            return WAREHOUSE_ID;
26478
          case 2: // TRANSFER_WAREHOUSE_ID
26479
            return TRANSFER_WAREHOUSE_ID;
26480
          default:
26481
            return null;
26482
        }
26483
      }
26484
 
26485
      /**
26486
       * Find the _Fields constant that matches fieldId, throwing an exception
26487
       * if it is not found.
26488
       */
26489
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26490
        _Fields fields = findByThriftId(fieldId);
26491
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26492
        return fields;
26493
      }
26494
 
26495
      /**
26496
       * Find the _Fields constant that matches name, or null if its not found.
26497
       */
26498
      public static _Fields findByName(String name) {
26499
        return byName.get(name);
26500
      }
26501
 
26502
      private final short _thriftId;
26503
      private final String _fieldName;
26504
 
26505
      _Fields(short thriftId, String fieldName) {
26506
        _thriftId = thriftId;
26507
        _fieldName = fieldName;
26508
      }
26509
 
26510
      public short getThriftFieldId() {
26511
        return _thriftId;
26512
      }
26513
 
26514
      public String getFieldName() {
26515
        return _fieldName;
26516
      }
26517
    }
26518
 
26519
    // isset id assignments
26520
    private static final int __WAREHOUSEID_ISSET_ID = 0;
26521
    private static final int __TRANSFERWAREHOUSEID_ISSET_ID = 1;
26522
    private BitSet __isset_bit_vector = new BitSet(2);
26523
 
26524
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26525
    static {
26526
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26527
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26529
      tmpMap.put(_Fields.TRANSFER_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("transferWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26531
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26532
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_args.class, metaDataMap);
26533
    }
26534
 
26535
    public isItemTransferAllowed_args() {
26536
    }
26537
 
26538
    public isItemTransferAllowed_args(
26539
      long warehouseId,
26540
      long transferWarehouseId)
26541
    {
26542
      this();
26543
      this.warehouseId = warehouseId;
26544
      setWarehouseIdIsSet(true);
26545
      this.transferWarehouseId = transferWarehouseId;
26546
      setTransferWarehouseIdIsSet(true);
26547
    }
26548
 
26549
    /**
26550
     * Performs a deep copy on <i>other</i>.
26551
     */
26552
    public isItemTransferAllowed_args(isItemTransferAllowed_args other) {
26553
      __isset_bit_vector.clear();
26554
      __isset_bit_vector.or(other.__isset_bit_vector);
26555
      this.warehouseId = other.warehouseId;
26556
      this.transferWarehouseId = other.transferWarehouseId;
26557
    }
26558
 
26559
    public isItemTransferAllowed_args deepCopy() {
26560
      return new isItemTransferAllowed_args(this);
26561
    }
26562
 
26563
    @Override
26564
    public void clear() {
26565
      setWarehouseIdIsSet(false);
26566
      this.warehouseId = 0;
26567
      setTransferWarehouseIdIsSet(false);
26568
      this.transferWarehouseId = 0;
26569
    }
26570
 
26571
    public long getWarehouseId() {
26572
      return this.warehouseId;
26573
    }
26574
 
26575
    public void setWarehouseId(long warehouseId) {
26576
      this.warehouseId = warehouseId;
26577
      setWarehouseIdIsSet(true);
26578
    }
26579
 
26580
    public void unsetWarehouseId() {
26581
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
26582
    }
26583
 
26584
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
26585
    public boolean isSetWarehouseId() {
26586
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
26587
    }
26588
 
26589
    public void setWarehouseIdIsSet(boolean value) {
26590
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
26591
    }
26592
 
26593
    public long getTransferWarehouseId() {
26594
      return this.transferWarehouseId;
26595
    }
26596
 
26597
    public void setTransferWarehouseId(long transferWarehouseId) {
26598
      this.transferWarehouseId = transferWarehouseId;
26599
      setTransferWarehouseIdIsSet(true);
26600
    }
26601
 
26602
    public void unsetTransferWarehouseId() {
26603
      __isset_bit_vector.clear(__TRANSFERWAREHOUSEID_ISSET_ID);
26604
    }
26605
 
26606
    /** Returns true if field transferWarehouseId is set (has been assigned a value) and false otherwise */
26607
    public boolean isSetTransferWarehouseId() {
26608
      return __isset_bit_vector.get(__TRANSFERWAREHOUSEID_ISSET_ID);
26609
    }
26610
 
26611
    public void setTransferWarehouseIdIsSet(boolean value) {
26612
      __isset_bit_vector.set(__TRANSFERWAREHOUSEID_ISSET_ID, value);
26613
    }
26614
 
26615
    public void setFieldValue(_Fields field, Object value) {
26616
      switch (field) {
26617
      case WAREHOUSE_ID:
26618
        if (value == null) {
26619
          unsetWarehouseId();
26620
        } else {
26621
          setWarehouseId((Long)value);
26622
        }
26623
        break;
26624
 
26625
      case TRANSFER_WAREHOUSE_ID:
26626
        if (value == null) {
26627
          unsetTransferWarehouseId();
26628
        } else {
26629
          setTransferWarehouseId((Long)value);
26630
        }
26631
        break;
26632
 
26633
      }
26634
    }
26635
 
26636
    public Object getFieldValue(_Fields field) {
26637
      switch (field) {
26638
      case WAREHOUSE_ID:
26639
        return Long.valueOf(getWarehouseId());
26640
 
26641
      case TRANSFER_WAREHOUSE_ID:
26642
        return Long.valueOf(getTransferWarehouseId());
26643
 
26644
      }
26645
      throw new IllegalStateException();
26646
    }
26647
 
26648
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26649
    public boolean isSet(_Fields field) {
26650
      if (field == null) {
26651
        throw new IllegalArgumentException();
26652
      }
26653
 
26654
      switch (field) {
26655
      case WAREHOUSE_ID:
26656
        return isSetWarehouseId();
26657
      case TRANSFER_WAREHOUSE_ID:
26658
        return isSetTransferWarehouseId();
26659
      }
26660
      throw new IllegalStateException();
26661
    }
26662
 
26663
    @Override
26664
    public boolean equals(Object that) {
26665
      if (that == null)
26666
        return false;
26667
      if (that instanceof isItemTransferAllowed_args)
26668
        return this.equals((isItemTransferAllowed_args)that);
26669
      return false;
26670
    }
26671
 
26672
    public boolean equals(isItemTransferAllowed_args that) {
26673
      if (that == null)
26674
        return false;
26675
 
26676
      boolean this_present_warehouseId = true;
26677
      boolean that_present_warehouseId = true;
26678
      if (this_present_warehouseId || that_present_warehouseId) {
26679
        if (!(this_present_warehouseId && that_present_warehouseId))
26680
          return false;
26681
        if (this.warehouseId != that.warehouseId)
26682
          return false;
26683
      }
26684
 
26685
      boolean this_present_transferWarehouseId = true;
26686
      boolean that_present_transferWarehouseId = true;
26687
      if (this_present_transferWarehouseId || that_present_transferWarehouseId) {
26688
        if (!(this_present_transferWarehouseId && that_present_transferWarehouseId))
26689
          return false;
26690
        if (this.transferWarehouseId != that.transferWarehouseId)
26691
          return false;
26692
      }
26693
 
26694
      return true;
26695
    }
26696
 
26697
    @Override
26698
    public int hashCode() {
26699
      return 0;
26700
    }
26701
 
26702
    public int compareTo(isItemTransferAllowed_args other) {
26703
      if (!getClass().equals(other.getClass())) {
26704
        return getClass().getName().compareTo(other.getClass().getName());
26705
      }
26706
 
26707
      int lastComparison = 0;
26708
      isItemTransferAllowed_args typedOther = (isItemTransferAllowed_args)other;
26709
 
26710
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
26711
      if (lastComparison != 0) {
26712
        return lastComparison;
26713
      }
26714
      if (isSetWarehouseId()) {
26715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
26716
        if (lastComparison != 0) {
26717
          return lastComparison;
26718
        }
26719
      }
26720
      lastComparison = Boolean.valueOf(isSetTransferWarehouseId()).compareTo(typedOther.isSetTransferWarehouseId());
26721
      if (lastComparison != 0) {
26722
        return lastComparison;
26723
      }
26724
      if (isSetTransferWarehouseId()) {
26725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferWarehouseId, typedOther.transferWarehouseId);
26726
        if (lastComparison != 0) {
26727
          return lastComparison;
26728
        }
26729
      }
26730
      return 0;
26731
    }
26732
 
26733
    public _Fields fieldForId(int fieldId) {
26734
      return _Fields.findByThriftId(fieldId);
26735
    }
26736
 
26737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26738
      org.apache.thrift.protocol.TField field;
26739
      iprot.readStructBegin();
26740
      while (true)
26741
      {
26742
        field = iprot.readFieldBegin();
26743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26744
          break;
26745
        }
26746
        switch (field.id) {
26747
          case 1: // WAREHOUSE_ID
26748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26749
              this.warehouseId = iprot.readI64();
26750
              setWarehouseIdIsSet(true);
26751
            } else { 
26752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26753
            }
26754
            break;
26755
          case 2: // TRANSFER_WAREHOUSE_ID
26756
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26757
              this.transferWarehouseId = iprot.readI64();
26758
              setTransferWarehouseIdIsSet(true);
26759
            } else { 
26760
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26761
            }
26762
            break;
26763
          default:
26764
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26765
        }
26766
        iprot.readFieldEnd();
26767
      }
26768
      iprot.readStructEnd();
26769
      validate();
26770
    }
26771
 
26772
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26773
      validate();
26774
 
26775
      oprot.writeStructBegin(STRUCT_DESC);
26776
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
26777
      oprot.writeI64(this.warehouseId);
26778
      oprot.writeFieldEnd();
26779
      oprot.writeFieldBegin(TRANSFER_WAREHOUSE_ID_FIELD_DESC);
26780
      oprot.writeI64(this.transferWarehouseId);
26781
      oprot.writeFieldEnd();
26782
      oprot.writeFieldStop();
26783
      oprot.writeStructEnd();
26784
    }
26785
 
26786
    @Override
26787
    public String toString() {
26788
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_args(");
26789
      boolean first = true;
26790
 
26791
      sb.append("warehouseId:");
26792
      sb.append(this.warehouseId);
26793
      first = false;
26794
      if (!first) sb.append(", ");
26795
      sb.append("transferWarehouseId:");
26796
      sb.append(this.transferWarehouseId);
26797
      first = false;
26798
      sb.append(")");
26799
      return sb.toString();
26800
    }
26801
 
26802
    public void validate() throws org.apache.thrift.TException {
26803
      // check for required fields
26804
    }
26805
 
26806
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26807
      try {
26808
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26809
      } catch (org.apache.thrift.TException te) {
26810
        throw new java.io.IOException(te);
26811
      }
26812
    }
26813
 
26814
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26815
      try {
26816
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26817
        __isset_bit_vector = new BitSet(1);
26818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26819
      } catch (org.apache.thrift.TException te) {
26820
        throw new java.io.IOException(te);
26821
      }
26822
    }
26823
 
26824
  }
26825
 
26826
  public static class isItemTransferAllowed_result implements org.apache.thrift.TBase<isItemTransferAllowed_result, isItemTransferAllowed_result._Fields>, java.io.Serializable, Cloneable   {
26827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isItemTransferAllowed_result");
26828
 
26829
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
26830
 
26831
    private boolean success; // required
26832
 
26833
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26834
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26835
      SUCCESS((short)0, "success");
26836
 
26837
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26838
 
26839
      static {
26840
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26841
          byName.put(field.getFieldName(), field);
26842
        }
26843
      }
26844
 
26845
      /**
26846
       * Find the _Fields constant that matches fieldId, or null if its not found.
26847
       */
26848
      public static _Fields findByThriftId(int fieldId) {
26849
        switch(fieldId) {
26850
          case 0: // SUCCESS
26851
            return SUCCESS;
26852
          default:
26853
            return null;
26854
        }
26855
      }
26856
 
26857
      /**
26858
       * Find the _Fields constant that matches fieldId, throwing an exception
26859
       * if it is not found.
26860
       */
26861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26862
        _Fields fields = findByThriftId(fieldId);
26863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26864
        return fields;
26865
      }
26866
 
26867
      /**
26868
       * Find the _Fields constant that matches name, or null if its not found.
26869
       */
26870
      public static _Fields findByName(String name) {
26871
        return byName.get(name);
26872
      }
26873
 
26874
      private final short _thriftId;
26875
      private final String _fieldName;
26876
 
26877
      _Fields(short thriftId, String fieldName) {
26878
        _thriftId = thriftId;
26879
        _fieldName = fieldName;
26880
      }
26881
 
26882
      public short getThriftFieldId() {
26883
        return _thriftId;
26884
      }
26885
 
26886
      public String getFieldName() {
26887
        return _fieldName;
26888
      }
26889
    }
26890
 
26891
    // isset id assignments
26892
    private static final int __SUCCESS_ISSET_ID = 0;
26893
    private BitSet __isset_bit_vector = new BitSet(1);
26894
 
26895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26896
    static {
26897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
26900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isItemTransferAllowed_result.class, metaDataMap);
26902
    }
26903
 
26904
    public isItemTransferAllowed_result() {
26905
    }
26906
 
26907
    public isItemTransferAllowed_result(
26908
      boolean success)
26909
    {
26910
      this();
26911
      this.success = success;
26912
      setSuccessIsSet(true);
26913
    }
26914
 
26915
    /**
26916
     * Performs a deep copy on <i>other</i>.
26917
     */
26918
    public isItemTransferAllowed_result(isItemTransferAllowed_result other) {
26919
      __isset_bit_vector.clear();
26920
      __isset_bit_vector.or(other.__isset_bit_vector);
26921
      this.success = other.success;
26922
    }
26923
 
26924
    public isItemTransferAllowed_result deepCopy() {
26925
      return new isItemTransferAllowed_result(this);
26926
    }
26927
 
26928
    @Override
26929
    public void clear() {
26930
      setSuccessIsSet(false);
26931
      this.success = false;
26932
    }
26933
 
26934
    public boolean isSuccess() {
26935
      return this.success;
26936
    }
26937
 
26938
    public void setSuccess(boolean success) {
26939
      this.success = success;
26940
      setSuccessIsSet(true);
26941
    }
26942
 
26943
    public void unsetSuccess() {
26944
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
26945
    }
26946
 
26947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26948
    public boolean isSetSuccess() {
26949
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
26950
    }
26951
 
26952
    public void setSuccessIsSet(boolean value) {
26953
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
26954
    }
26955
 
26956
    public void setFieldValue(_Fields field, Object value) {
26957
      switch (field) {
26958
      case SUCCESS:
26959
        if (value == null) {
26960
          unsetSuccess();
26961
        } else {
26962
          setSuccess((Boolean)value);
26963
        }
26964
        break;
26965
 
26966
      }
26967
    }
26968
 
26969
    public Object getFieldValue(_Fields field) {
26970
      switch (field) {
26971
      case SUCCESS:
26972
        return Boolean.valueOf(isSuccess());
26973
 
26974
      }
26975
      throw new IllegalStateException();
26976
    }
26977
 
26978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26979
    public boolean isSet(_Fields field) {
26980
      if (field == null) {
26981
        throw new IllegalArgumentException();
26982
      }
26983
 
26984
      switch (field) {
26985
      case SUCCESS:
26986
        return isSetSuccess();
26987
      }
26988
      throw new IllegalStateException();
26989
    }
26990
 
26991
    @Override
26992
    public boolean equals(Object that) {
26993
      if (that == null)
26994
        return false;
26995
      if (that instanceof isItemTransferAllowed_result)
26996
        return this.equals((isItemTransferAllowed_result)that);
26997
      return false;
26998
    }
26999
 
27000
    public boolean equals(isItemTransferAllowed_result that) {
27001
      if (that == null)
27002
        return false;
27003
 
27004
      boolean this_present_success = true;
27005
      boolean that_present_success = true;
27006
      if (this_present_success || that_present_success) {
27007
        if (!(this_present_success && that_present_success))
27008
          return false;
27009
        if (this.success != that.success)
27010
          return false;
27011
      }
27012
 
27013
      return true;
27014
    }
27015
 
27016
    @Override
27017
    public int hashCode() {
27018
      return 0;
27019
    }
27020
 
27021
    public int compareTo(isItemTransferAllowed_result other) {
27022
      if (!getClass().equals(other.getClass())) {
27023
        return getClass().getName().compareTo(other.getClass().getName());
27024
      }
27025
 
27026
      int lastComparison = 0;
27027
      isItemTransferAllowed_result typedOther = (isItemTransferAllowed_result)other;
27028
 
27029
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27030
      if (lastComparison != 0) {
27031
        return lastComparison;
27032
      }
27033
      if (isSetSuccess()) {
27034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27035
        if (lastComparison != 0) {
27036
          return lastComparison;
27037
        }
27038
      }
27039
      return 0;
27040
    }
27041
 
27042
    public _Fields fieldForId(int fieldId) {
27043
      return _Fields.findByThriftId(fieldId);
27044
    }
27045
 
27046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27047
      org.apache.thrift.protocol.TField field;
27048
      iprot.readStructBegin();
27049
      while (true)
27050
      {
27051
        field = iprot.readFieldBegin();
27052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27053
          break;
27054
        }
27055
        switch (field.id) {
27056
          case 0: // SUCCESS
27057
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
27058
              this.success = iprot.readBool();
27059
              setSuccessIsSet(true);
27060
            } else { 
27061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27062
            }
27063
            break;
27064
          default:
27065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27066
        }
27067
        iprot.readFieldEnd();
27068
      }
27069
      iprot.readStructEnd();
27070
      validate();
27071
    }
27072
 
27073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27074
      oprot.writeStructBegin(STRUCT_DESC);
27075
 
27076
      if (this.isSetSuccess()) {
27077
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27078
        oprot.writeBool(this.success);
27079
        oprot.writeFieldEnd();
27080
      }
27081
      oprot.writeFieldStop();
27082
      oprot.writeStructEnd();
27083
    }
27084
 
27085
    @Override
27086
    public String toString() {
27087
      StringBuilder sb = new StringBuilder("isItemTransferAllowed_result(");
27088
      boolean first = true;
27089
 
27090
      sb.append("success:");
27091
      sb.append(this.success);
27092
      first = false;
27093
      sb.append(")");
27094
      return sb.toString();
27095
    }
27096
 
27097
    public void validate() throws org.apache.thrift.TException {
27098
      // check for required fields
27099
    }
27100
 
27101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27102
      try {
27103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27104
      } catch (org.apache.thrift.TException te) {
27105
        throw new java.io.IOException(te);
27106
      }
27107
    }
27108
 
27109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27110
      try {
27111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27112
      } catch (org.apache.thrift.TException te) {
27113
        throw new java.io.IOException(te);
27114
      }
27115
    }
27116
 
27117
  }
27118
 
27119
  public static class createTransferLot_args implements org.apache.thrift.TBase<createTransferLot_args, createTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
27120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_args");
27121
 
27122
    private static final org.apache.thrift.protocol.TField ORIGIN_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originWarehouseId", org.apache.thrift.protocol.TType.I64, (short)1);
27123
    private static final org.apache.thrift.protocol.TField DEST_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("destWarehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
27124
 
27125
    private long originWarehouseId; // required
27126
    private long destWarehouseId; // required
27127
 
27128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27130
      ORIGIN_WAREHOUSE_ID((short)1, "originWarehouseId"),
27131
      DEST_WAREHOUSE_ID((short)2, "destWarehouseId");
27132
 
27133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27134
 
27135
      static {
27136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27137
          byName.put(field.getFieldName(), field);
27138
        }
27139
      }
27140
 
27141
      /**
27142
       * Find the _Fields constant that matches fieldId, or null if its not found.
27143
       */
27144
      public static _Fields findByThriftId(int fieldId) {
27145
        switch(fieldId) {
27146
          case 1: // ORIGIN_WAREHOUSE_ID
27147
            return ORIGIN_WAREHOUSE_ID;
27148
          case 2: // DEST_WAREHOUSE_ID
27149
            return DEST_WAREHOUSE_ID;
27150
          default:
27151
            return null;
27152
        }
27153
      }
27154
 
27155
      /**
27156
       * Find the _Fields constant that matches fieldId, throwing an exception
27157
       * if it is not found.
27158
       */
27159
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27160
        _Fields fields = findByThriftId(fieldId);
27161
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27162
        return fields;
27163
      }
27164
 
27165
      /**
27166
       * Find the _Fields constant that matches name, or null if its not found.
27167
       */
27168
      public static _Fields findByName(String name) {
27169
        return byName.get(name);
27170
      }
27171
 
27172
      private final short _thriftId;
27173
      private final String _fieldName;
27174
 
27175
      _Fields(short thriftId, String fieldName) {
27176
        _thriftId = thriftId;
27177
        _fieldName = fieldName;
27178
      }
27179
 
27180
      public short getThriftFieldId() {
27181
        return _thriftId;
27182
      }
27183
 
27184
      public String getFieldName() {
27185
        return _fieldName;
27186
      }
27187
    }
27188
 
27189
    // isset id assignments
27190
    private static final int __ORIGINWAREHOUSEID_ISSET_ID = 0;
27191
    private static final int __DESTWAREHOUSEID_ISSET_ID = 1;
27192
    private BitSet __isset_bit_vector = new BitSet(2);
27193
 
27194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27195
    static {
27196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27197
      tmpMap.put(_Fields.ORIGIN_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("originWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27199
      tmpMap.put(_Fields.DEST_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("destWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_args.class, metaDataMap);
27203
    }
27204
 
27205
    public createTransferLot_args() {
27206
    }
27207
 
27208
    public createTransferLot_args(
27209
      long originWarehouseId,
27210
      long destWarehouseId)
27211
    {
27212
      this();
27213
      this.originWarehouseId = originWarehouseId;
27214
      setOriginWarehouseIdIsSet(true);
27215
      this.destWarehouseId = destWarehouseId;
27216
      setDestWarehouseIdIsSet(true);
27217
    }
27218
 
27219
    /**
27220
     * Performs a deep copy on <i>other</i>.
27221
     */
27222
    public createTransferLot_args(createTransferLot_args other) {
27223
      __isset_bit_vector.clear();
27224
      __isset_bit_vector.or(other.__isset_bit_vector);
27225
      this.originWarehouseId = other.originWarehouseId;
27226
      this.destWarehouseId = other.destWarehouseId;
27227
    }
27228
 
27229
    public createTransferLot_args deepCopy() {
27230
      return new createTransferLot_args(this);
27231
    }
27232
 
27233
    @Override
27234
    public void clear() {
27235
      setOriginWarehouseIdIsSet(false);
27236
      this.originWarehouseId = 0;
27237
      setDestWarehouseIdIsSet(false);
27238
      this.destWarehouseId = 0;
27239
    }
27240
 
27241
    public long getOriginWarehouseId() {
27242
      return this.originWarehouseId;
27243
    }
27244
 
27245
    public void setOriginWarehouseId(long originWarehouseId) {
27246
      this.originWarehouseId = originWarehouseId;
27247
      setOriginWarehouseIdIsSet(true);
27248
    }
27249
 
27250
    public void unsetOriginWarehouseId() {
27251
      __isset_bit_vector.clear(__ORIGINWAREHOUSEID_ISSET_ID);
27252
    }
27253
 
27254
    /** Returns true if field originWarehouseId is set (has been assigned a value) and false otherwise */
27255
    public boolean isSetOriginWarehouseId() {
27256
      return __isset_bit_vector.get(__ORIGINWAREHOUSEID_ISSET_ID);
27257
    }
27258
 
27259
    public void setOriginWarehouseIdIsSet(boolean value) {
27260
      __isset_bit_vector.set(__ORIGINWAREHOUSEID_ISSET_ID, value);
27261
    }
27262
 
27263
    public long getDestWarehouseId() {
27264
      return this.destWarehouseId;
27265
    }
27266
 
27267
    public void setDestWarehouseId(long destWarehouseId) {
27268
      this.destWarehouseId = destWarehouseId;
27269
      setDestWarehouseIdIsSet(true);
27270
    }
27271
 
27272
    public void unsetDestWarehouseId() {
27273
      __isset_bit_vector.clear(__DESTWAREHOUSEID_ISSET_ID);
27274
    }
27275
 
27276
    /** Returns true if field destWarehouseId is set (has been assigned a value) and false otherwise */
27277
    public boolean isSetDestWarehouseId() {
27278
      return __isset_bit_vector.get(__DESTWAREHOUSEID_ISSET_ID);
27279
    }
27280
 
27281
    public void setDestWarehouseIdIsSet(boolean value) {
27282
      __isset_bit_vector.set(__DESTWAREHOUSEID_ISSET_ID, value);
27283
    }
27284
 
27285
    public void setFieldValue(_Fields field, Object value) {
27286
      switch (field) {
27287
      case ORIGIN_WAREHOUSE_ID:
27288
        if (value == null) {
27289
          unsetOriginWarehouseId();
27290
        } else {
27291
          setOriginWarehouseId((Long)value);
27292
        }
27293
        break;
27294
 
27295
      case DEST_WAREHOUSE_ID:
27296
        if (value == null) {
27297
          unsetDestWarehouseId();
27298
        } else {
27299
          setDestWarehouseId((Long)value);
27300
        }
27301
        break;
27302
 
27303
      }
27304
    }
27305
 
27306
    public Object getFieldValue(_Fields field) {
27307
      switch (field) {
27308
      case ORIGIN_WAREHOUSE_ID:
27309
        return Long.valueOf(getOriginWarehouseId());
27310
 
27311
      case DEST_WAREHOUSE_ID:
27312
        return Long.valueOf(getDestWarehouseId());
27313
 
27314
      }
27315
      throw new IllegalStateException();
27316
    }
27317
 
27318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27319
    public boolean isSet(_Fields field) {
27320
      if (field == null) {
27321
        throw new IllegalArgumentException();
27322
      }
27323
 
27324
      switch (field) {
27325
      case ORIGIN_WAREHOUSE_ID:
27326
        return isSetOriginWarehouseId();
27327
      case DEST_WAREHOUSE_ID:
27328
        return isSetDestWarehouseId();
27329
      }
27330
      throw new IllegalStateException();
27331
    }
27332
 
27333
    @Override
27334
    public boolean equals(Object that) {
27335
      if (that == null)
27336
        return false;
27337
      if (that instanceof createTransferLot_args)
27338
        return this.equals((createTransferLot_args)that);
27339
      return false;
27340
    }
27341
 
27342
    public boolean equals(createTransferLot_args that) {
27343
      if (that == null)
27344
        return false;
27345
 
27346
      boolean this_present_originWarehouseId = true;
27347
      boolean that_present_originWarehouseId = true;
27348
      if (this_present_originWarehouseId || that_present_originWarehouseId) {
27349
        if (!(this_present_originWarehouseId && that_present_originWarehouseId))
27350
          return false;
27351
        if (this.originWarehouseId != that.originWarehouseId)
27352
          return false;
27353
      }
27354
 
27355
      boolean this_present_destWarehouseId = true;
27356
      boolean that_present_destWarehouseId = true;
27357
      if (this_present_destWarehouseId || that_present_destWarehouseId) {
27358
        if (!(this_present_destWarehouseId && that_present_destWarehouseId))
27359
          return false;
27360
        if (this.destWarehouseId != that.destWarehouseId)
27361
          return false;
27362
      }
27363
 
27364
      return true;
27365
    }
27366
 
27367
    @Override
27368
    public int hashCode() {
27369
      return 0;
27370
    }
27371
 
27372
    public int compareTo(createTransferLot_args other) {
27373
      if (!getClass().equals(other.getClass())) {
27374
        return getClass().getName().compareTo(other.getClass().getName());
27375
      }
27376
 
27377
      int lastComparison = 0;
27378
      createTransferLot_args typedOther = (createTransferLot_args)other;
27379
 
27380
      lastComparison = Boolean.valueOf(isSetOriginWarehouseId()).compareTo(typedOther.isSetOriginWarehouseId());
27381
      if (lastComparison != 0) {
27382
        return lastComparison;
27383
      }
27384
      if (isSetOriginWarehouseId()) {
27385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originWarehouseId, typedOther.originWarehouseId);
27386
        if (lastComparison != 0) {
27387
          return lastComparison;
27388
        }
27389
      }
27390
      lastComparison = Boolean.valueOf(isSetDestWarehouseId()).compareTo(typedOther.isSetDestWarehouseId());
27391
      if (lastComparison != 0) {
27392
        return lastComparison;
27393
      }
27394
      if (isSetDestWarehouseId()) {
27395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destWarehouseId, typedOther.destWarehouseId);
27396
        if (lastComparison != 0) {
27397
          return lastComparison;
27398
        }
27399
      }
27400
      return 0;
27401
    }
27402
 
27403
    public _Fields fieldForId(int fieldId) {
27404
      return _Fields.findByThriftId(fieldId);
27405
    }
27406
 
27407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27408
      org.apache.thrift.protocol.TField field;
27409
      iprot.readStructBegin();
27410
      while (true)
27411
      {
27412
        field = iprot.readFieldBegin();
27413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27414
          break;
27415
        }
27416
        switch (field.id) {
27417
          case 1: // ORIGIN_WAREHOUSE_ID
27418
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27419
              this.originWarehouseId = iprot.readI64();
27420
              setOriginWarehouseIdIsSet(true);
27421
            } else { 
27422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27423
            }
27424
            break;
27425
          case 2: // DEST_WAREHOUSE_ID
27426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27427
              this.destWarehouseId = iprot.readI64();
27428
              setDestWarehouseIdIsSet(true);
27429
            } else { 
27430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27431
            }
27432
            break;
27433
          default:
27434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27435
        }
27436
        iprot.readFieldEnd();
27437
      }
27438
      iprot.readStructEnd();
27439
      validate();
27440
    }
27441
 
27442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27443
      validate();
27444
 
27445
      oprot.writeStructBegin(STRUCT_DESC);
27446
      oprot.writeFieldBegin(ORIGIN_WAREHOUSE_ID_FIELD_DESC);
27447
      oprot.writeI64(this.originWarehouseId);
27448
      oprot.writeFieldEnd();
27449
      oprot.writeFieldBegin(DEST_WAREHOUSE_ID_FIELD_DESC);
27450
      oprot.writeI64(this.destWarehouseId);
27451
      oprot.writeFieldEnd();
27452
      oprot.writeFieldStop();
27453
      oprot.writeStructEnd();
27454
    }
27455
 
27456
    @Override
27457
    public String toString() {
27458
      StringBuilder sb = new StringBuilder("createTransferLot_args(");
27459
      boolean first = true;
27460
 
27461
      sb.append("originWarehouseId:");
27462
      sb.append(this.originWarehouseId);
27463
      first = false;
27464
      if (!first) sb.append(", ");
27465
      sb.append("destWarehouseId:");
27466
      sb.append(this.destWarehouseId);
27467
      first = false;
27468
      sb.append(")");
27469
      return sb.toString();
27470
    }
27471
 
27472
    public void validate() throws org.apache.thrift.TException {
27473
      // check for required fields
27474
    }
27475
 
27476
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27477
      try {
27478
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27479
      } catch (org.apache.thrift.TException te) {
27480
        throw new java.io.IOException(te);
27481
      }
27482
    }
27483
 
27484
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27485
      try {
27486
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27487
        __isset_bit_vector = new BitSet(1);
27488
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27489
      } catch (org.apache.thrift.TException te) {
27490
        throw new java.io.IOException(te);
27491
      }
27492
    }
27493
 
27494
  }
27495
 
27496
  public static class createTransferLot_result implements org.apache.thrift.TBase<createTransferLot_result, createTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
27497
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransferLot_result");
27498
 
27499
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
27500
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27501
 
27502
    private long success; // required
27503
    private WarehouseServiceException wex; // required
27504
 
27505
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27506
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27507
      SUCCESS((short)0, "success"),
27508
      WEX((short)1, "wex");
27509
 
27510
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27511
 
27512
      static {
27513
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27514
          byName.put(field.getFieldName(), field);
27515
        }
27516
      }
27517
 
27518
      /**
27519
       * Find the _Fields constant that matches fieldId, or null if its not found.
27520
       */
27521
      public static _Fields findByThriftId(int fieldId) {
27522
        switch(fieldId) {
27523
          case 0: // SUCCESS
27524
            return SUCCESS;
27525
          case 1: // WEX
27526
            return WEX;
27527
          default:
27528
            return null;
27529
        }
27530
      }
27531
 
27532
      /**
27533
       * Find the _Fields constant that matches fieldId, throwing an exception
27534
       * if it is not found.
27535
       */
27536
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27537
        _Fields fields = findByThriftId(fieldId);
27538
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27539
        return fields;
27540
      }
27541
 
27542
      /**
27543
       * Find the _Fields constant that matches name, or null if its not found.
27544
       */
27545
      public static _Fields findByName(String name) {
27546
        return byName.get(name);
27547
      }
27548
 
27549
      private final short _thriftId;
27550
      private final String _fieldName;
27551
 
27552
      _Fields(short thriftId, String fieldName) {
27553
        _thriftId = thriftId;
27554
        _fieldName = fieldName;
27555
      }
27556
 
27557
      public short getThriftFieldId() {
27558
        return _thriftId;
27559
      }
27560
 
27561
      public String getFieldName() {
27562
        return _fieldName;
27563
      }
27564
    }
27565
 
27566
    // isset id assignments
27567
    private static final int __SUCCESS_ISSET_ID = 0;
27568
    private BitSet __isset_bit_vector = new BitSet(1);
27569
 
27570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27571
    static {
27572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27573
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27575
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createTransferLot_result.class, metaDataMap);
27579
    }
27580
 
27581
    public createTransferLot_result() {
27582
    }
27583
 
27584
    public createTransferLot_result(
27585
      long success,
27586
      WarehouseServiceException wex)
27587
    {
27588
      this();
27589
      this.success = success;
27590
      setSuccessIsSet(true);
27591
      this.wex = wex;
27592
    }
27593
 
27594
    /**
27595
     * Performs a deep copy on <i>other</i>.
27596
     */
27597
    public createTransferLot_result(createTransferLot_result other) {
27598
      __isset_bit_vector.clear();
27599
      __isset_bit_vector.or(other.__isset_bit_vector);
27600
      this.success = other.success;
27601
      if (other.isSetWex()) {
27602
        this.wex = new WarehouseServiceException(other.wex);
27603
      }
27604
    }
27605
 
27606
    public createTransferLot_result deepCopy() {
27607
      return new createTransferLot_result(this);
27608
    }
27609
 
27610
    @Override
27611
    public void clear() {
27612
      setSuccessIsSet(false);
27613
      this.success = 0;
27614
      this.wex = null;
27615
    }
27616
 
27617
    public long getSuccess() {
27618
      return this.success;
27619
    }
27620
 
27621
    public void setSuccess(long success) {
27622
      this.success = success;
27623
      setSuccessIsSet(true);
27624
    }
27625
 
27626
    public void unsetSuccess() {
27627
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
27628
    }
27629
 
27630
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27631
    public boolean isSetSuccess() {
27632
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
27633
    }
27634
 
27635
    public void setSuccessIsSet(boolean value) {
27636
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
27637
    }
27638
 
27639
    public WarehouseServiceException getWex() {
27640
      return this.wex;
27641
    }
27642
 
27643
    public void setWex(WarehouseServiceException wex) {
27644
      this.wex = wex;
27645
    }
27646
 
27647
    public void unsetWex() {
27648
      this.wex = null;
27649
    }
27650
 
27651
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
27652
    public boolean isSetWex() {
27653
      return this.wex != null;
27654
    }
27655
 
27656
    public void setWexIsSet(boolean value) {
27657
      if (!value) {
27658
        this.wex = null;
27659
      }
27660
    }
27661
 
27662
    public void setFieldValue(_Fields field, Object value) {
27663
      switch (field) {
27664
      case SUCCESS:
27665
        if (value == null) {
27666
          unsetSuccess();
27667
        } else {
27668
          setSuccess((Long)value);
27669
        }
27670
        break;
27671
 
27672
      case WEX:
27673
        if (value == null) {
27674
          unsetWex();
27675
        } else {
27676
          setWex((WarehouseServiceException)value);
27677
        }
27678
        break;
27679
 
27680
      }
27681
    }
27682
 
27683
    public Object getFieldValue(_Fields field) {
27684
      switch (field) {
27685
      case SUCCESS:
27686
        return Long.valueOf(getSuccess());
27687
 
27688
      case WEX:
27689
        return getWex();
27690
 
27691
      }
27692
      throw new IllegalStateException();
27693
    }
27694
 
27695
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27696
    public boolean isSet(_Fields field) {
27697
      if (field == null) {
27698
        throw new IllegalArgumentException();
27699
      }
27700
 
27701
      switch (field) {
27702
      case SUCCESS:
27703
        return isSetSuccess();
27704
      case WEX:
27705
        return isSetWex();
27706
      }
27707
      throw new IllegalStateException();
27708
    }
27709
 
27710
    @Override
27711
    public boolean equals(Object that) {
27712
      if (that == null)
27713
        return false;
27714
      if (that instanceof createTransferLot_result)
27715
        return this.equals((createTransferLot_result)that);
27716
      return false;
27717
    }
27718
 
27719
    public boolean equals(createTransferLot_result that) {
27720
      if (that == null)
27721
        return false;
27722
 
27723
      boolean this_present_success = true;
27724
      boolean that_present_success = true;
27725
      if (this_present_success || that_present_success) {
27726
        if (!(this_present_success && that_present_success))
27727
          return false;
27728
        if (this.success != that.success)
27729
          return false;
27730
      }
27731
 
27732
      boolean this_present_wex = true && this.isSetWex();
27733
      boolean that_present_wex = true && that.isSetWex();
27734
      if (this_present_wex || that_present_wex) {
27735
        if (!(this_present_wex && that_present_wex))
27736
          return false;
27737
        if (!this.wex.equals(that.wex))
27738
          return false;
27739
      }
27740
 
27741
      return true;
27742
    }
27743
 
27744
    @Override
27745
    public int hashCode() {
27746
      return 0;
27747
    }
27748
 
27749
    public int compareTo(createTransferLot_result other) {
27750
      if (!getClass().equals(other.getClass())) {
27751
        return getClass().getName().compareTo(other.getClass().getName());
27752
      }
27753
 
27754
      int lastComparison = 0;
27755
      createTransferLot_result typedOther = (createTransferLot_result)other;
27756
 
27757
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27758
      if (lastComparison != 0) {
27759
        return lastComparison;
27760
      }
27761
      if (isSetSuccess()) {
27762
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27763
        if (lastComparison != 0) {
27764
          return lastComparison;
27765
        }
27766
      }
27767
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
27768
      if (lastComparison != 0) {
27769
        return lastComparison;
27770
      }
27771
      if (isSetWex()) {
27772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
27773
        if (lastComparison != 0) {
27774
          return lastComparison;
27775
        }
27776
      }
27777
      return 0;
27778
    }
27779
 
27780
    public _Fields fieldForId(int fieldId) {
27781
      return _Fields.findByThriftId(fieldId);
27782
    }
27783
 
27784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27785
      org.apache.thrift.protocol.TField field;
27786
      iprot.readStructBegin();
27787
      while (true)
27788
      {
27789
        field = iprot.readFieldBegin();
27790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27791
          break;
27792
        }
27793
        switch (field.id) {
27794
          case 0: // SUCCESS
27795
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27796
              this.success = iprot.readI64();
27797
              setSuccessIsSet(true);
27798
            } else { 
27799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27800
            }
27801
            break;
27802
          case 1: // WEX
27803
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27804
              this.wex = new WarehouseServiceException();
27805
              this.wex.read(iprot);
27806
            } else { 
27807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27808
            }
27809
            break;
27810
          default:
27811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27812
        }
27813
        iprot.readFieldEnd();
27814
      }
27815
      iprot.readStructEnd();
27816
      validate();
27817
    }
27818
 
27819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27820
      oprot.writeStructBegin(STRUCT_DESC);
27821
 
27822
      if (this.isSetSuccess()) {
27823
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27824
        oprot.writeI64(this.success);
27825
        oprot.writeFieldEnd();
27826
      } else if (this.isSetWex()) {
27827
        oprot.writeFieldBegin(WEX_FIELD_DESC);
27828
        this.wex.write(oprot);
27829
        oprot.writeFieldEnd();
27830
      }
27831
      oprot.writeFieldStop();
27832
      oprot.writeStructEnd();
27833
    }
27834
 
27835
    @Override
27836
    public String toString() {
27837
      StringBuilder sb = new StringBuilder("createTransferLot_result(");
27838
      boolean first = true;
27839
 
27840
      sb.append("success:");
27841
      sb.append(this.success);
27842
      first = false;
27843
      if (!first) sb.append(", ");
27844
      sb.append("wex:");
27845
      if (this.wex == null) {
27846
        sb.append("null");
27847
      } else {
27848
        sb.append(this.wex);
27849
      }
27850
      first = false;
27851
      sb.append(")");
27852
      return sb.toString();
27853
    }
27854
 
27855
    public void validate() throws org.apache.thrift.TException {
27856
      // check for required fields
27857
    }
27858
 
27859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27860
      try {
27861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27862
      } catch (org.apache.thrift.TException te) {
27863
        throw new java.io.IOException(te);
27864
      }
27865
    }
27866
 
27867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27868
      try {
27869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27870
      } catch (org.apache.thrift.TException te) {
27871
        throw new java.io.IOException(te);
27872
      }
27873
    }
27874
 
27875
  }
27876
 
27877
  public static class getTransferLot_args implements org.apache.thrift.TBase<getTransferLot_args, getTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
27878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_args");
27879
 
27880
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
27881
 
27882
    private long transferLotId; // required
27883
 
27884
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27885
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27886
      TRANSFER_LOT_ID((short)1, "transferLotId");
27887
 
27888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27889
 
27890
      static {
27891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27892
          byName.put(field.getFieldName(), field);
27893
        }
27894
      }
27895
 
27896
      /**
27897
       * Find the _Fields constant that matches fieldId, or null if its not found.
27898
       */
27899
      public static _Fields findByThriftId(int fieldId) {
27900
        switch(fieldId) {
27901
          case 1: // TRANSFER_LOT_ID
27902
            return TRANSFER_LOT_ID;
27903
          default:
27904
            return null;
27905
        }
27906
      }
27907
 
27908
      /**
27909
       * Find the _Fields constant that matches fieldId, throwing an exception
27910
       * if it is not found.
27911
       */
27912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27913
        _Fields fields = findByThriftId(fieldId);
27914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27915
        return fields;
27916
      }
27917
 
27918
      /**
27919
       * Find the _Fields constant that matches name, or null if its not found.
27920
       */
27921
      public static _Fields findByName(String name) {
27922
        return byName.get(name);
27923
      }
27924
 
27925
      private final short _thriftId;
27926
      private final String _fieldName;
27927
 
27928
      _Fields(short thriftId, String fieldName) {
27929
        _thriftId = thriftId;
27930
        _fieldName = fieldName;
27931
      }
27932
 
27933
      public short getThriftFieldId() {
27934
        return _thriftId;
27935
      }
27936
 
27937
      public String getFieldName() {
27938
        return _fieldName;
27939
      }
27940
    }
27941
 
27942
    // isset id assignments
27943
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
27944
    private BitSet __isset_bit_vector = new BitSet(1);
27945
 
27946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27947
    static {
27948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27949
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
27951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_args.class, metaDataMap);
27953
    }
27954
 
27955
    public getTransferLot_args() {
27956
    }
27957
 
27958
    public getTransferLot_args(
27959
      long transferLotId)
27960
    {
27961
      this();
27962
      this.transferLotId = transferLotId;
27963
      setTransferLotIdIsSet(true);
27964
    }
27965
 
27966
    /**
27967
     * Performs a deep copy on <i>other</i>.
27968
     */
27969
    public getTransferLot_args(getTransferLot_args other) {
27970
      __isset_bit_vector.clear();
27971
      __isset_bit_vector.or(other.__isset_bit_vector);
27972
      this.transferLotId = other.transferLotId;
27973
    }
27974
 
27975
    public getTransferLot_args deepCopy() {
27976
      return new getTransferLot_args(this);
27977
    }
27978
 
27979
    @Override
27980
    public void clear() {
27981
      setTransferLotIdIsSet(false);
27982
      this.transferLotId = 0;
27983
    }
27984
 
27985
    public long getTransferLotId() {
27986
      return this.transferLotId;
27987
    }
27988
 
27989
    public void setTransferLotId(long transferLotId) {
27990
      this.transferLotId = transferLotId;
27991
      setTransferLotIdIsSet(true);
27992
    }
27993
 
27994
    public void unsetTransferLotId() {
27995
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
27996
    }
27997
 
27998
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
27999
    public boolean isSetTransferLotId() {
28000
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
28001
    }
28002
 
28003
    public void setTransferLotIdIsSet(boolean value) {
28004
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
28005
    }
28006
 
28007
    public void setFieldValue(_Fields field, Object value) {
28008
      switch (field) {
28009
      case TRANSFER_LOT_ID:
28010
        if (value == null) {
28011
          unsetTransferLotId();
28012
        } else {
28013
          setTransferLotId((Long)value);
28014
        }
28015
        break;
28016
 
28017
      }
28018
    }
28019
 
28020
    public Object getFieldValue(_Fields field) {
28021
      switch (field) {
28022
      case TRANSFER_LOT_ID:
28023
        return Long.valueOf(getTransferLotId());
28024
 
28025
      }
28026
      throw new IllegalStateException();
28027
    }
28028
 
28029
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28030
    public boolean isSet(_Fields field) {
28031
      if (field == null) {
28032
        throw new IllegalArgumentException();
28033
      }
28034
 
28035
      switch (field) {
28036
      case TRANSFER_LOT_ID:
28037
        return isSetTransferLotId();
28038
      }
28039
      throw new IllegalStateException();
28040
    }
28041
 
28042
    @Override
28043
    public boolean equals(Object that) {
28044
      if (that == null)
28045
        return false;
28046
      if (that instanceof getTransferLot_args)
28047
        return this.equals((getTransferLot_args)that);
28048
      return false;
28049
    }
28050
 
28051
    public boolean equals(getTransferLot_args that) {
28052
      if (that == null)
28053
        return false;
28054
 
28055
      boolean this_present_transferLotId = true;
28056
      boolean that_present_transferLotId = true;
28057
      if (this_present_transferLotId || that_present_transferLotId) {
28058
        if (!(this_present_transferLotId && that_present_transferLotId))
28059
          return false;
28060
        if (this.transferLotId != that.transferLotId)
28061
          return false;
28062
      }
28063
 
28064
      return true;
28065
    }
28066
 
28067
    @Override
28068
    public int hashCode() {
28069
      return 0;
28070
    }
28071
 
28072
    public int compareTo(getTransferLot_args other) {
28073
      if (!getClass().equals(other.getClass())) {
28074
        return getClass().getName().compareTo(other.getClass().getName());
28075
      }
28076
 
28077
      int lastComparison = 0;
28078
      getTransferLot_args typedOther = (getTransferLot_args)other;
28079
 
28080
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
28081
      if (lastComparison != 0) {
28082
        return lastComparison;
28083
      }
28084
      if (isSetTransferLotId()) {
28085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
28086
        if (lastComparison != 0) {
28087
          return lastComparison;
28088
        }
28089
      }
28090
      return 0;
28091
    }
28092
 
28093
    public _Fields fieldForId(int fieldId) {
28094
      return _Fields.findByThriftId(fieldId);
28095
    }
28096
 
28097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28098
      org.apache.thrift.protocol.TField field;
28099
      iprot.readStructBegin();
28100
      while (true)
28101
      {
28102
        field = iprot.readFieldBegin();
28103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28104
          break;
28105
        }
28106
        switch (field.id) {
28107
          case 1: // TRANSFER_LOT_ID
28108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28109
              this.transferLotId = iprot.readI64();
28110
              setTransferLotIdIsSet(true);
28111
            } else { 
28112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28113
            }
28114
            break;
28115
          default:
28116
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28117
        }
28118
        iprot.readFieldEnd();
28119
      }
28120
      iprot.readStructEnd();
28121
      validate();
28122
    }
28123
 
28124
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28125
      validate();
28126
 
28127
      oprot.writeStructBegin(STRUCT_DESC);
28128
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
28129
      oprot.writeI64(this.transferLotId);
28130
      oprot.writeFieldEnd();
28131
      oprot.writeFieldStop();
28132
      oprot.writeStructEnd();
28133
    }
28134
 
28135
    @Override
28136
    public String toString() {
28137
      StringBuilder sb = new StringBuilder("getTransferLot_args(");
28138
      boolean first = true;
28139
 
28140
      sb.append("transferLotId:");
28141
      sb.append(this.transferLotId);
28142
      first = false;
28143
      sb.append(")");
28144
      return sb.toString();
28145
    }
28146
 
28147
    public void validate() throws org.apache.thrift.TException {
28148
      // check for required fields
28149
    }
28150
 
28151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28152
      try {
28153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28154
      } catch (org.apache.thrift.TException te) {
28155
        throw new java.io.IOException(te);
28156
      }
28157
    }
28158
 
28159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28160
      try {
28161
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28162
        __isset_bit_vector = new BitSet(1);
28163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28164
      } catch (org.apache.thrift.TException te) {
28165
        throw new java.io.IOException(te);
28166
      }
28167
    }
28168
 
28169
  }
28170
 
28171
  public static class getTransferLot_result implements org.apache.thrift.TBase<getTransferLot_result, getTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
28172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLot_result");
28173
 
28174
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
28175
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28176
 
28177
    private TransferLot success; // required
28178
    private WarehouseServiceException wex; // required
28179
 
28180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28182
      SUCCESS((short)0, "success"),
28183
      WEX((short)1, "wex");
28184
 
28185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28186
 
28187
      static {
28188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28189
          byName.put(field.getFieldName(), field);
28190
        }
28191
      }
28192
 
28193
      /**
28194
       * Find the _Fields constant that matches fieldId, or null if its not found.
28195
       */
28196
      public static _Fields findByThriftId(int fieldId) {
28197
        switch(fieldId) {
28198
          case 0: // SUCCESS
28199
            return SUCCESS;
28200
          case 1: // WEX
28201
            return WEX;
28202
          default:
28203
            return null;
28204
        }
28205
      }
28206
 
28207
      /**
28208
       * Find the _Fields constant that matches fieldId, throwing an exception
28209
       * if it is not found.
28210
       */
28211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28212
        _Fields fields = findByThriftId(fieldId);
28213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28214
        return fields;
28215
      }
28216
 
28217
      /**
28218
       * Find the _Fields constant that matches name, or null if its not found.
28219
       */
28220
      public static _Fields findByName(String name) {
28221
        return byName.get(name);
28222
      }
28223
 
28224
      private final short _thriftId;
28225
      private final String _fieldName;
28226
 
28227
      _Fields(short thriftId, String fieldName) {
28228
        _thriftId = thriftId;
28229
        _fieldName = fieldName;
28230
      }
28231
 
28232
      public short getThriftFieldId() {
28233
        return _thriftId;
28234
      }
28235
 
28236
      public String getFieldName() {
28237
        return _fieldName;
28238
      }
28239
    }
28240
 
28241
    // isset id assignments
28242
 
28243
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28244
    static {
28245
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28246
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28247
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class)));
28248
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28250
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28251
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLot_result.class, metaDataMap);
28252
    }
28253
 
28254
    public getTransferLot_result() {
28255
    }
28256
 
28257
    public getTransferLot_result(
28258
      TransferLot success,
28259
      WarehouseServiceException wex)
28260
    {
28261
      this();
28262
      this.success = success;
28263
      this.wex = wex;
28264
    }
28265
 
28266
    /**
28267
     * Performs a deep copy on <i>other</i>.
28268
     */
28269
    public getTransferLot_result(getTransferLot_result other) {
28270
      if (other.isSetSuccess()) {
28271
        this.success = new TransferLot(other.success);
28272
      }
28273
      if (other.isSetWex()) {
28274
        this.wex = new WarehouseServiceException(other.wex);
28275
      }
28276
    }
28277
 
28278
    public getTransferLot_result deepCopy() {
28279
      return new getTransferLot_result(this);
28280
    }
28281
 
28282
    @Override
28283
    public void clear() {
28284
      this.success = null;
28285
      this.wex = null;
28286
    }
28287
 
28288
    public TransferLot getSuccess() {
28289
      return this.success;
28290
    }
28291
 
28292
    public void setSuccess(TransferLot success) {
28293
      this.success = success;
28294
    }
28295
 
28296
    public void unsetSuccess() {
28297
      this.success = null;
28298
    }
28299
 
28300
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28301
    public boolean isSetSuccess() {
28302
      return this.success != null;
28303
    }
28304
 
28305
    public void setSuccessIsSet(boolean value) {
28306
      if (!value) {
28307
        this.success = null;
28308
      }
28309
    }
28310
 
28311
    public WarehouseServiceException getWex() {
28312
      return this.wex;
28313
    }
28314
 
28315
    public void setWex(WarehouseServiceException wex) {
28316
      this.wex = wex;
28317
    }
28318
 
28319
    public void unsetWex() {
28320
      this.wex = null;
28321
    }
28322
 
28323
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
28324
    public boolean isSetWex() {
28325
      return this.wex != null;
28326
    }
28327
 
28328
    public void setWexIsSet(boolean value) {
28329
      if (!value) {
28330
        this.wex = null;
28331
      }
28332
    }
28333
 
28334
    public void setFieldValue(_Fields field, Object value) {
28335
      switch (field) {
28336
      case SUCCESS:
28337
        if (value == null) {
28338
          unsetSuccess();
28339
        } else {
28340
          setSuccess((TransferLot)value);
28341
        }
28342
        break;
28343
 
28344
      case WEX:
28345
        if (value == null) {
28346
          unsetWex();
28347
        } else {
28348
          setWex((WarehouseServiceException)value);
28349
        }
28350
        break;
28351
 
28352
      }
28353
    }
28354
 
28355
    public Object getFieldValue(_Fields field) {
28356
      switch (field) {
28357
      case SUCCESS:
28358
        return getSuccess();
28359
 
28360
      case WEX:
28361
        return getWex();
28362
 
28363
      }
28364
      throw new IllegalStateException();
28365
    }
28366
 
28367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28368
    public boolean isSet(_Fields field) {
28369
      if (field == null) {
28370
        throw new IllegalArgumentException();
28371
      }
28372
 
28373
      switch (field) {
28374
      case SUCCESS:
28375
        return isSetSuccess();
28376
      case WEX:
28377
        return isSetWex();
28378
      }
28379
      throw new IllegalStateException();
28380
    }
28381
 
28382
    @Override
28383
    public boolean equals(Object that) {
28384
      if (that == null)
28385
        return false;
28386
      if (that instanceof getTransferLot_result)
28387
        return this.equals((getTransferLot_result)that);
28388
      return false;
28389
    }
28390
 
28391
    public boolean equals(getTransferLot_result that) {
28392
      if (that == null)
28393
        return false;
28394
 
28395
      boolean this_present_success = true && this.isSetSuccess();
28396
      boolean that_present_success = true && that.isSetSuccess();
28397
      if (this_present_success || that_present_success) {
28398
        if (!(this_present_success && that_present_success))
28399
          return false;
28400
        if (!this.success.equals(that.success))
28401
          return false;
28402
      }
28403
 
28404
      boolean this_present_wex = true && this.isSetWex();
28405
      boolean that_present_wex = true && that.isSetWex();
28406
      if (this_present_wex || that_present_wex) {
28407
        if (!(this_present_wex && that_present_wex))
28408
          return false;
28409
        if (!this.wex.equals(that.wex))
28410
          return false;
28411
      }
28412
 
28413
      return true;
28414
    }
28415
 
28416
    @Override
28417
    public int hashCode() {
28418
      return 0;
28419
    }
28420
 
28421
    public int compareTo(getTransferLot_result other) {
28422
      if (!getClass().equals(other.getClass())) {
28423
        return getClass().getName().compareTo(other.getClass().getName());
28424
      }
28425
 
28426
      int lastComparison = 0;
28427
      getTransferLot_result typedOther = (getTransferLot_result)other;
28428
 
28429
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28430
      if (lastComparison != 0) {
28431
        return lastComparison;
28432
      }
28433
      if (isSetSuccess()) {
28434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28435
        if (lastComparison != 0) {
28436
          return lastComparison;
28437
        }
28438
      }
28439
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
28440
      if (lastComparison != 0) {
28441
        return lastComparison;
28442
      }
28443
      if (isSetWex()) {
28444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
28445
        if (lastComparison != 0) {
28446
          return lastComparison;
28447
        }
28448
      }
28449
      return 0;
28450
    }
28451
 
28452
    public _Fields fieldForId(int fieldId) {
28453
      return _Fields.findByThriftId(fieldId);
28454
    }
28455
 
28456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28457
      org.apache.thrift.protocol.TField field;
28458
      iprot.readStructBegin();
28459
      while (true)
28460
      {
28461
        field = iprot.readFieldBegin();
28462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28463
          break;
28464
        }
28465
        switch (field.id) {
28466
          case 0: // SUCCESS
28467
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28468
              this.success = new TransferLot();
28469
              this.success.read(iprot);
28470
            } else { 
28471
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28472
            }
28473
            break;
28474
          case 1: // WEX
28475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28476
              this.wex = new WarehouseServiceException();
28477
              this.wex.read(iprot);
28478
            } else { 
28479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28480
            }
28481
            break;
28482
          default:
28483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28484
        }
28485
        iprot.readFieldEnd();
28486
      }
28487
      iprot.readStructEnd();
28488
      validate();
28489
    }
28490
 
28491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28492
      oprot.writeStructBegin(STRUCT_DESC);
28493
 
28494
      if (this.isSetSuccess()) {
28495
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28496
        this.success.write(oprot);
28497
        oprot.writeFieldEnd();
28498
      } else if (this.isSetWex()) {
28499
        oprot.writeFieldBegin(WEX_FIELD_DESC);
28500
        this.wex.write(oprot);
28501
        oprot.writeFieldEnd();
28502
      }
28503
      oprot.writeFieldStop();
28504
      oprot.writeStructEnd();
28505
    }
28506
 
28507
    @Override
28508
    public String toString() {
28509
      StringBuilder sb = new StringBuilder("getTransferLot_result(");
28510
      boolean first = true;
28511
 
28512
      sb.append("success:");
28513
      if (this.success == null) {
28514
        sb.append("null");
28515
      } else {
28516
        sb.append(this.success);
28517
      }
28518
      first = false;
28519
      if (!first) sb.append(", ");
28520
      sb.append("wex:");
28521
      if (this.wex == null) {
28522
        sb.append("null");
28523
      } else {
28524
        sb.append(this.wex);
28525
      }
28526
      first = false;
28527
      sb.append(")");
28528
      return sb.toString();
28529
    }
28530
 
28531
    public void validate() throws org.apache.thrift.TException {
28532
      // check for required fields
28533
    }
28534
 
28535
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28536
      try {
28537
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28538
      } catch (org.apache.thrift.TException te) {
28539
        throw new java.io.IOException(te);
28540
      }
28541
    }
28542
 
28543
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28544
      try {
28545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28546
      } catch (org.apache.thrift.TException te) {
28547
        throw new java.io.IOException(te);
28548
      }
28549
    }
28550
 
28551
  }
28552
 
28553
  public static class markTransferLotAsReceived_args implements org.apache.thrift.TBase<markTransferLotAsReceived_args, markTransferLotAsReceived_args._Fields>, java.io.Serializable, Cloneable   {
28554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_args");
28555
 
28556
    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);
28557
    private static final org.apache.thrift.protocol.TField REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("remoteTransferRefNumber", org.apache.thrift.protocol.TType.STRING, (short)2);
28558
 
28559
    private long id; // required
28560
    private String remoteTransferRefNumber; // required
28561
 
28562
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28563
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28564
      ID((short)1, "id"),
28565
      REMOTE_TRANSFER_REF_NUMBER((short)2, "remoteTransferRefNumber");
28566
 
28567
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28568
 
28569
      static {
28570
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28571
          byName.put(field.getFieldName(), field);
28572
        }
28573
      }
28574
 
28575
      /**
28576
       * Find the _Fields constant that matches fieldId, or null if its not found.
28577
       */
28578
      public static _Fields findByThriftId(int fieldId) {
28579
        switch(fieldId) {
28580
          case 1: // ID
28581
            return ID;
28582
          case 2: // REMOTE_TRANSFER_REF_NUMBER
28583
            return REMOTE_TRANSFER_REF_NUMBER;
28584
          default:
28585
            return null;
28586
        }
28587
      }
28588
 
28589
      /**
28590
       * Find the _Fields constant that matches fieldId, throwing an exception
28591
       * if it is not found.
28592
       */
28593
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28594
        _Fields fields = findByThriftId(fieldId);
28595
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28596
        return fields;
28597
      }
28598
 
28599
      /**
28600
       * Find the _Fields constant that matches name, or null if its not found.
28601
       */
28602
      public static _Fields findByName(String name) {
28603
        return byName.get(name);
28604
      }
28605
 
28606
      private final short _thriftId;
28607
      private final String _fieldName;
28608
 
28609
      _Fields(short thriftId, String fieldName) {
28610
        _thriftId = thriftId;
28611
        _fieldName = fieldName;
28612
      }
28613
 
28614
      public short getThriftFieldId() {
28615
        return _thriftId;
28616
      }
28617
 
28618
      public String getFieldName() {
28619
        return _fieldName;
28620
      }
28621
    }
28622
 
28623
    // isset id assignments
28624
    private static final int __ID_ISSET_ID = 0;
28625
    private BitSet __isset_bit_vector = new BitSet(1);
28626
 
28627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28628
    static {
28629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28630
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28631
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28632
      tmpMap.put(_Fields.REMOTE_TRANSFER_REF_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("remoteTransferRefNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
28634
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28635
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_args.class, metaDataMap);
28636
    }
28637
 
28638
    public markTransferLotAsReceived_args() {
28639
    }
28640
 
28641
    public markTransferLotAsReceived_args(
28642
      long id,
28643
      String remoteTransferRefNumber)
28644
    {
28645
      this();
28646
      this.id = id;
28647
      setIdIsSet(true);
28648
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28649
    }
28650
 
28651
    /**
28652
     * Performs a deep copy on <i>other</i>.
28653
     */
28654
    public markTransferLotAsReceived_args(markTransferLotAsReceived_args other) {
28655
      __isset_bit_vector.clear();
28656
      __isset_bit_vector.or(other.__isset_bit_vector);
28657
      this.id = other.id;
28658
      if (other.isSetRemoteTransferRefNumber()) {
28659
        this.remoteTransferRefNumber = other.remoteTransferRefNumber;
28660
      }
28661
    }
28662
 
28663
    public markTransferLotAsReceived_args deepCopy() {
28664
      return new markTransferLotAsReceived_args(this);
28665
    }
28666
 
28667
    @Override
28668
    public void clear() {
28669
      setIdIsSet(false);
28670
      this.id = 0;
28671
      this.remoteTransferRefNumber = null;
28672
    }
28673
 
28674
    public long getId() {
28675
      return this.id;
28676
    }
28677
 
28678
    public void setId(long id) {
28679
      this.id = id;
28680
      setIdIsSet(true);
28681
    }
28682
 
28683
    public void unsetId() {
28684
      __isset_bit_vector.clear(__ID_ISSET_ID);
28685
    }
28686
 
28687
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
28688
    public boolean isSetId() {
28689
      return __isset_bit_vector.get(__ID_ISSET_ID);
28690
    }
28691
 
28692
    public void setIdIsSet(boolean value) {
28693
      __isset_bit_vector.set(__ID_ISSET_ID, value);
28694
    }
28695
 
28696
    public String getRemoteTransferRefNumber() {
28697
      return this.remoteTransferRefNumber;
28698
    }
28699
 
28700
    public void setRemoteTransferRefNumber(String remoteTransferRefNumber) {
28701
      this.remoteTransferRefNumber = remoteTransferRefNumber;
28702
    }
28703
 
28704
    public void unsetRemoteTransferRefNumber() {
28705
      this.remoteTransferRefNumber = null;
28706
    }
28707
 
28708
    /** Returns true if field remoteTransferRefNumber is set (has been assigned a value) and false otherwise */
28709
    public boolean isSetRemoteTransferRefNumber() {
28710
      return this.remoteTransferRefNumber != null;
28711
    }
28712
 
28713
    public void setRemoteTransferRefNumberIsSet(boolean value) {
28714
      if (!value) {
28715
        this.remoteTransferRefNumber = null;
28716
      }
28717
    }
28718
 
28719
    public void setFieldValue(_Fields field, Object value) {
28720
      switch (field) {
28721
      case ID:
28722
        if (value == null) {
28723
          unsetId();
28724
        } else {
28725
          setId((Long)value);
28726
        }
28727
        break;
28728
 
28729
      case REMOTE_TRANSFER_REF_NUMBER:
28730
        if (value == null) {
28731
          unsetRemoteTransferRefNumber();
28732
        } else {
28733
          setRemoteTransferRefNumber((String)value);
28734
        }
28735
        break;
28736
 
28737
      }
28738
    }
28739
 
28740
    public Object getFieldValue(_Fields field) {
28741
      switch (field) {
28742
      case ID:
28743
        return Long.valueOf(getId());
28744
 
28745
      case REMOTE_TRANSFER_REF_NUMBER:
28746
        return getRemoteTransferRefNumber();
28747
 
28748
      }
28749
      throw new IllegalStateException();
28750
    }
28751
 
28752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28753
    public boolean isSet(_Fields field) {
28754
      if (field == null) {
28755
        throw new IllegalArgumentException();
28756
      }
28757
 
28758
      switch (field) {
28759
      case ID:
28760
        return isSetId();
28761
      case REMOTE_TRANSFER_REF_NUMBER:
28762
        return isSetRemoteTransferRefNumber();
28763
      }
28764
      throw new IllegalStateException();
28765
    }
28766
 
28767
    @Override
28768
    public boolean equals(Object that) {
28769
      if (that == null)
28770
        return false;
28771
      if (that instanceof markTransferLotAsReceived_args)
28772
        return this.equals((markTransferLotAsReceived_args)that);
28773
      return false;
28774
    }
28775
 
28776
    public boolean equals(markTransferLotAsReceived_args that) {
28777
      if (that == null)
28778
        return false;
28779
 
28780
      boolean this_present_id = true;
28781
      boolean that_present_id = true;
28782
      if (this_present_id || that_present_id) {
28783
        if (!(this_present_id && that_present_id))
28784
          return false;
28785
        if (this.id != that.id)
28786
          return false;
28787
      }
28788
 
28789
      boolean this_present_remoteTransferRefNumber = true && this.isSetRemoteTransferRefNumber();
28790
      boolean that_present_remoteTransferRefNumber = true && that.isSetRemoteTransferRefNumber();
28791
      if (this_present_remoteTransferRefNumber || that_present_remoteTransferRefNumber) {
28792
        if (!(this_present_remoteTransferRefNumber && that_present_remoteTransferRefNumber))
28793
          return false;
28794
        if (!this.remoteTransferRefNumber.equals(that.remoteTransferRefNumber))
28795
          return false;
28796
      }
28797
 
28798
      return true;
28799
    }
28800
 
28801
    @Override
28802
    public int hashCode() {
28803
      return 0;
28804
    }
28805
 
28806
    public int compareTo(markTransferLotAsReceived_args other) {
28807
      if (!getClass().equals(other.getClass())) {
28808
        return getClass().getName().compareTo(other.getClass().getName());
28809
      }
28810
 
28811
      int lastComparison = 0;
28812
      markTransferLotAsReceived_args typedOther = (markTransferLotAsReceived_args)other;
28813
 
28814
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
28815
      if (lastComparison != 0) {
28816
        return lastComparison;
28817
      }
28818
      if (isSetId()) {
28819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
28820
        if (lastComparison != 0) {
28821
          return lastComparison;
28822
        }
28823
      }
28824
      lastComparison = Boolean.valueOf(isSetRemoteTransferRefNumber()).compareTo(typedOther.isSetRemoteTransferRefNumber());
28825
      if (lastComparison != 0) {
28826
        return lastComparison;
28827
      }
28828
      if (isSetRemoteTransferRefNumber()) {
28829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.remoteTransferRefNumber, typedOther.remoteTransferRefNumber);
28830
        if (lastComparison != 0) {
28831
          return lastComparison;
28832
        }
28833
      }
28834
      return 0;
28835
    }
28836
 
28837
    public _Fields fieldForId(int fieldId) {
28838
      return _Fields.findByThriftId(fieldId);
28839
    }
28840
 
28841
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28842
      org.apache.thrift.protocol.TField field;
28843
      iprot.readStructBegin();
28844
      while (true)
28845
      {
28846
        field = iprot.readFieldBegin();
28847
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28848
          break;
28849
        }
28850
        switch (field.id) {
28851
          case 1: // ID
28852
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28853
              this.id = iprot.readI64();
28854
              setIdIsSet(true);
28855
            } else { 
28856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28857
            }
28858
            break;
28859
          case 2: // REMOTE_TRANSFER_REF_NUMBER
28860
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
28861
              this.remoteTransferRefNumber = iprot.readString();
28862
            } else { 
28863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28864
            }
28865
            break;
28866
          default:
28867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28868
        }
28869
        iprot.readFieldEnd();
28870
      }
28871
      iprot.readStructEnd();
28872
      validate();
28873
    }
28874
 
28875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28876
      validate();
28877
 
28878
      oprot.writeStructBegin(STRUCT_DESC);
28879
      oprot.writeFieldBegin(ID_FIELD_DESC);
28880
      oprot.writeI64(this.id);
28881
      oprot.writeFieldEnd();
28882
      if (this.remoteTransferRefNumber != null) {
28883
        oprot.writeFieldBegin(REMOTE_TRANSFER_REF_NUMBER_FIELD_DESC);
28884
        oprot.writeString(this.remoteTransferRefNumber);
28885
        oprot.writeFieldEnd();
28886
      }
28887
      oprot.writeFieldStop();
28888
      oprot.writeStructEnd();
28889
    }
28890
 
28891
    @Override
28892
    public String toString() {
28893
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_args(");
28894
      boolean first = true;
28895
 
28896
      sb.append("id:");
28897
      sb.append(this.id);
28898
      first = false;
28899
      if (!first) sb.append(", ");
28900
      sb.append("remoteTransferRefNumber:");
28901
      if (this.remoteTransferRefNumber == null) {
28902
        sb.append("null");
28903
      } else {
28904
        sb.append(this.remoteTransferRefNumber);
28905
      }
28906
      first = false;
28907
      sb.append(")");
28908
      return sb.toString();
28909
    }
28910
 
28911
    public void validate() throws org.apache.thrift.TException {
28912
      // check for required fields
28913
    }
28914
 
28915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28916
      try {
28917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28918
      } catch (org.apache.thrift.TException te) {
28919
        throw new java.io.IOException(te);
28920
      }
28921
    }
28922
 
28923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28924
      try {
28925
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28926
        __isset_bit_vector = new BitSet(1);
28927
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28928
      } catch (org.apache.thrift.TException te) {
28929
        throw new java.io.IOException(te);
28930
      }
28931
    }
28932
 
28933
  }
28934
 
28935
  public static class markTransferLotAsReceived_result implements org.apache.thrift.TBase<markTransferLotAsReceived_result, markTransferLotAsReceived_result._Fields>, java.io.Serializable, Cloneable   {
28936
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markTransferLotAsReceived_result");
28937
 
28938
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
28939
 
28940
    private WarehouseServiceException wex; // required
28941
 
28942
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28943
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28944
      WEX((short)1, "wex");
28945
 
28946
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28947
 
28948
      static {
28949
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28950
          byName.put(field.getFieldName(), field);
28951
        }
28952
      }
28953
 
28954
      /**
28955
       * Find the _Fields constant that matches fieldId, or null if its not found.
28956
       */
28957
      public static _Fields findByThriftId(int fieldId) {
28958
        switch(fieldId) {
28959
          case 1: // WEX
28960
            return WEX;
28961
          default:
28962
            return null;
28963
        }
28964
      }
28965
 
28966
      /**
28967
       * Find the _Fields constant that matches fieldId, throwing an exception
28968
       * if it is not found.
28969
       */
28970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28971
        _Fields fields = findByThriftId(fieldId);
28972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28973
        return fields;
28974
      }
28975
 
28976
      /**
28977
       * Find the _Fields constant that matches name, or null if its not found.
28978
       */
28979
      public static _Fields findByName(String name) {
28980
        return byName.get(name);
28981
      }
28982
 
28983
      private final short _thriftId;
28984
      private final String _fieldName;
28985
 
28986
      _Fields(short thriftId, String fieldName) {
28987
        _thriftId = thriftId;
28988
        _fieldName = fieldName;
28989
      }
28990
 
28991
      public short getThriftFieldId() {
28992
        return _thriftId;
28993
      }
28994
 
28995
      public String getFieldName() {
28996
        return _fieldName;
28997
      }
28998
    }
28999
 
29000
    // isset id assignments
29001
 
29002
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29003
    static {
29004
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29005
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29006
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29007
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29008
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markTransferLotAsReceived_result.class, metaDataMap);
29009
    }
29010
 
29011
    public markTransferLotAsReceived_result() {
29012
    }
29013
 
29014
    public markTransferLotAsReceived_result(
29015
      WarehouseServiceException wex)
29016
    {
29017
      this();
29018
      this.wex = wex;
29019
    }
29020
 
29021
    /**
29022
     * Performs a deep copy on <i>other</i>.
29023
     */
29024
    public markTransferLotAsReceived_result(markTransferLotAsReceived_result other) {
29025
      if (other.isSetWex()) {
29026
        this.wex = new WarehouseServiceException(other.wex);
29027
      }
29028
    }
29029
 
29030
    public markTransferLotAsReceived_result deepCopy() {
29031
      return new markTransferLotAsReceived_result(this);
29032
    }
29033
 
29034
    @Override
29035
    public void clear() {
29036
      this.wex = null;
29037
    }
29038
 
29039
    public WarehouseServiceException getWex() {
29040
      return this.wex;
29041
    }
29042
 
29043
    public void setWex(WarehouseServiceException wex) {
29044
      this.wex = wex;
29045
    }
29046
 
29047
    public void unsetWex() {
29048
      this.wex = null;
29049
    }
29050
 
29051
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29052
    public boolean isSetWex() {
29053
      return this.wex != null;
29054
    }
29055
 
29056
    public void setWexIsSet(boolean value) {
29057
      if (!value) {
29058
        this.wex = null;
29059
      }
29060
    }
29061
 
29062
    public void setFieldValue(_Fields field, Object value) {
29063
      switch (field) {
29064
      case WEX:
29065
        if (value == null) {
29066
          unsetWex();
29067
        } else {
29068
          setWex((WarehouseServiceException)value);
29069
        }
29070
        break;
29071
 
29072
      }
29073
    }
29074
 
29075
    public Object getFieldValue(_Fields field) {
29076
      switch (field) {
29077
      case WEX:
29078
        return getWex();
29079
 
29080
      }
29081
      throw new IllegalStateException();
29082
    }
29083
 
29084
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29085
    public boolean isSet(_Fields field) {
29086
      if (field == null) {
29087
        throw new IllegalArgumentException();
29088
      }
29089
 
29090
      switch (field) {
29091
      case WEX:
29092
        return isSetWex();
29093
      }
29094
      throw new IllegalStateException();
29095
    }
29096
 
29097
    @Override
29098
    public boolean equals(Object that) {
29099
      if (that == null)
29100
        return false;
29101
      if (that instanceof markTransferLotAsReceived_result)
29102
        return this.equals((markTransferLotAsReceived_result)that);
29103
      return false;
29104
    }
29105
 
29106
    public boolean equals(markTransferLotAsReceived_result that) {
29107
      if (that == null)
29108
        return false;
29109
 
29110
      boolean this_present_wex = true && this.isSetWex();
29111
      boolean that_present_wex = true && that.isSetWex();
29112
      if (this_present_wex || that_present_wex) {
29113
        if (!(this_present_wex && that_present_wex))
29114
          return false;
29115
        if (!this.wex.equals(that.wex))
29116
          return false;
29117
      }
29118
 
29119
      return true;
29120
    }
29121
 
29122
    @Override
29123
    public int hashCode() {
29124
      return 0;
29125
    }
29126
 
29127
    public int compareTo(markTransferLotAsReceived_result other) {
29128
      if (!getClass().equals(other.getClass())) {
29129
        return getClass().getName().compareTo(other.getClass().getName());
29130
      }
29131
 
29132
      int lastComparison = 0;
29133
      markTransferLotAsReceived_result typedOther = (markTransferLotAsReceived_result)other;
29134
 
29135
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
29136
      if (lastComparison != 0) {
29137
        return lastComparison;
29138
      }
29139
      if (isSetWex()) {
29140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
29141
        if (lastComparison != 0) {
29142
          return lastComparison;
29143
        }
29144
      }
29145
      return 0;
29146
    }
29147
 
29148
    public _Fields fieldForId(int fieldId) {
29149
      return _Fields.findByThriftId(fieldId);
29150
    }
29151
 
29152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29153
      org.apache.thrift.protocol.TField field;
29154
      iprot.readStructBegin();
29155
      while (true)
29156
      {
29157
        field = iprot.readFieldBegin();
29158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29159
          break;
29160
        }
29161
        switch (field.id) {
29162
          case 1: // WEX
29163
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29164
              this.wex = new WarehouseServiceException();
29165
              this.wex.read(iprot);
29166
            } else { 
29167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29168
            }
29169
            break;
29170
          default:
29171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29172
        }
29173
        iprot.readFieldEnd();
29174
      }
29175
      iprot.readStructEnd();
29176
      validate();
29177
    }
29178
 
29179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29180
      oprot.writeStructBegin(STRUCT_DESC);
29181
 
29182
      if (this.isSetWex()) {
29183
        oprot.writeFieldBegin(WEX_FIELD_DESC);
29184
        this.wex.write(oprot);
29185
        oprot.writeFieldEnd();
29186
      }
29187
      oprot.writeFieldStop();
29188
      oprot.writeStructEnd();
29189
    }
29190
 
29191
    @Override
29192
    public String toString() {
29193
      StringBuilder sb = new StringBuilder("markTransferLotAsReceived_result(");
29194
      boolean first = true;
29195
 
29196
      sb.append("wex:");
29197
      if (this.wex == null) {
29198
        sb.append("null");
29199
      } else {
29200
        sb.append(this.wex);
29201
      }
29202
      first = false;
29203
      sb.append(")");
29204
      return sb.toString();
29205
    }
29206
 
29207
    public void validate() throws org.apache.thrift.TException {
29208
      // check for required fields
29209
    }
29210
 
29211
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29212
      try {
29213
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29214
      } catch (org.apache.thrift.TException te) {
29215
        throw new java.io.IOException(te);
29216
      }
29217
    }
29218
 
29219
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29220
      try {
29221
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29222
      } catch (org.apache.thrift.TException te) {
29223
        throw new java.io.IOException(te);
29224
      }
29225
    }
29226
 
29227
  }
29228
 
29229
  public static class getTransferLotsByDate_args implements org.apache.thrift.TBase<getTransferLotsByDate_args, getTransferLotsByDate_args._Fields>, java.io.Serializable, Cloneable   {
29230
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_args");
29231
 
29232
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)1);
29233
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)2);
29234
 
29235
    private long fromDate; // required
29236
    private long toDate; // required
29237
 
29238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29240
      FROM_DATE((short)1, "fromDate"),
29241
      TO_DATE((short)2, "toDate");
29242
 
29243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29244
 
29245
      static {
29246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29247
          byName.put(field.getFieldName(), field);
29248
        }
29249
      }
29250
 
29251
      /**
29252
       * Find the _Fields constant that matches fieldId, or null if its not found.
29253
       */
29254
      public static _Fields findByThriftId(int fieldId) {
29255
        switch(fieldId) {
29256
          case 1: // FROM_DATE
29257
            return FROM_DATE;
29258
          case 2: // TO_DATE
29259
            return TO_DATE;
29260
          default:
29261
            return null;
29262
        }
29263
      }
29264
 
29265
      /**
29266
       * Find the _Fields constant that matches fieldId, throwing an exception
29267
       * if it is not found.
29268
       */
29269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29270
        _Fields fields = findByThriftId(fieldId);
29271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29272
        return fields;
29273
      }
29274
 
29275
      /**
29276
       * Find the _Fields constant that matches name, or null if its not found.
29277
       */
29278
      public static _Fields findByName(String name) {
29279
        return byName.get(name);
29280
      }
29281
 
29282
      private final short _thriftId;
29283
      private final String _fieldName;
29284
 
29285
      _Fields(short thriftId, String fieldName) {
29286
        _thriftId = thriftId;
29287
        _fieldName = fieldName;
29288
      }
29289
 
29290
      public short getThriftFieldId() {
29291
        return _thriftId;
29292
      }
29293
 
29294
      public String getFieldName() {
29295
        return _fieldName;
29296
      }
29297
    }
29298
 
29299
    // isset id assignments
29300
    private static final int __FROMDATE_ISSET_ID = 0;
29301
    private static final int __TODATE_ISSET_ID = 1;
29302
    private BitSet __isset_bit_vector = new BitSet(2);
29303
 
29304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29305
    static {
29306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29307
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29308
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29309
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
29311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_args.class, metaDataMap);
29313
    }
29314
 
29315
    public getTransferLotsByDate_args() {
29316
    }
29317
 
29318
    public getTransferLotsByDate_args(
29319
      long fromDate,
29320
      long toDate)
29321
    {
29322
      this();
29323
      this.fromDate = fromDate;
29324
      setFromDateIsSet(true);
29325
      this.toDate = toDate;
29326
      setToDateIsSet(true);
29327
    }
29328
 
29329
    /**
29330
     * Performs a deep copy on <i>other</i>.
29331
     */
29332
    public getTransferLotsByDate_args(getTransferLotsByDate_args other) {
29333
      __isset_bit_vector.clear();
29334
      __isset_bit_vector.or(other.__isset_bit_vector);
29335
      this.fromDate = other.fromDate;
29336
      this.toDate = other.toDate;
29337
    }
29338
 
29339
    public getTransferLotsByDate_args deepCopy() {
29340
      return new getTransferLotsByDate_args(this);
29341
    }
29342
 
29343
    @Override
29344
    public void clear() {
29345
      setFromDateIsSet(false);
29346
      this.fromDate = 0;
29347
      setToDateIsSet(false);
29348
      this.toDate = 0;
29349
    }
29350
 
29351
    public long getFromDate() {
29352
      return this.fromDate;
29353
    }
29354
 
29355
    public void setFromDate(long fromDate) {
29356
      this.fromDate = fromDate;
29357
      setFromDateIsSet(true);
29358
    }
29359
 
29360
    public void unsetFromDate() {
29361
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
29362
    }
29363
 
29364
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
29365
    public boolean isSetFromDate() {
29366
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
29367
    }
29368
 
29369
    public void setFromDateIsSet(boolean value) {
29370
      __isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
29371
    }
29372
 
29373
    public long getToDate() {
29374
      return this.toDate;
29375
    }
29376
 
29377
    public void setToDate(long toDate) {
29378
      this.toDate = toDate;
29379
      setToDateIsSet(true);
29380
    }
29381
 
29382
    public void unsetToDate() {
29383
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
29384
    }
29385
 
29386
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
29387
    public boolean isSetToDate() {
29388
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
29389
    }
29390
 
29391
    public void setToDateIsSet(boolean value) {
29392
      __isset_bit_vector.set(__TODATE_ISSET_ID, value);
29393
    }
29394
 
29395
    public void setFieldValue(_Fields field, Object value) {
29396
      switch (field) {
29397
      case FROM_DATE:
29398
        if (value == null) {
29399
          unsetFromDate();
29400
        } else {
29401
          setFromDate((Long)value);
29402
        }
29403
        break;
29404
 
29405
      case TO_DATE:
29406
        if (value == null) {
29407
          unsetToDate();
29408
        } else {
29409
          setToDate((Long)value);
29410
        }
29411
        break;
29412
 
29413
      }
29414
    }
29415
 
29416
    public Object getFieldValue(_Fields field) {
29417
      switch (field) {
29418
      case FROM_DATE:
29419
        return Long.valueOf(getFromDate());
29420
 
29421
      case TO_DATE:
29422
        return Long.valueOf(getToDate());
29423
 
29424
      }
29425
      throw new IllegalStateException();
29426
    }
29427
 
29428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29429
    public boolean isSet(_Fields field) {
29430
      if (field == null) {
29431
        throw new IllegalArgumentException();
29432
      }
29433
 
29434
      switch (field) {
29435
      case FROM_DATE:
29436
        return isSetFromDate();
29437
      case TO_DATE:
29438
        return isSetToDate();
29439
      }
29440
      throw new IllegalStateException();
29441
    }
29442
 
29443
    @Override
29444
    public boolean equals(Object that) {
29445
      if (that == null)
29446
        return false;
29447
      if (that instanceof getTransferLotsByDate_args)
29448
        return this.equals((getTransferLotsByDate_args)that);
29449
      return false;
29450
    }
29451
 
29452
    public boolean equals(getTransferLotsByDate_args that) {
29453
      if (that == null)
29454
        return false;
29455
 
29456
      boolean this_present_fromDate = true;
29457
      boolean that_present_fromDate = true;
29458
      if (this_present_fromDate || that_present_fromDate) {
29459
        if (!(this_present_fromDate && that_present_fromDate))
29460
          return false;
29461
        if (this.fromDate != that.fromDate)
29462
          return false;
29463
      }
29464
 
29465
      boolean this_present_toDate = true;
29466
      boolean that_present_toDate = true;
29467
      if (this_present_toDate || that_present_toDate) {
29468
        if (!(this_present_toDate && that_present_toDate))
29469
          return false;
29470
        if (this.toDate != that.toDate)
29471
          return false;
29472
      }
29473
 
29474
      return true;
29475
    }
29476
 
29477
    @Override
29478
    public int hashCode() {
29479
      return 0;
29480
    }
29481
 
29482
    public int compareTo(getTransferLotsByDate_args other) {
29483
      if (!getClass().equals(other.getClass())) {
29484
        return getClass().getName().compareTo(other.getClass().getName());
29485
      }
29486
 
29487
      int lastComparison = 0;
29488
      getTransferLotsByDate_args typedOther = (getTransferLotsByDate_args)other;
29489
 
29490
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
29491
      if (lastComparison != 0) {
29492
        return lastComparison;
29493
      }
29494
      if (isSetFromDate()) {
29495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
29496
        if (lastComparison != 0) {
29497
          return lastComparison;
29498
        }
29499
      }
29500
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
29501
      if (lastComparison != 0) {
29502
        return lastComparison;
29503
      }
29504
      if (isSetToDate()) {
29505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
29506
        if (lastComparison != 0) {
29507
          return lastComparison;
29508
        }
29509
      }
29510
      return 0;
29511
    }
29512
 
29513
    public _Fields fieldForId(int fieldId) {
29514
      return _Fields.findByThriftId(fieldId);
29515
    }
29516
 
29517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29518
      org.apache.thrift.protocol.TField field;
29519
      iprot.readStructBegin();
29520
      while (true)
29521
      {
29522
        field = iprot.readFieldBegin();
29523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29524
          break;
29525
        }
29526
        switch (field.id) {
29527
          case 1: // FROM_DATE
29528
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29529
              this.fromDate = iprot.readI64();
29530
              setFromDateIsSet(true);
29531
            } else { 
29532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29533
            }
29534
            break;
29535
          case 2: // TO_DATE
29536
            if (field.type == org.apache.thrift.protocol.TType.I64) {
29537
              this.toDate = iprot.readI64();
29538
              setToDateIsSet(true);
29539
            } else { 
29540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29541
            }
29542
            break;
29543
          default:
29544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29545
        }
29546
        iprot.readFieldEnd();
29547
      }
29548
      iprot.readStructEnd();
29549
      validate();
29550
    }
29551
 
29552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29553
      validate();
29554
 
29555
      oprot.writeStructBegin(STRUCT_DESC);
29556
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
29557
      oprot.writeI64(this.fromDate);
29558
      oprot.writeFieldEnd();
29559
      oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
29560
      oprot.writeI64(this.toDate);
29561
      oprot.writeFieldEnd();
29562
      oprot.writeFieldStop();
29563
      oprot.writeStructEnd();
29564
    }
29565
 
29566
    @Override
29567
    public String toString() {
29568
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_args(");
29569
      boolean first = true;
29570
 
29571
      sb.append("fromDate:");
29572
      sb.append(this.fromDate);
29573
      first = false;
29574
      if (!first) sb.append(", ");
29575
      sb.append("toDate:");
29576
      sb.append(this.toDate);
29577
      first = false;
29578
      sb.append(")");
29579
      return sb.toString();
29580
    }
29581
 
29582
    public void validate() throws org.apache.thrift.TException {
29583
      // check for required fields
29584
    }
29585
 
29586
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29587
      try {
29588
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29589
      } catch (org.apache.thrift.TException te) {
29590
        throw new java.io.IOException(te);
29591
      }
29592
    }
29593
 
29594
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29595
      try {
29596
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29597
        __isset_bit_vector = new BitSet(1);
29598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29599
      } catch (org.apache.thrift.TException te) {
29600
        throw new java.io.IOException(te);
29601
      }
29602
    }
29603
 
29604
  }
29605
 
29606
  public static class getTransferLotsByDate_result implements org.apache.thrift.TBase<getTransferLotsByDate_result, getTransferLotsByDate_result._Fields>, java.io.Serializable, Cloneable   {
29607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTransferLotsByDate_result");
29608
 
29609
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
29610
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
29611
 
29612
    private List<TransferLot> success; // required
29613
    private WarehouseServiceException wex; // required
29614
 
29615
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29616
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29617
      SUCCESS((short)0, "success"),
29618
      WEX((short)1, "wex");
29619
 
29620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29621
 
29622
      static {
29623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29624
          byName.put(field.getFieldName(), field);
29625
        }
29626
      }
29627
 
29628
      /**
29629
       * Find the _Fields constant that matches fieldId, or null if its not found.
29630
       */
29631
      public static _Fields findByThriftId(int fieldId) {
29632
        switch(fieldId) {
29633
          case 0: // SUCCESS
29634
            return SUCCESS;
29635
          case 1: // WEX
29636
            return WEX;
29637
          default:
29638
            return null;
29639
        }
29640
      }
29641
 
29642
      /**
29643
       * Find the _Fields constant that matches fieldId, throwing an exception
29644
       * if it is not found.
29645
       */
29646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29647
        _Fields fields = findByThriftId(fieldId);
29648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29649
        return fields;
29650
      }
29651
 
29652
      /**
29653
       * Find the _Fields constant that matches name, or null if its not found.
29654
       */
29655
      public static _Fields findByName(String name) {
29656
        return byName.get(name);
29657
      }
29658
 
29659
      private final short _thriftId;
29660
      private final String _fieldName;
29661
 
29662
      _Fields(short thriftId, String fieldName) {
29663
        _thriftId = thriftId;
29664
        _fieldName = fieldName;
29665
      }
29666
 
29667
      public short getThriftFieldId() {
29668
        return _thriftId;
29669
      }
29670
 
29671
      public String getFieldName() {
29672
        return _fieldName;
29673
      }
29674
    }
29675
 
29676
    // isset id assignments
29677
 
29678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29679
    static {
29680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29681
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29682
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29683
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TransferLot.class))));
29684
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29685
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29686
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29687
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTransferLotsByDate_result.class, metaDataMap);
29688
    }
29689
 
29690
    public getTransferLotsByDate_result() {
29691
    }
29692
 
29693
    public getTransferLotsByDate_result(
29694
      List<TransferLot> success,
29695
      WarehouseServiceException wex)
29696
    {
29697
      this();
29698
      this.success = success;
29699
      this.wex = wex;
29700
    }
29701
 
29702
    /**
29703
     * Performs a deep copy on <i>other</i>.
29704
     */
29705
    public getTransferLotsByDate_result(getTransferLotsByDate_result other) {
29706
      if (other.isSetSuccess()) {
29707
        List<TransferLot> __this__success = new ArrayList<TransferLot>();
29708
        for (TransferLot other_element : other.success) {
29709
          __this__success.add(new TransferLot(other_element));
29710
        }
29711
        this.success = __this__success;
29712
      }
29713
      if (other.isSetWex()) {
29714
        this.wex = new WarehouseServiceException(other.wex);
29715
      }
29716
    }
29717
 
29718
    public getTransferLotsByDate_result deepCopy() {
29719
      return new getTransferLotsByDate_result(this);
29720
    }
29721
 
29722
    @Override
29723
    public void clear() {
29724
      this.success = null;
29725
      this.wex = null;
29726
    }
29727
 
29728
    public int getSuccessSize() {
29729
      return (this.success == null) ? 0 : this.success.size();
29730
    }
29731
 
29732
    public java.util.Iterator<TransferLot> getSuccessIterator() {
29733
      return (this.success == null) ? null : this.success.iterator();
29734
    }
29735
 
29736
    public void addToSuccess(TransferLot elem) {
29737
      if (this.success == null) {
29738
        this.success = new ArrayList<TransferLot>();
29739
      }
29740
      this.success.add(elem);
29741
    }
29742
 
29743
    public List<TransferLot> getSuccess() {
29744
      return this.success;
29745
    }
29746
 
29747
    public void setSuccess(List<TransferLot> success) {
29748
      this.success = success;
29749
    }
29750
 
29751
    public void unsetSuccess() {
29752
      this.success = null;
29753
    }
29754
 
29755
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29756
    public boolean isSetSuccess() {
29757
      return this.success != null;
29758
    }
29759
 
29760
    public void setSuccessIsSet(boolean value) {
29761
      if (!value) {
29762
        this.success = null;
29763
      }
29764
    }
29765
 
29766
    public WarehouseServiceException getWex() {
29767
      return this.wex;
29768
    }
29769
 
29770
    public void setWex(WarehouseServiceException wex) {
29771
      this.wex = wex;
29772
    }
29773
 
29774
    public void unsetWex() {
29775
      this.wex = null;
29776
    }
29777
 
29778
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
29779
    public boolean isSetWex() {
29780
      return this.wex != null;
29781
    }
29782
 
29783
    public void setWexIsSet(boolean value) {
29784
      if (!value) {
29785
        this.wex = null;
29786
      }
29787
    }
29788
 
29789
    public void setFieldValue(_Fields field, Object value) {
29790
      switch (field) {
29791
      case SUCCESS:
29792
        if (value == null) {
29793
          unsetSuccess();
29794
        } else {
29795
          setSuccess((List<TransferLot>)value);
29796
        }
29797
        break;
29798
 
29799
      case WEX:
29800
        if (value == null) {
29801
          unsetWex();
29802
        } else {
29803
          setWex((WarehouseServiceException)value);
29804
        }
29805
        break;
29806
 
29807
      }
29808
    }
29809
 
29810
    public Object getFieldValue(_Fields field) {
29811
      switch (field) {
29812
      case SUCCESS:
29813
        return getSuccess();
29814
 
29815
      case WEX:
29816
        return getWex();
29817
 
29818
      }
29819
      throw new IllegalStateException();
29820
    }
29821
 
29822
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29823
    public boolean isSet(_Fields field) {
29824
      if (field == null) {
29825
        throw new IllegalArgumentException();
29826
      }
29827
 
29828
      switch (field) {
29829
      case SUCCESS:
29830
        return isSetSuccess();
29831
      case WEX:
29832
        return isSetWex();
29833
      }
29834
      throw new IllegalStateException();
29835
    }
29836
 
29837
    @Override
29838
    public boolean equals(Object that) {
29839
      if (that == null)
29840
        return false;
29841
      if (that instanceof getTransferLotsByDate_result)
29842
        return this.equals((getTransferLotsByDate_result)that);
29843
      return false;
29844
    }
29845
 
29846
    public boolean equals(getTransferLotsByDate_result that) {
29847
      if (that == null)
29848
        return false;
29849
 
29850
      boolean this_present_success = true && this.isSetSuccess();
29851
      boolean that_present_success = true && that.isSetSuccess();
29852
      if (this_present_success || that_present_success) {
29853
        if (!(this_present_success && that_present_success))
29854
          return false;
29855
        if (!this.success.equals(that.success))
29856
          return false;
29857
      }
29858
 
29859
      boolean this_present_wex = true && this.isSetWex();
29860
      boolean that_present_wex = true && that.isSetWex();
29861
      if (this_present_wex || that_present_wex) {
29862
        if (!(this_present_wex && that_present_wex))
29863
          return false;
29864
        if (!this.wex.equals(that.wex))
29865
          return false;
29866
      }
29867
 
29868
      return true;
29869
    }
29870
 
29871
    @Override
29872
    public int hashCode() {
29873
      return 0;
29874
    }
29875
 
29876
    public int compareTo(getTransferLotsByDate_result other) {
29877
      if (!getClass().equals(other.getClass())) {
29878
        return getClass().getName().compareTo(other.getClass().getName());
29879
      }
29880
 
29881
      int lastComparison = 0;
29882
      getTransferLotsByDate_result typedOther = (getTransferLotsByDate_result)other;
29883
 
29884
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29885
      if (lastComparison != 0) {
29886
        return lastComparison;
29887
      }
29888
      if (isSetSuccess()) {
29889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29890
        if (lastComparison != 0) {
29891
          return lastComparison;
29892
        }
29893
      }
29894
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
29895
      if (lastComparison != 0) {
29896
        return lastComparison;
29897
      }
29898
      if (isSetWex()) {
29899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
29900
        if (lastComparison != 0) {
29901
          return lastComparison;
29902
        }
29903
      }
29904
      return 0;
29905
    }
29906
 
29907
    public _Fields fieldForId(int fieldId) {
29908
      return _Fields.findByThriftId(fieldId);
29909
    }
29910
 
29911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29912
      org.apache.thrift.protocol.TField field;
29913
      iprot.readStructBegin();
29914
      while (true)
29915
      {
29916
        field = iprot.readFieldBegin();
29917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29918
          break;
29919
        }
29920
        switch (field.id) {
29921
          case 0: // SUCCESS
29922
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29923
              {
29924
                org.apache.thrift.protocol.TList _list76 = iprot.readListBegin();
29925
                this.success = new ArrayList<TransferLot>(_list76.size);
29926
                for (int _i77 = 0; _i77 < _list76.size; ++_i77)
29927
                {
29928
                  TransferLot _elem78; // required
29929
                  _elem78 = new TransferLot();
29930
                  _elem78.read(iprot);
29931
                  this.success.add(_elem78);
29932
                }
29933
                iprot.readListEnd();
29934
              }
29935
            } else { 
29936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29937
            }
29938
            break;
29939
          case 1: // WEX
29940
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29941
              this.wex = new WarehouseServiceException();
29942
              this.wex.read(iprot);
29943
            } else { 
29944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29945
            }
29946
            break;
29947
          default:
29948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29949
        }
29950
        iprot.readFieldEnd();
29951
      }
29952
      iprot.readStructEnd();
29953
      validate();
29954
    }
29955
 
29956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29957
      oprot.writeStructBegin(STRUCT_DESC);
29958
 
29959
      if (this.isSetSuccess()) {
29960
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29961
        {
29962
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29963
          for (TransferLot _iter79 : this.success)
29964
          {
29965
            _iter79.write(oprot);
29966
          }
29967
          oprot.writeListEnd();
29968
        }
29969
        oprot.writeFieldEnd();
29970
      } else if (this.isSetWex()) {
29971
        oprot.writeFieldBegin(WEX_FIELD_DESC);
29972
        this.wex.write(oprot);
29973
        oprot.writeFieldEnd();
29974
      }
29975
      oprot.writeFieldStop();
29976
      oprot.writeStructEnd();
29977
    }
29978
 
29979
    @Override
29980
    public String toString() {
29981
      StringBuilder sb = new StringBuilder("getTransferLotsByDate_result(");
29982
      boolean first = true;
29983
 
29984
      sb.append("success:");
29985
      if (this.success == null) {
29986
        sb.append("null");
29987
      } else {
29988
        sb.append(this.success);
29989
      }
29990
      first = false;
29991
      if (!first) sb.append(", ");
29992
      sb.append("wex:");
29993
      if (this.wex == null) {
29994
        sb.append("null");
29995
      } else {
29996
        sb.append(this.wex);
29997
      }
29998
      first = false;
29999
      sb.append(")");
30000
      return sb.toString();
30001
    }
30002
 
30003
    public void validate() throws org.apache.thrift.TException {
30004
      // check for required fields
30005
    }
30006
 
30007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30008
      try {
30009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30010
      } catch (org.apache.thrift.TException te) {
30011
        throw new java.io.IOException(te);
30012
      }
30013
    }
30014
 
30015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30016
      try {
30017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30018
      } catch (org.apache.thrift.TException te) {
30019
        throw new java.io.IOException(te);
30020
      }
30021
    }
30022
 
30023
  }
30024
 
30025
  public static class getAllowedDestinationWarehousesForTransfer_args implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_args, getAllowedDestinationWarehousesForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
30026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_args");
30027
 
30028
    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)1);
30029
 
30030
    private long warehouseId; // required
30031
 
30032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30034
      WAREHOUSE_ID((short)1, "warehouseId");
30035
 
30036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30037
 
30038
      static {
30039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30040
          byName.put(field.getFieldName(), field);
30041
        }
30042
      }
30043
 
30044
      /**
30045
       * Find the _Fields constant that matches fieldId, or null if its not found.
30046
       */
30047
      public static _Fields findByThriftId(int fieldId) {
30048
        switch(fieldId) {
30049
          case 1: // WAREHOUSE_ID
30050
            return WAREHOUSE_ID;
30051
          default:
30052
            return null;
30053
        }
30054
      }
30055
 
30056
      /**
30057
       * Find the _Fields constant that matches fieldId, throwing an exception
30058
       * if it is not found.
30059
       */
30060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30061
        _Fields fields = findByThriftId(fieldId);
30062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30063
        return fields;
30064
      }
30065
 
30066
      /**
30067
       * Find the _Fields constant that matches name, or null if its not found.
30068
       */
30069
      public static _Fields findByName(String name) {
30070
        return byName.get(name);
30071
      }
30072
 
30073
      private final short _thriftId;
30074
      private final String _fieldName;
30075
 
30076
      _Fields(short thriftId, String fieldName) {
30077
        _thriftId = thriftId;
30078
        _fieldName = fieldName;
30079
      }
30080
 
30081
      public short getThriftFieldId() {
30082
        return _thriftId;
30083
      }
30084
 
30085
      public String getFieldName() {
30086
        return _fieldName;
30087
      }
30088
    }
30089
 
30090
    // isset id assignments
30091
    private static final int __WAREHOUSEID_ISSET_ID = 0;
30092
    private BitSet __isset_bit_vector = new BitSet(1);
30093
 
30094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30095
    static {
30096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30097
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_args.class, metaDataMap);
30101
    }
30102
 
30103
    public getAllowedDestinationWarehousesForTransfer_args() {
30104
    }
30105
 
30106
    public getAllowedDestinationWarehousesForTransfer_args(
30107
      long warehouseId)
30108
    {
30109
      this();
30110
      this.warehouseId = warehouseId;
30111
      setWarehouseIdIsSet(true);
30112
    }
30113
 
30114
    /**
30115
     * Performs a deep copy on <i>other</i>.
30116
     */
30117
    public getAllowedDestinationWarehousesForTransfer_args(getAllowedDestinationWarehousesForTransfer_args other) {
30118
      __isset_bit_vector.clear();
30119
      __isset_bit_vector.or(other.__isset_bit_vector);
30120
      this.warehouseId = other.warehouseId;
30121
    }
30122
 
30123
    public getAllowedDestinationWarehousesForTransfer_args deepCopy() {
30124
      return new getAllowedDestinationWarehousesForTransfer_args(this);
30125
    }
30126
 
30127
    @Override
30128
    public void clear() {
30129
      setWarehouseIdIsSet(false);
30130
      this.warehouseId = 0;
30131
    }
30132
 
30133
    public long getWarehouseId() {
30134
      return this.warehouseId;
30135
    }
30136
 
30137
    public void setWarehouseId(long warehouseId) {
30138
      this.warehouseId = warehouseId;
30139
      setWarehouseIdIsSet(true);
30140
    }
30141
 
30142
    public void unsetWarehouseId() {
30143
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
30144
    }
30145
 
30146
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
30147
    public boolean isSetWarehouseId() {
30148
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
30149
    }
30150
 
30151
    public void setWarehouseIdIsSet(boolean value) {
30152
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
30153
    }
30154
 
30155
    public void setFieldValue(_Fields field, Object value) {
30156
      switch (field) {
30157
      case WAREHOUSE_ID:
30158
        if (value == null) {
30159
          unsetWarehouseId();
30160
        } else {
30161
          setWarehouseId((Long)value);
30162
        }
30163
        break;
30164
 
30165
      }
30166
    }
30167
 
30168
    public Object getFieldValue(_Fields field) {
30169
      switch (field) {
30170
      case WAREHOUSE_ID:
30171
        return Long.valueOf(getWarehouseId());
30172
 
30173
      }
30174
      throw new IllegalStateException();
30175
    }
30176
 
30177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30178
    public boolean isSet(_Fields field) {
30179
      if (field == null) {
30180
        throw new IllegalArgumentException();
30181
      }
30182
 
30183
      switch (field) {
30184
      case WAREHOUSE_ID:
30185
        return isSetWarehouseId();
30186
      }
30187
      throw new IllegalStateException();
30188
    }
30189
 
30190
    @Override
30191
    public boolean equals(Object that) {
30192
      if (that == null)
30193
        return false;
30194
      if (that instanceof getAllowedDestinationWarehousesForTransfer_args)
30195
        return this.equals((getAllowedDestinationWarehousesForTransfer_args)that);
30196
      return false;
30197
    }
30198
 
30199
    public boolean equals(getAllowedDestinationWarehousesForTransfer_args that) {
30200
      if (that == null)
30201
        return false;
30202
 
30203
      boolean this_present_warehouseId = true;
30204
      boolean that_present_warehouseId = true;
30205
      if (this_present_warehouseId || that_present_warehouseId) {
30206
        if (!(this_present_warehouseId && that_present_warehouseId))
30207
          return false;
30208
        if (this.warehouseId != that.warehouseId)
30209
          return false;
30210
      }
30211
 
30212
      return true;
30213
    }
30214
 
30215
    @Override
30216
    public int hashCode() {
30217
      return 0;
30218
    }
30219
 
30220
    public int compareTo(getAllowedDestinationWarehousesForTransfer_args other) {
30221
      if (!getClass().equals(other.getClass())) {
30222
        return getClass().getName().compareTo(other.getClass().getName());
30223
      }
30224
 
30225
      int lastComparison = 0;
30226
      getAllowedDestinationWarehousesForTransfer_args typedOther = (getAllowedDestinationWarehousesForTransfer_args)other;
30227
 
30228
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
30229
      if (lastComparison != 0) {
30230
        return lastComparison;
30231
      }
30232
      if (isSetWarehouseId()) {
30233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
30234
        if (lastComparison != 0) {
30235
          return lastComparison;
30236
        }
30237
      }
30238
      return 0;
30239
    }
30240
 
30241
    public _Fields fieldForId(int fieldId) {
30242
      return _Fields.findByThriftId(fieldId);
30243
    }
30244
 
30245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30246
      org.apache.thrift.protocol.TField field;
30247
      iprot.readStructBegin();
30248
      while (true)
30249
      {
30250
        field = iprot.readFieldBegin();
30251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30252
          break;
30253
        }
30254
        switch (field.id) {
30255
          case 1: // WAREHOUSE_ID
30256
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30257
              this.warehouseId = iprot.readI64();
30258
              setWarehouseIdIsSet(true);
30259
            } else { 
30260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30261
            }
30262
            break;
30263
          default:
30264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30265
        }
30266
        iprot.readFieldEnd();
30267
      }
30268
      iprot.readStructEnd();
30269
      validate();
30270
    }
30271
 
30272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30273
      validate();
30274
 
30275
      oprot.writeStructBegin(STRUCT_DESC);
30276
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
30277
      oprot.writeI64(this.warehouseId);
30278
      oprot.writeFieldEnd();
30279
      oprot.writeFieldStop();
30280
      oprot.writeStructEnd();
30281
    }
30282
 
30283
    @Override
30284
    public String toString() {
30285
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_args(");
30286
      boolean first = true;
30287
 
30288
      sb.append("warehouseId:");
30289
      sb.append(this.warehouseId);
30290
      first = false;
30291
      sb.append(")");
30292
      return sb.toString();
30293
    }
30294
 
30295
    public void validate() throws org.apache.thrift.TException {
30296
      // check for required fields
30297
    }
30298
 
30299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30300
      try {
30301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30302
      } catch (org.apache.thrift.TException te) {
30303
        throw new java.io.IOException(te);
30304
      }
30305
    }
30306
 
30307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30308
      try {
30309
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30310
        __isset_bit_vector = new BitSet(1);
30311
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30312
      } catch (org.apache.thrift.TException te) {
30313
        throw new java.io.IOException(te);
30314
      }
30315
    }
30316
 
30317
  }
30318
 
30319
  public static class getAllowedDestinationWarehousesForTransfer_result implements org.apache.thrift.TBase<getAllowedDestinationWarehousesForTransfer_result, getAllowedDestinationWarehousesForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
30320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllowedDestinationWarehousesForTransfer_result");
30321
 
30322
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
30323
 
30324
    private List<Long> success; // required
30325
 
30326
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30327
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30328
      SUCCESS((short)0, "success");
30329
 
30330
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30331
 
30332
      static {
30333
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30334
          byName.put(field.getFieldName(), field);
30335
        }
30336
      }
30337
 
30338
      /**
30339
       * Find the _Fields constant that matches fieldId, or null if its not found.
30340
       */
30341
      public static _Fields findByThriftId(int fieldId) {
30342
        switch(fieldId) {
30343
          case 0: // SUCCESS
30344
            return SUCCESS;
30345
          default:
30346
            return null;
30347
        }
30348
      }
30349
 
30350
      /**
30351
       * Find the _Fields constant that matches fieldId, throwing an exception
30352
       * if it is not found.
30353
       */
30354
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30355
        _Fields fields = findByThriftId(fieldId);
30356
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30357
        return fields;
30358
      }
30359
 
30360
      /**
30361
       * Find the _Fields constant that matches name, or null if its not found.
30362
       */
30363
      public static _Fields findByName(String name) {
30364
        return byName.get(name);
30365
      }
30366
 
30367
      private final short _thriftId;
30368
      private final String _fieldName;
30369
 
30370
      _Fields(short thriftId, String fieldName) {
30371
        _thriftId = thriftId;
30372
        _fieldName = fieldName;
30373
      }
30374
 
30375
      public short getThriftFieldId() {
30376
        return _thriftId;
30377
      }
30378
 
30379
      public String getFieldName() {
30380
        return _fieldName;
30381
      }
30382
    }
30383
 
30384
    // isset id assignments
30385
 
30386
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30387
    static {
30388
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30389
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30390
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30391
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
30392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllowedDestinationWarehousesForTransfer_result.class, metaDataMap);
30394
    }
30395
 
30396
    public getAllowedDestinationWarehousesForTransfer_result() {
30397
    }
30398
 
30399
    public getAllowedDestinationWarehousesForTransfer_result(
30400
      List<Long> success)
30401
    {
30402
      this();
30403
      this.success = success;
30404
    }
30405
 
30406
    /**
30407
     * Performs a deep copy on <i>other</i>.
30408
     */
30409
    public getAllowedDestinationWarehousesForTransfer_result(getAllowedDestinationWarehousesForTransfer_result other) {
30410
      if (other.isSetSuccess()) {
30411
        List<Long> __this__success = new ArrayList<Long>();
30412
        for (Long other_element : other.success) {
30413
          __this__success.add(other_element);
30414
        }
30415
        this.success = __this__success;
30416
      }
30417
    }
30418
 
30419
    public getAllowedDestinationWarehousesForTransfer_result deepCopy() {
30420
      return new getAllowedDestinationWarehousesForTransfer_result(this);
30421
    }
30422
 
30423
    @Override
30424
    public void clear() {
30425
      this.success = null;
30426
    }
30427
 
30428
    public int getSuccessSize() {
30429
      return (this.success == null) ? 0 : this.success.size();
30430
    }
30431
 
30432
    public java.util.Iterator<Long> getSuccessIterator() {
30433
      return (this.success == null) ? null : this.success.iterator();
30434
    }
30435
 
30436
    public void addToSuccess(long elem) {
30437
      if (this.success == null) {
30438
        this.success = new ArrayList<Long>();
30439
      }
30440
      this.success.add(elem);
30441
    }
30442
 
30443
    public List<Long> getSuccess() {
30444
      return this.success;
30445
    }
30446
 
30447
    public void setSuccess(List<Long> success) {
30448
      this.success = success;
30449
    }
30450
 
30451
    public void unsetSuccess() {
30452
      this.success = null;
30453
    }
30454
 
30455
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30456
    public boolean isSetSuccess() {
30457
      return this.success != null;
30458
    }
30459
 
30460
    public void setSuccessIsSet(boolean value) {
30461
      if (!value) {
30462
        this.success = null;
30463
      }
30464
    }
30465
 
30466
    public void setFieldValue(_Fields field, Object value) {
30467
      switch (field) {
30468
      case SUCCESS:
30469
        if (value == null) {
30470
          unsetSuccess();
30471
        } else {
30472
          setSuccess((List<Long>)value);
30473
        }
30474
        break;
30475
 
30476
      }
30477
    }
30478
 
30479
    public Object getFieldValue(_Fields field) {
30480
      switch (field) {
30481
      case SUCCESS:
30482
        return getSuccess();
30483
 
30484
      }
30485
      throw new IllegalStateException();
30486
    }
30487
 
30488
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30489
    public boolean isSet(_Fields field) {
30490
      if (field == null) {
30491
        throw new IllegalArgumentException();
30492
      }
30493
 
30494
      switch (field) {
30495
      case SUCCESS:
30496
        return isSetSuccess();
30497
      }
30498
      throw new IllegalStateException();
30499
    }
30500
 
30501
    @Override
30502
    public boolean equals(Object that) {
30503
      if (that == null)
30504
        return false;
30505
      if (that instanceof getAllowedDestinationWarehousesForTransfer_result)
30506
        return this.equals((getAllowedDestinationWarehousesForTransfer_result)that);
30507
      return false;
30508
    }
30509
 
30510
    public boolean equals(getAllowedDestinationWarehousesForTransfer_result that) {
30511
      if (that == null)
30512
        return false;
30513
 
30514
      boolean this_present_success = true && this.isSetSuccess();
30515
      boolean that_present_success = true && that.isSetSuccess();
30516
      if (this_present_success || that_present_success) {
30517
        if (!(this_present_success && that_present_success))
30518
          return false;
30519
        if (!this.success.equals(that.success))
30520
          return false;
30521
      }
30522
 
30523
      return true;
30524
    }
30525
 
30526
    @Override
30527
    public int hashCode() {
30528
      return 0;
30529
    }
30530
 
30531
    public int compareTo(getAllowedDestinationWarehousesForTransfer_result other) {
30532
      if (!getClass().equals(other.getClass())) {
30533
        return getClass().getName().compareTo(other.getClass().getName());
30534
      }
30535
 
30536
      int lastComparison = 0;
30537
      getAllowedDestinationWarehousesForTransfer_result typedOther = (getAllowedDestinationWarehousesForTransfer_result)other;
30538
 
30539
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30540
      if (lastComparison != 0) {
30541
        return lastComparison;
30542
      }
30543
      if (isSetSuccess()) {
30544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30545
        if (lastComparison != 0) {
30546
          return lastComparison;
30547
        }
30548
      }
30549
      return 0;
30550
    }
30551
 
30552
    public _Fields fieldForId(int fieldId) {
30553
      return _Fields.findByThriftId(fieldId);
30554
    }
30555
 
30556
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30557
      org.apache.thrift.protocol.TField field;
30558
      iprot.readStructBegin();
30559
      while (true)
30560
      {
30561
        field = iprot.readFieldBegin();
30562
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30563
          break;
30564
        }
30565
        switch (field.id) {
30566
          case 0: // SUCCESS
30567
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30568
              {
30569
                org.apache.thrift.protocol.TList _list80 = iprot.readListBegin();
30570
                this.success = new ArrayList<Long>(_list80.size);
30571
                for (int _i81 = 0; _i81 < _list80.size; ++_i81)
30572
                {
30573
                  long _elem82; // required
30574
                  _elem82 = iprot.readI64();
30575
                  this.success.add(_elem82);
30576
                }
30577
                iprot.readListEnd();
30578
              }
30579
            } else { 
30580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30581
            }
30582
            break;
30583
          default:
30584
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30585
        }
30586
        iprot.readFieldEnd();
30587
      }
30588
      iprot.readStructEnd();
30589
      validate();
30590
    }
30591
 
30592
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30593
      oprot.writeStructBegin(STRUCT_DESC);
30594
 
30595
      if (this.isSetSuccess()) {
30596
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30597
        {
30598
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
30599
          for (long _iter83 : this.success)
30600
          {
30601
            oprot.writeI64(_iter83);
30602
          }
30603
          oprot.writeListEnd();
30604
        }
30605
        oprot.writeFieldEnd();
30606
      }
30607
      oprot.writeFieldStop();
30608
      oprot.writeStructEnd();
30609
    }
30610
 
30611
    @Override
30612
    public String toString() {
30613
      StringBuilder sb = new StringBuilder("getAllowedDestinationWarehousesForTransfer_result(");
30614
      boolean first = true;
30615
 
30616
      sb.append("success:");
30617
      if (this.success == null) {
30618
        sb.append("null");
30619
      } else {
30620
        sb.append(this.success);
30621
      }
30622
      first = false;
30623
      sb.append(")");
30624
      return sb.toString();
30625
    }
30626
 
30627
    public void validate() throws org.apache.thrift.TException {
30628
      // check for required fields
30629
    }
30630
 
30631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30632
      try {
30633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30634
      } catch (org.apache.thrift.TException te) {
30635
        throw new java.io.IOException(te);
30636
      }
30637
    }
30638
 
30639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30640
      try {
30641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30642
      } catch (org.apache.thrift.TException te) {
30643
        throw new java.io.IOException(te);
30644
      }
30645
    }
30646
 
30647
  }
30648
 
30649
  public static class getItemsInTransferLot_args implements org.apache.thrift.TBase<getItemsInTransferLot_args, getItemsInTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
30650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_args");
30651
 
30652
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)1);
30653
 
30654
    private long transferLotId; // required
30655
 
30656
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30657
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30658
      TRANSFER_LOT_ID((short)1, "transferLotId");
30659
 
30660
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30661
 
30662
      static {
30663
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30664
          byName.put(field.getFieldName(), field);
30665
        }
30666
      }
30667
 
30668
      /**
30669
       * Find the _Fields constant that matches fieldId, or null if its not found.
30670
       */
30671
      public static _Fields findByThriftId(int fieldId) {
30672
        switch(fieldId) {
30673
          case 1: // TRANSFER_LOT_ID
30674
            return TRANSFER_LOT_ID;
30675
          default:
30676
            return null;
30677
        }
30678
      }
30679
 
30680
      /**
30681
       * Find the _Fields constant that matches fieldId, throwing an exception
30682
       * if it is not found.
30683
       */
30684
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30685
        _Fields fields = findByThriftId(fieldId);
30686
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30687
        return fields;
30688
      }
30689
 
30690
      /**
30691
       * Find the _Fields constant that matches name, or null if its not found.
30692
       */
30693
      public static _Fields findByName(String name) {
30694
        return byName.get(name);
30695
      }
30696
 
30697
      private final short _thriftId;
30698
      private final String _fieldName;
30699
 
30700
      _Fields(short thriftId, String fieldName) {
30701
        _thriftId = thriftId;
30702
        _fieldName = fieldName;
30703
      }
30704
 
30705
      public short getThriftFieldId() {
30706
        return _thriftId;
30707
      }
30708
 
30709
      public String getFieldName() {
30710
        return _fieldName;
30711
      }
30712
    }
30713
 
30714
    // isset id assignments
30715
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
30716
    private BitSet __isset_bit_vector = new BitSet(1);
30717
 
30718
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30719
    static {
30720
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30721
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30722
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
30723
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30724
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_args.class, metaDataMap);
30725
    }
30726
 
30727
    public getItemsInTransferLot_args() {
30728
    }
30729
 
30730
    public getItemsInTransferLot_args(
30731
      long transferLotId)
30732
    {
30733
      this();
30734
      this.transferLotId = transferLotId;
30735
      setTransferLotIdIsSet(true);
30736
    }
30737
 
30738
    /**
30739
     * Performs a deep copy on <i>other</i>.
30740
     */
30741
    public getItemsInTransferLot_args(getItemsInTransferLot_args other) {
30742
      __isset_bit_vector.clear();
30743
      __isset_bit_vector.or(other.__isset_bit_vector);
30744
      this.transferLotId = other.transferLotId;
30745
    }
30746
 
30747
    public getItemsInTransferLot_args deepCopy() {
30748
      return new getItemsInTransferLot_args(this);
30749
    }
30750
 
30751
    @Override
30752
    public void clear() {
30753
      setTransferLotIdIsSet(false);
30754
      this.transferLotId = 0;
30755
    }
30756
 
30757
    public long getTransferLotId() {
30758
      return this.transferLotId;
30759
    }
30760
 
30761
    public void setTransferLotId(long transferLotId) {
30762
      this.transferLotId = transferLotId;
30763
      setTransferLotIdIsSet(true);
30764
    }
30765
 
30766
    public void unsetTransferLotId() {
30767
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
30768
    }
30769
 
30770
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
30771
    public boolean isSetTransferLotId() {
30772
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
30773
    }
30774
 
30775
    public void setTransferLotIdIsSet(boolean value) {
30776
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
30777
    }
30778
 
30779
    public void setFieldValue(_Fields field, Object value) {
30780
      switch (field) {
30781
      case TRANSFER_LOT_ID:
30782
        if (value == null) {
30783
          unsetTransferLotId();
30784
        } else {
30785
          setTransferLotId((Long)value);
30786
        }
30787
        break;
30788
 
30789
      }
30790
    }
30791
 
30792
    public Object getFieldValue(_Fields field) {
30793
      switch (field) {
30794
      case TRANSFER_LOT_ID:
30795
        return Long.valueOf(getTransferLotId());
30796
 
30797
      }
30798
      throw new IllegalStateException();
30799
    }
30800
 
30801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30802
    public boolean isSet(_Fields field) {
30803
      if (field == null) {
30804
        throw new IllegalArgumentException();
30805
      }
30806
 
30807
      switch (field) {
30808
      case TRANSFER_LOT_ID:
30809
        return isSetTransferLotId();
30810
      }
30811
      throw new IllegalStateException();
30812
    }
30813
 
30814
    @Override
30815
    public boolean equals(Object that) {
30816
      if (that == null)
30817
        return false;
30818
      if (that instanceof getItemsInTransferLot_args)
30819
        return this.equals((getItemsInTransferLot_args)that);
30820
      return false;
30821
    }
30822
 
30823
    public boolean equals(getItemsInTransferLot_args that) {
30824
      if (that == null)
30825
        return false;
30826
 
30827
      boolean this_present_transferLotId = true;
30828
      boolean that_present_transferLotId = true;
30829
      if (this_present_transferLotId || that_present_transferLotId) {
30830
        if (!(this_present_transferLotId && that_present_transferLotId))
30831
          return false;
30832
        if (this.transferLotId != that.transferLotId)
30833
          return false;
30834
      }
30835
 
30836
      return true;
30837
    }
30838
 
30839
    @Override
30840
    public int hashCode() {
30841
      return 0;
30842
    }
30843
 
30844
    public int compareTo(getItemsInTransferLot_args other) {
30845
      if (!getClass().equals(other.getClass())) {
30846
        return getClass().getName().compareTo(other.getClass().getName());
30847
      }
30848
 
30849
      int lastComparison = 0;
30850
      getItemsInTransferLot_args typedOther = (getItemsInTransferLot_args)other;
30851
 
30852
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
30853
      if (lastComparison != 0) {
30854
        return lastComparison;
30855
      }
30856
      if (isSetTransferLotId()) {
30857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
30858
        if (lastComparison != 0) {
30859
          return lastComparison;
30860
        }
30861
      }
30862
      return 0;
30863
    }
30864
 
30865
    public _Fields fieldForId(int fieldId) {
30866
      return _Fields.findByThriftId(fieldId);
30867
    }
30868
 
30869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30870
      org.apache.thrift.protocol.TField field;
30871
      iprot.readStructBegin();
30872
      while (true)
30873
      {
30874
        field = iprot.readFieldBegin();
30875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30876
          break;
30877
        }
30878
        switch (field.id) {
30879
          case 1: // TRANSFER_LOT_ID
30880
            if (field.type == org.apache.thrift.protocol.TType.I64) {
30881
              this.transferLotId = iprot.readI64();
30882
              setTransferLotIdIsSet(true);
30883
            } else { 
30884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30885
            }
30886
            break;
30887
          default:
30888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30889
        }
30890
        iprot.readFieldEnd();
30891
      }
30892
      iprot.readStructEnd();
30893
      validate();
30894
    }
30895
 
30896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30897
      validate();
30898
 
30899
      oprot.writeStructBegin(STRUCT_DESC);
30900
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
30901
      oprot.writeI64(this.transferLotId);
30902
      oprot.writeFieldEnd();
30903
      oprot.writeFieldStop();
30904
      oprot.writeStructEnd();
30905
    }
30906
 
30907
    @Override
30908
    public String toString() {
30909
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_args(");
30910
      boolean first = true;
30911
 
30912
      sb.append("transferLotId:");
30913
      sb.append(this.transferLotId);
30914
      first = false;
30915
      sb.append(")");
30916
      return sb.toString();
30917
    }
30918
 
30919
    public void validate() throws org.apache.thrift.TException {
30920
      // check for required fields
30921
    }
30922
 
30923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30924
      try {
30925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30926
      } catch (org.apache.thrift.TException te) {
30927
        throw new java.io.IOException(te);
30928
      }
30929
    }
30930
 
30931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30932
      try {
30933
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
30934
        __isset_bit_vector = new BitSet(1);
30935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30936
      } catch (org.apache.thrift.TException te) {
30937
        throw new java.io.IOException(te);
30938
      }
30939
    }
30940
 
30941
  }
30942
 
30943
  public static class getItemsInTransferLot_result implements org.apache.thrift.TBase<getItemsInTransferLot_result, getItemsInTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
30944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemsInTransferLot_result");
30945
 
30946
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
30947
 
30948
    private Map<Long,Long> success; // required
30949
 
30950
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30951
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30952
      SUCCESS((short)0, "success");
30953
 
30954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30955
 
30956
      static {
30957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30958
          byName.put(field.getFieldName(), field);
30959
        }
30960
      }
30961
 
30962
      /**
30963
       * Find the _Fields constant that matches fieldId, or null if its not found.
30964
       */
30965
      public static _Fields findByThriftId(int fieldId) {
30966
        switch(fieldId) {
30967
          case 0: // SUCCESS
30968
            return SUCCESS;
30969
          default:
30970
            return null;
30971
        }
30972
      }
30973
 
30974
      /**
30975
       * Find the _Fields constant that matches fieldId, throwing an exception
30976
       * if it is not found.
30977
       */
30978
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30979
        _Fields fields = findByThriftId(fieldId);
30980
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30981
        return fields;
30982
      }
30983
 
30984
      /**
30985
       * Find the _Fields constant that matches name, or null if its not found.
30986
       */
30987
      public static _Fields findByName(String name) {
30988
        return byName.get(name);
30989
      }
30990
 
30991
      private final short _thriftId;
30992
      private final String _fieldName;
30993
 
30994
      _Fields(short thriftId, String fieldName) {
30995
        _thriftId = thriftId;
30996
        _fieldName = fieldName;
30997
      }
30998
 
30999
      public short getThriftFieldId() {
31000
        return _thriftId;
31001
      }
31002
 
31003
      public String getFieldName() {
31004
        return _fieldName;
31005
      }
31006
    }
31007
 
31008
    // isset id assignments
31009
 
31010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31011
    static {
31012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31013
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31014
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
31015
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
31016
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
31017
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31018
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemsInTransferLot_result.class, metaDataMap);
31019
    }
31020
 
31021
    public getItemsInTransferLot_result() {
31022
    }
31023
 
31024
    public getItemsInTransferLot_result(
31025
      Map<Long,Long> success)
31026
    {
31027
      this();
31028
      this.success = success;
31029
    }
31030
 
31031
    /**
31032
     * Performs a deep copy on <i>other</i>.
31033
     */
31034
    public getItemsInTransferLot_result(getItemsInTransferLot_result other) {
31035
      if (other.isSetSuccess()) {
31036
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
31037
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
31038
 
31039
          Long other_element_key = other_element.getKey();
31040
          Long other_element_value = other_element.getValue();
31041
 
31042
          Long __this__success_copy_key = other_element_key;
31043
 
31044
          Long __this__success_copy_value = other_element_value;
31045
 
31046
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
31047
        }
31048
        this.success = __this__success;
31049
      }
31050
    }
31051
 
31052
    public getItemsInTransferLot_result deepCopy() {
31053
      return new getItemsInTransferLot_result(this);
31054
    }
31055
 
31056
    @Override
31057
    public void clear() {
31058
      this.success = null;
31059
    }
31060
 
31061
    public int getSuccessSize() {
31062
      return (this.success == null) ? 0 : this.success.size();
31063
    }
31064
 
31065
    public void putToSuccess(long key, long val) {
31066
      if (this.success == null) {
31067
        this.success = new HashMap<Long,Long>();
31068
      }
31069
      this.success.put(key, val);
31070
    }
31071
 
31072
    public Map<Long,Long> getSuccess() {
31073
      return this.success;
31074
    }
31075
 
31076
    public void setSuccess(Map<Long,Long> success) {
31077
      this.success = success;
31078
    }
31079
 
31080
    public void unsetSuccess() {
31081
      this.success = null;
31082
    }
31083
 
31084
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31085
    public boolean isSetSuccess() {
31086
      return this.success != null;
31087
    }
31088
 
31089
    public void setSuccessIsSet(boolean value) {
31090
      if (!value) {
31091
        this.success = null;
31092
      }
31093
    }
31094
 
31095
    public void setFieldValue(_Fields field, Object value) {
31096
      switch (field) {
31097
      case SUCCESS:
31098
        if (value == null) {
31099
          unsetSuccess();
31100
        } else {
31101
          setSuccess((Map<Long,Long>)value);
31102
        }
31103
        break;
31104
 
31105
      }
31106
    }
31107
 
31108
    public Object getFieldValue(_Fields field) {
31109
      switch (field) {
31110
      case SUCCESS:
31111
        return getSuccess();
31112
 
31113
      }
31114
      throw new IllegalStateException();
31115
    }
31116
 
31117
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31118
    public boolean isSet(_Fields field) {
31119
      if (field == null) {
31120
        throw new IllegalArgumentException();
31121
      }
31122
 
31123
      switch (field) {
31124
      case SUCCESS:
31125
        return isSetSuccess();
31126
      }
31127
      throw new IllegalStateException();
31128
    }
31129
 
31130
    @Override
31131
    public boolean equals(Object that) {
31132
      if (that == null)
31133
        return false;
31134
      if (that instanceof getItemsInTransferLot_result)
31135
        return this.equals((getItemsInTransferLot_result)that);
31136
      return false;
31137
    }
31138
 
31139
    public boolean equals(getItemsInTransferLot_result that) {
31140
      if (that == null)
31141
        return false;
31142
 
31143
      boolean this_present_success = true && this.isSetSuccess();
31144
      boolean that_present_success = true && that.isSetSuccess();
31145
      if (this_present_success || that_present_success) {
31146
        if (!(this_present_success && that_present_success))
31147
          return false;
31148
        if (!this.success.equals(that.success))
31149
          return false;
31150
      }
31151
 
31152
      return true;
31153
    }
31154
 
31155
    @Override
31156
    public int hashCode() {
31157
      return 0;
31158
    }
31159
 
31160
    public int compareTo(getItemsInTransferLot_result other) {
31161
      if (!getClass().equals(other.getClass())) {
31162
        return getClass().getName().compareTo(other.getClass().getName());
31163
      }
31164
 
31165
      int lastComparison = 0;
31166
      getItemsInTransferLot_result typedOther = (getItemsInTransferLot_result)other;
31167
 
31168
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31169
      if (lastComparison != 0) {
31170
        return lastComparison;
31171
      }
31172
      if (isSetSuccess()) {
31173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31174
        if (lastComparison != 0) {
31175
          return lastComparison;
31176
        }
31177
      }
31178
      return 0;
31179
    }
31180
 
31181
    public _Fields fieldForId(int fieldId) {
31182
      return _Fields.findByThriftId(fieldId);
31183
    }
31184
 
31185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31186
      org.apache.thrift.protocol.TField field;
31187
      iprot.readStructBegin();
31188
      while (true)
31189
      {
31190
        field = iprot.readFieldBegin();
31191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31192
          break;
31193
        }
31194
        switch (field.id) {
31195
          case 0: // SUCCESS
31196
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
31197
              {
31198
                org.apache.thrift.protocol.TMap _map84 = iprot.readMapBegin();
31199
                this.success = new HashMap<Long,Long>(2*_map84.size);
31200
                for (int _i85 = 0; _i85 < _map84.size; ++_i85)
31201
                {
31202
                  long _key86; // required
31203
                  long _val87; // required
31204
                  _key86 = iprot.readI64();
31205
                  _val87 = iprot.readI64();
31206
                  this.success.put(_key86, _val87);
31207
                }
31208
                iprot.readMapEnd();
31209
              }
31210
            } else { 
31211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31212
            }
31213
            break;
31214
          default:
31215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31216
        }
31217
        iprot.readFieldEnd();
31218
      }
31219
      iprot.readStructEnd();
31220
      validate();
31221
    }
31222
 
31223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31224
      oprot.writeStructBegin(STRUCT_DESC);
31225
 
31226
      if (this.isSetSuccess()) {
31227
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31228
        {
31229
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
31230
          for (Map.Entry<Long, Long> _iter88 : this.success.entrySet())
31231
          {
31232
            oprot.writeI64(_iter88.getKey());
31233
            oprot.writeI64(_iter88.getValue());
31234
          }
31235
          oprot.writeMapEnd();
31236
        }
31237
        oprot.writeFieldEnd();
31238
      }
31239
      oprot.writeFieldStop();
31240
      oprot.writeStructEnd();
31241
    }
31242
 
31243
    @Override
31244
    public String toString() {
31245
      StringBuilder sb = new StringBuilder("getItemsInTransferLot_result(");
31246
      boolean first = true;
31247
 
31248
      sb.append("success:");
31249
      if (this.success == null) {
31250
        sb.append("null");
31251
      } else {
31252
        sb.append(this.success);
31253
      }
31254
      first = false;
31255
      sb.append(")");
31256
      return sb.toString();
31257
    }
31258
 
31259
    public void validate() throws org.apache.thrift.TException {
31260
      // check for required fields
31261
    }
31262
 
31263
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31264
      try {
31265
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31266
      } catch (org.apache.thrift.TException te) {
31267
        throw new java.io.IOException(te);
31268
      }
31269
    }
31270
 
31271
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31272
      try {
31273
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31274
      } catch (org.apache.thrift.TException te) {
31275
        throw new java.io.IOException(te);
31276
      }
31277
    }
31278
 
31279
  }
31280
 
31281
  public static class markItemsAsReceivedForTransferLot_args implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_args, markItemsAsReceivedForTransferLot_args._Fields>, java.io.Serializable, Cloneable   {
31282
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_args");
31283
 
31284
    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);
31285
 
31286
    private long id; // required
31287
 
31288
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31289
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31290
      ID((short)1, "id");
31291
 
31292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31293
 
31294
      static {
31295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31296
          byName.put(field.getFieldName(), field);
31297
        }
31298
      }
31299
 
31300
      /**
31301
       * Find the _Fields constant that matches fieldId, or null if its not found.
31302
       */
31303
      public static _Fields findByThriftId(int fieldId) {
31304
        switch(fieldId) {
31305
          case 1: // ID
31306
            return ID;
31307
          default:
31308
            return null;
31309
        }
31310
      }
31311
 
31312
      /**
31313
       * Find the _Fields constant that matches fieldId, throwing an exception
31314
       * if it is not found.
31315
       */
31316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31317
        _Fields fields = findByThriftId(fieldId);
31318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31319
        return fields;
31320
      }
31321
 
31322
      /**
31323
       * Find the _Fields constant that matches name, or null if its not found.
31324
       */
31325
      public static _Fields findByName(String name) {
31326
        return byName.get(name);
31327
      }
31328
 
31329
      private final short _thriftId;
31330
      private final String _fieldName;
31331
 
31332
      _Fields(short thriftId, String fieldName) {
31333
        _thriftId = thriftId;
31334
        _fieldName = fieldName;
31335
      }
31336
 
31337
      public short getThriftFieldId() {
31338
        return _thriftId;
31339
      }
31340
 
31341
      public String getFieldName() {
31342
        return _fieldName;
31343
      }
31344
    }
31345
 
31346
    // isset id assignments
31347
    private static final int __ID_ISSET_ID = 0;
31348
    private BitSet __isset_bit_vector = new BitSet(1);
31349
 
31350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31351
    static {
31352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31353
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_args.class, metaDataMap);
31357
    }
31358
 
31359
    public markItemsAsReceivedForTransferLot_args() {
31360
    }
31361
 
31362
    public markItemsAsReceivedForTransferLot_args(
31363
      long id)
31364
    {
31365
      this();
31366
      this.id = id;
31367
      setIdIsSet(true);
31368
    }
31369
 
31370
    /**
31371
     * Performs a deep copy on <i>other</i>.
31372
     */
31373
    public markItemsAsReceivedForTransferLot_args(markItemsAsReceivedForTransferLot_args other) {
31374
      __isset_bit_vector.clear();
31375
      __isset_bit_vector.or(other.__isset_bit_vector);
31376
      this.id = other.id;
31377
    }
31378
 
31379
    public markItemsAsReceivedForTransferLot_args deepCopy() {
31380
      return new markItemsAsReceivedForTransferLot_args(this);
31381
    }
31382
 
31383
    @Override
31384
    public void clear() {
31385
      setIdIsSet(false);
31386
      this.id = 0;
31387
    }
31388
 
31389
    public long getId() {
31390
      return this.id;
31391
    }
31392
 
31393
    public void setId(long id) {
31394
      this.id = id;
31395
      setIdIsSet(true);
31396
    }
31397
 
31398
    public void unsetId() {
31399
      __isset_bit_vector.clear(__ID_ISSET_ID);
31400
    }
31401
 
31402
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
31403
    public boolean isSetId() {
31404
      return __isset_bit_vector.get(__ID_ISSET_ID);
31405
    }
31406
 
31407
    public void setIdIsSet(boolean value) {
31408
      __isset_bit_vector.set(__ID_ISSET_ID, value);
31409
    }
31410
 
31411
    public void setFieldValue(_Fields field, Object value) {
31412
      switch (field) {
31413
      case ID:
31414
        if (value == null) {
31415
          unsetId();
31416
        } else {
31417
          setId((Long)value);
31418
        }
31419
        break;
31420
 
31421
      }
31422
    }
31423
 
31424
    public Object getFieldValue(_Fields field) {
31425
      switch (field) {
31426
      case ID:
31427
        return Long.valueOf(getId());
31428
 
31429
      }
31430
      throw new IllegalStateException();
31431
    }
31432
 
31433
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31434
    public boolean isSet(_Fields field) {
31435
      if (field == null) {
31436
        throw new IllegalArgumentException();
31437
      }
31438
 
31439
      switch (field) {
31440
      case ID:
31441
        return isSetId();
31442
      }
31443
      throw new IllegalStateException();
31444
    }
31445
 
31446
    @Override
31447
    public boolean equals(Object that) {
31448
      if (that == null)
31449
        return false;
31450
      if (that instanceof markItemsAsReceivedForTransferLot_args)
31451
        return this.equals((markItemsAsReceivedForTransferLot_args)that);
31452
      return false;
31453
    }
31454
 
31455
    public boolean equals(markItemsAsReceivedForTransferLot_args that) {
31456
      if (that == null)
31457
        return false;
31458
 
31459
      boolean this_present_id = true;
31460
      boolean that_present_id = true;
31461
      if (this_present_id || that_present_id) {
31462
        if (!(this_present_id && that_present_id))
31463
          return false;
31464
        if (this.id != that.id)
31465
          return false;
31466
      }
31467
 
31468
      return true;
31469
    }
31470
 
31471
    @Override
31472
    public int hashCode() {
31473
      return 0;
31474
    }
31475
 
31476
    public int compareTo(markItemsAsReceivedForTransferLot_args other) {
31477
      if (!getClass().equals(other.getClass())) {
31478
        return getClass().getName().compareTo(other.getClass().getName());
31479
      }
31480
 
31481
      int lastComparison = 0;
31482
      markItemsAsReceivedForTransferLot_args typedOther = (markItemsAsReceivedForTransferLot_args)other;
31483
 
31484
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
31485
      if (lastComparison != 0) {
31486
        return lastComparison;
31487
      }
31488
      if (isSetId()) {
31489
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
31490
        if (lastComparison != 0) {
31491
          return lastComparison;
31492
        }
31493
      }
31494
      return 0;
31495
    }
31496
 
31497
    public _Fields fieldForId(int fieldId) {
31498
      return _Fields.findByThriftId(fieldId);
31499
    }
31500
 
31501
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31502
      org.apache.thrift.protocol.TField field;
31503
      iprot.readStructBegin();
31504
      while (true)
31505
      {
31506
        field = iprot.readFieldBegin();
31507
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31508
          break;
31509
        }
31510
        switch (field.id) {
31511
          case 1: // ID
31512
            if (field.type == org.apache.thrift.protocol.TType.I64) {
31513
              this.id = iprot.readI64();
31514
              setIdIsSet(true);
31515
            } else { 
31516
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31517
            }
31518
            break;
31519
          default:
31520
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31521
        }
31522
        iprot.readFieldEnd();
31523
      }
31524
      iprot.readStructEnd();
31525
      validate();
31526
    }
31527
 
31528
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31529
      validate();
31530
 
31531
      oprot.writeStructBegin(STRUCT_DESC);
31532
      oprot.writeFieldBegin(ID_FIELD_DESC);
31533
      oprot.writeI64(this.id);
31534
      oprot.writeFieldEnd();
31535
      oprot.writeFieldStop();
31536
      oprot.writeStructEnd();
31537
    }
31538
 
31539
    @Override
31540
    public String toString() {
31541
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_args(");
31542
      boolean first = true;
31543
 
31544
      sb.append("id:");
31545
      sb.append(this.id);
31546
      first = false;
31547
      sb.append(")");
31548
      return sb.toString();
31549
    }
31550
 
31551
    public void validate() throws org.apache.thrift.TException {
31552
      // check for required fields
31553
    }
31554
 
31555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31556
      try {
31557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31558
      } catch (org.apache.thrift.TException te) {
31559
        throw new java.io.IOException(te);
31560
      }
31561
    }
31562
 
31563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31564
      try {
31565
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
31566
        __isset_bit_vector = new BitSet(1);
31567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31568
      } catch (org.apache.thrift.TException te) {
31569
        throw new java.io.IOException(te);
31570
      }
31571
    }
31572
 
31573
  }
31574
 
31575
  public static class markItemsAsReceivedForTransferLot_result implements org.apache.thrift.TBase<markItemsAsReceivedForTransferLot_result, markItemsAsReceivedForTransferLot_result._Fields>, java.io.Serializable, Cloneable   {
31576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markItemsAsReceivedForTransferLot_result");
31577
 
31578
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
31579
 
31580
    private WarehouseServiceException wex; // required
31581
 
31582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31584
      WEX((short)1, "wex");
31585
 
31586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31587
 
31588
      static {
31589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31590
          byName.put(field.getFieldName(), field);
31591
        }
31592
      }
31593
 
31594
      /**
31595
       * Find the _Fields constant that matches fieldId, or null if its not found.
31596
       */
31597
      public static _Fields findByThriftId(int fieldId) {
31598
        switch(fieldId) {
31599
          case 1: // WEX
31600
            return WEX;
31601
          default:
31602
            return null;
31603
        }
31604
      }
31605
 
31606
      /**
31607
       * Find the _Fields constant that matches fieldId, throwing an exception
31608
       * if it is not found.
31609
       */
31610
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31611
        _Fields fields = findByThriftId(fieldId);
31612
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31613
        return fields;
31614
      }
31615
 
31616
      /**
31617
       * Find the _Fields constant that matches name, or null if its not found.
31618
       */
31619
      public static _Fields findByName(String name) {
31620
        return byName.get(name);
31621
      }
31622
 
31623
      private final short _thriftId;
31624
      private final String _fieldName;
31625
 
31626
      _Fields(short thriftId, String fieldName) {
31627
        _thriftId = thriftId;
31628
        _fieldName = fieldName;
31629
      }
31630
 
31631
      public short getThriftFieldId() {
31632
        return _thriftId;
31633
      }
31634
 
31635
      public String getFieldName() {
31636
        return _fieldName;
31637
      }
31638
    }
31639
 
31640
    // isset id assignments
31641
 
31642
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31643
    static {
31644
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31645
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31646
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
31647
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31648
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markItemsAsReceivedForTransferLot_result.class, metaDataMap);
31649
    }
31650
 
31651
    public markItemsAsReceivedForTransferLot_result() {
31652
    }
31653
 
31654
    public markItemsAsReceivedForTransferLot_result(
31655
      WarehouseServiceException wex)
31656
    {
31657
      this();
31658
      this.wex = wex;
31659
    }
31660
 
31661
    /**
31662
     * Performs a deep copy on <i>other</i>.
31663
     */
31664
    public markItemsAsReceivedForTransferLot_result(markItemsAsReceivedForTransferLot_result other) {
31665
      if (other.isSetWex()) {
31666
        this.wex = new WarehouseServiceException(other.wex);
31667
      }
31668
    }
31669
 
31670
    public markItemsAsReceivedForTransferLot_result deepCopy() {
31671
      return new markItemsAsReceivedForTransferLot_result(this);
31672
    }
31673
 
31674
    @Override
31675
    public void clear() {
31676
      this.wex = null;
31677
    }
31678
 
31679
    public WarehouseServiceException getWex() {
31680
      return this.wex;
31681
    }
31682
 
31683
    public void setWex(WarehouseServiceException wex) {
31684
      this.wex = wex;
31685
    }
31686
 
31687
    public void unsetWex() {
31688
      this.wex = null;
31689
    }
31690
 
31691
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
31692
    public boolean isSetWex() {
31693
      return this.wex != null;
31694
    }
31695
 
31696
    public void setWexIsSet(boolean value) {
31697
      if (!value) {
31698
        this.wex = null;
31699
      }
31700
    }
31701
 
31702
    public void setFieldValue(_Fields field, Object value) {
31703
      switch (field) {
31704
      case WEX:
31705
        if (value == null) {
31706
          unsetWex();
31707
        } else {
31708
          setWex((WarehouseServiceException)value);
31709
        }
31710
        break;
31711
 
31712
      }
31713
    }
31714
 
31715
    public Object getFieldValue(_Fields field) {
31716
      switch (field) {
31717
      case WEX:
31718
        return getWex();
31719
 
31720
      }
31721
      throw new IllegalStateException();
31722
    }
31723
 
31724
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31725
    public boolean isSet(_Fields field) {
31726
      if (field == null) {
31727
        throw new IllegalArgumentException();
31728
      }
31729
 
31730
      switch (field) {
31731
      case WEX:
31732
        return isSetWex();
31733
      }
31734
      throw new IllegalStateException();
31735
    }
31736
 
31737
    @Override
31738
    public boolean equals(Object that) {
31739
      if (that == null)
31740
        return false;
31741
      if (that instanceof markItemsAsReceivedForTransferLot_result)
31742
        return this.equals((markItemsAsReceivedForTransferLot_result)that);
31743
      return false;
31744
    }
31745
 
31746
    public boolean equals(markItemsAsReceivedForTransferLot_result that) {
31747
      if (that == null)
31748
        return false;
31749
 
31750
      boolean this_present_wex = true && this.isSetWex();
31751
      boolean that_present_wex = true && that.isSetWex();
31752
      if (this_present_wex || that_present_wex) {
31753
        if (!(this_present_wex && that_present_wex))
31754
          return false;
31755
        if (!this.wex.equals(that.wex))
31756
          return false;
31757
      }
31758
 
31759
      return true;
31760
    }
31761
 
31762
    @Override
31763
    public int hashCode() {
31764
      return 0;
31765
    }
31766
 
31767
    public int compareTo(markItemsAsReceivedForTransferLot_result other) {
31768
      if (!getClass().equals(other.getClass())) {
31769
        return getClass().getName().compareTo(other.getClass().getName());
31770
      }
31771
 
31772
      int lastComparison = 0;
31773
      markItemsAsReceivedForTransferLot_result typedOther = (markItemsAsReceivedForTransferLot_result)other;
31774
 
31775
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
31776
      if (lastComparison != 0) {
31777
        return lastComparison;
31778
      }
31779
      if (isSetWex()) {
31780
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
31781
        if (lastComparison != 0) {
31782
          return lastComparison;
31783
        }
31784
      }
31785
      return 0;
31786
    }
31787
 
31788
    public _Fields fieldForId(int fieldId) {
31789
      return _Fields.findByThriftId(fieldId);
31790
    }
31791
 
31792
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31793
      org.apache.thrift.protocol.TField field;
31794
      iprot.readStructBegin();
31795
      while (true)
31796
      {
31797
        field = iprot.readFieldBegin();
31798
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31799
          break;
31800
        }
31801
        switch (field.id) {
31802
          case 1: // WEX
31803
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
31804
              this.wex = new WarehouseServiceException();
31805
              this.wex.read(iprot);
31806
            } else { 
31807
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31808
            }
31809
            break;
31810
          default:
31811
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31812
        }
31813
        iprot.readFieldEnd();
31814
      }
31815
      iprot.readStructEnd();
31816
      validate();
31817
    }
31818
 
31819
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31820
      oprot.writeStructBegin(STRUCT_DESC);
31821
 
31822
      if (this.isSetWex()) {
31823
        oprot.writeFieldBegin(WEX_FIELD_DESC);
31824
        this.wex.write(oprot);
31825
        oprot.writeFieldEnd();
31826
      }
31827
      oprot.writeFieldStop();
31828
      oprot.writeStructEnd();
31829
    }
31830
 
31831
    @Override
31832
    public String toString() {
31833
      StringBuilder sb = new StringBuilder("markItemsAsReceivedForTransferLot_result(");
31834
      boolean first = true;
31835
 
31836
      sb.append("wex:");
31837
      if (this.wex == null) {
31838
        sb.append("null");
31839
      } else {
31840
        sb.append(this.wex);
31841
      }
31842
      first = false;
31843
      sb.append(")");
31844
      return sb.toString();
31845
    }
31846
 
31847
    public void validate() throws org.apache.thrift.TException {
31848
      // check for required fields
31849
    }
31850
 
31851
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31852
      try {
31853
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31854
      } catch (org.apache.thrift.TException te) {
31855
        throw new java.io.IOException(te);
31856
      }
31857
    }
31858
 
31859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31860
      try {
31861
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31862
      } catch (org.apache.thrift.TException te) {
31863
        throw new java.io.IOException(te);
31864
      }
31865
    }
31866
 
31867
  }
31868
 
31869
  public static class updateTransferLotAfterItemReceive_args implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_args, updateTransferLotAfterItemReceive_args._Fields>, java.io.Serializable, Cloneable   {
31870
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_args");
31871
 
31872
    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);
31873
 
31874
    private long id; // required
31875
 
31876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31878
      ID((short)1, "id");
31879
 
31880
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31881
 
31882
      static {
31883
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31884
          byName.put(field.getFieldName(), field);
31885
        }
31886
      }
31887
 
31888
      /**
31889
       * Find the _Fields constant that matches fieldId, or null if its not found.
31890
       */
31891
      public static _Fields findByThriftId(int fieldId) {
31892
        switch(fieldId) {
31893
          case 1: // ID
31894
            return ID;
31895
          default:
31896
            return null;
31897
        }
31898
      }
31899
 
31900
      /**
31901
       * Find the _Fields constant that matches fieldId, throwing an exception
31902
       * if it is not found.
31903
       */
31904
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31905
        _Fields fields = findByThriftId(fieldId);
31906
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31907
        return fields;
31908
      }
31909
 
31910
      /**
31911
       * Find the _Fields constant that matches name, or null if its not found.
31912
       */
31913
      public static _Fields findByName(String name) {
31914
        return byName.get(name);
31915
      }
31916
 
31917
      private final short _thriftId;
31918
      private final String _fieldName;
31919
 
31920
      _Fields(short thriftId, String fieldName) {
31921
        _thriftId = thriftId;
31922
        _fieldName = fieldName;
31923
      }
31924
 
31925
      public short getThriftFieldId() {
31926
        return _thriftId;
31927
      }
31928
 
31929
      public String getFieldName() {
31930
        return _fieldName;
31931
      }
31932
    }
31933
 
31934
    // isset id assignments
31935
    private static final int __ID_ISSET_ID = 0;
31936
    private BitSet __isset_bit_vector = new BitSet(1);
31937
 
31938
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31939
    static {
31940
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31941
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31942
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
31943
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31944
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_args.class, metaDataMap);
31945
    }
31946
 
31947
    public updateTransferLotAfterItemReceive_args() {
31948
    }
31949
 
31950
    public updateTransferLotAfterItemReceive_args(
31951
      long id)
31952
    {
31953
      this();
31954
      this.id = id;
31955
      setIdIsSet(true);
31956
    }
31957
 
31958
    /**
31959
     * Performs a deep copy on <i>other</i>.
31960
     */
31961
    public updateTransferLotAfterItemReceive_args(updateTransferLotAfterItemReceive_args other) {
31962
      __isset_bit_vector.clear();
31963
      __isset_bit_vector.or(other.__isset_bit_vector);
31964
      this.id = other.id;
31965
    }
31966
 
31967
    public updateTransferLotAfterItemReceive_args deepCopy() {
31968
      return new updateTransferLotAfterItemReceive_args(this);
31969
    }
31970
 
31971
    @Override
31972
    public void clear() {
31973
      setIdIsSet(false);
31974
      this.id = 0;
31975
    }
31976
 
31977
    public long getId() {
31978
      return this.id;
31979
    }
31980
 
31981
    public void setId(long id) {
31982
      this.id = id;
31983
      setIdIsSet(true);
31984
    }
31985
 
31986
    public void unsetId() {
31987
      __isset_bit_vector.clear(__ID_ISSET_ID);
31988
    }
31989
 
31990
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
31991
    public boolean isSetId() {
31992
      return __isset_bit_vector.get(__ID_ISSET_ID);
31993
    }
31994
 
31995
    public void setIdIsSet(boolean value) {
31996
      __isset_bit_vector.set(__ID_ISSET_ID, value);
31997
    }
31998
 
31999
    public void setFieldValue(_Fields field, Object value) {
32000
      switch (field) {
32001
      case ID:
32002
        if (value == null) {
32003
          unsetId();
32004
        } else {
32005
          setId((Long)value);
32006
        }
32007
        break;
32008
 
32009
      }
32010
    }
32011
 
32012
    public Object getFieldValue(_Fields field) {
32013
      switch (field) {
32014
      case ID:
32015
        return Long.valueOf(getId());
32016
 
32017
      }
32018
      throw new IllegalStateException();
32019
    }
32020
 
32021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32022
    public boolean isSet(_Fields field) {
32023
      if (field == null) {
32024
        throw new IllegalArgumentException();
32025
      }
32026
 
32027
      switch (field) {
32028
      case ID:
32029
        return isSetId();
32030
      }
32031
      throw new IllegalStateException();
32032
    }
32033
 
32034
    @Override
32035
    public boolean equals(Object that) {
32036
      if (that == null)
32037
        return false;
32038
      if (that instanceof updateTransferLotAfterItemReceive_args)
32039
        return this.equals((updateTransferLotAfterItemReceive_args)that);
32040
      return false;
32041
    }
32042
 
32043
    public boolean equals(updateTransferLotAfterItemReceive_args that) {
32044
      if (that == null)
32045
        return false;
32046
 
32047
      boolean this_present_id = true;
32048
      boolean that_present_id = true;
32049
      if (this_present_id || that_present_id) {
32050
        if (!(this_present_id && that_present_id))
32051
          return false;
32052
        if (this.id != that.id)
32053
          return false;
32054
      }
32055
 
32056
      return true;
32057
    }
32058
 
32059
    @Override
32060
    public int hashCode() {
32061
      return 0;
32062
    }
32063
 
32064
    public int compareTo(updateTransferLotAfterItemReceive_args other) {
32065
      if (!getClass().equals(other.getClass())) {
32066
        return getClass().getName().compareTo(other.getClass().getName());
32067
      }
32068
 
32069
      int lastComparison = 0;
32070
      updateTransferLotAfterItemReceive_args typedOther = (updateTransferLotAfterItemReceive_args)other;
32071
 
32072
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
32073
      if (lastComparison != 0) {
32074
        return lastComparison;
32075
      }
32076
      if (isSetId()) {
32077
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
32078
        if (lastComparison != 0) {
32079
          return lastComparison;
32080
        }
32081
      }
32082
      return 0;
32083
    }
32084
 
32085
    public _Fields fieldForId(int fieldId) {
32086
      return _Fields.findByThriftId(fieldId);
32087
    }
32088
 
32089
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32090
      org.apache.thrift.protocol.TField field;
32091
      iprot.readStructBegin();
32092
      while (true)
32093
      {
32094
        field = iprot.readFieldBegin();
32095
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32096
          break;
32097
        }
32098
        switch (field.id) {
32099
          case 1: // ID
32100
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32101
              this.id = iprot.readI64();
32102
              setIdIsSet(true);
32103
            } else { 
32104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32105
            }
32106
            break;
32107
          default:
32108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32109
        }
32110
        iprot.readFieldEnd();
32111
      }
32112
      iprot.readStructEnd();
32113
      validate();
32114
    }
32115
 
32116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32117
      validate();
32118
 
32119
      oprot.writeStructBegin(STRUCT_DESC);
32120
      oprot.writeFieldBegin(ID_FIELD_DESC);
32121
      oprot.writeI64(this.id);
32122
      oprot.writeFieldEnd();
32123
      oprot.writeFieldStop();
32124
      oprot.writeStructEnd();
32125
    }
32126
 
32127
    @Override
32128
    public String toString() {
32129
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_args(");
32130
      boolean first = true;
32131
 
32132
      sb.append("id:");
32133
      sb.append(this.id);
32134
      first = false;
32135
      sb.append(")");
32136
      return sb.toString();
32137
    }
32138
 
32139
    public void validate() throws org.apache.thrift.TException {
32140
      // check for required fields
32141
    }
32142
 
32143
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32144
      try {
32145
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32146
      } catch (org.apache.thrift.TException te) {
32147
        throw new java.io.IOException(te);
32148
      }
32149
    }
32150
 
32151
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32152
      try {
32153
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
32154
        __isset_bit_vector = new BitSet(1);
32155
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32156
      } catch (org.apache.thrift.TException te) {
32157
        throw new java.io.IOException(te);
32158
      }
32159
    }
32160
 
32161
  }
32162
 
32163
  public static class updateTransferLotAfterItemReceive_result implements org.apache.thrift.TBase<updateTransferLotAfterItemReceive_result, updateTransferLotAfterItemReceive_result._Fields>, java.io.Serializable, Cloneable   {
32164
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTransferLotAfterItemReceive_result");
32165
 
32166
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
32167
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
32168
 
32169
    private TransferLotStatus success; // required
32170
    private WarehouseServiceException wex; // required
32171
 
32172
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32173
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32174
      /**
32175
       * 
32176
       * @see TransferLotStatus
32177
       */
32178
      SUCCESS((short)0, "success"),
32179
      WEX((short)1, "wex");
32180
 
32181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32182
 
32183
      static {
32184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32185
          byName.put(field.getFieldName(), field);
32186
        }
32187
      }
32188
 
32189
      /**
32190
       * Find the _Fields constant that matches fieldId, or null if its not found.
32191
       */
32192
      public static _Fields findByThriftId(int fieldId) {
32193
        switch(fieldId) {
32194
          case 0: // SUCCESS
32195
            return SUCCESS;
32196
          case 1: // WEX
32197
            return WEX;
32198
          default:
32199
            return null;
32200
        }
32201
      }
32202
 
32203
      /**
32204
       * Find the _Fields constant that matches fieldId, throwing an exception
32205
       * if it is not found.
32206
       */
32207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32208
        _Fields fields = findByThriftId(fieldId);
32209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32210
        return fields;
32211
      }
32212
 
32213
      /**
32214
       * Find the _Fields constant that matches name, or null if its not found.
32215
       */
32216
      public static _Fields findByName(String name) {
32217
        return byName.get(name);
32218
      }
32219
 
32220
      private final short _thriftId;
32221
      private final String _fieldName;
32222
 
32223
      _Fields(short thriftId, String fieldName) {
32224
        _thriftId = thriftId;
32225
        _fieldName = fieldName;
32226
      }
32227
 
32228
      public short getThriftFieldId() {
32229
        return _thriftId;
32230
      }
32231
 
32232
      public String getFieldName() {
32233
        return _fieldName;
32234
      }
32235
    }
32236
 
32237
    // isset id assignments
32238
 
32239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32240
    static {
32241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32243
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TransferLotStatus.class)));
32244
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
32246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTransferLotAfterItemReceive_result.class, metaDataMap);
32248
    }
32249
 
32250
    public updateTransferLotAfterItemReceive_result() {
32251
    }
32252
 
32253
    public updateTransferLotAfterItemReceive_result(
32254
      TransferLotStatus success,
32255
      WarehouseServiceException wex)
32256
    {
32257
      this();
32258
      this.success = success;
32259
      this.wex = wex;
32260
    }
32261
 
32262
    /**
32263
     * Performs a deep copy on <i>other</i>.
32264
     */
32265
    public updateTransferLotAfterItemReceive_result(updateTransferLotAfterItemReceive_result other) {
32266
      if (other.isSetSuccess()) {
32267
        this.success = other.success;
32268
      }
32269
      if (other.isSetWex()) {
32270
        this.wex = new WarehouseServiceException(other.wex);
32271
      }
32272
    }
32273
 
32274
    public updateTransferLotAfterItemReceive_result deepCopy() {
32275
      return new updateTransferLotAfterItemReceive_result(this);
32276
    }
32277
 
32278
    @Override
32279
    public void clear() {
32280
      this.success = null;
32281
      this.wex = null;
32282
    }
32283
 
32284
    /**
32285
     * 
32286
     * @see TransferLotStatus
32287
     */
32288
    public TransferLotStatus getSuccess() {
32289
      return this.success;
32290
    }
32291
 
32292
    /**
32293
     * 
32294
     * @see TransferLotStatus
32295
     */
32296
    public void setSuccess(TransferLotStatus success) {
32297
      this.success = success;
32298
    }
32299
 
32300
    public void unsetSuccess() {
32301
      this.success = null;
32302
    }
32303
 
32304
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32305
    public boolean isSetSuccess() {
32306
      return this.success != null;
32307
    }
32308
 
32309
    public void setSuccessIsSet(boolean value) {
32310
      if (!value) {
32311
        this.success = null;
32312
      }
32313
    }
32314
 
32315
    public WarehouseServiceException getWex() {
32316
      return this.wex;
32317
    }
32318
 
32319
    public void setWex(WarehouseServiceException wex) {
32320
      this.wex = wex;
32321
    }
32322
 
32323
    public void unsetWex() {
32324
      this.wex = null;
32325
    }
32326
 
32327
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
32328
    public boolean isSetWex() {
32329
      return this.wex != null;
32330
    }
32331
 
32332
    public void setWexIsSet(boolean value) {
32333
      if (!value) {
32334
        this.wex = null;
32335
      }
32336
    }
32337
 
32338
    public void setFieldValue(_Fields field, Object value) {
32339
      switch (field) {
32340
      case SUCCESS:
32341
        if (value == null) {
32342
          unsetSuccess();
32343
        } else {
32344
          setSuccess((TransferLotStatus)value);
32345
        }
32346
        break;
32347
 
32348
      case WEX:
32349
        if (value == null) {
32350
          unsetWex();
32351
        } else {
32352
          setWex((WarehouseServiceException)value);
32353
        }
32354
        break;
32355
 
32356
      }
32357
    }
32358
 
32359
    public Object getFieldValue(_Fields field) {
32360
      switch (field) {
32361
      case SUCCESS:
32362
        return getSuccess();
32363
 
32364
      case WEX:
32365
        return getWex();
32366
 
32367
      }
32368
      throw new IllegalStateException();
32369
    }
32370
 
32371
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32372
    public boolean isSet(_Fields field) {
32373
      if (field == null) {
32374
        throw new IllegalArgumentException();
32375
      }
32376
 
32377
      switch (field) {
32378
      case SUCCESS:
32379
        return isSetSuccess();
32380
      case WEX:
32381
        return isSetWex();
32382
      }
32383
      throw new IllegalStateException();
32384
    }
32385
 
32386
    @Override
32387
    public boolean equals(Object that) {
32388
      if (that == null)
32389
        return false;
32390
      if (that instanceof updateTransferLotAfterItemReceive_result)
32391
        return this.equals((updateTransferLotAfterItemReceive_result)that);
32392
      return false;
32393
    }
32394
 
32395
    public boolean equals(updateTransferLotAfterItemReceive_result that) {
32396
      if (that == null)
32397
        return false;
32398
 
32399
      boolean this_present_success = true && this.isSetSuccess();
32400
      boolean that_present_success = true && that.isSetSuccess();
32401
      if (this_present_success || that_present_success) {
32402
        if (!(this_present_success && that_present_success))
32403
          return false;
32404
        if (!this.success.equals(that.success))
32405
          return false;
32406
      }
32407
 
32408
      boolean this_present_wex = true && this.isSetWex();
32409
      boolean that_present_wex = true && that.isSetWex();
32410
      if (this_present_wex || that_present_wex) {
32411
        if (!(this_present_wex && that_present_wex))
32412
          return false;
32413
        if (!this.wex.equals(that.wex))
32414
          return false;
32415
      }
32416
 
32417
      return true;
32418
    }
32419
 
32420
    @Override
32421
    public int hashCode() {
32422
      return 0;
32423
    }
32424
 
32425
    public int compareTo(updateTransferLotAfterItemReceive_result other) {
32426
      if (!getClass().equals(other.getClass())) {
32427
        return getClass().getName().compareTo(other.getClass().getName());
32428
      }
32429
 
32430
      int lastComparison = 0;
32431
      updateTransferLotAfterItemReceive_result typedOther = (updateTransferLotAfterItemReceive_result)other;
32432
 
32433
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32434
      if (lastComparison != 0) {
32435
        return lastComparison;
32436
      }
32437
      if (isSetSuccess()) {
32438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32439
        if (lastComparison != 0) {
32440
          return lastComparison;
32441
        }
32442
      }
32443
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
32444
      if (lastComparison != 0) {
32445
        return lastComparison;
32446
      }
32447
      if (isSetWex()) {
32448
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
32449
        if (lastComparison != 0) {
32450
          return lastComparison;
32451
        }
32452
      }
32453
      return 0;
32454
    }
32455
 
32456
    public _Fields fieldForId(int fieldId) {
32457
      return _Fields.findByThriftId(fieldId);
32458
    }
32459
 
32460
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32461
      org.apache.thrift.protocol.TField field;
32462
      iprot.readStructBegin();
32463
      while (true)
32464
      {
32465
        field = iprot.readFieldBegin();
32466
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32467
          break;
32468
        }
32469
        switch (field.id) {
32470
          case 0: // SUCCESS
32471
            if (field.type == org.apache.thrift.protocol.TType.I32) {
32472
              this.success = TransferLotStatus.findByValue(iprot.readI32());
32473
            } else { 
32474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32475
            }
32476
            break;
32477
          case 1: // WEX
32478
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
32479
              this.wex = new WarehouseServiceException();
32480
              this.wex.read(iprot);
32481
            } else { 
32482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32483
            }
32484
            break;
32485
          default:
32486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32487
        }
32488
        iprot.readFieldEnd();
32489
      }
32490
      iprot.readStructEnd();
32491
      validate();
32492
    }
32493
 
32494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32495
      oprot.writeStructBegin(STRUCT_DESC);
32496
 
32497
      if (this.isSetSuccess()) {
32498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32499
        oprot.writeI32(this.success.getValue());
32500
        oprot.writeFieldEnd();
32501
      } else if (this.isSetWex()) {
32502
        oprot.writeFieldBegin(WEX_FIELD_DESC);
32503
        this.wex.write(oprot);
32504
        oprot.writeFieldEnd();
32505
      }
32506
      oprot.writeFieldStop();
32507
      oprot.writeStructEnd();
32508
    }
32509
 
32510
    @Override
32511
    public String toString() {
32512
      StringBuilder sb = new StringBuilder("updateTransferLotAfterItemReceive_result(");
32513
      boolean first = true;
32514
 
32515
      sb.append("success:");
32516
      if (this.success == null) {
32517
        sb.append("null");
32518
      } else {
32519
        sb.append(this.success);
32520
      }
32521
      first = false;
32522
      if (!first) sb.append(", ");
32523
      sb.append("wex:");
32524
      if (this.wex == null) {
32525
        sb.append("null");
32526
      } else {
32527
        sb.append(this.wex);
32528
      }
32529
      first = false;
32530
      sb.append(")");
32531
      return sb.toString();
32532
    }
32533
 
32534
    public void validate() throws org.apache.thrift.TException {
32535
      // check for required fields
32536
    }
32537
 
32538
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32539
      try {
32540
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32541
      } catch (org.apache.thrift.TException te) {
32542
        throw new java.io.IOException(te);
32543
      }
32544
    }
32545
 
32546
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32547
      try {
32548
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32549
      } catch (org.apache.thrift.TException te) {
32550
        throw new java.io.IOException(te);
32551
      }
32552
    }
32553
 
32554
  }
32555
 
32556
  public static class scanForTransfer_args implements org.apache.thrift.TBase<scanForTransfer_args, scanForTransfer_args._Fields>, java.io.Serializable, Cloneable   {
32557
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_args");
32558
 
32559
    private static final org.apache.thrift.protocol.TField INVENTORY_ITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("inventoryItems", org.apache.thrift.protocol.TType.LIST, (short)1);
32560
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)2);
32561
    private static final org.apache.thrift.protocol.TField TRANSFER_LOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transferLotId", org.apache.thrift.protocol.TType.I64, (short)3);
32562
 
32563
    private List<InventoryItem> inventoryItems; // required
32564
    private ScanType type; // required
32565
    private long transferLotId; // required
32566
 
32567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32569
      INVENTORY_ITEMS((short)1, "inventoryItems"),
32570
      /**
32571
       * 
32572
       * @see ScanType
32573
       */
32574
      TYPE((short)2, "type"),
32575
      TRANSFER_LOT_ID((short)3, "transferLotId");
32576
 
32577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32578
 
32579
      static {
32580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32581
          byName.put(field.getFieldName(), field);
32582
        }
32583
      }
32584
 
32585
      /**
32586
       * Find the _Fields constant that matches fieldId, or null if its not found.
32587
       */
32588
      public static _Fields findByThriftId(int fieldId) {
32589
        switch(fieldId) {
32590
          case 1: // INVENTORY_ITEMS
32591
            return INVENTORY_ITEMS;
32592
          case 2: // TYPE
32593
            return TYPE;
32594
          case 3: // TRANSFER_LOT_ID
32595
            return TRANSFER_LOT_ID;
32596
          default:
32597
            return null;
32598
        }
32599
      }
32600
 
32601
      /**
32602
       * Find the _Fields constant that matches fieldId, throwing an exception
32603
       * if it is not found.
32604
       */
32605
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32606
        _Fields fields = findByThriftId(fieldId);
32607
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32608
        return fields;
32609
      }
32610
 
32611
      /**
32612
       * Find the _Fields constant that matches name, or null if its not found.
32613
       */
32614
      public static _Fields findByName(String name) {
32615
        return byName.get(name);
32616
      }
32617
 
32618
      private final short _thriftId;
32619
      private final String _fieldName;
32620
 
32621
      _Fields(short thriftId, String fieldName) {
32622
        _thriftId = thriftId;
32623
        _fieldName = fieldName;
32624
      }
32625
 
32626
      public short getThriftFieldId() {
32627
        return _thriftId;
32628
      }
32629
 
32630
      public String getFieldName() {
32631
        return _fieldName;
32632
      }
32633
    }
32634
 
32635
    // isset id assignments
32636
    private static final int __TRANSFERLOTID_ISSET_ID = 0;
32637
    private BitSet __isset_bit_vector = new BitSet(1);
32638
 
32639
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32640
    static {
32641
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32642
      tmpMap.put(_Fields.INVENTORY_ITEMS, new org.apache.thrift.meta_data.FieldMetaData("inventoryItems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32643
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32644
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, InventoryItem.class))));
32645
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32646
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ScanType.class)));
32647
      tmpMap.put(_Fields.TRANSFER_LOT_ID, new org.apache.thrift.meta_data.FieldMetaData("transferLotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32648
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
32649
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32650
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_args.class, metaDataMap);
32651
    }
32652
 
32653
    public scanForTransfer_args() {
32654
    }
32655
 
32656
    public scanForTransfer_args(
32657
      List<InventoryItem> inventoryItems,
32658
      ScanType type,
32659
      long transferLotId)
32660
    {
32661
      this();
32662
      this.inventoryItems = inventoryItems;
32663
      this.type = type;
32664
      this.transferLotId = transferLotId;
32665
      setTransferLotIdIsSet(true);
32666
    }
32667
 
32668
    /**
32669
     * Performs a deep copy on <i>other</i>.
32670
     */
32671
    public scanForTransfer_args(scanForTransfer_args other) {
32672
      __isset_bit_vector.clear();
32673
      __isset_bit_vector.or(other.__isset_bit_vector);
32674
      if (other.isSetInventoryItems()) {
32675
        List<InventoryItem> __this__inventoryItems = new ArrayList<InventoryItem>();
32676
        for (InventoryItem other_element : other.inventoryItems) {
32677
          __this__inventoryItems.add(new InventoryItem(other_element));
32678
        }
32679
        this.inventoryItems = __this__inventoryItems;
32680
      }
32681
      if (other.isSetType()) {
32682
        this.type = other.type;
32683
      }
32684
      this.transferLotId = other.transferLotId;
32685
    }
32686
 
32687
    public scanForTransfer_args deepCopy() {
32688
      return new scanForTransfer_args(this);
32689
    }
32690
 
32691
    @Override
32692
    public void clear() {
32693
      this.inventoryItems = null;
32694
      this.type = null;
32695
      setTransferLotIdIsSet(false);
32696
      this.transferLotId = 0;
32697
    }
32698
 
32699
    public int getInventoryItemsSize() {
32700
      return (this.inventoryItems == null) ? 0 : this.inventoryItems.size();
32701
    }
32702
 
32703
    public java.util.Iterator<InventoryItem> getInventoryItemsIterator() {
32704
      return (this.inventoryItems == null) ? null : this.inventoryItems.iterator();
32705
    }
32706
 
32707
    public void addToInventoryItems(InventoryItem elem) {
32708
      if (this.inventoryItems == null) {
32709
        this.inventoryItems = new ArrayList<InventoryItem>();
32710
      }
32711
      this.inventoryItems.add(elem);
32712
    }
32713
 
32714
    public List<InventoryItem> getInventoryItems() {
32715
      return this.inventoryItems;
32716
    }
32717
 
32718
    public void setInventoryItems(List<InventoryItem> inventoryItems) {
32719
      this.inventoryItems = inventoryItems;
32720
    }
32721
 
32722
    public void unsetInventoryItems() {
32723
      this.inventoryItems = null;
32724
    }
32725
 
32726
    /** Returns true if field inventoryItems is set (has been assigned a value) and false otherwise */
32727
    public boolean isSetInventoryItems() {
32728
      return this.inventoryItems != null;
32729
    }
32730
 
32731
    public void setInventoryItemsIsSet(boolean value) {
32732
      if (!value) {
32733
        this.inventoryItems = null;
32734
      }
32735
    }
32736
 
32737
    /**
32738
     * 
32739
     * @see ScanType
32740
     */
32741
    public ScanType getType() {
32742
      return this.type;
32743
    }
32744
 
32745
    /**
32746
     * 
32747
     * @see ScanType
32748
     */
32749
    public void setType(ScanType type) {
32750
      this.type = type;
32751
    }
32752
 
32753
    public void unsetType() {
32754
      this.type = null;
32755
    }
32756
 
32757
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
32758
    public boolean isSetType() {
32759
      return this.type != null;
32760
    }
32761
 
32762
    public void setTypeIsSet(boolean value) {
32763
      if (!value) {
32764
        this.type = null;
32765
      }
32766
    }
32767
 
32768
    public long getTransferLotId() {
32769
      return this.transferLotId;
32770
    }
32771
 
32772
    public void setTransferLotId(long transferLotId) {
32773
      this.transferLotId = transferLotId;
32774
      setTransferLotIdIsSet(true);
32775
    }
32776
 
32777
    public void unsetTransferLotId() {
32778
      __isset_bit_vector.clear(__TRANSFERLOTID_ISSET_ID);
32779
    }
32780
 
32781
    /** Returns true if field transferLotId is set (has been assigned a value) and false otherwise */
32782
    public boolean isSetTransferLotId() {
32783
      return __isset_bit_vector.get(__TRANSFERLOTID_ISSET_ID);
32784
    }
32785
 
32786
    public void setTransferLotIdIsSet(boolean value) {
32787
      __isset_bit_vector.set(__TRANSFERLOTID_ISSET_ID, value);
32788
    }
32789
 
32790
    public void setFieldValue(_Fields field, Object value) {
32791
      switch (field) {
32792
      case INVENTORY_ITEMS:
32793
        if (value == null) {
32794
          unsetInventoryItems();
32795
        } else {
32796
          setInventoryItems((List<InventoryItem>)value);
32797
        }
32798
        break;
32799
 
32800
      case TYPE:
32801
        if (value == null) {
32802
          unsetType();
32803
        } else {
32804
          setType((ScanType)value);
32805
        }
32806
        break;
32807
 
32808
      case TRANSFER_LOT_ID:
32809
        if (value == null) {
32810
          unsetTransferLotId();
32811
        } else {
32812
          setTransferLotId((Long)value);
32813
        }
32814
        break;
32815
 
32816
      }
32817
    }
32818
 
32819
    public Object getFieldValue(_Fields field) {
32820
      switch (field) {
32821
      case INVENTORY_ITEMS:
32822
        return getInventoryItems();
32823
 
32824
      case TYPE:
32825
        return getType();
32826
 
32827
      case TRANSFER_LOT_ID:
32828
        return Long.valueOf(getTransferLotId());
32829
 
32830
      }
32831
      throw new IllegalStateException();
32832
    }
32833
 
32834
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32835
    public boolean isSet(_Fields field) {
32836
      if (field == null) {
32837
        throw new IllegalArgumentException();
32838
      }
32839
 
32840
      switch (field) {
32841
      case INVENTORY_ITEMS:
32842
        return isSetInventoryItems();
32843
      case TYPE:
32844
        return isSetType();
32845
      case TRANSFER_LOT_ID:
32846
        return isSetTransferLotId();
32847
      }
32848
      throw new IllegalStateException();
32849
    }
32850
 
32851
    @Override
32852
    public boolean equals(Object that) {
32853
      if (that == null)
32854
        return false;
32855
      if (that instanceof scanForTransfer_args)
32856
        return this.equals((scanForTransfer_args)that);
32857
      return false;
32858
    }
32859
 
32860
    public boolean equals(scanForTransfer_args that) {
32861
      if (that == null)
32862
        return false;
32863
 
32864
      boolean this_present_inventoryItems = true && this.isSetInventoryItems();
32865
      boolean that_present_inventoryItems = true && that.isSetInventoryItems();
32866
      if (this_present_inventoryItems || that_present_inventoryItems) {
32867
        if (!(this_present_inventoryItems && that_present_inventoryItems))
32868
          return false;
32869
        if (!this.inventoryItems.equals(that.inventoryItems))
32870
          return false;
32871
      }
32872
 
32873
      boolean this_present_type = true && this.isSetType();
32874
      boolean that_present_type = true && that.isSetType();
32875
      if (this_present_type || that_present_type) {
32876
        if (!(this_present_type && that_present_type))
32877
          return false;
32878
        if (!this.type.equals(that.type))
32879
          return false;
32880
      }
32881
 
32882
      boolean this_present_transferLotId = true;
32883
      boolean that_present_transferLotId = true;
32884
      if (this_present_transferLotId || that_present_transferLotId) {
32885
        if (!(this_present_transferLotId && that_present_transferLotId))
32886
          return false;
32887
        if (this.transferLotId != that.transferLotId)
32888
          return false;
32889
      }
32890
 
32891
      return true;
32892
    }
32893
 
32894
    @Override
32895
    public int hashCode() {
32896
      return 0;
32897
    }
32898
 
32899
    public int compareTo(scanForTransfer_args other) {
32900
      if (!getClass().equals(other.getClass())) {
32901
        return getClass().getName().compareTo(other.getClass().getName());
32902
      }
32903
 
32904
      int lastComparison = 0;
32905
      scanForTransfer_args typedOther = (scanForTransfer_args)other;
32906
 
32907
      lastComparison = Boolean.valueOf(isSetInventoryItems()).compareTo(typedOther.isSetInventoryItems());
32908
      if (lastComparison != 0) {
32909
        return lastComparison;
32910
      }
32911
      if (isSetInventoryItems()) {
32912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.inventoryItems, typedOther.inventoryItems);
32913
        if (lastComparison != 0) {
32914
          return lastComparison;
32915
        }
32916
      }
32917
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
32918
      if (lastComparison != 0) {
32919
        return lastComparison;
32920
      }
32921
      if (isSetType()) {
32922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
32923
        if (lastComparison != 0) {
32924
          return lastComparison;
32925
        }
32926
      }
32927
      lastComparison = Boolean.valueOf(isSetTransferLotId()).compareTo(typedOther.isSetTransferLotId());
32928
      if (lastComparison != 0) {
32929
        return lastComparison;
32930
      }
32931
      if (isSetTransferLotId()) {
32932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transferLotId, typedOther.transferLotId);
32933
        if (lastComparison != 0) {
32934
          return lastComparison;
32935
        }
32936
      }
32937
      return 0;
32938
    }
32939
 
32940
    public _Fields fieldForId(int fieldId) {
32941
      return _Fields.findByThriftId(fieldId);
32942
    }
32943
 
32944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32945
      org.apache.thrift.protocol.TField field;
32946
      iprot.readStructBegin();
32947
      while (true)
32948
      {
32949
        field = iprot.readFieldBegin();
32950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32951
          break;
32952
        }
32953
        switch (field.id) {
32954
          case 1: // INVENTORY_ITEMS
32955
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32956
              {
32957
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
32958
                this.inventoryItems = new ArrayList<InventoryItem>(_list89.size);
32959
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
32960
                {
32961
                  InventoryItem _elem91; // required
32962
                  _elem91 = new InventoryItem();
32963
                  _elem91.read(iprot);
32964
                  this.inventoryItems.add(_elem91);
32965
                }
32966
                iprot.readListEnd();
32967
              }
32968
            } else { 
32969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32970
            }
32971
            break;
32972
          case 2: // TYPE
32973
            if (field.type == org.apache.thrift.protocol.TType.I32) {
32974
              this.type = ScanType.findByValue(iprot.readI32());
32975
            } else { 
32976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32977
            }
32978
            break;
32979
          case 3: // TRANSFER_LOT_ID
32980
            if (field.type == org.apache.thrift.protocol.TType.I64) {
32981
              this.transferLotId = iprot.readI64();
32982
              setTransferLotIdIsSet(true);
32983
            } else { 
32984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32985
            }
32986
            break;
32987
          default:
32988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32989
        }
32990
        iprot.readFieldEnd();
32991
      }
32992
      iprot.readStructEnd();
32993
      validate();
32994
    }
32995
 
32996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32997
      validate();
32998
 
32999
      oprot.writeStructBegin(STRUCT_DESC);
33000
      if (this.inventoryItems != null) {
33001
        oprot.writeFieldBegin(INVENTORY_ITEMS_FIELD_DESC);
33002
        {
33003
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.inventoryItems.size()));
33004
          for (InventoryItem _iter92 : this.inventoryItems)
33005
          {
33006
            _iter92.write(oprot);
33007
          }
33008
          oprot.writeListEnd();
33009
        }
33010
        oprot.writeFieldEnd();
33011
      }
33012
      if (this.type != null) {
33013
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
33014
        oprot.writeI32(this.type.getValue());
33015
        oprot.writeFieldEnd();
33016
      }
33017
      oprot.writeFieldBegin(TRANSFER_LOT_ID_FIELD_DESC);
33018
      oprot.writeI64(this.transferLotId);
33019
      oprot.writeFieldEnd();
33020
      oprot.writeFieldStop();
33021
      oprot.writeStructEnd();
33022
    }
33023
 
33024
    @Override
33025
    public String toString() {
33026
      StringBuilder sb = new StringBuilder("scanForTransfer_args(");
33027
      boolean first = true;
33028
 
33029
      sb.append("inventoryItems:");
33030
      if (this.inventoryItems == null) {
33031
        sb.append("null");
33032
      } else {
33033
        sb.append(this.inventoryItems);
33034
      }
33035
      first = false;
33036
      if (!first) sb.append(", ");
33037
      sb.append("type:");
33038
      if (this.type == null) {
33039
        sb.append("null");
33040
      } else {
33041
        sb.append(this.type);
33042
      }
33043
      first = false;
33044
      if (!first) sb.append(", ");
33045
      sb.append("transferLotId:");
33046
      sb.append(this.transferLotId);
33047
      first = false;
33048
      sb.append(")");
33049
      return sb.toString();
33050
    }
33051
 
33052
    public void validate() throws org.apache.thrift.TException {
33053
      // check for required fields
33054
    }
33055
 
33056
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33057
      try {
33058
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33059
      } catch (org.apache.thrift.TException te) {
33060
        throw new java.io.IOException(te);
33061
      }
33062
    }
33063
 
33064
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33065
      try {
33066
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
33067
        __isset_bit_vector = new BitSet(1);
33068
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33069
      } catch (org.apache.thrift.TException te) {
33070
        throw new java.io.IOException(te);
33071
      }
33072
    }
33073
 
33074
  }
33075
 
33076
  public static class scanForTransfer_result implements org.apache.thrift.TBase<scanForTransfer_result, scanForTransfer_result._Fields>, java.io.Serializable, Cloneable   {
33077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("scanForTransfer_result");
33078
 
33079
    private static final org.apache.thrift.protocol.TField WEX_FIELD_DESC = new org.apache.thrift.protocol.TField("wex", org.apache.thrift.protocol.TType.STRUCT, (short)1);
33080
 
33081
    private WarehouseServiceException wex; // required
33082
 
33083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33085
      WEX((short)1, "wex");
33086
 
33087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33088
 
33089
      static {
33090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33091
          byName.put(field.getFieldName(), field);
33092
        }
33093
      }
33094
 
33095
      /**
33096
       * Find the _Fields constant that matches fieldId, or null if its not found.
33097
       */
33098
      public static _Fields findByThriftId(int fieldId) {
33099
        switch(fieldId) {
33100
          case 1: // WEX
33101
            return WEX;
33102
          default:
33103
            return null;
33104
        }
33105
      }
33106
 
33107
      /**
33108
       * Find the _Fields constant that matches fieldId, throwing an exception
33109
       * if it is not found.
33110
       */
33111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33112
        _Fields fields = findByThriftId(fieldId);
33113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33114
        return fields;
33115
      }
33116
 
33117
      /**
33118
       * Find the _Fields constant that matches name, or null if its not found.
33119
       */
33120
      public static _Fields findByName(String name) {
33121
        return byName.get(name);
33122
      }
33123
 
33124
      private final short _thriftId;
33125
      private final String _fieldName;
33126
 
33127
      _Fields(short thriftId, String fieldName) {
33128
        _thriftId = thriftId;
33129
        _fieldName = fieldName;
33130
      }
33131
 
33132
      public short getThriftFieldId() {
33133
        return _thriftId;
33134
      }
33135
 
33136
      public String getFieldName() {
33137
        return _fieldName;
33138
      }
33139
    }
33140
 
33141
    // isset id assignments
33142
 
33143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33144
    static {
33145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33146
      tmpMap.put(_Fields.WEX, new org.apache.thrift.meta_data.FieldMetaData("wex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
33148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(scanForTransfer_result.class, metaDataMap);
33150
    }
33151
 
33152
    public scanForTransfer_result() {
33153
    }
33154
 
33155
    public scanForTransfer_result(
33156
      WarehouseServiceException wex)
33157
    {
33158
      this();
33159
      this.wex = wex;
33160
    }
33161
 
33162
    /**
33163
     * Performs a deep copy on <i>other</i>.
33164
     */
33165
    public scanForTransfer_result(scanForTransfer_result other) {
33166
      if (other.isSetWex()) {
33167
        this.wex = new WarehouseServiceException(other.wex);
33168
      }
33169
    }
33170
 
33171
    public scanForTransfer_result deepCopy() {
33172
      return new scanForTransfer_result(this);
33173
    }
33174
 
33175
    @Override
33176
    public void clear() {
33177
      this.wex = null;
33178
    }
33179
 
33180
    public WarehouseServiceException getWex() {
33181
      return this.wex;
33182
    }
33183
 
33184
    public void setWex(WarehouseServiceException wex) {
33185
      this.wex = wex;
33186
    }
33187
 
33188
    public void unsetWex() {
33189
      this.wex = null;
33190
    }
33191
 
33192
    /** Returns true if field wex is set (has been assigned a value) and false otherwise */
33193
    public boolean isSetWex() {
33194
      return this.wex != null;
33195
    }
33196
 
33197
    public void setWexIsSet(boolean value) {
33198
      if (!value) {
33199
        this.wex = null;
33200
      }
33201
    }
33202
 
33203
    public void setFieldValue(_Fields field, Object value) {
33204
      switch (field) {
33205
      case WEX:
33206
        if (value == null) {
33207
          unsetWex();
33208
        } else {
33209
          setWex((WarehouseServiceException)value);
33210
        }
33211
        break;
33212
 
33213
      }
33214
    }
33215
 
33216
    public Object getFieldValue(_Fields field) {
33217
      switch (field) {
33218
      case WEX:
33219
        return getWex();
33220
 
33221
      }
33222
      throw new IllegalStateException();
33223
    }
33224
 
33225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33226
    public boolean isSet(_Fields field) {
33227
      if (field == null) {
33228
        throw new IllegalArgumentException();
33229
      }
33230
 
33231
      switch (field) {
33232
      case WEX:
33233
        return isSetWex();
33234
      }
33235
      throw new IllegalStateException();
33236
    }
33237
 
33238
    @Override
33239
    public boolean equals(Object that) {
33240
      if (that == null)
33241
        return false;
33242
      if (that instanceof scanForTransfer_result)
33243
        return this.equals((scanForTransfer_result)that);
33244
      return false;
33245
    }
33246
 
33247
    public boolean equals(scanForTransfer_result that) {
33248
      if (that == null)
33249
        return false;
33250
 
33251
      boolean this_present_wex = true && this.isSetWex();
33252
      boolean that_present_wex = true && that.isSetWex();
33253
      if (this_present_wex || that_present_wex) {
33254
        if (!(this_present_wex && that_present_wex))
33255
          return false;
33256
        if (!this.wex.equals(that.wex))
33257
          return false;
33258
      }
33259
 
33260
      return true;
33261
    }
33262
 
33263
    @Override
33264
    public int hashCode() {
33265
      return 0;
33266
    }
33267
 
33268
    public int compareTo(scanForTransfer_result other) {
33269
      if (!getClass().equals(other.getClass())) {
33270
        return getClass().getName().compareTo(other.getClass().getName());
33271
      }
33272
 
33273
      int lastComparison = 0;
33274
      scanForTransfer_result typedOther = (scanForTransfer_result)other;
33275
 
33276
      lastComparison = Boolean.valueOf(isSetWex()).compareTo(typedOther.isSetWex());
33277
      if (lastComparison != 0) {
33278
        return lastComparison;
33279
      }
33280
      if (isSetWex()) {
33281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.wex, typedOther.wex);
33282
        if (lastComparison != 0) {
33283
          return lastComparison;
33284
        }
33285
      }
33286
      return 0;
33287
    }
33288
 
33289
    public _Fields fieldForId(int fieldId) {
33290
      return _Fields.findByThriftId(fieldId);
33291
    }
33292
 
33293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33294
      org.apache.thrift.protocol.TField field;
33295
      iprot.readStructBegin();
33296
      while (true)
33297
      {
33298
        field = iprot.readFieldBegin();
33299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33300
          break;
33301
        }
33302
        switch (field.id) {
33303
          case 1: // WEX
33304
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33305
              this.wex = new WarehouseServiceException();
33306
              this.wex.read(iprot);
33307
            } else { 
33308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33309
            }
33310
            break;
33311
          default:
33312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33313
        }
33314
        iprot.readFieldEnd();
33315
      }
33316
      iprot.readStructEnd();
33317
      validate();
33318
    }
33319
 
33320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33321
      oprot.writeStructBegin(STRUCT_DESC);
33322
 
33323
      if (this.isSetWex()) {
33324
        oprot.writeFieldBegin(WEX_FIELD_DESC);
33325
        this.wex.write(oprot);
33326
        oprot.writeFieldEnd();
33327
      }
33328
      oprot.writeFieldStop();
33329
      oprot.writeStructEnd();
33330
    }
33331
 
33332
    @Override
33333
    public String toString() {
33334
      StringBuilder sb = new StringBuilder("scanForTransfer_result(");
33335
      boolean first = true;
33336
 
33337
      sb.append("wex:");
33338
      if (this.wex == null) {
33339
        sb.append("null");
33340
      } else {
33341
        sb.append(this.wex);
33342
      }
33343
      first = false;
33344
      sb.append(")");
33345
      return sb.toString();
33346
    }
33347
 
33348
    public void validate() throws org.apache.thrift.TException {
33349
      // check for required fields
33350
    }
33351
 
33352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33353
      try {
33354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33355
      } catch (org.apache.thrift.TException te) {
33356
        throw new java.io.IOException(te);
33357
      }
33358
    }
33359
 
33360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33361
      try {
33362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33363
      } catch (org.apache.thrift.TException te) {
33364
        throw new java.io.IOException(te);
33365
      }
33366
    }
33367
 
33368
  }
33369
 
2820 chandransh 33370
}